@font-face {
  font-family: Manrope;
  src: url(assets/manrope-cyrillic.woff2) format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

@font-face {
  font-family: Manrope;
  src: url(assets/manrope-latin.woff2) format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  font-family: Manrope, system-ui, sans-serif;
  color: #fff4ea;
  color-scheme: dark;
  background: #090909;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }

.skip-projects {
  position: fixed;
  z-index: 5;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  background: #101114;
  color: #fff;
  transform: translateY(-170%);
}
.skip-projects:focus-visible { transform: none; }

.journey {
  position: relative;
  isolation: isolate;
  --display-width: min(100% - 2 * clamp(24px, 7vw, 120px), 1220px);
  --case-width: min(86%, 1200px);
  --portfolio-frame: min(calc(100% - 64px), 1680px);
  --chapter-type-size: clamp(56px, 7.2vw, 116px);
  --feature-type-size: clamp(44px, 4.55vw, 74px);
  --case-copy-size: clamp(14px, .96vw, 16px);
}

.scene-page { position: relative; z-index: 1; min-height: 100svh; }
.scene-page.is-live { min-height: 360svh; }

.chapter-scene { position: relative; height: 100svh; }
.chapter-title {
  position: absolute;
  top: 50svh;
  inset-inline: 0;
  width: var(--case-width);
  margin: 0 auto;
  transform: translateY(-50%);
  color: #fff;
  font-size: var(--chapter-type-size);
  font-weight: 450;
  line-height: 1;
  letter-spacing: -.055em;
}
.has-live-scene .chapter-title { opacity: var(--title-opacity, 0); }
@media screen {
  .has-live-scene .chapter-title.has-optical-type { color: transparent; }
  .chapter-title::selection { color: white; background: #434260; }
}
@media (forced-colors: active) {
  .has-live-scene .chapter-title.has-optical-type { color: CanvasText; }
}
.journey:not(.has-live-scene)::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  background: #171623 url(assets/volumetric-light.webp) center / cover no-repeat;
}
.has-live-scene .chapter-scene {
  margin-block-start: -100svh;
  height: 118svh;
}

.stage {
  position: relative;
  isolation: isolate;
  height: 100svh;
  overflow: hidden;
}

.stage-visual {
  position: absolute;
  inset: 0;
  background: #103144 url(assets/optics-still.webp?v=one-turn) center / cover no-repeat;
}

.scene-page.is-live .stage {
  position: sticky;
  top: 0;
}

.scene-page.is-live .stage-visual { background: transparent; }

.stage-canvas {
  position: fixed;
  z-index: -1;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  visibility: hidden;
}

.journey.has-live-scene .stage-canvas { visibility: visible; }

.identity {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  height: 100%;
  opacity: var(--identity-opacity, 1);
  padding: 0 clamp(26px, 7vw, 128px) clamp(24px, 11vh, 116px);
  pointer-events: none;
}

.name, .role {
  margin: 0;
  padding: 0;
  color: #fff4ea;
  font-size: clamp(14px, 1.17vw, 20px);
  font-weight: 550;
  line-height: 1.46;
  letter-spacing: -.015em;
  text-shadow: 0 1px 6px #161119, 0 1px 18px #161119;
}

.name > span { display: block; }
.role { text-align: right; }
.chapter-label-short { display: none; }

.chapter-labels {
  position: absolute;
  z-index: 1;
  bottom: max(clamp(25px, 5.2vh, 54px), env(safe-area-inset-bottom));
  left: 50%;
  width: var(--display-width);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: clamp(9px, 2vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: none;
  text-align: center;
  font-size: clamp(11px, 1.05vw, 15px);
  font-weight: 500;
  line-height: 1.35;
  text-shadow: 0 1px 10px #0b222e, 0 1px 22px #091725;
}

.showcase {
  position: relative;
  z-index: 2;
  --paper: #090909;
  --case-gap: 32px;
}
.showcase:focus, .product-feature:focus { outline: none; }

@media (min-width: 701px) {
  .showcase, .product-feature {
    --case-width: var(--portfolio-frame);
  }
}

.showcase-frame {
  padding-block: clamp(40px, 4vw, 64px) clamp(64px, 8svh, 104px);
  overflow: clip;
}

.showcase-title {
  position: relative;
  z-index: 1;
  width: var(--case-width);
  margin: 0 auto clamp(22px, 2vw, 36px);
  color: #f2f1ef;
  font-size: clamp(32px, 3.2vw, 56px);
  font-weight: 450;
  line-height: 1.08;
  letter-spacing: -.05em;
}

.showcase-grid {
  width: var(--case-width);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--case-gap);
  position: relative;
  isolation: isolate;
}

/* The surround, gutters and captions cover the scene. Each 4:3 aperture
   exposes its own screen coordinates on the same fixed WebGL canvas. */
.showcase-grid::before, .chapter-card + .chapter-card::before, .case-copy::before {
  content: "";
  position: absolute;
  pointer-events: none;
}
.showcase-grid::before {
  inset: 0;
  z-index: -1;
  box-shadow: 0 0 0 150vmax var(--paper);
}
.showcase-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(110deg, rgb(4 7 15 / 60%), rgb(9 10 20 / 32%) 55%, rgb(4 7 14 / 47%));
}
.chapter-card { display: flex; flex-direction: column; position: relative; min-width: 0; }
.chapter-card + .chapter-card::before {
  right: 100%;
  width: var(--case-gap);
  inset-block: 0;
  background: var(--paper);
}
.case-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgb(11 10 17 / 25%);
}
.cursor-light {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
}
.cursor-light::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse clamp(58px, 9vw, 150px) clamp(27px, 4.6vw, 74px) at center,
      rgb(239 246 255 / 41%), rgb(var(--reflection-color, 151 185 242) / 27%) 33%, transparent 87%),
    radial-gradient(ellipse clamp(105px, 15vw, 247px) clamp(68px, 10vw, 155px) at center,
      rgb(var(--reflection-color, 151 185 242) / 26%), transparent 84%);
  transform: translate(calc(var(--shine-x, 50%) - 50%), calc(var(--shine-y, 50%) - 50%));
}
[data-story="crm"] { --reflection-origin: 12%; }
[data-story="software"] { --reflection-color: 178 162 236; }
[data-story="proposal"] { --reflection-color: 248 190 144; --reflection-origin: 74%; }
:is(.case-visual, .work-feature, .job-row) .cursor-light {
  background: url(assets/volumetric-light.webp)
    calc(var(--reflection-origin, 43%) + var(--shine-x, 50%) * .14)
    calc(44% + var(--shine-y, 50%) * .12) / 132% auto;
  mask-image: radial-gradient(ellipse var(--reflection-width, clamp(105px, 15vw, 239px)) var(--reflection-height, clamp(72px, 9vw, 144px))
    at var(--shine-x, 50%) var(--shine-y, 50%), #000, #000a 39%, transparent 90%);
}
:is(.case-visual, .work-feature) .cursor-light::before { opacity: .3; }
[data-reflect].is-lit .cursor-light,
.case-open:focus-visible .cursor-light,
.job-row:focus-visible .cursor-light { opacity: 1; }
.case-visual > .artboard, .case-cover .case-visual > .artboard { z-index: 2; }
.case-open .case-visual::after { z-index: 3; }
@media (prefers-reduced-motion: no-preference) {
  .cursor-light { transition: opacity 360ms ease-out; }
  .cursor-light::before { transition: transform 110ms cubic-bezier(.2,.72,.32,1); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .has-live-scene .case-visual { transition: background-color .55s ease; }
  .has-live-scene .case-visual:hover { background-color: rgb(11 10 17 / 12%); }
}
.case-copy {
  position: relative;
  isolation: isolate;
  flex: 1;
  padding-top: 16px;
}
.case-copy::before { z-index: -1; inset: 0; background: var(--paper); }
.chapter-card h3, .chapter-card p {
  font-size: var(--case-copy-size);
  font-weight: 450;
  line-height: 1.38;
  letter-spacing: -.012em;
  margin: 0;
}
.case-open { display: flex; flex: 1; flex-direction: column; color: inherit; text-decoration: none; }
.case-open h3 {
  color: #f2f1ef;
  text-wrap: balance;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .17em;
}
.case-open:hover h3 { color: white; text-decoration-thickness: 2px; }
.case-open:focus-visible { outline: 2px solid #dce8f6; outline-offset: 4px; }
.chapter-card p { margin-top: 6px; color: #a5a5a6; }
.case-open h3 strong { font-weight: 650; }
/* A veil dims the live scene as well as the artwork inside each aperture. */
.case-open .case-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #07080b;
  opacity: var(--shade, 0);
  pointer-events: none;
}
.case-open h3, .case-open .case-copy p { opacity: var(--ink, 1); }
@media (hover: hover) and (pointer: fine) {
  .showcase-grid:has(.case-open:hover) .case-open:not(:hover) { --shade: .34; --ink: .78; }
}
.showcase-grid:not(:has(.case-open:hover)):has(.case-open:focus-visible) .case-open:not(:focus-visible) {
  --shade: .34;
  --ink: .78;
}
@media (prefers-reduced-motion: no-preference) {
  .case-open .case-visual::after, .case-open h3, .case-open .case-copy p {
    transition: opacity 420ms cubic-bezier(.26,.1,.22,1);
  }
}
@media (prefers-reduced-motion: no-preference) {
  html.scroll-to-section { scroll-behavior: smooth; }
  .typed-letter {
    animation: type-letter 26ms linear both;
    animation-delay: var(--type-delay);
  }
}

@keyframes type-letter {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 700px) {
  .journey { --display-width: calc(100% - 40px); --case-width: var(--display-width); }
  .stage-visual {
    --hero-gutter: max(clamp(16px, calc(10vw - 16px), 20px), env(safe-area-inset-left), env(safe-area-inset-right));
    --nav-bottom: max(18px, env(safe-area-inset-bottom));
  }
  .identity {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-content: end;
    align-items: baseline;
    gap: 12px;
    padding: 0 var(--hero-gutter) calc(var(--nav-bottom) + 44px + clamp(14px, 2.4svh, 22px));
  }
  .name, .role { font-size: clamp(12px, 3.4vw, 16px); line-height: 1.4; }
  .name > span:nth-child(-n+2) { display: inline; }
  .chapter-labels {
    inset-inline: var(--hero-gutter);
    bottom: var(--nav-bottom);
    width: auto;
    transform: none;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
    font-size: clamp(12px, 3.2vw, 15px);
  }
  .chapter-labels a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
  }
  .chapter-labels li:first-child a { justify-content: flex-start; }
  .chapter-labels li:last-child a { justify-content: flex-end; }
  .chapter-label-full { display: none; }
  .chapter-label-short { display: inline; }
  .showcase-frame { padding-block: 36px 76px; }
  .showcase-grid { grid-template-columns: 1fr; gap: 0; }
  .chapter-card + .chapter-card::before { content: none; }
  .case-copy { padding-bottom: 28px; }
}

@media (max-width: 700px) and (orientation: portrait) {
  .scene-page:not(.is-live) .stage-visual { background-image: url(assets/optics-still-mobile.webp?v=one-turn); }
}

.product-feature {
  position: relative;
  z-index: 2;
  isolation: isolate;
  overflow: clip;
  padding-block: clamp(28px, 6svh, 64px) 0;
  color: #f7f7f5;
}
.product-feature-inner { width: var(--case-width); margin-inline: auto; }
.product-feature-head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  align-items: center;
  gap: 8%;
  margin-bottom: clamp(32px, 4.25vw, 70px);
  background: #090909;
}
.product-feature h2 {
  margin: 0;
  text-wrap: balance;
  font-size: var(--feature-type-size);
  font-weight: 450;
  line-height: 1.035;
  letter-spacing: -.063em;
}
.product-feature-copy { max-width: 32em; font-size: clamp(15px, 1.27vw, 20px); line-height: 1.42; letter-spacing: -.026em; }
.product-feature-copy p { margin: 0 0 .9em; color: #b4b3b5; }
.product-feature-copy a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.product-film {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(106deg, #100d19a8, #11102095 52%, #0d1720a8);
  box-shadow: 0 0 0 150vmax #090909;
}
.product-screen {
  display: block;
  width: 83%;
  height: auto;
  background: #f6f5fa;
  border-radius: clamp(6px, .85vw, 15px);
  box-shadow: 0 12px 42px #07061270;
}
.product-screen:focus-visible, .product-feature-copy a:focus-visible { outline: 2px solid #e9ddff; outline-offset: 4px; }
@media (max-width: 700px) {
  .product-feature-head { grid-template-columns: 1fr; gap: 22px; }
  .product-screen { width: 90%; }
}

.resume, .case-reader, .story-reader {
  background: #090909;
  color: #f4f3f1;
  --reading-width: min(calc(100% - 64px), 1680px);
}
.resume { position: relative; padding: clamp(58px, 6vw, 110px) 0 clamp(78px, 8vw, 140px); }
.resume-inner, .case-reader main, .biography { width: var(--reading-width); margin-inline: auto; }
.resume-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr);
  gap: 7%;
  align-items: start;
  margin-bottom: clamp(68px, 7vw, 116px);
}
.resume-head h2, .biography h1 {
  margin: 0;
  font-size: clamp(50px, 5.7vw, 94px);
  font-weight: 450;
  letter-spacing: -.065em;
  line-height: 1.02;
}
.resume-name { margin: 0 0 .65em; font-size: clamp(23px, 1.7vw, 29px); letter-spacing: -.04em; }
.resume-intro { max-width: 39ch; margin: 0 0 1em; font-size: clamp(20px, 1.75vw, 29px); line-height: 1.34; letter-spacing: -.034em; color: #c1c0c4; }
.story-link, .biography a, .case-reader a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
.story-link { display: inline-block; font-size: clamp(15px, 1.15vw, 18px); }
.resume-section-title, .resume-details h3 { margin: 0 0 .8em; font-size: clamp(29px, 2.45vw, 42px); line-height: 1.12; letter-spacing: -.045em; font-weight: 470; }
.resume-jobs { margin: 0; padding: 0; list-style: none; }
.job-row {
  display: grid;
  grid-template-columns: minmax(135px, .70fr) minmax(210px, 1fr) minmax(0, 1.85fr);
  gap: clamp(20px, 3.5vw, 60px);
  border-top: 1px solid #333338;
  padding-block: clamp(23px, 2.25vw, 38px);
}
.resume-jobs p, .resume-job h4 { margin: 0; }
.resume-date { color: #a2a2a6; font-size: clamp(14px, 1vw, 17px); line-height: 1.5; padding-top: .21em; }
.resume-job h4 { font-size: clamp(21px, 1.7vw, 29px); line-height: 1.17; font-weight: 540; letter-spacing: -.043em; }
.resume-job .resume-role { margin-top: .45em; color: #aaa9af; font-size: clamp(14px, 1.06vw, 17px); line-height: 1.4; }
.resume-work, .resume-details p { font-size: clamp(16px, 1.18vw, 20px); line-height: 1.5; letter-spacing: -.02em; color: #c3c2c5; }
.resume-work { max-width: 65ch; }
.resume-work strong, .resume-details strong { font-weight: 590; color: #f4f3f1; }
.resume-work p + p { margin-top: .65em; }
.resume-details { display: grid; grid-template-columns: 1fr 1fr; gap: 8%; border-top: 1px solid #333338; padding-top: clamp(34px, 4vw, 70px); }
.resume-details p { margin: .7em 0 0; max-width: 47ch; }
.resume-details h4 { font-size: clamp(18px, 1.4vw, 24px); letter-spacing: -.03em; margin: 1.3em 0 .35em; font-weight: 500; }
.story-reader, .case-reader { min-height: 100svh; }
.case-reader main { padding-bottom: 8svh; }
.case-reader nav, .biography nav { padding-top: clamp(25px, 3.2vw, 52px); color: #c4c3c8; font-size: 15px; }
.case-reader a:hover, .story-reader a:hover, .story-link:hover { color: white; }
.case-cover {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, .77fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 88px);
  padding: clamp(25px, 3.3vw, 55px) 0 clamp(38px, 5vw, 86px);
}
.case-intro h1 { max-width: 16em; margin: 0; font-size: clamp(30px, 3.1vw, 55px); line-height: 1.06; font-weight: 490; letter-spacing: -.052em; text-wrap: balance; }
.case-intro h1 strong { display: block; width: fit-content; margin-bottom: .12em; font-size: clamp(78px, 7.4vw, 128px); line-height: .98; font-weight: 510; letter-spacing: -.075em; color: #f7f6f4; }
.case-reader p { max-width: 60ch; margin: 1em 0 0; font-size: clamp(16px, 1.23vw, 20px); line-height: 1.56; letter-spacing: -.017em; color: #c4c1c5; }
.case-intro > p { max-width: 41ch; margin-top: 1.2em; }
.case-cover .case-visual { isolation: isolate; background: #181720; }
.case-cover .case-visual::before {
  content: ""; position: absolute; inset: -3%;
  background: url(assets/volumetric-light.webp) var(--crop, 50%) 52% / auto 134%;
  transform: translate(var(--pan-x, 0%), var(--pan-y, 0%)) scale(1.055);
}
.case-cover [data-story="crm"] { --crop: 9%; }
.case-cover [data-story="software"] { --crop: 51%; }
.case-cover [data-story="proposal"] { --crop: 93%; }
.case-light {
  display: block; position: absolute; inset: 0; width: 100%; height: 100%;
  visibility: hidden; pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .case-light.light-ready { visibility: visible; }
  .case-cover .case-visual::before { transition: transform 850ms cubic-bezier(.2,.55,.23,1); }
}
.case-cover .case-visual::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(112deg, #090b14a6, #0e102061);
}
.case-cover .artboard { z-index: 1; }
.case-reader article > section {
  display: grid;
  grid-template-columns: minmax(0,.77fr) minmax(0,1.2fr);
  gap: 0 clamp(32px,5vw,88px);
  border-top: 1px solid #303034; padding-block: clamp(28px,3.4vw,58px);
}
.case-reader article > section > :not(h2) { grid-column: 2; }
.case-reader article > section > p:first-of-type { margin-top: 0; }
.case-reader h2 { margin: 0; font-size: clamp(22px, 2vw, 34px); line-height: 1.15; font-weight: 480; letter-spacing: -.042em; }
.case-reader dl { max-width: 660px; margin: 1.5em 0 0; font-size: clamp(15px,1.15vw,19px); }
.case-reader dl > div { display: flex; justify-content: space-between; gap: 24px; align-items: baseline; padding-block: 12px; border-top: 1px solid #302f33; }
.case-reader dd { margin: 0; color: #e6e7ed; }
.case-reader .contractor-results .order-share {
  position: relative;
  padding-bottom: 19px;
  border-top: 0;
}
.order-share::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 7px; height: 3px;
  background: linear-gradient(to right, #b5bbcb var(--share), #303034 var(--share));
}
.biography { padding-bottom: 9svh; }
.biography-spread { display: grid; grid-template-columns: minmax(0,.87fr) minmax(0,1fr); gap: clamp(28px,4.6vw,74px) 7%; }
.biography h1, .biography nav { grid-column: 1/-1; }
.biography h1 { font-size: clamp(40px,4.4vw,73px); }
.biography-year {
  align-self: start; justify-self: start; font-size: clamp(100px,15vw,244px);
  font-weight: 575; letter-spacing: -.08em; line-height: .92; padding-right: .08em; color: #cfbdc5;
}
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .biography-year { background: #bfbbc7 url(assets/volumetric-light.webp) 28% 68% / 145% auto; background-clip: text; -webkit-background-clip: text; color: transparent; }
}
.biography-story { max-width: 48ch; color: #c4c3c3; font-size: clamp(17px,1.4vw,22px); line-height: 1.56; letter-spacing: -.016em; }
.biography-story p { margin: 0; }
.biography-story p + p { margin-top: 1.1em; }
.biography-story .biography-lead { color: #f4f3f1; font-size: clamp(28px,2.65vw,43px); line-height: 1.13; letter-spacing: -.045em; text-wrap: balance; }
@media (max-width: 760px) {
  .resume, .case-reader, .story-reader { --reading-width: calc(100% - 40px); }
  .resume-head, .job-row, .resume-details, .case-cover, .case-reader article > section, .biography-spread { grid-template-columns: 1fr; gap: 18px; }
  .job-row { gap: 9px; }
  .resume-name { margin-top: .45em; }
  .case-reader article > section > :not(h2), .biography h1, .biography nav { grid-column: 1; }
  .biography-year { margin-top: .18em; }
}
@media (forced-colors: active) {
  .biography-year { color: CanvasText; }
}
