@font-face {
  font-family: "Instrument Sans";
  src: url("assets/instrument-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("assets/instrument-sans-italic-latin.woff2") format("woff2");
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #070707;
  --panel: #101010;
  --text: #f1f1f1;
  --muted: #ababab;
  --accent: #d4d4d4;
  --line: #2a2a2a;
  --header: 66px;
  --shell: 1180px;
  --gutter: clamp(22px, 6.9vw, 110px);
  font-family: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 18px); }
body {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100svh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
button, a { color: inherit; }
button { font: inherit; }
a { text-decoration: none; }
p, h1, h2, h3 { margin: 0; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { background: var(--accent); color: var(--bg); }

.shell { width: min(var(--shell), 100% - var(--gutter) * 2); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 20; transform: translateY(-150%); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 6px; }
.skip-link:focus { transform: translateY(0); }
.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 10;
  width: 100%;
  transform: translateX(-50%);
  border: 1px solid #ffffff15;
  border-top-color: #ffffff06;
  background: #090909eb;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition: width .55s cubic-bezier(.22,1,.36,1), top .55s cubic-bezier(.22,1,.36,1),
    border-radius .55s, background .35s, box-shadow .55s;
}
.site-header.is-scrolled {
  top: 14px;
  width: min(860px, calc(100% - 36px));
  border-radius: 999px;
  border-color: var(--line);
  background: #0c0c0cf5;
  box-shadow: 0 10px 36px #00000066;
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--header);
  gap: 18px;
  padding-inline: clamp(22px, 3.9vw, 70px);
  transition: padding .55s cubic-bezier(.22,1,.36,1), min-height .55s;
}
.is-scrolled .header-inner { min-height: 58px; padding-inline: 23px 12px; }
.header-actions { display: flex; align-items: center; justify-self: end; gap: 12px; }
.sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px;
  border: 0;
  border-radius: 99px;
  background: transparent;
  color: #cacaca;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.sound-toggle:hover { color: #ffffff; background: #ffffff0c; }
