@font-face {
  font-family: Inter;
  src: url('fonts/inter.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Serif';
  src: url('fonts/instrument-serif-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f5f2eb;
  --white: #faf8f3;
  --ink: #151621;
  --deep: #191727;
  --violet: #4b24da;
  --violet-dark: #3616b2;
  --lavender: #e6dffc;
  --muted: #5b575f;
  --line: #c4bdc1;
  --sans: Inter, Arial, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --mono: 'Courier New', monospace;
  --gutter: clamp(22px, 4.2vw, 72px);
  --section-gap: clamp(72px, 9vw, 144px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--sans); }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 5px; }
::selection { background: var(--violet); color: #fff; }
.shell { width: min(100% - 2 * var(--gutter), 1470px); margin-inline: auto; }
.pad-section { padding-block: var(--section-gap); }
section[id] { scroll-margin-top: 26px; }

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  padding: 11px 18px;
  transform: translateY(-150%);
  background: var(--ink);
  color: #fff;
}

.skip-link:focus { transform: none; }
.site-head { border-bottom: 1px solid var(--line); }
.head-inner { min-height: 75px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 25px; }
.identity, .wordmark, .main-nav, .head-contact { display: flex; align-items: center; }
.identity { gap: clamp(12px, 2vw, 27px); }
.wordmark { width: fit-content; gap: 10px; white-space: nowrap; font-weight: 800; font-size: clamp(20px, 2vw, 29px); letter-spacing: -.058em; word-spacing: .035em; line-height: 1; }

.brand-mark { width: 1.11em; height: 1.15em; flex: 0 0 1.11em; object-fit: contain; }

.concept-tag { color: var(--muted); border-left: 1px solid var(--line); padding-left: clamp(10px, 1.6vw, 23px); font: 700 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .045em; white-space: nowrap; }
.main-nav { gap: clamp(19px, 3vw, 51px); }
.main-nav a, .head-contact { font-size: 13px; font-weight: 650; transition: color .2s; }
.main-nav a:hover, .head-contact:hover { color: var(--violet); }
.head-contact { justify-self: end; gap: 10px; border-bottom: 1px solid currentColor; padding-block: 5px; }

.arrow { display: inline-block; position: relative; width: 13px; height: 13px; flex: 0 0 13px; }
.arrow::before, .arrow::after { content: ''; position: absolute; }
.arrow-diagonal::before { top: 1px; right: 1px; width: 9px; height: 9px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; }
.arrow-diagonal::after { top: 6px; right: -.7px; width: 15px; height: 1.5px; background: currentColor; transform: rotate(-45deg); }
.action .arrow { transition: transform .25s var(--ease); }
.action:hover .arrow { transform: translate(2px, -2px); }

.kicker, .image-caption {
  font: 700 11px/1.3 var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.kicker { display: flex; align-items: center; gap: 9px; }
.signal { width: 8px; height: 8px; display: inline-block; flex: 0 0 8px; background: var(--violet); }
.kicker-slash { color: var(--violet); }

.hero { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0, 1fr); gap: clamp(28px, 4.4vw, 72px); padding-top: clamp(32px, 4.1vw, 68px); padding-bottom: clamp(44px, 5.5vw, 90px); align-items: center; }
.hero-copy { padding: 6px 0 20px; }
.hero-kicker { margin-bottom: clamp(22px, 2.4vw, 40px); }
.hero-title { font-size: clamp(48px, 7.04vw, 116px); font-weight: 790; letter-spacing: -.074em; word-spacing: .037em; line-height: .91; }
.hero-line { display: block; }
.hero-title em, .display em { font-family: var(--serif); font-style: italic; font-weight: 400; }
.hero-title em { color: var(--violet); letter-spacing: -.039em; word-spacing: .025em; font-size: 1.12em; line-height: .84; padding-block: .04em .11em; }
.hero-lead { font-size: clamp(16px, 1.55vw, 21px); line-height: 1.4; letter-spacing: -.037em; max-width: 31ch; margin-top: clamp(20px, 2.6vw, 39px); }
.hero-action { margin-top: 24px; }

.action { display: inline-flex; align-items: center; justify-content: space-between; column-gap: 26px; min-height: 51px; padding: 11px 16px; font-size: 13px; font-weight: 650; border: 1px solid transparent; transition: background-color .22s, color .22s; }
.action-dark { color: #fff; background: var(--ink); }
.action-dark:hover { color: #fff; background: var(--violet-dark); }
.action-dark:disabled { opacity: .65; }

.hero-visual { position: relative; align-self: stretch; min-width: 0; display: grid; grid-template-rows: 1fr auto; }
.hero-window { position: relative; min-width: 0; min-height: clamp(497px, 44.5vw, 748px); overflow: hidden; background: #241b42; isolation: isolate; }
.hero-image { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: 55% 50%; }
.viewfinder { position: absolute; right: 15px; top: 15px; width: 20px; height: 20px; border-top: 1px solid #ffffffb8; border-right: 1px solid #ffffffb8; }
.viewfinder::after { content: ''; position: absolute; right: 4px; top: 4px; width: 4px; height: 4px; background: #fff; }
.image-caption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 13px; row-gap: 3px; padding-top: 10px; color: var(--muted); font-size: 10px; }
.source-link { display: inline-flex; align-items: center; gap: 7px; }
.source-link .arrow { transform: scale(.72); }
.source-link:hover { color: var(--violet); }

.experience-ticket {
  position: absolute;
  bottom: 49px;
  left: -15px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  background: var(--lavender);
  color: var(--violet-dark);
  padding: 9px 14px 11px;
  min-width: 203px;
  box-shadow: 0 3px 12px #1a122837;
  transition: transform .3s var(--ease), background-color .25s;
}

.experience-ticket:hover { transform: translateY(-5px); background: #f0eaff; }
.experience-ticket .arrow { justify-self: end; margin-left: 3px; }
.ticket-years { font-size: clamp(43px, 4.1vw, 67px); font-weight: 750; letter-spacing: -.11em; line-height: .98; }
.ticket-years > span { font-size: .61em; vertical-align: .34em; letter-spacing: -.05em; }
.ticket-label { font: 700 10px/1.2 var(--mono); text-transform: uppercase; }

.display { font-weight: 760; font-size: clamp(49px, 6.75vw, 106px); letter-spacing: -.072em; word-spacing: .035em; line-height: .92; }
.display em { color: var(--violet); letter-spacing: -.045em; font-size: 1.13em; line-height: .87; }

.challenge { background: var(--violet); color: #fff; padding-block: clamp(68px, 8.4vw, 136px); overflow: clip; }
.challenge-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 25px 55px; align-items: end; }
.challenge-inner::before { content: ''; position: absolute; top: -9rem; bottom: -9rem; left: 62%; width: 1px; background: #ffffff25; pointer-events: none; transform: rotate(-22deg); }
.challenge .kicker { grid-column: 1 / -1; }
.challenge .signal { background: var(--lavender); }
.challenge-title em { color: #e0d6ff; }
.challenge-copy { position: relative; justify-self: end; max-width: 32ch; font-size: clamp(16px, 1.45vw, 21px); line-height: 1.52; letter-spacing: -.025em; }
.challenge-copy p + p { margin-top: 14px; color: #eee8ff; }

.about { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 7vw, 112px); }
.about h2, .services h2, .work h2, .contact h2 { margin-top: 24px; }
.about h2 { font-size: clamp(50px, 6vw, 95px); }
.about-copy > p:not(.kicker) { margin-top: 19px; max-width: 42ch; color: var(--muted); font-size: clamp(16px, 1.35vw, 20px); }
.about-copy > h2 + p { margin-top: 30px; color: var(--ink); }
.about-photo { width: min(100%, 540px); min-width: 0; justify-self: end; }
.photo-frame { overflow: hidden; background: #ddd5dd; }
.photo-frame img { aspect-ratio: 1.1 / 1; object-fit: cover; object-position: 50% 39%; }
.text-link { display: inline-flex; align-items: center; width: fit-content; min-height: 44px; gap: 9px; position: relative; font-size: 14px; font-weight: 650; margin-top: 12px; }
.text-link::after { content: ''; position: absolute; bottom: 8px; left: 0; right: 0; height: 1px; background: currentColor; }
.text-link:hover { color: var(--violet); }

.field-note { background: var(--lavender); padding-block: clamp(50px, 6.5vw, 110px); }
.field-note-inner { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1fr); align-items: center; gap: clamp(26px, 6vw, 110px); }
.field-note h3 { margin-top: 19px; font-size: clamp(47px, 6vw, 95px); }
.field-note-copy > p:not(.kicker) { max-width: 36ch; margin-top: 20px; color: #4f455b; font-size: clamp(16px, 1.4vw, 20px); }
.stage { min-width: 0; color: var(--paper); background: var(--deep); padding: clamp(13px, 1.9vw, 28px); }
.stage-tabs:not([hidden]) { display: flex; gap: 4px; padding: 4px; background: #302b43; margin-bottom: 12px; }
.stage-tabs button { flex: 1 0 0; border: 0; min-height: 44px; background: transparent; color: #f1ebff; font-size: 13px; font-weight: 650; line-height: 1.2; padding: 6px 9px; transition: background-color .22s, color .22s; }
.stage-tabs button[aria-selected='true'] { background: var(--lavender); color: var(--ink); }
.stage-tabs button:focus-visible { outline-color: #d5baff; outline-offset: 2px; }
.stage-frame + .stage-frame { margin-top: 18px; }
.stage[data-interactive] .stage-frame { margin-top: 0; }
.stage-frame[hidden] { display: none; }
.stage-frame:focus-visible { outline-color: #d5baff; }
.stage-image { position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 1.55 / 1; background: #131222; }
.stage-image img { position: absolute; width: 100%; height: 100%; object-fit: contain; }
.stage-frame[data-view='built'] img { object-fit: cover; object-position: center 44%; }
.stage .image-caption { color: #e3d9f8; }

.services { background: var(--deep); color: var(--white); }
.services-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .94fr); gap: clamp(34px, 6vw, 94px); }
.services h2 { font-size: clamp(47px, 5.7vw, 91px); }
.services h2 em { color: #cbbbff; }
.services .signal { background: #b598ff; }
.services .kicker { color: #e1d5ff; }
.services-list { border-top: 1px solid #5a5266; }
.service { padding-block: clamp(15px, 2vw, 28px); border-bottom: 1px solid #5a5266; }
.service dt { font-size: clamp(19px, 2.02vw, 31px); font-weight: 660; line-height: 1.17; letter-spacing: -.06em; }
.service dd { max-width: 45ch; margin-top: 8px; color: #c8c1d0; font-size: clamp(14px, 1.15vw, 17px); }

.work-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .47fr); gap: 24px; align-items: end; margin-bottom: clamp(34px, 5vw, 80px); }
.work-intro > p { max-width: 30ch; color: var(--muted); font-size: clamp(16px, 1.5vw, 20px); }
.work-grid { display: grid; grid-template-columns: minmax(0, 1.42fr) repeat(2, minmax(0, 1fr)); align-items: start; gap: clamp(16px, 2.2vw, 38px); }
.project:not(.project-feature) { margin-top: clamp(0px, 3.5vw, 48px); }
.project-link { display: block; }
.project-image { overflow: hidden; background: #d8d0da; }
.project-image img { aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.project-link:focus-visible .project-image img { transform: scale(1.045); }
.project-image.venetian-art { display: grid; place-items: center; aspect-ratio: 4 / 3; background: #ded7d8; }
.project-image.venetian-art img { width: 40%; height: 62%; aspect-ratio: auto; object-fit: contain; }
.project-info { display: flex; justify-content: space-between; align-items: start; gap: 9px; margin-top: 14px; }
.project-identity { display: flex; align-items: start; gap: 8px; min-width: 0; }
.project-logo { width: 23px; height: 23px; object-fit: contain; flex: 0 0 23px; margin-top: 6px; }
.project-info .kicker { font-size: 10px; color: var(--violet-dark); margin-bottom: 5px; }
.project h3 { font-size: clamp(21px, 2.22vw, 36px); font-weight: 730; line-height: 1.05; letter-spacing: -.075em; }
.project-open { display: grid; place-items: center; width: 37px; height: 37px; flex: 0 0 37px; border: 1px solid var(--line); transition: background-color .25s, color .25s, border-color .25s; }
.project-link:hover .project-open, .project-link:focus-visible .project-open { background: var(--violet); color: #fff; border-color: var(--violet); }
.project-detail { font-size: 13px; color: var(--muted); margin-top: 8px; }

.contact { background: var(--lavender); }
.contact-inner { display: grid; grid-template-columns: minmax(0, 1.13fr) minmax(0, 1fr); gap: clamp(32px, 6.5vw, 100px); align-items: center; }
.contact h2 { font-size: clamp(48px, 5.65vw, 93px); }
.contact-copy { color: #4f455b; max-width: 39ch; margin-top: 22px; font-size: clamp(16px, 1.35vw, 19px); }
.contact-panel { background: var(--paper); padding: clamp(23px, 3.3vw, 50px); min-width: 0; }
.contact-field { display: grid; gap: 5px; margin-bottom: 18px; }
.contact-field label { font-size: 13px; font-weight: 650; }
.contact-field input, .contact-field textarea { width: 100%; border: 0; border-bottom: 1px solid #8c818d; border-radius: 0; background: transparent; color: var(--ink); outline-offset: 1px; padding: 7px 0 12px; font-size: 16px; }
.contact-field input::placeholder, .contact-field textarea::placeholder { opacity: 1; color: #6a636b; }
.contact-field textarea { resize: vertical; }
.contact-note, .contact-status { font-size: 12px; color: var(--muted); margin-top: 14px; }
.contact-status { border-left: 2px solid var(--violet); padding: 5px 9px; color: var(--violet-dark); }

.site-foot { background: var(--paper); }
.foot-inner { min-height: 90px; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 14px; }
.foot-inner .wordmark { font-size: 22px; }
.foot-inner p { color: var(--muted); font: 700 10px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.privacy { display: inline-flex; gap: 8px; align-items: center; font-size: 12px; font-weight: 650; }
.privacy:hover { color: var(--violet); }

@media (prefers-reduced-motion: no-preference) {
  html.motion-ready .hero-line { animation: hero-title-in .82s var(--ease) both; }
  html.motion-ready .hero-line:nth-child(2) { animation-delay: .07s; }
  html.motion-ready .hero-line:nth-child(3) { animation-delay: .14s; }
  html.motion-ready .hero-line:nth-child(4) { animation-delay: .21s; }
  html.motion-ready .hero-image { animation: hero-image-in 1.08s var(--ease) backwards; }
  html.motion-ready .experience-ticket { animation: rise-in .7s .25s var(--ease) backwards; }
  [data-reveal='visible'] { animation: rise-in .62s var(--ease) backwards; }
  [data-reveal='visible']:focus-within { animation: none; }
  .stage-frame[data-stage-entering] .stage-image img { animation: stage-image-in .48s var(--ease) backwards; }
  .stage-frame[data-stage-entering] .image-caption { animation: rise-in .36s var(--ease) backwards; }
}

@keyframes hero-title-in {
  from { opacity: 0; transform: translateY(.34em); clip-path: inset(80% -10% -12% -10%); }
  to { opacity: 1; transform: none; clip-path: inset(-10% -10% -12% -10%); }
}

@keyframes hero-image-in {
  from { clip-path: inset(15% 0 0 0); transform: scale(1.09); opacity: .45; }
  to { clip-path: inset(0); transform: none; opacity: 1; }
}

@keyframes rise-in {
  from { opacity: .17; translate: 0 18px; }
  to { opacity: 1; translate: none; }
}

@keyframes stage-image-in {
  from { opacity: .45; clip-path: inset(0 100% 0 0); transform: scale(1.045); }
  to { opacity: 1; clip-path: inset(0); transform: none; }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-window { view-timeline-name: --hero-window; }
    .hero-image { scale: 1; }
    html.motion-ready .hero-image {
      animation-name: hero-image-in, drift-image;
      animation-duration: 1.08s, auto;
      animation-timing-function: var(--ease), linear;
      animation-fill-mode: backwards, both;
      animation-timeline: auto, --hero-window;
      animation-range: normal, exit 0% exit 100%;
    }
    @keyframes drift-image { to { scale: 1.095; } }
  }
}

@media (hover: hover) and (pointer: fine) {
  .project-link:hover .project-image img { transform: scale(1.045); }
}

@media (max-width: 1000px) {
  .head-inner { column-gap: 18px; min-height: 69px; }
  .hero-window { min-height: clamp(425px, 52vw, 510px); }
  .hero { gap: 33px; }
  .hero-copy { padding-block: 0 19px; }
  .hero-kicker { font-size: 10px; gap: 7px; }
  .hero-title { font-size: clamp(53px, 7.55vw, 76px); }
  .experience-ticket { min-width: 176px; gap: 10px; }
  .challenge-inner { gap: 22px 36px; }
  .project-open { width: 31px; height: 31px; flex-basis: 31px; }
}

@media (max-width: 770px) {
  .head-inner { grid-template-columns: 1fr auto; min-height: 64px; }
  .main-nav { grid-row: 2; grid-column: 1 / -1; justify-content: flex-start; gap: 24px; border-top: 1px solid var(--line); }
  .main-nav a { display: flex; align-items: center; min-height: 44px; }
  .head-contact { grid-column: 2; grid-row: 1; }
  .identity { min-height: 55px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 23px; padding-block: 28px 50px; }
  .hero-title { font-size: clamp(53px, 12.2vw, 105px); }
  .hero-copy { padding: 0; }
  .hero-lead { max-width: 34ch; }
  .hero-window { min-height: min(83vw, 540px); }
  .hero-image { object-position: 52% 50%; }
  .experience-ticket { left: 0; bottom: 39px; min-width: 158px; }
  .challenge-inner, .about, .field-note-inner, .services-inner, .work-intro, .contact-inner { grid-template-columns: minmax(0, 1fr); }
  .challenge-inner::before { left: 83%; }
  .challenge-copy { justify-self: start; max-width: 42ch; }
  .about { gap: 28px; }
  .about-photo { justify-self: start; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; }
  .project-feature { grid-column: 1 / -1; }
  .project-feature img { aspect-ratio: 16 / 10; }
  .project:not(.project-feature) { margin-top: 0; }
  .project h3 { font-size: clamp(21px, 4.15vw, 32px); }
}

@media (max-width: 540px) {
  .work-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .project-image img, .project-image.venetian-art { aspect-ratio: 16 / 10; }
  .hero-action { margin-top: 16px; }
  .hero .source-link { min-height: 24px; }
}

@media (max-width: 410px) {
  :root { --gutter: 19px; }
  .concept-tag { font-size: 8px; }
  .identity { gap: 8px; }
  .concept-tag { padding-left: 8px; }
  .head-contact { gap: 5px; font-size: 11px; }
  .wordmark { gap: 6px; font-size: 19px; }
  .hero-title { font-size: clamp(42px, 13.4vw, 57px); }
  .hero-kicker { font-size: 9px; gap: 6px; }
  .hero-action { max-width: 100%; }
  .foot-inner { flex-wrap: wrap; padding-block: 20px; }
  .foot-inner p { order: 1; width: 100%; }
}

@media (max-width: 340px) {
  .concept-tag { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .project-link:hover img, .project-link:focus-visible img, .experience-ticket:hover, .action:hover .arrow { transform: none; }
}
