/* Approved Penpot palette. Artwork is a fixed layer; all content stays in normal flow. */
@font-face {
  font-family: "Source Sans Pro";
  src: url("assets/source-sans-pro-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans Pro";
  src: url("assets/source-sans-pro-semibold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --black: #000;
  --panel: #11100d;
  --line: #3d3420;
  --white: #f4edd9;
  --muted: #bcaf90;
  --gold: #e7bb42;
  --header-height: 104px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); }
body { margin: 0; background: var(--black); color: var(--white); font-family: "Source Sans Pro", "Segoe UI", sans-serif; font-size: 20px; line-height: 1.4; }
::selection { background: var(--gold); color: var(--black); }
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: rgb(231 187 66 / 25%); }
a:focus-visible, [tabindex="-1"]:focus-visible { outline: 3px solid var(--gold); outline-offset: 6px; border-radius: 3px; }
img { display: block; max-width: 100%; }
svg { display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; line-height: 1.12; }
h2 { font-size: clamp(44px, 5.1vw, 70px); letter-spacing: -1px; }
.container { width: min(1280px, calc(100% - 112px)); margin-inline: auto; }
.eyebrow { color: var(--gold); font-size: 14px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; line-height: 1.5; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 24px; z-index: 30; padding: 12px 20px; color: var(--black); background: var(--gold); transform: translateY(-180%); font-weight: 600; }
.skip-link:focus { transform: none; }

.backdrop { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: var(--black); }
.backdrop__helmet { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; }
.backdrop__triangles { position: absolute; top: 100px; left: 0; width: 50%; height: calc(100% - 100px); opacity: .46; }
.backdrop__triangles pattern path { stroke: #17140d; stroke-width: 1.5; }
.backdrop__mobile-triangles { display: none; }
main, .footer { position: relative; z-index: 1; }
.site-header { position: sticky; top: 0; z-index: 10; background: var(--black); }
.header-inner { height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 20px; flex-shrink: 0; }
/* Native crop hides the source's white margin without modifying the crest. */
.crest { position: relative; display: block; flex: 0 0 84px; width: 84px; aspect-ratio: 1549 / 1390; overflow: hidden; }
.crest img { position: absolute; width: 137.7017%; max-width: none; height: auto; left: -18.7863%; top: -21.2230%; }
.brand__name { font-size: 12px; line-height: 1.55; letter-spacing: 2px; font-weight: 600; }
.site-header nav { display: flex; align-items: center; gap: 36px; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 48px; padding-inline: 10px; font-size: 17px; }
.site-header nav a:hover, .footer a:hover { color: var(--gold); }
.mobile-label { display: none; }

.hero { padding-top: 100px; }
.hero h1 { margin-top: 38px; font-size: clamp(80px, 8.1vw, 116px); letter-spacing: -3px; }
.hero__intro { max-width: 610px; margin-top: 28px; color: var(--muted); font-size: 23px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 56px; padding: 14px 20px; border: 1px solid var(--line); border-radius: 4px; font-size: 18px; line-height: 1.35; font-weight: 600; }
.button--gold { color: var(--black); background: var(--gold); border-color: var(--gold); }
.button--gold:hover { background: var(--white); border-color: var(--white); }
.hero__cta { margin-top: 38px; min-width: 246px; }
.hero__note { margin-top: 32px; font-size: 12px; font-weight: 400; color: var(--muted); }
.hero__content { padding-bottom: 64px; }

.section { padding-block: 60px 80px; }
.section h2 { margin-top: 28px; }
.project-grid { margin-top: 52px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.project-card { border: 1px solid var(--line); border-radius: 10px; padding: 26px; background: var(--panel); display: flex; flex-direction: column; }
.project-sketch { background: #211c10; border-radius: 5px; padding: 20px 22px 24px; height: 198px; display: flex; flex-direction: column; }
.sketch-label { font-size: 14px; letter-spacing: 1px; text-transform: uppercase; font-weight: 600; }
.signal-sketch strong { font-size: 32px; font-weight: 600; margin-top: 10px; }
.sketch-tabs { display: flex; gap: 12px; margin-top: auto; }
.sketch-tabs span { flex: 1; padding: 10px 5px; text-align: center; background: var(--line); border-radius: 4px; font-size: 14px; font-weight: 600; }
.mirai-sketch > strong { font-size: 26px; font-weight: 600; }
.sketch-modules { display: flex; gap: 14px; margin-top: auto; }
.sketch-modules span { flex: 1; background: var(--line); border-radius: 5px; padding: 14px; font-size: 16px; }
.sketch-modules span::before { content: ""; display: block; width: 24px; height: 5px; border-radius: 2px; background: var(--gold); margin-bottom: 20px; }
.project-card__body { flex: 1; padding: 20px 4px 0; display: flex; flex-direction: column; }
.project-status { font-size: 12px; }
.project-card h3 { font-size: clamp(27px, 2.4vw, 34px); letter-spacing: -.6px; margin-top: 12px; }
.project-card__body > p:not(.eyebrow) { font-size: 19px; margin-top: 16px; margin-bottom: 12px; color: var(--muted); }
.text-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 18px; min-height: 48px; color: var(--gold); font-size: 18px; font-weight: 600; margin-top: auto; }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }

.about { display: grid; grid-template-columns: minmax(0, 1fr) 344px; grid-template-areas: "heading portrait" "bio portrait"; column-gap: 88px; row-gap: 48px; align-items: start; padding-bottom: 38px; }
.about__heading { grid-area: heading; }
.about h2 { font-size: clamp(48px, 5.5vw, 78px); letter-spacing: -1.8px; }
.portrait { grid-area: portrait; width: 100%; height: auto; aspect-ratio: 2 / 3; }
.about__bio { grid-area: bio; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 24px 28px; color: var(--muted); font-size: 22px; }
.about__bio p + p { margin-top: 20px; }
.contact { border-top: 1px solid var(--line); padding-top: 24px; }
.contact__cta { min-width: 238px; margin-top: 24px; }
.social-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.social-links a { display: inline-flex; align-items: center; gap: 12px; width: 164px; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 5px; background: var(--black); font-size: 16px; font-weight: 600; }
.social-links a:hover { border-color: var(--gold); }
.social-links svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--gold); }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 28px 32px; color: var(--muted); }
.footer > a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; }
.footer .eyebrow { color: var(--muted); font-size: 12px; font-weight: 400; letter-spacing: 1px; }