.sound-bars { display: flex; align-items: center; gap: 3px; height: 16px; width: 17px; }
.sound-bars i { width: 2px; height: 8px; background: currentColor; border-radius: 2px; transition: height .3s; }
.sound-bars i:nth-child(2) { height: 15px; }
.sound-bars i:nth-child(3) { height: 11px; }
.sound-toggle[aria-pressed="false"] .sound-bars i { height: 3px; }
.sound-label { font-size: .65rem; white-space: nowrap; }
.wordmark { justify-self: start; white-space: nowrap; font-size: 20px; font-weight: 750; line-height: 1; letter-spacing: -.055em; }
.wordmark span, .accent { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 7px; }
.site-nav a { padding: 9px 13px; border-radius: 99px; color: var(--muted); font-size: 13px; transition: color .2s, background .2s; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: #ffffff0c; }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a[aria-current="page"] { color: var(--text); }
.header-contact { justify-self: end; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; border: 1px solid #ffffff44; border-radius: 99px; padding: 9px 15px; transition: background .2s, color .2s; }
.text-link span { margin-left: 5px; }
.header-contact:hover, .header-contact[aria-current="page"] { background: var(--text); color: var(--bg); }
.menu-toggle, .site-nav .mobile-contact { display: none; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: center;
  min-height: max(680px, 100svh);
  padding-block: calc(var(--header) + 52px) 104px;
  background: #090909;
}
.hero-image, .hero-video, .hero-reel, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-image, .hero-video { object-fit: cover; object-position: 60% 52%; }
.hero-shade {
  background:
    linear-gradient(0deg, #070707 0%, #07070712 32%, #07070700 76%, #07070751 100%),
    linear-gradient(90deg, #060606ed 1%, #080808da 26%, #08080884 52%, #0808081f 100%);
}
.hero-content { position: relative; transform: translate3d(0, var(--hero-lift, 0px), 0); opacity: var(--hero-fade, 1); }
.hero-image, .hero-reel { transform: scale(1.045) translate3d(var(--hero-x, 0px), calc(var(--hero-y, 0px) + var(--hero-shift, 0px)), 0); }
/* The reel: two stacked videos. The incoming clip fades in on top while the outgoing
   one stays solid beneath it, then drops away once it is fully covered. */
.hero-reel { overflow: hidden; }
.hero-reel .hero-video { z-index: 1; opacity: 0; }
.hero-reel .hero-video.is-back { opacity: 1; }
.hero-reel .hero-video.is-front { z-index: 2; opacity: 1; transition: opacity var(--reel-fade, .35s) linear; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(500px circle at var(--light-x, 75%) var(--light-y, 45%), #b2b2b20d, transparent 75%); }
.hero-content .eyebrow { animation: enter-soft 1s calc(.1s + var(--enter-delay, 0s)) both; }
.hero h1 { animation: enter-soft 1.2s calc(.2s + var(--enter-delay, 0s)) both; }
.hero h1 span { animation: enter-soft 1.3s calc(.35s + var(--enter-delay, 0s)) both; }
.hero-bottom { animation: enter-soft 1s calc(.65s + var(--enter-delay, 0s)) both; }
.eyebrow {
  font: 500 .71rem/1.4 ui-monospace, "SFMono-Regular", Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
}
.line-label { display: flex; align-items: center; gap: 11px; }
.line-label::before { content: ""; width: 23px; height: 1px; flex: none; background: var(--accent); opacity: .8; }
.hero h1 {
  margin: 28px 0 0;
  font-size: clamp(5rem, 11.45vw, 10.8rem);
  font-weight: 730;
  letter-spacing: -.055em;
  line-height: .79;
}
.hero h1 span {
  display: block;
  margin: .2em 0 0 .04em;
  font-size: .62em;
  color: #dddddd;
  font-weight: 400;
  font-style: italic;
  line-height: 1.08;
  letter-spacing: -.025em;
}
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; }
.pill {
  display: inline-flex;
  gap: 12px;
  min-height: 48px;
  justify-content: center;
  align-items: center;
  width: fit-content;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 99px;
  font-size: .86rem;
  font-weight: 650;
  transition: color .2s, background-color .2s, border-color .2s;
}
.pill-light { color: #0b0b0b; background: var(--text); }
.pill-light:hover { background: var(--accent); }
.pill-dark { color: var(--text); background: #0d0d0d; border-color: #484848; }
.pill-dark:hover { background: #191919; border-color: #737373; }
.hero-intro {
  max-width: 30rem;
  margin-top: clamp(22px, 3vw, 36px);
  color: #dddddd;
  font-size: clamp(.98rem, 1.5vw, 1.14rem);
  line-height: 1.5;
  text-shadow: 0 2px 14px #000000cc;
  animation: enter-soft .85s calc(.48s + var(--enter-delay, 0s)) both;
}
.hero-intro .hero-tagline {
  color: var(--text);
  font-size: clamp(1.12rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
}
.hero-intro p + p { margin-top: 10px; }
.hero-actions { margin-top: clamp(20px, 3vw, 32px); animation: enter-soft .85s calc(.62s + var(--enter-delay, 0s)) both; }
.hero-content:focus-within { opacity: 1; }

.hero-bottom {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 71px;
  border-top: 1px solid #c3c3c333;
  color: #b1b1b1;
  font: 500 .63rem/1.4 ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.scroll-link { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #ffffff40; border-radius: 50%; color: var(--text); font: 400 17px/1 Arial, sans-serif; }
.scroll-link:hover { background: #ffffff23; }

.home-index { padding-block: clamp(70px, 9vw, 130px) 70px; }
.home-framework, .home-work { padding-bottom: clamp(72px, 10vw, 144px); }
.home-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: clamp(50px, 8vw, 96px);
  padding: clamp(24px, 4.7vw, 52px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0c0c0c;
}
.home-index .home-contact h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3.7vw, 3.15rem);
  line-height: 1.06;
}

.section-opening, .detail-grid, .contact-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(25px, 6vw, 84px);
  align-items: end;
}
.section-opening { margin-bottom: 38px; }
.home-index h2, .inner-section h2 {
  margin-top: 19px;
  font-size: clamp(2.7rem, 5.6vw, 5.3rem);
  font-weight: 680;
  line-height: .99;
  letter-spacing: -.055em;
}
.home-index h2 em { font-weight: 300; color: #d2d2d2; }
.section-lead, .about-copy, .contact-copy {
  max-width: 435px;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  line-height: 1.65;
}
.section-lead p + p { margin-top: 16px; }
.section-lead .text-link { margin-top: 22px; }
.work-preview { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 35px; overflow: hidden; padding: clamp(27px,5vw,68px); border: 1px solid #ffffff23; border-radius: 18px; background: #0d0d0d; }
.work-preview-copy > p:not(.eyebrow) { margin-top: 23px; max-width: 430px; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.work-preview-copy .text-link { margin-top: 26px; }
.work-viewfinder { position: relative; min-height: 260px; display: grid; place-content: center; text-align: center; transform: perspective(1000px) rotateY(var(--tilt-x, 0deg)) rotateX(var(--tilt-y, 0deg)); transition: transform .25s ease-out; }
.frame-corner { position: absolute; width: 25px; height: 25px; border: 1px solid #b0b0b04a; transition: width .5s, height .5s, border-color .4s; }
.top-left { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.top-right { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.bottom-left { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.bottom-right { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.work-preview:hover .frame-corner { width: 39px; height: 39px; border-color: #b0b0b0a0; }
.viewfinder-wordmark { font-size: clamp(3.2rem, 6vw, 5.8rem); font-weight: 700; line-height: .85; letter-spacing: -.045em; color: #d4d4d4; }
.viewfinder-wordmark span { display: block; margin-top: 12px; font-size: .52em; font-weight: 300; font-style: italic; }
.viewfinder-status { position: absolute; bottom: 19px; left: 0; right: 0; color: #a6a6a6; font: 400 .6rem/1.5 ui-monospace, monospace; text-transform: uppercase; letter-spacing: .12em; }
[data-reactive] { isolation: isolate; }
[data-reactive]::after { content: ""; pointer-events: none; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; background: radial-gradient(400px circle at var(--pointer-x, 50%) var(--pointer-y, 50%), #ffffff09, transparent 75%); transition: opacity .45s; }
[data-reactive]:hover::after { opacity: 1; }
.subhero { padding-block: clamp(143px, 15vw, 211px) clamp(62px, 8vw, 112px); }
.subhero h1, .contact-section h2 {
  margin-top: 16px;
  font-size: clamp(4.15rem, 9vw, 8.6rem);
  font-weight: 680;
  line-height: .9;
  letter-spacing: -.055em;
}
.subhero h1 em, .contact-section h2 em { color: #dddddd; font-weight: 300; }
.subhero-intro { max-width: 540px; margin-top: 25px; color: var(--muted); font-size: clamp(1.02rem, 1.7vw, 1.27rem); line-height: 1.6; }
.inner-section { padding-bottom: clamp(74px, 9vw, 124px); }
.detail-grid { align-items: start; padding-top: clamp(32px, 5vw, 66px); border-top: 1px solid var(--line); }
.detail-grid h2 { margin-top: 0; }

.process-tabs {
  display: grid;
  grid-template-columns: repeat(var(--tab-count, 3), minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.process-tabs button {
  min-height: 45px;
  padding: 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
}
.process-tabs button:hover { background: #212121; color: var(--text); }
.process-tabs [aria-selected="true"], .process-tabs [aria-selected="true"]:hover { background: #212121; color: var(--text); }
.process-feature { display: grid; grid-template-columns: 1fr 1.15fr; gap: 12px; }
.process-feature > img { width: 100%; height: 100%; min-height: 315px; max-height: 440px; border-radius: 7px; object-fit: cover; }
.process-panels { min-width: 0; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); }
.process-panel { display: flex; flex-direction: column; justify-content: center; min-height: 100%; padding: clamp(25px, 5vw, 63px); }
.process-panel h3 { margin: 12px 0 18px; font-size: clamp(2.2rem, 4.05vw, 3.85rem); line-height: .99; letter-spacing: -.045em; font-weight: 660; }
.check-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: .91rem; line-height: 1.45; }
.check-list li { position: relative; padding-left: 22px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); }

.about-copy p + p { margin-top: 15px; }
.text-link { display: inline-flex; align-items: center; color: var(--text); font-size: .84rem; font-weight: 650; text-underline-offset: 5px; }
.about-copy .text-link { margin-top: 23px; }
.text-link:hover { text-decoration: underline; }
.contact-section {
  position: relative;
  overflow: hidden;
  border-block: 1px solid #3a3a3a;
  background: #0b0b0b;
}
.contact-inner { padding-block: clamp(70px, 9vw, 126px); }
.contact-section .eyebrow { color: #d9d9d9; }
.contact-section h2 { font-size: clamp(3.4rem, 6.5vw, 6.2rem); }
.contact-copy { color: #d0d0d0; }
.contact-copy .pill { margin-top: 19px; }
.site-footer {
  border-top: 1px solid var(--line);
  background: #090909;
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 4vw, 52px);
  padding-top: clamp(40px, 6vw, 72px);
}
.footer-wordmark { display: inline-block; font-size: clamp(2.25rem, 5vw, 3.75rem); }
.footer-brand p { margin-top: 12px; font-size: .88rem; color: var(--muted); }
.footer-label { margin-bottom: 10px; }
.footer-links { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 31px;
  color: var(--muted);
  font-size: .95rem;
  transition: color .2s;
}
.footer-links a:hover, .footer-links a:focus-visible, .footer-links a[aria-current="page"] { color: var(--text); }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
}
.footer-bottom p { color: var(--muted); font-size: .78rem; }

@media (max-width: 760px) {
  :root { --header: 58px; --gutter: clamp(19px, 5.4vw, 40px); }
  .header-inner { grid-template-columns: 1fr auto auto; gap: 6px; padding-inline: var(--gutter); }
  .is-scrolled .header-inner { padding-inline: 18px 10px; }
  .site-header.is-scrolled { top: 10px; width: calc(100% - 24px); }
  .header-actions { grid-column: 2; grid-row: 1; }
  .menu-toggle { grid-column: 3; grid-row: 1; }
  .sound-label { display: none; }
  .header-contact { display: none; }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 41px;
    height: 41px;
    border: 1px solid #ffffff45;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
  }
  .menu-toggle span { width: 15px; height: 1px; background: var(--text); transition: transform .2s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .site-nav {
    display: grid; gap: 0; position: absolute; inset: calc(100% + 9px) 10px auto; background: #0b0b0bfa; padding: 8px 17px 12px; border: 1px solid #ffffff28; border-radius: 22px; -webkit-backdrop-filter: blur(28px); backdrop-filter: blur(28px); box-shadow: 0 15px 40px #00000066;
    visibility: hidden; opacity: 0; transform: translateY(-10px) scale(.98); transform-origin: 50% 0;
    transition: opacity .2s ease, transform .3s cubic-bezier(.22,1,.36,1), visibility 0s linear .3s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .site-nav a { display: flex; align-items: center; justify-content: space-between; min-height: 49px; font-size: 1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav a:hover, .site-nav a[aria-current="page"] { background: transparent; }
  .site-nav .mobile-contact { display: flex; border-bottom: 0; }
  .hero { min-height: max(625px, 100svh); }
  .hero-image, .hero-video { object-position: 65% 50%; }
  .hero-shade { background: linear-gradient(0deg, #070707 0%, #07070770 32%, #07070712 92%), linear-gradient(90deg, #060606d6 0%, #08080849 100%); }
  .hero h1 { font-size: clamp(4.2rem, 14.8vw, 7rem); margin-top: 25px; }
  .section-opening, .detail-grid, .contact-inner, .work-preview { grid-template-columns: 1fr; gap: 22px; }
  .section-opening { margin-bottom: 26px; }
  .work-viewfinder { min-height: 210px; margin-top: 16px; }
  .work-preview { gap: 26px; }
  .subhero { padding-top: clamp(122px, 26vw, 170px); }
  .subhero h1 { font-size: clamp(3.65rem, 12.2vw, 6rem); }
  .contact-section h2 { font-size: clamp(3.1rem, 10.6vw, 5.2rem); }
  .process-feature { grid-template-columns: 1fr; }
  .process-feature > img { min-height: 0; height: clamp(176px, 52vw, 310px); }
  .process-panel { min-height: 242px; }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-links a { min-height: 40px; }
}
@media (max-width: 360px) {
  .hero h1 { font-size: clamp(3.48rem, 18.5vw, 4.2rem); }
  .pill { padding-inline: 14px; font-size: .79rem; }
}

@keyframes enter-soft {
  from { opacity: 0; transform: translateY(22px); filter: blur(5px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes panel-enter {
  from { opacity: .25; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.subhero > * { animation: enter-soft .85s var(--enter-delay, 0s) both; }
.subhero > :nth-child(2) { animation-delay: calc(.08s + var(--enter-delay, 0s)); }
.subhero > :nth-child(3) { animation-delay: calc(.16s + var(--enter-delay, 0s)); }
/* The transition lives on the visible state only, so sections never fade out first when the script hides them on load. */
.reveal-ready { opacity: 0; transform: translateY(24px); }
.reveal-ready.is-visible { opacity: 1; transform: translateY(0); transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1); }
.text-link { gap: 6px; }
.text-link span { display: inline-block; transition: transform .25s; }
.text-link:hover span { transform: translate(2px,-2px); }
.pill, .scroll-link, .header-contact { transform: translate3d(var(--magnet-x, 0px), var(--magnet-y, 0px), 0); transition: transform .22s ease-out, background .25s, color .25s; }
.pill:active, .scroll-link:active { scale: .97; }
.cursor-halo { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 30; width: 28px; height: 28px; margin: -14px; border: 1px solid #c5c5c536; border-radius: 50%; opacity: 0; transition: opacity .25s, width .3s, height .3s, margin .3s, border-color .3s; }
.cursor-halo.is-active { opacity: 1; }
.cursor-halo.is-hovering { width: 46px; height: 46px; margin: -23px; border-color: #c5c5c560; }
.cursor-halo.is-pressed { width: 20px; height: 20px; margin: -10px; border-color: #c5c5c5a8; }
.cursor-halo.is-hovering.is-pressed { width: 36px; height: 36px; margin: -18px; }
@media (pointer: coarse) { .cursor-halo { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-ready, .framework.reveal-ready .framework-stage { opacity: 1 !important; }
  .reveal-ready, .framework.reveal-ready .framework-stage { transform: none !important; }
  .sound-bars i { animation: none !important; }
  .cursor-halo { display: none; }
  .hero-content { transform: none; opacity: 1; }
  .hero-image, .hero-reel { transform: none; }
  .work-viewfinder { transform: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}


/* Page transition.
   The page sinks back while a graphite sheet rises over it, led by a band of silver.
   The leading edge is a curve that peaks where the visitor clicked and flattens as it
   lands. The destination's name sets letter by letter above a line that draws across.
   The next page starts out covered by html.is-arriving (set by the small script in
   each page's <head>, before anything is painted); site.js then swaps in the real
   sheet, the letters leave, and the sheet carries on upward and off the screen. */
:root {
  --curtain: #0c0c0c;
  --curtain-glow: radial-gradient(60% 50% at 50% 50%, #111111, #080808);
  --pt-ease: cubic-bezier(.76, 0, .24, 1);
  --pt-size: clamp(3.4rem, 10vw, 8.4rem);
  --pt-bulge: min(24vh, 30vw);
  --pt-line-width: min(220px, 40vw);
  --pt-line-y: calc(50% + var(--pt-size) * .8);
  --pt-line-color: #ffffff3d;
  --pt-silver: #303030;
  /* How far the graphite sheet trails the silver one; this sets the band's thickness. */
  --pt-lag: 26ms;
}
/* Entrance animations wait for the sheet to clear the middle of the screen. */
html[data-arrive] { --enter-delay: .38s; }

html.is-arriving::before,
html.is-arriving::after {
  position: fixed;
  inset: 0;
  pointer-events: none;
  /* If the script never loads, the cover removes itself. */
  animation: curtain-failsafe .5s 4s forwards;
}
html.is-arriving::before {
  content: "";
  z-index: 60;
  background-color: var(--curtain);
  background-image: linear-gradient(var(--pt-line-color), var(--pt-line-color)), var(--curtain-glow);
  background-repeat: no-repeat;
  background-position: 50% var(--pt-line-y), 0 0;
  background-size: var(--pt-line-width) 1px, 100% 100%;
}
html.is-arriving::after,
.pt-label {
  display: grid;
  place-items: center;
  color: var(--text);
  font: 680 var(--pt-size)/1.1 "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -.055em;
  /* Kerning is off so the pre-paint word and the per-letter word line up exactly. */
  font-kerning: none;
  font-variant-ligatures: none;
  white-space: nowrap;
}
html.is-arriving::after { content: attr(data-arrive); z-index: 61; }
@keyframes curtain-failsafe { to { opacity: 0; visibility: hidden; } }

.page-transition { position: fixed; inset: 0; z-index: 60; overflow: hidden; pointer-events: none; visibility: hidden; }
.page-transition:not([data-state="idle"]) { visibility: visible; }
.page-transition[data-state="cover"], .page-transition[data-state="covered"] { pointer-events: auto; }

.pt-sheet {
  position: absolute;
  inset: 0;
  background: var(--curtain-glow) var(--curtain);
  transform: translateY(calc(100% + var(--pt-bulge) + 2px));
  will-change: transform;
}
/* The silver sheet sits underneath and moves slightly ahead, so only a curved band of it ever shows. */
.pt-sheet-silver, .pt-sheet-silver .pt-cap { background: var(--pt-silver); box-shadow: none; }
/* Half of each ellipse sits outside the sheet, giving its edge a curve that can flatten to nothing. */
.pt-cap {
  position: absolute;
  left: calc(var(--x, 50%) - 100%);
  width: 200%;
  height: calc(var(--pt-bulge) * 2);
  border-radius: 50%;
  background: var(--curtain);
  will-change: transform;
}
.pt-cap-top { top: calc(var(--pt-bulge) * -1); box-shadow: inset 0 1px 0 #ffffff30; transform: scaleY(1); }
.pt-cap-bottom { bottom: calc(var(--pt-bulge) * -1); box-shadow: inset 0 -1px 0 #ffffff30; transform: scaleY(0); }

.pt-label { position: absolute; inset: 0; }
.pt-mask { display: block; overflow: hidden; padding: .14em .3em; }
.pt-word { display: block; }
.pt-char { display: inline-block; white-space: pre; transform: translateY(125%); will-change: transform; }
.pt-line {
  position: absolute;
  top: var(--pt-line-y);
  left: calc(50% - var(--pt-line-width) / 2);
  width: var(--pt-line-width);
  height: 1px;
  background: var(--pt-line-color);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* Leaving: the sheets rise, their curve flattens, the name sets and the line draws. */
.page-transition[data-state="cover"] .pt-sheet { transform: translateY(0); transition: transform .58s var(--pt-ease); }
.page-transition[data-state="cover"] .pt-cap-top { transform: scaleY(0); transition: transform .58s cubic-bezier(.5, 0, .9, .4); }
.page-transition[data-state="cover"] .pt-sheet-main,
.page-transition[data-state="cover"] .pt-sheet-main .pt-cap-top { transition-delay: var(--pt-lag); }
.page-transition[data-state="cover"] .pt-char { transform: translateY(0); transition: transform .42s cubic-bezier(.16, 1, .3, 1) calc(.36s + var(--i) * 18ms); }
.page-transition[data-state="cover"] .pt-line { transform: scaleX(1); transition: transform .52s cubic-bezier(.65, 0, .35, 1) .26s; }

/* Held: exactly what the pre-paint cover shows. */
.page-transition[data-state="covered"] .pt-sheet,
.page-transition[data-state="covered"] .pt-char { transform: translateY(0); }
.page-transition[data-state="covered"] .pt-cap-top { transform: scaleY(0); }
.page-transition[data-state="covered"] .pt-line { transform: scaleX(1); }

/* Arriving: the letters leave, the line retracts, and the sheets continue upward, the silver band trailing. */
.page-transition[data-state="reveal"] .pt-sheet { transform: translateY(calc(-100% - var(--pt-bulge) - 2px)); transition: transform .74s var(--pt-ease) .04s; }
.page-transition[data-state="reveal"] .pt-cap-top { transform: scaleY(0); }
.page-transition[data-state="reveal"] .pt-cap-bottom { transform: scaleY(1); transition: transform .5s cubic-bezier(.3, 0, .3, 1) .04s; }
.page-transition[data-state="reveal"] .pt-sheet-silver,
.page-transition[data-state="reveal"] .pt-sheet-silver .pt-cap-bottom { transition-delay: calc(.04s + var(--pt-lag)); }
.page-transition[data-state="reveal"] .pt-char { transform: translateY(-125%); transition: transform .32s cubic-bezier(.6, 0, .8, .2) calc(var(--i) * 14ms); }
.page-transition[data-state="reveal"] .pt-line { transform: scaleX(0); transform-origin: 100% 50%; transition: transform .3s cubic-bezier(.65, 0, .35, 1); }

@media (prefers-reduced-motion: reduce) {
  .page-transition { display: none; }
  .framework-step:hover { transform: none; }
}

/* Process tabs: one highlight slides between the stages, and the panel eases in. */
.process-tabs { position: relative; }
.process-tabs.has-indicator::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 4px - var(--tab-count, 3) * 4px) / var(--tab-count, 3));
  border-radius: 4px;
  background: #212121;
  transform: translateX(calc(var(--tab-index, 0) * (100% + 4px)));
  transition: transform .45s cubic-bezier(.22,1,.36,1);
}
.process-tabs.has-indicator button { position: relative; transition: color .25s, background .25s; }
.process-tabs.has-indicator [aria-selected="true"],
.process-tabs.has-indicator [aria-selected="true"]:hover { background: transparent; }
.process-panel.is-changing > * { animation: panel-rise .5s cubic-bezier(.22,1,.36,1) both; }
.process-panel.is-changing > :nth-child(2) { animation-delay: .05s; }
.process-panel.is-changing > :nth-child(3) { animation-delay: .1s; }
@keyframes panel-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}


/* The sound control comes alive under the pointer while sound is on. */
.sound-bars i { transform-origin: 50% 50%; }
.sound-toggle[aria-pressed="true"]:hover .sound-bars i { animation: sound-level .8s ease-in-out infinite; }
.sound-toggle[aria-pressed="true"]:hover .sound-bars i:nth-child(2) { animation-delay: -.27s; }
.sound-toggle[aria-pressed="true"]:hover .sound-bars i:nth-child(3) { animation-delay: -.54s; }
@keyframes sound-level { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.4); } }
/* Contact page */
.contact-page .contact-layout {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  align-items: start;
  gap: clamp(32px, 5.6vw, 78px);
}
.contact-page .contact-intro { min-width: 0; }
.contact-page .contact-intro h1 {
  margin-top: 20px;
  font-size: clamp(3.3rem, 5.7vw, 5.7rem);
  font-weight: 550;
  letter-spacing: -.065em;
  line-height: .99;
  text-wrap: balance;
}
.contact-page .contact-intro h1 em { color: #c7c7c7; }
.contact-page .contact-intro .subhero-intro {
  max-width: 390px;
  margin-top: 25px;
  font-size: clamp(.98rem, 1.3vw, 1.08rem);
  line-height: 1.7;
}
.contact-page .contact-email {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  max-width: 100%;
  margin-top: 32px;
  padding-block: 7px;
  color: var(--text);
  font-size: clamp(1rem, 1.6vw, 1.24rem);
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
  text-decoration-color: #d4d4d45c;
  text-underline-offset: 7px;
}
.contact-page .contact-email:hover { text-decoration-line: underline; }
.contact-page .social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 360px;
  margin-top: 25px;
}
.contact-page .social-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  min-height: 50px;
  padding: 12px 15px;
  border: 1px solid #adadad29;
  border-radius: 12px;
  background: #0d0d0d;
  color: #d7d7d7;
  font-size: .82rem;
  font-weight: 450;
  transition: background .25s, border-color .25s, color .25s;
}
.contact-page .social-link:hover {
  border-color: #d4d4d480;
  background: #171717;
  color: var(--text);
}
.contact-page .social-icon {
  flex: 0 0 21px;
  width: 21px;
  height: 21px;
  color: #cbcbcb;
}
.contact-page .contact-form {
  min-width: 0;
  display: grid;
  gap: 22px;
  padding: clamp(25px, 3.3vw, 43px);
  border: 1px solid #b2b2b22e;
  border-radius: 24px;
  background: #0d0d0d;
  box-shadow: 0 18px 60px #00000026;
}
.contact-page .contact-form h2 {
  margin: 0 0 3px;
  color: var(--text);
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.04em;
}
.contact-page .field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.contact-page .form-field { display: grid; gap: 9px; min-width: 0; }
.contact-page .form-field label {
  color: #cbcbcb;
  font-size: .78rem;
  font-weight: 500;
  line-height: 1.4;
}
.contact-page .form-field input,
.contact-page .form-field select,
.contact-page .form-field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 47px;
  margin: 0;
  padding: 12px 13px;
  border: 1px solid #9999993b;
  border-radius: 9px;
  background: #080808a8;
  color: var(--text);
  font: inherit;
  font-size: .92rem;
  line-height: 1.45;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.contact-page .form-field select { color-scheme: dark; }
.contact-page .form-field textarea { min-height: 143px; resize: vertical; }
.contact-page .form-field input:hover,
.contact-page .form-field select:hover,
.contact-page .form-field textarea:hover { border-color: #99999973; }
.contact-page .form-field input:focus-visible,
.contact-page .form-field select:focus-visible,
.contact-page .form-field textarea:focus-visible {
  outline: 2px solid #d4d4d4b3;
  outline-offset: 3px;
  border-color: var(--accent);
  background: #121212;
  box-shadow: 0 0 0 4px #d4d4d40c;
}
.contact-page .contact-form .pill { justify-self: start; margin-top: 1px; }
.contact-page .form-help {
  margin-top: -12px;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.55;
}
.contact-page .form-status {
  margin-top: -7px;
  color: #cecece;
  font-size: .83rem;
  line-height: 1.6;
}
.contact-page .form-status:empty { display: none; }

@media (max-width: 760px) {
  .contact-page .contact-layout { grid-template-columns: 1fr; gap: 45px; }
  .contact-page .contact-intro h1 { font-size: clamp(3.1rem, 9.4vw, 4.5rem); }
  .contact-page .contact-intro .subhero-intro { max-width: 470px; }
  .contact-page .contact-form { padding: clamp(24px, 5vw, 37px); }
  .contact-page .social-links { max-width: 400px; }
}
@media (max-width: 400px) {
  .contact-page .contact-intro h1 { font-size: clamp(2.45rem, 11.6vw, 3.4rem); }
  .contact-page .field-row { grid-template-columns: 1fr; gap: 22px; }
  .contact-page .contact-form { padding: 23px 20px; border-radius: 20px; }
  .contact-page .social-link { gap: 8px; padding-inline: 12px; font-size: .77rem; }
}

/* Projects page.
   Tiles keep their true shape. Each row is a flex line whose tiles grow in proportion
   to their width-to-height ratio, which is what gives a row one shared height. */
.projects { padding-bottom: clamp(74px, 9vw, 124px); }
.project-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(22px, 3vw, 34px); }
.project-filter {
  min-height: 38px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: transparent;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: color .2s, background .2s, border-color .2s;
}
.project-filter:hover { border-color: #5a5a5a; color: var(--text); }
.project-filter[aria-pressed="true"] { border-color: var(--text); background: var(--text); color: var(--bg); }
.project-featured { margin-bottom: clamp(30px, 4.4vw, 56px); }
.project-grid { display: grid; gap: clamp(26px, 3.4vw, 44px); }
.project-row { display: flex; align-items: flex-start; gap: 16px; }
.project-card {
  --ratio: 1.7778;
  display: flex;
  flex: var(--ratio) 1 0%;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  animation: project-in .8s cubic-bezier(.22,1,.36,1) calc(var(--enter-delay, 0s) + var(--n, 0) * 45ms) both;
}
button.project-card, a.project-card { cursor: pointer; }
.project-row.is-short .project-card { flex: 0 0 auto; width: calc(var(--row-height, 380px) * var(--ratio)); max-width: 100%; }
.project-grid.is-settled .project-card { animation: none; }
@keyframes project-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.project-media {
  position: relative;
  display: block;
  aspect-ratio: var(--ratio);
  overflow: hidden;
  border: 1px solid #ffffff1c;
  border-radius: 12px;
  background: #0d0d0d;
  transition: border-color .3s;
}
.project-card:hover .project-media { border-color: #ffffff4a; }
.project-media img, .project-media video { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.22,1,.36,1); }
button.project-card:hover .project-media img, a.project-card:hover .project-media img,
button.project-card:hover .project-media video { transform: scale(1.04); }
.project-frame { position: absolute; inset: 14px; display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center; }
.project-card:hover .frame-corner { width: 34px; height: 34px; border-color: #b0b0b0a0; }
.project-shape { color: #8f8f8f; font-size: clamp(1.4rem, 2.6vw, 2.2rem); font-weight: 650; letter-spacing: -.04em; line-height: 1; }
.project-shape-label { color: #838383; font: 400 .58rem/1.5 ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; }
.project-play {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 12px;
  border: 1px solid #ffffff33;
  border-radius: 99px;
  background: #070707d1;
  font-size: .68rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .25s, transform .3s;
}
.project-card:hover .project-play, .project-card:focus-visible .project-play { opacity: 1; transform: none; }
@media (hover: none) { .project-play { opacity: 1; transform: none; } }
.project-caption { display: grid; gap: 3px; min-width: 0; }
.project-title, .project-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-title { font-size: .98rem; font-weight: 600; letter-spacing: -.02em; }
.project-meta { color: var(--muted); font-size: .78rem; }

.project-card.is-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(20px, 3.6vw, 48px);
  width: 100%;
  animation-delay: var(--enter-delay, 0s);
}
.is-featured .project-media { width: min(100%, calc(76vh * var(--ratio))); border-radius: 16px; }
.is-featured .project-caption { gap: 12px; padding-bottom: 6px; }
.is-featured .project-title { font-size: clamp(1.9rem, 3.6vw, 3.3rem); font-weight: 680; line-height: 1; letter-spacing: -.05em; white-space: normal; }
.is-featured .project-meta { font-size: .95rem; white-space: normal; }
.is-featured .project-shape { font-size: clamp(2rem, 4.4vw, 3.6rem); }

/* The player a project opens in. */
.lightbox { width: 100vw; max-width: none; height: 100dvh; max-height: none; padding: 0; border: 0; background: transparent; color: var(--text); }
.lightbox[open] { display: grid; place-items: center; animation: lightbox-in .35s cubic-bezier(.22,1,.36,1); }
.lightbox::backdrop { background: #040404eb; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
@keyframes lightbox-in {
  from { opacity: 0; transform: scale(.97); }
  to { opacity: 1; transform: scale(1); }
}
.lightbox-inner { display: grid; gap: 12px; }
.lightbox-frame { --ratio: 1.7778; width: min(92vw, calc((100dvh - 140px) * var(--ratio))); aspect-ratio: var(--ratio); overflow: hidden; border-radius: 12px; background: #000000; }
.lightbox-frame iframe, .lightbox-frame video { display: block; width: 100%; height: 100%; border: 0; }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lightbox-title { min-width: 0; overflow: hidden; color: var(--muted); font-size: .88rem; text-overflow: ellipsis; white-space: nowrap; }
.lightbox-close { flex: none; min-height: 38px; padding: 8px 16px; border: 1px solid #ffffff44; border-radius: 99px; background: transparent; color: var(--text); font-size: .8rem; font-weight: 600; cursor: pointer; transition: background .2s, color .2s; }
.lightbox-close:hover { background: var(--text); color: var(--bg); }

@media (max-width: 760px) {
  .project-row { gap: 10px; }
  .project-card.is-featured { grid-template-columns: 1fr; }
  .project-title { font-size: .9rem; }
}

/* Framework.
   Stages run top to bottom: a numbered marker, the stage name, then its steps as
   cards. The rail joins the markers and fills to the stage being read; the dashed
   bracket to its left returns from the last stage to the first. Details sit in a
   panel beside the cards, or under the active stage on narrow screens. */
.framework {
  --fw-marker: 44px;
  --fw-indent: 26px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 370px);
  align-items: start;
  gap: clamp(20px, 3vw, 40px);
  margin: 0;
  padding: clamp(22px, 3.6vw, 44px);
  border: 1px solid #ffffff1f;
  border-radius: 22px;
  background: radial-gradient(110% 70% at 0% 0%, #161616, transparent 62%), #0b0b0b;
}
.framework-track { position: relative; display: grid; gap: clamp(24px, 3vw, 34px); padding-left: var(--fw-indent); }
.framework-stage { display: grid; grid-template-columns: var(--fw-marker) minmax(0, 1fr); gap: 12px 18px; }
.framework-stage-head { display: contents; }
.framework-marker {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  display: grid;
  place-items: center;
  width: var(--fw-marker);
  height: var(--fw-marker);
  border: 1px solid #3a3a3a;
  border-radius: 50%;
  background: #0b0b0b;
  color: var(--muted);
  font: 500 .72rem/1 ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: .06em;
  transition: background .4s, color .4s, border-color .4s, box-shadow .4s;
}
.framework-stage.is-past .framework-marker { border-color: #8c8c8c; color: var(--text); }
.framework-stage.is-active .framework-marker { border-color: var(--text); background: var(--text); color: var(--bg); box-shadow: 0 0 0 6px #ffffff12; }
.framework-stage-titles { grid-column: 2; grid-row: 1; align-self: center; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; min-width: 0; }
.framework-stage-name { font-size: clamp(1.3rem, 2.1vw, 1.7rem); font-weight: 650; letter-spacing: -.04em; line-height: 1.1; }
.framework-stage-summary { color: var(--muted); font-size: .86rem; line-height: 1.4; }
.framework-steps { --cols: 3; grid-column: 2; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 12px; }
.framework-steps[data-count="2"] { --cols: 2; }
.framework-steps[data-count="1"] { --cols: 1; }
.framework-step {
  position: relative;
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 112px;
  padding: 15px 16px 16px;
  border: 1px solid #ffffff1c;
  border-radius: 12px;
  background: #101010;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .25s, background .25s, box-shadow .3s, transform .3s;
}
.framework-steps[data-count="1"] .framework-step { min-height: 0; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; gap: 4px 14px; }
.framework-steps[data-count="1"] .framework-step-card { grid-column: 2; }
.framework-steps[data-count="1"] .framework-step-timing { grid-column: 3; grid-row: 1; margin: 0; }
.framework-step-number { color: #8a8a8a; font: 500 .64rem/1.4 ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: .1em; }
.framework-step-title { font-size: 1rem; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
.framework-step-card { color: var(--muted); font-size: .8rem; line-height: 1.45; }
.framework-step-timing { justify-self: start; margin-top: 4px; padding: 3px 9px; border: 1px solid #ffffff24; border-radius: 99px; color: #cfcfcf; font-size: .66rem; white-space: nowrap; }
.framework-step:hover { border-color: #ffffff55; transform: translateY(-2px); }
.framework-step[aria-pressed="true"] { border-color: #d4d4d4; background: #1a1a1a; box-shadow: 0 12px 30px #00000066, inset 0 1px 0 #ffffff14; }
.framework-step[aria-pressed="true"] .framework-step-number { color: var(--text); }

.framework-rail {
  position: absolute;
  top: var(--rail-top, 22px);
  left: calc(var(--fw-indent) + var(--fw-marker) / 2 - .5px);
  width: 1px;
  height: var(--rail-height, 0px);
  background: #2e2e2e;
}
.framework-rail-fill { position: absolute; inset: 0 0 auto; height: var(--rail-fill, 0px); background: linear-gradient(#f1f1f1, #9d9d9d); transition: height .6s cubic-bezier(.22,1,.36,1); }
.framework-return {
  position: absolute;
  top: var(--rail-top, 22px);
  left: 2px;
  width: calc(var(--fw-indent) - 4px);
  height: var(--rail-height, 0px);
  border: 1px dashed #4d4d4d;
  border-right: 0;
  border-radius: 14px 0 0 14px;
}
.framework-return::after { content: ""; position: absolute; top: -4.5px; right: -2px; border: 4px solid transparent; border-left-color: #8a8a8a; }

.framework-detail {
  position: sticky;
  top: calc(var(--header) + 34px);
  display: grid;
  gap: 14px;
  padding: clamp(20px, 2.4vw, 28px);
  border: 1px solid #ffffff26;
  border-radius: 16px;
  background: linear-gradient(160deg, #191919, #0e0e0e 70%);
  box-shadow: 0 24px 60px #0000005e, inset 0 1px 0 #ffffff12;
}
.framework-detail-title { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 660; line-height: 1.05; letter-spacing: -.045em; }
.framework-detail-copy { color: #c9c9c9; font-size: .93rem; line-height: 1.65; }
.framework-detail-facts { display: grid; gap: 10px; margin: 0; padding-top: 14px; border-top: 1px solid #ffffff14; }
.framework-detail-facts div { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 12px; }
.framework-detail-facts dt { padding-top: 2px; color: var(--muted); font: 500 .62rem/1.5 ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; }
.framework-detail-facts dd { margin: 0; font-size: .88rem; line-height: 1.5; }
.framework-detail-nav { display: flex; align-items: center; justify-content: space-between; padding-top: 4px; }
.framework-detail-nav button { width: 38px; height: 38px; border: 1px solid #ffffff2e; border-radius: 50%; background: transparent; color: var(--text); font-size: 1rem; cursor: pointer; transition: background .2s, color .2s, opacity .2s; }
.framework-detail-nav button:hover:not(:disabled) { background: var(--text); color: var(--bg); }
.framework-detail-nav button:disabled { opacity: .3; cursor: default; }
.framework-detail-count { color: var(--muted); font: 500 .72rem ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: .1em; }
.framework-detail.is-changing > * { animation: panel-rise .45s cubic-bezier(.22,1,.36,1) both; }
.framework-detail.is-changing > :nth-child(2) { animation-delay: .03s; }
.framework-detail.is-changing > :nth-child(3) { animation-delay: .06s; }
.framework-detail.is-changing > :nth-child(4) { animation-delay: .09s; }
.framework-loop { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px dashed #ffffff1f; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.framework-loop-icon { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border: 1px solid #ffffff2a; border-radius: 50%; color: var(--text); font-size: .95rem; }

/* Stages rise in one after another the first time the framework scrolls into view. */
.framework.reveal-ready .framework-stage, .framework.reveal-ready .framework-detail { opacity: 0; transform: translateY(14px); }
.framework.reveal-ready.is-visible .framework-stage, .framework.reveal-ready.is-visible .framework-detail {
  opacity: 1;
  transform: none;
  transition: opacity .8s cubic-bezier(.22,1,.36,1) var(--stagger, 0s), transform .8s cubic-bezier(.22,1,.36,1) var(--stagger, 0s);
}
.framework-stage:nth-of-type(2) { --stagger: .09s; }
.framework-stage:nth-of-type(3) { --stagger: .18s; }
.framework-stage:nth-of-type(4) { --stagger: .27s; }
.framework-stage:nth-of-type(5) { --stagger: .36s; }
.framework > .framework-detail { --stagger: .3s; }

@media (max-width: 900px) {
  .framework { grid-template-columns: 1fr; }
  .framework-stage > .framework-detail { grid-column: 2; position: static; margin-top: 4px; }
}
@media (max-width: 620px) {
  .framework { --fw-marker: 36px; --fw-indent: 16px; padding: 22px 16px; border-radius: 18px; }
  .framework-stage { column-gap: 12px; }
  .framework-steps { --cols: 1; gap: 8px; }
  .framework-steps[data-count="2"] { --cols: 1; }
  .framework-step { min-height: 0; }
  .framework-steps[data-count="1"] .framework-step { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .framework-steps[data-count="1"] .framework-step-card,
  .framework-steps[data-count="1"] .framework-step-timing { grid-column: 1; grid-row: auto; }
  .framework-steps[data-count="1"] .framework-step-timing { margin-top: 4px; }
  .framework-stage > .framework-detail { grid-column: 1 / -1; }
}

/* Process tabs list what each stage delivers. */
.check-list strong { color: var(--text); font-weight: 600; }
.check-list-timing { display: inline-block; margin-left: 8px; padding: 1px 8px; border: 1px solid #ffffff24; border-radius: 99px; color: #cfcfcf; font-size: .7rem; white-space: nowrap; }

/* Availability: a status light on the Inquire button, a short line on the
   homepage and contact page, and the full card on the Inquire page. */
.availability-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #86dba0; box-shadow: 0 0 0 3px #86dba026; animation: availability-pulse 2.6s ease-in-out infinite; }
.availability-dot.is-full, .is-full > .availability-dot { background: #e2b35b; box-shadow: 0 0 0 3px #e2b35b26; animation: none; }
@keyframes availability-pulse { 50% { box-shadow: 0 0 0 6px #86dba000; } }
.header-contact .availability-dot { display: none; }
.header-contact.is-open .availability-dot, .header-contact.is-full .availability-dot { display: block; }
.availability-inline { display: inline-flex; align-items: center; gap: 9px; min-height: 32px; padding: 6px 13px; border: 1px solid #ffffff26; border-radius: 99px; background: #0a0a0acc; color: #dcdcdc; transition: border-color .2s, background .2s; }
.availability-inline:hover { border-color: #ffffff5c; background: #161616; }

.availability-card {
  display: grid;
  align-content: start;
  gap: 20px;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid #ffffff24;
  border-radius: 22px;
  background: radial-gradient(90% 70% at 100% 0%, #1d1d1d, transparent 62%), #0d0d0d;
  animation: enter-soft .9s calc(.24s + var(--enter-delay, 0s)) both;
}
.availability-label { display: flex; align-items: center; gap: 10px; }
.availability-headline { font-size: clamp(2.3rem, 5vw, 4.3rem); font-weight: 680; line-height: .95; letter-spacing: -.055em; }
.slot-row { display: flex; flex-wrap: wrap; gap: 10px; }
.slot { width: clamp(34px, 4.4vw, 46px); aspect-ratio: 1; border: 1px dashed #ffffff42; border-radius: 12px; animation: slot-in .6s cubic-bezier(.22,1,.36,1) calc(.4s + var(--i, 0) * 60ms + var(--enter-delay, 0s)) both; }
.slot.is-taken { border-style: solid; border-color: #d9d9d9; background: linear-gradient(145deg, #ececec, #a4a4a4); }
@keyframes slot-in { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
.availability-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin: 0; padding-top: 20px; border-top: 1px solid #ffffff14; }
.availability-stats dt, .detail-list dt { color: var(--muted); font: 500 .64rem/1.5 ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; }
.availability-stats dd { margin: 6px 0 0; font-size: 1.12rem; font-weight: 600; letter-spacing: -.02em; }
.availability-note { color: #cfcfcf; font-size: .98rem; line-height: 1.6; }
.availability-updated { color: var(--muted); font-size: .76rem; }
.detail-list { display: grid; margin: 0; }
.detail-list > div { display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: baseline; gap: 14px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.detail-list > div:first-child { padding-top: 0; }
.detail-list dd { margin: 0; font-size: 1.04rem; overflow-wrap: anywhere; }
.detail-list a { text-decoration-color: #ffffff55; text-underline-offset: 5px; }
.detail-list a:hover { text-decoration-line: underline; }

@media (max-width: 440px) {
  .detail-list > div { grid-template-columns: 1fr; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .availability-dot { animation: none; }
}

/* The Contact button shows how many slots are open. */
.badge-slots { margin-left: 2px; padding: 2px 7px; border-radius: 99px; background: #ffffff14; color: var(--muted); font-size: 11px; font-weight: 600; transition: background .2s, color .2s; }
.header-contact:hover .badge-slots, .header-contact[aria-current="page"] .badge-slots { background: #0000001a; color: inherit; }

/* Homepage availability preview: the first thing under the hero. */
.home-availability {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px clamp(20px, 3vw, 40px);
  margin-bottom: clamp(64px, 9vw, 120px);
  padding: clamp(20px, 3vw, 30px) clamp(20px, 3.4vw, 36px);
  border: 1px solid #ffffff24;
  border-radius: 20px;
  background: radial-gradient(70% 140% at 0% 0%, #1b1b1b, transparent 65%), #0c0c0c;
  transition: border-color .3s;
}
.home-availability:hover { border-color: #ffffff4d; }
.home-availability-copy { display: grid; gap: 8px; min-width: 0; }
.home-availability .availability-label { color: #b8e8c6; }
.home-availability.is-full .availability-label { color: #ecd09a; }
.home-availability-headline { font-size: clamp(1.6rem, 3.4vw, 2.6rem); font-weight: 680; line-height: 1; letter-spacing: -.05em; }
.home-availability-sub { color: var(--muted); font-size: .9rem; }
.home-availability .slot { width: clamp(26px, 3vw, 36px); border-radius: 9px; }
.home-availability-cta { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 11px 20px; border-radius: 99px; background: var(--text); color: var(--bg); font-size: .86rem; font-weight: 650; white-space: nowrap; transition: background .2s; }
.home-availability-cta span { display: inline-block; transition: transform .25s; }
.home-availability:hover .home-availability-cta { background: var(--accent); }
.home-availability:hover .home-availability-cta span { transform: translate(2px, -2px); }

/* Contact page: availability sits above the direct details, beside the form. */
.availability-card.is-compact { gap: 14px; margin-top: 30px; padding: clamp(20px, 2.6vw, 28px); border-radius: 18px; }
.availability-card.is-compact .availability-headline { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.availability-card.is-compact .slot { width: clamp(28px, 3.2vw, 36px); border-radius: 9px; }
.availability-card.is-compact .availability-stats { padding-top: 14px; }
.contact-intro > .detail-list { margin-top: 22px; }
.contact-intro > .detail-list > div:first-child { padding-top: 17px; }

@media (max-width: 760px) {
  .home-availability { grid-template-columns: 1fr; }
  .home-availability-cta { justify-self: start; }
}
