/* Approved Paper landing page styles. 3D surfaces remain transparent slots for Three.js. */
:root {
  color-scheme: dark;
  --ink: #09090a;
  --black: #000;
  --paper: #f4f4ef;
  --white: #f7f7f7;
  --red: #ed1c24;
  --red-dark: #c9121b;
  --muted: #b7b7b1;
  --line: rgba(244, 244, 239, .24);
  --font-display: Outfit, "Arial Black", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --page-gutter: clamp(24px, 5.55vw, 80px);
  --ease-out: cubic-bezier(.2, .75, .25, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--ink);
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  scrollbar-color: var(--red) var(--ink);
}
body.landing-page {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.landing-page :where(button, input, textarea) { font: inherit; }
body.landing-page a { color: inherit; }
body.landing-page button { color: inherit; }
body.landing-page .cycle-controls button { color: var(--ink); }
body.landing-page img { display: block; max-width: 100%; }
body.landing-page :focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 5px;
}
#main { width: 100%; }
.skip-link { position: fixed; z-index: 20; top: 12px; left: 12px; padding: 12px 18px; background: var(--paper); color: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

/* Home hero */
.hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100svh;
  height: 100svh;
  max-height: none;
  overflow: hidden;
  overflow: clip;
  background: var(--black);
  scroll-snap-align: start;
}
.intro {
  position: absolute;
  z-index: 5;
  top: clamp(40px, 8vh, 72px);
  left: 5%;
  width: min(475px, 39vw);
}
.eyebrow {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  max-width: 100%;
  min-height: 36px;
  padding: 8px 15px 8px 16px;
  background: var(--red);
  color: var(--white);
  font: 700 15px/18px var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  clip-path: polygon(0 7%, 100% 0, 96% 100%, 3% 94%);
}
.eyebrow .role { opacity: .92; 
  font-size: 14px;

  font-weight: 600;

  line-height: 17px;
}
.intro h1 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 22px 0 0;
  color: var(--white);
  font-size: clamp(48px, 4.6vw, 66px);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: .86;
  text-transform: uppercase;
}
.intro h1 span { display: block; }
.intro h1 span:nth-child(2) { padding: 0 8px 5px 4px; background: var(--white); color: #050505; clip-path: polygon(0 0, 100% 2%, 98% 100%, 2% 94%); }
.intro h1 span:last-child { color: var(--red); }
.scene {
  position: absolute;
  z-index: 2;
  inset: 13% 2.5% 25% 35%;
  min-width: 0;
  min-height: 0;
  pointer-events: auto;
  touch-action: pan-y;
}
.scene:focus-visible { outline-offset: -8px; }
.scene-error:not([hidden]) {
  position: absolute;
  z-index: 10;
  right: 24px;
  bottom: 20px;
  max-width: min(420px, calc(100% - 48px));
  margin: 0;
  padding: 12px 16px;
  background: var(--paper);
  color: var(--ink);
  font: 600 13px/1.45 var(--font-mono);
}
.detail-back {
  position: absolute;
  z-index: 9;
  top: 28px;
  left: var(--page-gutter);
  display: inline-flex;
  align-items: center;
  min-width: 48px;
  min-height: 48px;
  padding: 0 15px;
  border: 1px solid rgba(255,255,255,.5);
  background: rgba(0,0,0,.72);
  color: var(--white);
  font: 700 12px/1 var(--font-mono);
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.detail-panel {
  position: absolute;
  z-index: 8;
  inset: 100px var(--page-gutter) 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 3vw, 60px);
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .4s var(--ease-out), transform .5s var(--ease-out), visibility .4s;
  pointer-events: none;
}
.detail-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-width: 0; padding: 20px 0; opacity: 0; transition: opacity .3s ease; }
.detail-display { width: 100%; min-width: 0; aspect-ratio: 60 / 35; }
.detail-media {
  position: absolute;
  z-index: 9;
  top: 0;
  left: 0;
  max-width: none;
  background: #000;
  overflow: hidden;
  border-radius: 1.8% / 3.5%;
  transform-origin: 0 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .45s ease;
}
.hero.is-detail .detail-media.is-ready { opacity: 1; visibility: visible; pointer-events: auto; }
.detail-media :where(video, iframe, img) { display: block; width: 100%; height: 100%; border: 0; background: #000; object-fit: contain; }
.detail-panel :where(.detail-kicker, .detail-role, .detail-tech) {
  color: var(--muted);
  font: 600 12px/1.5 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.detail-panel h2 {
  max-width: 720px;
  margin: 14px 0;
  font-size: clamp(38px, 4.8vw, 76px);
  font-weight: 900;
  letter-spacing: -.065em;
  line-height: .91;
  text-transform: uppercase;
}
.detail-description { max-width: 680px; color: #dededb; font-size: 17px; line-height: 1.55; }
.detail-tech { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; list-style: none; }
.detail-links { display: flex; flex-wrap: wrap; gap: 12px; }
.detail-link, .selection .actions > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  background: var(--red);
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .015em;
  text-decoration: none;
  text-transform: uppercase;
  clip-path: polygon(0 8%, 100% 0, 97% 92%, 4% 100%);
  transition: background .2s ease, transform .2s ease;
}
.detail-link:hover, .selection .actions > a:hover { background: var(--red-dark); transform: translateY(-2px); }
body.landing-page .detail-link,
body.landing-page .selection .actions > a { color: var(--white); }
.hero.is-detail .detail-panel,
html.is-detail .hero .detail-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: none;
}
.hero.is-detail .detail-copy { opacity: 1; pointer-events: auto; transition-delay: .45s; }
.hero.is-detail .detail-back,
html.is-detail .hero .detail-back { opacity: 1; visibility: visible; transform: none; }
.hero.is-detail .intro,
html.is-detail .hero .intro,
.hero.is-detail .selection,
html.is-detail .hero .selection,
.hero.is-detail .play-ui,
html.is-detail .hero .play-ui,
.hero.is-detail .timer-mobile,
html.is-detail .hero .timer-mobile { opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s; }
.hero.is-detail .scene,
html.is-detail .hero .scene { inset: 0; opacity: 1; visibility: visible; pointer-events: none; }

.selection {
  position: absolute;
  z-index: 5;
  left: 5%;
  bottom: clamp(42px, 8vh, 74px);
  width: min(470px, 42vw);
  transition: opacity .2s ease, visibility .2s;
}
.selection.is-changing { opacity: 0; }
.selection .status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 27px;
  margin-bottom: 18px;
  padding: 5px 12px;
  background: var(--paper);
  color: var(--ink);
  font: 700 10px/1.2 var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  clip-path: polygon(0 8%, 100% 0, 96% 100%, 3% 94%);
}
.selection .status::before { content: "◆"; color: var(--red); font-size: 11px; }
.selection > h2 {
  margin: 0;
  max-width: 470px;
  color: var(--white);
  font-size: clamp(28px, 2.65vw, 38px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: .96;
  text-transform: uppercase;
}
.selection > p.meta { max-width: 430px; margin: 13px 0 17px; color: #d4d4d7; font-size: 16px; line-height: 22px; }
.selection .actions { display: flex; align-items: center; gap: 16px; }
.selection .actions > a { min-width: 174px; }
.timer-tablet { display: none; }
.play-ui {
  position: absolute;
  z-index: 6;
  right: 4.5%;
  bottom: 4.4%;
  width: 228px;
  min-height: 108px;
  padding: 13px 12px 10px;
  background: var(--red);
  clip-path: polygon(8% 7%, 94% 9%, 100% 5%, 96% 87%, 88% 100%, 4% 97%, 0 25%);
  transform: rotate(-4deg);
  transition: opacity .2s ease, visibility .2s;
}
.play-ui .tracks { display: flex; justify-content: center; align-items: center; gap: 6px; min-height: 18px; margin: 0 0 6px; }
.play-ui .tracks button { width: 11px; height: 6px; padding: 0; border: 0; border-radius: 0; background: rgba(9,9,10,.34); cursor: pointer; transform: skew(-20deg); }
.play-ui .tracks button.is-active { background: var(--white); }
.play-ui .tracks button:hover, .play-ui .tracks button:focus-visible { background: var(--white); transform: skew(-20deg) scale(1.35); }
.cycle-controls { display: flex; align-items: center; justify-content: center; gap: 14px; }
.cycle-controls button {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 0;
  clip-path: polygon(10% 1%, 91% 0, 100% 9%, 97% 93%, 90% 100%, 4% 97%, 0 12%);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.cycle-controls button:hover { transform: translateY(-2px); background: var(--white); }
.cycle-controls button:nth-child(1) { rotate: -2deg; }
.cycle-controls button:nth-child(2) { rotate: 1deg; }
.cycle-controls button:nth-child(3) { rotate: 3deg; }
.cycle-controls button:focus-visible { outline-offset: -4px; outline-color: var(--red); }
#cycle-prev::before, #cycle-next::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}
#cycle-prev::before { border-right: 13px solid currentColor; margin-left: -3px; }
#cycle-next::before { border-left: 13px solid currentColor; margin-right: -3px; }
#cycle-pause::before, #cycle-pause::after { content: ""; display: block; width: 4px; height: 17px; background: currentColor; }
#cycle-pause { grid-template-columns: 4px 4px; justify-content: center; column-gap: 4px; }
#cycle-pause[aria-pressed="true"] { grid-template-columns: 1fr; column-gap: 0; }
#cycle-pause[aria-pressed="true"]::before { width: 0; height: 0; margin-left: 3px; background: transparent; border-top: 9px solid transparent; border-bottom: 9px solid transparent; border-left: 13px solid currentColor; }
#cycle-pause[aria-pressed="true"]::after { display: none; }
.play-ui .progress, .timer-mobile, .timer-tablet {
  position: relative;
  height: 3px;
  overflow: hidden;
  background: rgba(255,255,255,.34);
}
.play-ui .progress { width: 100%; height: 2px; margin-top: 14px; background: rgba(9,9,10,.4); }
.play-ui .progress span, .timer-mobile span, .timer-tablet span {
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  background: var(--white);
  transition: width .15s linear;
}
.timer-mobile { display: none; }

/* Shared editorial story section */
.story-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: 76px var(--page-gutter);
  overflow: clip;
  background: var(--ink);
  color: var(--paper);
  scroll-snap-align: start;
}
.story-kicker {
  display: inline-block;
  margin: 0 0 23px;
  color: var(--red);
  font: 700 12px/1.4 var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.story-copy h2, .contact-layout .story-copy h2 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
  color: var(--paper);
  font-size: clamp(46px, 5.6vw, 78px);
  font-weight: 900;
  letter-spacing: -.045em;
  word-spacing: .08em;
  line-height: .94;
  text-transform: uppercase;
}
.story-copy > p, .contact-layout .story-copy > p {
  max-width: 510px;
  margin: 26px 0 0;
  color: #d0d0cc;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
}
.story-cue {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 34px;
  gap: 12px;
  padding: 0;
  font: 700 11px/1 var(--font-mono);
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease;
}
.story-cue::before { content: ""; flex: 0 0 24px; height: 3px; background: var(--red); }
.story-cue:hover { background: var(--paper); color: var(--ink); }

/* About */
.about-hero { background: var(--black); }
.about-hero .story-inner {
  display: grid;
  grid-template-columns: minmax(300px, 500px) minmax(0, 600px);
  align-items: center;
  justify-content: center;
  gap: clamp(52px, 6.1vw, 88px);
  width: 100%;
  max-width: 1256px;
  margin: 0 auto;
}
.about-hero .story-copy, .about-intro, .about-body { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; min-width: 0; }
.about-hero .story-copy { gap: 20px; }
.about-body { gap: 16px; }
.about-body > p { max-width: 510px; margin: 0; color: var(--paper); font-size: clamp(16px, 1.3vw, 19px); font-weight: 500; line-height: 1.55; }
.about-hero .story-kicker {
  display: inline-block;
  text-transform: none;
  padding: 6px 10px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  clip-path: polygon(0 5%,100% 0,96% 100%,3% 94%);
}
.portrait-wrap { position: relative; width: 100%; max-width: 500px; isolation: isolate; }
.portrait-wrap::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 18px -16px -16px 16px;
  background: var(--red);
  clip-path: polygon(3% 0,96% 0,100% 5%,97% 70%,93% 77%,100% 100%,5% 98%,0 92%,2% 12%);
}
.portrait-wrap img {
  width: 100%;
  height: auto;
  aspect-ratio: 25 / 32;
  object-fit: cover;
  object-position: center;
  clip-path: polygon(3% 0,96% 0,100% 5%,97% 70%,93% 77%,100% 100%,5% 98%,0 92%,2% 12%);
  background: #242426;
}
.portrait-signature {
  position: absolute;
  left: 16px;
  bottom: 24px;
  width: 300px;
  max-width: calc(100% - 48px);
  height: 56px;
  color: var(--ink);
  background: var(--paper);
  transform: rotate(-4deg);
}
.signature-script, .signature-outline {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: max-content;
  font: 400 81px/66px "Herr Von Muellerhoff", cursive;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}
.signature-outline { color: var(--paper); -webkit-text-stroke: 4px var(--paper); }
.philosophy-quote { width: 100%; margin: 0; }
.about-hero .story-copy h2 { width: 100%; font-size: 36px; font-weight: 800; line-height: 42px; letter-spacing: -.03em; word-spacing: normal; text-transform: none; }
.about-hero .story-copy h2 > span { max-width: 100%; }
.about-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; width: 100%; margin: 2px 0 0; }
.about-stats > div { display: flex; flex-direction: column; gap: 4px; }
.about-stats dt { max-width: 190px; color: #d0d0cc; font: 500 10px/15px var(--font-mono); letter-spacing: .035em; text-transform: uppercase; }
.about-stats dd { order: -1; margin: 0; color: var(--paper); font-size: 26px; font-weight: 800; line-height: 28px; }
.about-stats + .story-cue { margin-top: 4px; }

/* Experience timeline */
.experience-hero {
  display: block;
  min-height: 1800px;
  padding: 48px var(--page-gutter) 0;
  overflow: clip;
  background: var(--red);
  color: var(--ink);
}
.experience-heading {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  text-align: left;
}
.experience-heading .story-kicker { margin-bottom: 12px; color: var(--ink); }
.experience-heading h2 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin: 0;
  color: var(--ink);
  font-size: clamp(58px, 5.7vw, 82px);
  font-weight: 900;
  letter-spacing: -.045em;
  word-spacing: .08em;
  line-height: .94;
  text-transform: uppercase;
}
.experience-heading h2 span { color: var(--ink); }
.experience-heading > p {
  max-width: 900px;
  margin: 16px 0 0;
  color: #09090a;
  font-size: 20px;
  line-height: 28px;

  font-weight: 600;
}
.growth-path { position: relative; width: min(1280px, 100%); min-height: 1574px; margin: 30px auto 0; }
.growth-line { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.growth-line path { fill: none; stroke: #09090a; stroke-width: 3.5px; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.timeline {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 1574px;
  margin: 0;
  padding: 40px 0 0;
  list-style: none;
}
.timeline-stop {
  position: relative;
  display: grid;
  grid-template-columns: 1fr min(15.3vw, 220px) 1fr;
  align-items: start;
  min-height: 280px;
}
.timeline-stop:nth-child(odd) .timeline-entry { grid-column: 1; grid-row: 1; justify-self: end; }
.timeline-stop:nth-child(odd) .company-project { grid-column: 3; grid-row: 1; justify-self: start; }
.timeline-stop:nth-child(even) .timeline-entry { grid-column: 3; grid-row: 1; justify-self: start; }
.timeline-stop:nth-child(even) .company-project { grid-column: 1; grid-row: 1; justify-self: end; }
.timeline-point {
  position: relative;
  z-index: 2;
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  width: 22px;
  height: 22px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 5px #e3222a;

  margin-top: 106px;
}
.timeline-entry {
  width: min(100%, 530px);
  min-height: 235px;
  padding: 14px 20px;
  border: 3px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  clip-path: polygon(0 0, 97% 0, 100% 10%, 100% 100%, 3% 100%, 0 91%);
}
.timeline-meta { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 12px; color: #555; font: 700 13px/1.4 var(--font-mono); letter-spacing: .02em; text-transform: uppercase; }
.timeline-meta .step-number { color: var(--paper); 
  padding: 2px 8px;

  background: var(--red);
}
.timeline-entry h3 { margin: 5px 0; font-size: clamp(22px, 2.3vw, 30px); font-weight: 850; letter-spacing: -.035em; line-height: .98; }
.timeline-role { margin: 0; color: #303030; font-size: 18px; font-weight: 700; line-height: 22px; }
.timeline-description { margin: 5px 0 0; color: #242424; font-size: 18px; line-height: 24px; 
  font-weight: 500;
}
.company-project {
  position: relative;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  width: min(100%, 530px);
  min-height: 235px;
  margin-bottom: 45px;
  color: var(--ink);
  text-decoration: none;
  isolation: isolate;
}
.company-project-stage { display: block; flex: 1; min-height: 195px; }
.project-caption { display: flex; align-items: baseline; gap: 12px; width: 100%; min-height: 40px; padding: 4px 12px; }
.project-name { flex: 1; font-size: 16px; font-weight: 800; line-height: 1.2; }
.project-count { flex-shrink: 0; font: 600 10px/1.4 var(--font-mono); }
.company-project:focus-visible { outline: 3px solid var(--paper); outline-offset: 5px; }
.timeline-entry.contact-action {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(100%, 530px);
  min-height: 150px;
  padding: 27px 32px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}
.contact-action-copy { font-size: clamp(21px, 2.1vw, 29px); font-weight: 800; letter-spacing: -.045em; line-height: 1.1; }
.contact-action-arrow { align-self: flex-end; margin-top: 12px; color: var(--red); font-size: 28px; line-height: 1; }

.timeline-stop[data-step="5"] { min-height: 280px; }
.timeline-stop[data-step="6"] { min-height: 179px; }
.timeline-stop[data-step="5"] .timeline-entry { min-height: 235px; }
.timeline-stop:nth-last-child(-n+2) .timeline-point { margin-top: 44px; }

/* Skills */
.expertise-hero { background: var(--ink); }
.expertise-hero > .story-kicker { position: absolute; top: 46px; left: var(--page-gutter); margin: 0; }
.expertise-hero .story-inner {
  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(44px, 6vw, 86px);
  width: 100%;
  max-width: 1280px;
  margin: auto;
}
.expertise-hero .story-copy { max-width: 510px; }
.expertise-hero .story-copy h2 { font-size: clamp(52px, 5.6vw, 80px); }
.expertise-hero .story-copy h2 > span:first-child { font-size: .82em; }
.heading-accent { color: var(--red); }
.experience-heading .heading-accent { color: var(--paper); }
.expertise-list { margin: 0; padding: 0; list-style: none; }
.expertise-list li {
  display: grid;
  grid-template-columns: 45px minmax(0,1fr);
  gap: 18px;
  padding: 19px 0 18px;
  border-bottom: 1px solid var(--line);
}
.skill-number { align-self: start; width: 32px; padding: 3px 8px; background: var(--red); color: var(--paper); font: 700 11px/1.3 var(--font-mono); clip-path: polygon(3% 0,100% 0,94% 100%,0 100%); }
.expertise-hero > .story-kicker, .contact-layout .story-kicker { width: max-content; padding: 7px 13px; background: var(--red); color: var(--paper); clip-path: polygon(2% 4%,100% 0,97% 91%,1% 100%,0 16%); }
.expertise-list h3 { margin: 0; color: var(--paper); font-size: 23px; font-weight: 850; letter-spacing: -.035em; line-height: 1.05; text-transform: uppercase; }
.skill-description { margin: 8px 0 0; color: #d0d0cc; font-size: 14px; line-height: 1.45; }
.skill-tech { margin: 8px 0 0; color: #9b9ba0; font: 600 10px/1.45 var(--font-mono); letter-spacing: .045em; text-transform: uppercase; }

/* Contact */
.contact-hero { display: block; padding-top: 72px; padding-bottom: 0; background: var(--ink); }
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  align-items: center;
  gap: clamp(48px, 7vw, 100px);
  width: 100%;
  max-width: 1280px;
  min-height: calc(100svh - 150px);
  margin: 0 auto;
}
#contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 20px 16px;
  width: 100%;
}
#contact-form .form-group { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
#contact-form .form-group:nth-of-type(3),
#contact-form .form-group:has(textarea) { grid-column: 1 / -1; }
#contact-form label { color: var(--paper); font: 700 11px/1.4 var(--font-mono); letter-spacing: .09em; text-transform: uppercase; }
#contact-form :where(input, textarea) {
  width: 100%;
  min-height: 52px;
  padding: 14px 15px;
  border: 1px solid rgba(244,244,239,.28);
  border-radius: 0;
  background: #111113;
  color: var(--paper);
  font: 500 15px/1.45 var(--font-display);
  appearance: none;
}
#contact-form textarea { min-height: 142px; resize: vertical; }
#contact-form :where(input,textarea)::placeholder { color: #8e8e91; opacity: 1; }
#contact-form :where(input,textarea):focus { border-color: var(--red); outline: 2px solid var(--red); outline-offset: 2px; }
#contact-form .send-message {
  grid-column: 1 / -1;
  justify-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-width: 180px;
  min-height: 50px;
  padding: 0 20px;
  border: 0;
  background: var(--red);
  color: var(--white);
  font-size: 14px;
  font-weight: 850;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(0 0,100% 0,98% 100%,0 100%);
  transition: background .2s ease, transform .2s ease;
}
#contact-form .send-message:hover { background: var(--red-dark); transform: translateY(-2px); }
.form-message { grid-column: 1 / -1; margin: 0; font-size: 14px; line-height: 1.45; }
.form-message-success { color: #9be2ae; }
.form-message-error { color: #ff777c; }
.contact-layout .story-copy { max-width: 480px; text-align: right; }
.contact-layout .story-kicker { position: absolute; top: 72px; right: var(--page-gutter); display: block; margin-bottom: 20px; text-align: right; }
.contact-layout .story-copy h2 { align-items: flex-end; font-size: clamp(48px, 5.2vw, 72px); }
.contact-layout .story-copy h2 span:last-child { color: var(--red); }
.contact-layout .story-copy > p { margin-left: auto; }
.contact-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 22px; margin-top: 28px; }
.contact-links a, .back-to-top {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--paper);
  font: 700 11px/1.3 var(--font-mono);
  letter-spacing: .055em;
  text-decoration: none;
  text-transform: uppercase;
}
.contact-links a { border: 1px solid var(--line); padding: 0 12px; }
.contact-links a:hover, .back-to-top:hover { color: var(--red); }
.contact-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 78px;
  border-top: 1px solid var(--line);
  color: #a6a6a2;
  font: 600 10px/1.4 var(--font-mono);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.contact-footer .name { color: var(--paper); }
.back-to-top { min-height: 44px; color: #a6a6a2; font-size: 10px; }

/* One transparent WebGL layer for the 3D experience, when supplied by the page. */
canvas.company-cartridge-canvas,
.landing-page > canvas[data-company-cartridges] {
  position: fixed;
  z-index: 3;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  background: transparent;
}
.timeline-stop, .company-project, .timeline-entry { isolation: isolate; }
.company-project { z-index: 4; }
.company-project > * { position: relative; z-index: 1; }

@media (min-width: 1025px) {
  .hero { min-height: 100svh; }
}

/* Tablet */
@media (max-width: 1024px) {
  :root { --page-gutter: 40px; }
  .hero { height: 100svh; max-height: none; min-height: 640px; }
  .scene { inset: 34% 6% 29% 6%; }
  .intro { top: 52px; width: 54%; }
  .intro h1 { margin-top: 30px; font-size: clamp(48px, 7vw, 58px); }
  .selection { bottom: 88px; width: min(390px, 54vw); }
  .selection > h2 { font-size: 34px; }
  .selection > p.meta { font-size: 14px; }
  .selection .actions { gap: 12px; }
  .selection .actions > a { min-width: 154px; min-height: 46px; padding: 0 15px; font-size: 12px; }
  .timer-tablet { display: block; width: 132px; flex: 0 0 132px; }
  .play-ui { display: none; }
  .timer-mobile { display: none; }
  .detail-panel { grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: 28px; }
  .about-hero .story-inner { grid-template-columns: minmax(250px,320px) minmax(0,334px); gap: 40px; }
  .about-hero .story-copy { display: contents; }
  .about-intro { grid-column: 2; grid-row: 1; align-self: start; }
  .about-body { grid-column: 1 / -1; }
  .about-body > p { max-width: none; font-size: 16px; }
  .about-hero .story-copy h2 { font-size: 30px; line-height: 36px; }
  .portrait-wrap { max-width: 320px; }
  .portrait-signature { height: 48px; }
  .signature-script, .signature-outline { font-size: 67.5px; line-height: 54px; }
  .portrait-wrap img { aspect-ratio: 16 / 21; }
  .experience-hero { min-height: 2048px; padding: 62px 40px 80px; background: var(--red); }
  .experience-heading { max-width: 688px; }
  .experience-heading h2 { font-size: 56px; }
  .experience-heading > p { max-width: 688px; font-size: 18px; color: var(--ink); }
  .growth-path { width: 100%; min-height: 1660px; margin-top: 42px; }
  .timeline { min-height: 1660px; padding-top: 4px; }
  .timeline-stop { grid-template-columns: minmax(0,1fr) 36px minmax(0,1fr); min-height: 250px; }
  .timeline-entry { width: min(100%,320px); min-height: 242px; padding: 23px 22px; }
  .timeline-entry h3 { font-size: 24px; }
  .timeline-role { font-size: 15px; }
  .timeline-description { font-size: 15px; }
  .company-project { width: min(100%,320px); min-height: 242px; }
  .company-project-stage { min-height: 198px; }
  .project-caption { padding-inline: 0; }
  .project-name { font-size: 14px; }
  .timeline-stop[data-step="6"] .timeline-entry { min-height: 150px; }
  .expertise-hero .story-inner { grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); gap: 40px; }
  .expertise-hero .story-copy h2 { font-size: 46px; }
  .expertise-list li { grid-template-columns: 32px minmax(0,1fr); gap: 12px; padding: 16px 0; }
  .expertise-list h3 { font-size: 20px; }
  .skill-description { font-size: 13px; }
  .contact-hero { padding: 56px 40px 0; }
  .contact-layout { grid-template-columns: minmax(0,1.08fr) minmax(260px,.92fr); gap: 40px; min-height: calc(100svh - 138px); }
  .contact-layout .story-copy h2 { font-size: 52px; }
  #contact-form { gap: 17px 12px; }
  #contact-form :where(input,textarea) { min-height: 48px; }
  .contact-footer { gap: 14px; }
}

/* Phone */
@media (max-width: 600px) {
  :root { --page-gutter: 24px; }
  html { scroll-snap-type: y proximity; }
  .hero { height: 100svh; min-height: 600px; max-height: none; }
  .intro {
    top: 29px;
    left: 18px;
    width: calc(100% - 36px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .eyebrow { align-items: center; gap: 2px; min-height: 31px; padding: 7px 12px; font-size: 10px; line-height: 12px; }
  .eyebrow .role { font-size: 9px; line-height: 11px; }
  .intro h1 { align-items: center; margin-top: 17px; font-size: clamp(35px, 10vw, 40px); line-height: .9; }
  .scene { inset: 245px 8px 245px; }
  .selection {
    left: 22px;
    right: 22px;
    bottom: 114px;
    width: auto;
    text-align: center;
  }
  .selection .status { min-height: 24px; margin-bottom: 10px; font-size: 9px; }
  .selection > h2 { max-width: 340px; margin: auto; font-size: clamp(25px, 7vw, 30px); line-height: .98; }
  .selection > p.meta { max-width: 330px; margin: 8px auto 0; font-size: 13px; line-height: 1.35; }
  .selection .actions { justify-content: center; }
  .selection .actions > a { display: none; }
  .timer-tablet, .play-ui { display: none; }
  .timer-mobile { position: absolute; z-index: 6; left: 50%; bottom: 39px; display: block; width: 188px; transform: translateX(-50%); }
  .detail-back { top: 15px; left: 16px; }
  .detail-panel { inset: 84px 22px 20px; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 18px; }
  .detail-display { flex: 0 0 auto; }
  .detail-copy { gap: 12px; padding: 0 0 20px; }
  .detail-panel h2 { font-size: 42px; }
  .detail-description { font-size: 15px; }
  .detail-tech { margin: 8px 0; }
  .story-hero { min-height: 844px; padding: 42px 24px; }
  .story-kicker { margin-bottom: 17px; font-size: 10px; }
  .story-copy h2, .contact-layout .story-copy h2 { font-size: 44px; }
  .story-copy > p, .contact-layout .story-copy > p { margin-top: 18px; font-size: 16px; }
  .story-cue { margin-top: 24px; }
  .about-hero .story-inner { display: flex; flex-direction: column; align-items: stretch; gap: 24px; width: 100%; }
  .portrait-wrap { width: 100%; max-width: 342px; margin: 0 auto; }
  .portrait-wrap img { aspect-ratio: 1; object-position: center top; }
  .portrait-wrap::before { inset: 10px -8px -9px 9px; }
  .portrait-signature { height: 50px; }
  .signature-script, .signature-outline { font-size: clamp(56px, 18.1vw, 70.5px); line-height: 57px; }
  .about-hero .story-copy { display: flex; gap: 24px; width: 100%; }
  .about-intro { gap: 24px; align-self: stretch; }
  .about-body > p { font-size: 17px; line-height: 26px; }
  .about-hero .story-kicker { margin: 0; padding: 7px 13px; font-size: 12px; line-height: 16px; }
  .about-stats { margin: 0; }
  .about-hero .story-cue { margin: 0; font-size: 12px; }
  .experience-hero { min-height: 1688px; padding: 22px 22px 24px; }
  .experience-heading { text-align: center; }
  .experience-heading .story-kicker { margin-bottom: 10px; }
  .experience-heading h2 { flex-direction: column; align-items: center; justify-content: center; gap: 0; font-size: 39px; line-height: 37px; }
  .experience-heading h2 span:last-child { color: var(--paper); }
  .experience-heading > p { margin: 14px auto 0; font-size: 15px; line-height: 1.4; }
  .growth-path { width: 100%; min-height: 1390px; margin: 18px 0 0; }
  .growth-line { width: 100%; }
  .growth-line path { stroke-width: 3.5px; }
  .timeline { min-height: 1390px; padding: 0; }
  .timeline-stop { display: block; min-height: 254px; padding-left: 44px; padding-bottom: 24px; }
  .timeline-point, .timeline-stop:nth-last-child(-n+2) .timeline-point { margin-top: 0; position: absolute; top: 17px; left: 11px; width: 14px; height: 14px; border-width: 2px; box-shadow: 0 0 0 4px var(--red); }
  .timeline-stop:nth-child(3) .timeline-point { left: 1px; }
  .timeline-stop:nth-child(4) .timeline-point { left: 25px; }
  .timeline-entry {
    width: min(100%, 302px);
    min-height: 0;
    margin: 0;
    padding: 8px 11px;
    border-width: 2px;
    clip-path: polygon(0 0,97% 0,100% 10%,100% 100%,3% 100%,0 91%);
  }
  .timeline-stop:nth-child(-n+4) .timeline-entry { min-height: 230px; }
  .timeline-meta { gap: 9px; font-size: 11px; letter-spacing: .01em; }
  .timeline-entry h3 { margin-top: 5px; font-size: 18px; }
  .timeline-role { font-size: 13px; }
  .timeline-description { margin-top: 8px; font-size: 15px; line-height: 1.38; }
  .company-project {
    position: relative;
    width: min(100%, 302px);
    min-height: 224px;
    margin: 8px 0 0;
  }
  .company-project-stage { min-height: 180px; }
  .project-caption { min-height: 44px; gap: 8px; }
  .project-name { font-size: 14px; }
  .timeline-stop[data-step="5"] { min-height: 180px; }
  .timeline-stop[data-step="5"] .timeline-entry { min-height: 180px; }
  .timeline-stop[data-step="6"] { min-height: 120px; }
  .timeline-stop[data-step="6"] .timeline-entry.contact-action {
    display: flex;
    width: min(100%, 302px);
    min-height: 100px;
    padding: 19px;
    background: var(--ink);
  }
  .contact-action-copy { font-size: 19px; }
  .contact-action-arrow { margin-top: 5px; font-size: 24px; }
  .expertise-hero { align-items: flex-start; padding: 46px 24px; }
  .expertise-hero > .story-kicker { top: 27px; left: 24px; font-size: 9px; }
  .expertise-hero .story-inner { display: flex; flex-direction: column; align-items: stretch; gap: 25px; width: 100%; }
  .expertise-hero .story-copy { max-width: none; }
  .expertise-hero .story-copy h2 { font-size: 43px; }
  .expertise-hero .story-copy > p { margin-top: 12px; font-size: 14px; }
  .expertise-list li { grid-template-columns: 30px minmax(0,1fr); gap: 11px; padding: 13px 0; }
  .expertise-list h3 { font-size: 18px; }
  .skill-description { margin-top: 6px; font-size: 12px; }
  .skill-tech { margin-top: 6px; font-size: 9px; }
  .contact-hero { display: flex; flex-direction: column; min-height: 844px; padding: 35px 24px 0; }
  .contact-layout { display: grid; grid-template-columns: 1fr; align-content: start; align-items: stretch; gap: 12px; min-height: 0; margin: 0 auto; }
  .contact-layout .story-copy { display: contents; max-width: none; }
  .contact-layout .story-kicker { position: static; justify-self: end; order: 0; }
  .contact-layout .story-kicker { margin-bottom: 12px; }
  .contact-layout .story-copy h2 { order: 1; font-size: 42px; }
  .contact-layout .story-copy > p { order: 2; margin-top: 0; font-size: 14px; }
  .contact-links { order: 4; gap: 6px 15px; margin-top: 3px; }
  .contact-links a { min-height: 44px; padding: 0 8px; border: 0; border-left: 1px solid var(--line); font-size: 9px; }
  #contact-form { order: 3; grid-template-columns: 1fr; gap: 11px; }
  #contact-form .form-group:nth-of-type(3), #contact-form .form-group:has(textarea) { grid-column: auto; }
  #contact-form .form-group { gap: 5px; }
  #contact-form label { font-size: 9px; }
  #contact-form :where(input,textarea) { min-height: 44px; padding: 10px 12px; font-size: 14px; }
  #contact-form textarea { min-height: 86px; }
  #contact-form .send-message { min-height: 46px; }
  .contact-footer .name { grid-column: 1 / -1; }
  .contact-footer { grid-template-columns: 1fr; gap: 2px 12px; width: 100%; min-height: 84px; margin-top: auto; padding: 10px 0; font-size: 8px; }
  .back-to-top { min-height: 44px; font-size: 8px; }
  .back-to-top { justify-self: start; }
}

@media (max-width: 360px) {
  :root { --page-gutter: 18px; }
  .intro h1 { font-size: 34px; }
  .selection { left: 16px; right: 16px; }
  .selection > h2 { font-size: 24px; }
  .experience-hero { padding-right: 18px; padding-left: 18px; }
  .timeline-stop { padding-left: 24px; }
  .timeline-entry { padding-right: 12px; padding-left: 12px; }
}

.hero.has-scene-error .selection .actions > a { display: inline-flex; }

@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal { transition: opacity .65s ease; }
  .scroll-reveal:focus-within { transition: none; }
  .scroll-reveal.awaiting-reveal:not(:focus-within) { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero.is-detail .detail-copy { transition-delay: 0s; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