@media (max-width: 1100px) {
  .container { width: calc(100% - 64px); }
  .hero__intro { max-width: 540px; }
  .project-grid { gap: 24px; }
  .project-card { padding: 20px; }
  .project-sketch { padding-inline: 14px; }
  .sketch-tabs { gap: 6px; }
  .sketch-modules { gap: 8px; }
  .sketch-modules span { padding: 12px 8px; }
  .about { grid-template-columns: minmax(0, 1fr) 30%; column-gap: 40px; row-gap: 32px; }
  .about__bio { font-size: 20px; }
}

@media (max-width: 760px) {
  :root { --header-height: 88px; }
  body { font-size: 18px; }
  .container { width: calc(100% - 48px); }
  .desktop-label, .site-header nav .desktop-nav { display: none; }
  .mobile-label { display: inline; }
  .header-inner { gap: 12px; }
  .brand { gap: 18px; }
  .crest { flex-basis: 64px; width: 64px; }
  .brand__name { font-size: 11px; letter-spacing: 1.8px; }
  .site-header nav a { font-size: 15px; padding-inline: 4px; }
  .backdrop__helmet { inset: auto; top: 110px; right: -90px; width: 900px; height: 600px; opacity: .5; object-fit: contain; }
  .backdrop__triangles { display: none; }
  .backdrop__mobile-triangles { display: block; position: absolute; top: 0; left: 0; width: 390px; height: 844px; stroke: #17140d; stroke-width: 1.2; opacity: .4; }
  .hero { padding-top: 52px; }
  .eyebrow { font-size: 12px; letter-spacing: 1.5px; }
  .hero h1 { margin-top: 34px; font-size: clamp(54px, 16.9vw, 76px); letter-spacing: -1.8px; }
  .hero__intro { max-width: 410px; margin-top: 92px; padding-block: 12px; background: rgb(0 0 0 / 94%); box-shadow: 8px 0 rgb(0 0 0 / 94%), -8px 0 rgb(0 0 0 / 94%); border-radius: 5px; font-size: 19px; }
  .hero__cta { display: flex; width: 100%; max-width: 410px; margin-top: 30px; }
  .hero__note { display: none; }
  .hero__content { padding-bottom: 48px; }
  .section { padding-block: 40px 48px; }
  .section h2 { margin-top: 28px; }
  h2 { font-size: clamp(32px, 9.2vw, 44px); letter-spacing: -.6px; }
  .project-grid { margin-top: 36px; grid-template-columns: 1fr; gap: 28px; }
  .project-card { padding: 22px 20px 12px; border-radius: 8px; }
  .project-sketch { display: none; }
  .project-card__body { padding: 0; }
  .project-card h3 { font-size: 27px; margin-top: 20px; letter-spacing: -.4px; }
  .project-card__body > p:not(.eyebrow) { font-size: 18px; margin-top: 18px; }
  .text-link { font-size: 17px; }
  .about { grid-template-columns: 1fr; grid-template-areas: "heading" "portrait" "bio"; row-gap: 32px; padding-bottom: 28px; }
  .about h2 { font-size: clamp(36px, 10.77vw, 54px); letter-spacing: -.8px; }
  .portrait { max-width: 440px; }
  .about__bio { padding: 20px; font-size: 18px; }
  .contact { padding-top: 24px; }
  .contact__cta { display: flex; width: 100%; margin-top: 24px; }
  .social-links a { flex: 1 1 142px; min-height: 56px; }
  .footer { align-items: flex-start; flex-direction: column; gap: 4px; padding-block: 20px 28px; }
  .footer .eyebrow { font-size: 11px; max-width: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
