/* Asaiah brand system. Fonts are local; licenses live in asaiah/fonts/. */
@font-face {
  font-family: 'Manrope';
  src: url('asaiah/fonts/Manrope.ttf') format('truetype');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Serif Display';
  src: url('asaiah/fonts/DMSerifDisplay-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Serif Display';
  src: url('asaiah/fonts/DMSerifDisplay-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
:root {
  --sans: 'Manrope', Arial, Helvetica, sans-serif;
  --serif: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --ink: #171717;
  --paper: #F5F1E8;
  --orange: #FF5A1F;
  --champagne: #DCC9A8;
  --header-height: 76px;
  --rule: #cfc6b6;
}

html { scroll-padding-top: calc(var(--header-height) + 14px); }
body { font-family:var(--sans); }
h1,h2,h3 { font-family:var(--serif); }
.studio-header {
  position: sticky; top:0; z-index:20; height:var(--header-height); margin-bottom:calc(-1 * var(--header-height));
  background:rgba(23,23,23,.87); color:var(--paper); border-bottom:1px solid #dcc9a847;
  backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
}
.studio-header-inner { height:100%; display:flex; align-items:center; gap:clamp(15px,3vw,52px); }
.studio-brand { display:block; flex-shrink:0; width:168px; }
.studio-brand img { display:block; width:100%; height:auto; }
.studio-nav { margin-left:auto; display:flex; align-items:center; gap:clamp(17px,2.2vw,38px); }
.studio-nav a, .header-request { display:inline-flex; align-items:center; min-height:44px; font-size:13px; font-weight:650; }
.studio-nav a:hover, .quiet-action:hover { color:var(--champagne); text-decoration:underline; text-underline-offset:.42em; }
.header-request, .solid-action { color:var(--ink); background:var(--orange); font-weight:750; border:0; }
.header-request { padding:8px 17px; }
.header-request:hover,.solid-action:hover { background:#ff8152; }
.studio-header .studio-menu, .mobile-services { display:none; }
.studio-hero {
  display:grid; position:relative; isolation:isolate; color:white; background:var(--ink);
  min-height:100vh; min-height:100svh; overflow:clip; align-items:end;
}
.hero-picture,.hero-picture img,.hero-picture video,.hero-wash { position:absolute; inset:0; width:100%; height:100%; }
.hero-picture { z-index:-2; }
.hero-picture img,.hero-picture video { object-fit:cover; object-position:60% center; }
.hero-picture video,.chapter-film video { opacity:0; pointer-events:none; }
[data-status="playing"] video,[data-status="buffering"] video { opacity:1; }
.hero-wash { z-index:-1; background:linear-gradient(90deg,#171717db,#17171775 44%,transparent 82%),linear-gradient(0deg,#15141191,transparent 65%); }
.studio-hero-inner { padding-block:calc(var(--header-height) + 44px) clamp(73px,10vh,145px); }
.hero-ink { max-width:800px; }
.hero-ink:focus-within { opacity:1; }
.studio-hero:focus-within .hero-wash { opacity:1; }
.hero-symbol { width:31px; height:31px; margin:0 0 23px; }
.hero-ink h1 { color:var(--paper); font:400 clamp(72px,7.6vw,126px)/.96 var(--serif); letter-spacing:-.045em; }
.hero-ink h1 em { color:var(--champagne); }
.hero-ink p { max-width:43ch; margin:24px 0; color:#faf6ed; font:500 clamp(16px,1.24vw,20px)/1.57 var(--sans); }
.hero-links,.solid-action,.quiet-action,.chapter-request { display:inline-flex; align-items:center; }
.hero-links { flex-wrap:wrap; gap:clamp(16px,2vw,34px); }
.solid-action { min-height:48px; padding:13px 20px; gap:26px; cursor:pointer; font-size:14px; }
.quiet-action,.chapter-request { min-height:44px; font-weight:650; font-size:14px; }
.quiet-action { border-bottom:1px solid #f5f1e89c; }
.arrow { position:relative; display:inline-block; width:13px; height:13px; flex:none; }
.arrow::before { content:""; position:absolute; right:0; top:1px; width:8px; height:8px; border:solid currentColor; border-width:1.5px 1.5px 0 0; }
.arrow::after { content:""; position:absolute; width:14px; height:1.5px; right:0; top:1px; background:currentColor; transform-origin:right center; transform:rotate(-45deg); }
.concept-credit { position:absolute; right:max(22px,4vw); bottom:18px; font:500 11px/1.4 var(--sans); color:white; text-shadow:0 1px 3px #000,0 0 8px #000; }
.section-label { margin-bottom:17px; font:750 11px/1.5 var(--sans); letter-spacing:.13em; text-transform:uppercase; color:#804323; }
.directory,.why { display:grid; grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr); gap:clamp(45px,8vw,145px); }
.directory h2,.why h2,.work-samples h2,.enquiry h2 { font-size:clamp(46px,5.2vw,83px); }
.directory-intro>p:last-child,.work-intro,.enquiry-copy>p:not(.section-label) { max-width:35ch; margin-top:21px; color:#584f42; }
.directory-list { border-top:1px solid var(--rule); }
.directory-list .directory-detail { display:grid; grid-template-columns:106px 1fr 16px; gap:20px; align-items:center; padding:12px 0; min-height:86px; border-bottom:1px solid var(--rule); }
.directory-list img { width:106px; height:65px; object-fit:cover; }
.directory-list strong { display:block; font:400 clamp(20px,1.75vw,29px)/1.15 var(--serif); }
.directory-list small { display:block; margin-top:6px; color:#665f54; font-size:13px; line-height:1.5; }
.directory-list .directory-detail:hover strong,.chapter-request:hover { color:#a63d16; }
.directory-list .arrow { transform:rotate(90deg); color:#94401e; }
.chapter { padding-block:clamp(52px,6.5vw,100px); background:#f5f1e8; border-top:1px solid #d9d0c1; }
.chapter-reverse { background:#ebe5d9; }
.chapter-dark { background:#1d1d1a; color:var(--paper); border-color:#35332e; }
.chapter-inner { display:grid; grid-template-columns:minmax(0,1.32fr) minmax(0,.68fr); align-items:center; gap:clamp(40px,6vw,100px); }
.chapter-reverse .chapter-inner { grid-template-columns:minmax(0,.68fr) minmax(0,1.32fr); }
.chapter-reverse .chapter-copy { grid-column:1; grid-row:1; }
.chapter-reverse .chapter-film { grid-column:2; }
.chapter-film { position:relative; margin:0; min-width:0; aspect-ratio:16 / 10; overflow:hidden; background:#262420; }
.chapter-film>img,.chapter-film>video { width:100%; height:100%; position:absolute; inset:0; object-fit:cover; }
.scene-caption { position:absolute; left:18px; bottom:15px; padding:5px 10px; color:#fffaf0; background:#171717d9; font:550 11px/1.4 var(--sans); letter-spacing:.04em; opacity:var(--copy-opacity,1); }
[data-status="complete"] .scene-caption,[data-status="unavailable"] .scene-caption,[data-static] .scene-caption { display:none; }
.chapter-copy h2 { font-size:clamp(37px,3.65vw,62px); }
.chapter-copy>p:not(.section-label) { margin-top:18px; max-width:47ch; line-height:1.68; color:#5b5449; }
.chapter-dark .section-label { color:var(--champagne); }
.chapter-dark .chapter-copy>p:not(.section-label) { color:#d5cec0; }
.deliverables { display:flex; flex-wrap:wrap; gap:5px 14px; padding:0; margin:20px 0; list-style:none; }
.deliverables li { display:flex; align-items:center; gap:7px; font:600 12px/1.55 var(--sans); }
.deliverables li::before { content:""; width:4px; height:4px; background:#aa4d29; }
.chapter-dark .deliverables li::before { background:var(--orange); }
.chapter-request { gap:20px; padding:8px 0; border-bottom:1px solid currentColor; }
.chapter-dark .chapter-request:hover { color:var(--champagne); }
.work-samples { background:#e7e1d4; }
.work-intro { max-width:59ch; }
.work-tabs { display:flex; flex-wrap:wrap; margin:28px 0 22px; gap:5px; }
.work-tabs button { min-height:44px; background:transparent; color:var(--ink); padding:9px 16px; border:1px solid #afa18c; font:650 14px/1.4 var(--sans); }
.work-tabs button[aria-selected="true"] { background:var(--ink); color:var(--paper); border-color:var(--ink); }
.work-panel { max-width:940px; padding:clamp(18px,3vw,43px); background:#fbf8f1; }
.work-panel.consulting { background:#232421; }
.work-panel .strategy-board,.work-panel .dashboard-demo { box-shadow:none; }
.work-panel .device-stage { min-height:0; }
.work-panel .browser-frame { transform:none; }
.work-panel .browser-frame img { max-height:55vh; object-fit:contain; }
.why dl { margin:0; }
.why dt { border-top:1px solid var(--rule); padding-top:18px; font:400 clamp(22px,2.2vw,34px)/1.25 var(--serif); }
.why dd { margin:8px 0 20px; color:#5c554a; max-width:54ch; }
.approach { border-top:1px solid var(--rule); }
.faq-section { padding-top:clamp(55px,7vw,110px); }
.enquiry { background:#e9e2d5; }
.enquiry-inner { display:grid; grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr); gap:clamp(40px,6vw,108px); }
.enquiry-copy>img { width:166px; height:auto; margin-left:-9px; margin-bottom:24px; }
.project-form small { font-weight:400; color:#62594c; }
.project-form .solid-action { align-self:flex-start; margin:16px 0 0; }
.project-form [aria-invalid="true"] { border-color:#9a3218; }
.studio-footer { background:#171717; color:var(--paper); padding:34px 0; }
.studio-footer>.wrap { display:flex; align-items:center; justify-content:space-between; gap:25px; }
.studio-footer p,.studio-footer span { font-size:12px; color:#c5bba9; max-width:34ch; }
.studio-footer .wrap>div { display:grid; gap:6px; }
.studio-footer a:not(.studio-brand) { text-decoration:underline; text-underline-offset:3px; font-size:13px; }
@media(max-width:900px) {
  :root { --header-height:66px; }
  .studio-brand { width:141px; }
  .studio-header-inner { gap:14px; }
  .header-request { margin-left:auto; }
  .studio-header .studio-menu { display:block; border:1px solid #dcc9a866; padding:8px 12px; }
  .studio-nav { display:none; position:absolute; background:#20201e; top:100%; left:0; right:0; padding:12px max(20px,5vw) 18px; box-shadow:0 12px 24px #0003; max-height:calc(100svh - var(--header-height)); overflow:auto; }
  .studio-nav.open { display:grid; grid-template-columns:1fr 1fr; gap:0 14px; }
  .studio-nav a { border-bottom:1px solid #ffffff26; }
  .mobile-services { display:grid; grid-column:1/-1; grid-template-columns:1fr 1fr; gap:0 14px; margin-top:12px; }
  .mobile-services a { color:var(--champagne); font-size:12px; }
  .chapter-inner, .chapter-reverse .chapter-inner { gap:29px; }
  .directory,.why { gap:32px; }
}
@media(max-width:760px) {
  .directory,.why,.enquiry-inner,.chapter-inner,.chapter-reverse .chapter-inner { grid-template-columns:minmax(0,1fr); }
  .chapter-reverse .chapter-copy,.chapter-reverse .chapter-film,.chapter-copy,.chapter-film { grid-row:auto; grid-column:auto; }
  .chapter-film { aspect-ratio:16/9; }
  .chapter-copy h2 { max-width:22ch; }
  .directory h2 br,.why h2 br { display:none; }
  .directory-intro>p:last-child { max-width:45ch; }
  .studio-hero-inner { padding-bottom:clamp(62px,9svh,100px); }
  .hero-ink h1 { font-size:clamp(64px,13vw,85px); }
  .hero-picture img,.hero-picture video { object-position:69% center; }
  .hero-wash { background:linear-gradient(0deg,#151412e6,#1717179c 36%,#17171726 76%); }
  .hero-ink p { max-width:37ch; font-size:16px; }
  .hero-symbol { width:25px; height:25px; margin-bottom:14px; }
  .hero-links { gap:18px; }
  .concept-credit { font-size:10px; bottom:12px; }
  .directory-list .directory-detail { grid-template-columns:80px 1fr 13px; gap:13px; }
  .directory-list img { width:80px; height:62px; }
  .work-tabs button { font-size:12px; padding:8px 10px; }
  .chapter { padding-block:44px; }
  .section-label { margin-bottom:12px; }
  .studio-footer>.wrap { align-items:start; flex-direction:column; }
}
@media(max-width:420px) {
  .studio-header-inner { gap:9px; }
  .studio-brand { width:120px; }
  .header-request { font-size:12px; padding:8px 10px; }
  .studio-header .studio-menu { padding:7px 9px; font-size:12px; }
  .hero-links .solid-action { gap:12px; padding-inline:15px; }
  .quiet-action { font-size:13px; }
}
@media(max-height:500px) and (orientation:landscape) {
  .studio-hero-inner { padding-block:calc(var(--header-height) + 18px) 23px; }
  .hero-symbol,.concept-credit { display:none; }
  .hero-ink h1 { font-size:43px; }
  .hero-ink p { margin:10px 0; font-size:14px; }
}
@media(prefers-reduced-motion:reduce) {
  .studio-hero video,.chapter-film video,.scene-caption { display:none; }
  .hero-ink,.hero-wash { opacity:1; }
}

/* Skip actions sit outside the fading film titles. */
.scene-skip {
  display:none; position:absolute; z-index:2; align-items:center; gap:10px;
  min-height:44px; padding:9px 15px; background:#24221ff2; color:#f5f1e8;
  border:1px solid #e0d4be9c; border-radius:2px; font:650 13px/1.3 var(--sans);
  text-decoration:none; cursor:pointer;
}
[data-scene]:is([data-status="loading"],[data-status="playing"],[data-status="buffering"],[data-status="paused"]):not([data-static]) > .scene-skip { display:inline-flex; }
.scene-skip:hover,.scene-skip:focus-visible { background:#f5f1e8; color:#171717; }
.intro-skip { top:calc(var(--header-height) + 18px); right:max(20px,4vw); }
.chapter-skip { right:12px; bottom:12px; }
[data-status="skipped"] .scene-caption { display:none; }
.faq-list a { text-decoration:underline; text-underline-offset:3px; }
.faq-list p { overflow-wrap:anywhere; }
.studio-footer .footer-inner { display:grid; grid-template-columns:minmax(160px,.8fr) minmax(300px,1.35fr) minmax(200px,.85fr); align-items:start; gap:clamp(25px,5vw,80px); }
.footer-identity p { margin-top:9px; }
.studio-footer nav h2 { margin:0 0 9px; color:var(--champagne); font:650 13px/1.5 var(--sans); }
.studio-footer nav a { display:inline-flex; min-height:38px; align-items:center; overflow-wrap:anywhere; }
.studio-footer .footer-services a,.studio-footer .footer-contact a { text-decoration:none; }
.studio-footer nav a:hover,.studio-footer nav a:focus-visible { color:var(--champagne); text-decoration:underline; }
.footer-services div { display:grid; grid-template-columns:1fr 1fr; column-gap:20px; }
.footer-contact { display:grid; justify-items:start; }
.studio-footer .footer-base { display:flex; flex-direction:row; align-items:center; justify-content:space-between; gap:20px; border-top:1px solid #4c4943; margin-top:25px; padding-top:18px; }
@media(max-width:900px) {
  .studio-footer .footer-inner { grid-template-columns:1fr 1.45fr; }
  .footer-identity { grid-row:1 / 3; }
}
@media(max-width:600px) {
  .studio-footer .footer-inner { grid-template-columns:1fr; gap:24px; }
  .footer-identity { grid-row:auto; }
  .studio-footer nav a { min-height:44px; }
  .studio-footer .footer-base { flex-wrap:wrap; }
  .intro-skip { top:calc(var(--header-height) + 12px); }
}
/* Keep the tracked screen inside a taller desktop window's cover crop. */
@media (min-aspect-ratio:9/8) and (max-aspect-ratio:16/9) {
  .hero-picture img,.hero-picture video { object-position:88% center; }
}
@media (max-aspect-ratio:9/8) {
  .hero-picture img,.hero-picture video { object-position:center; }
}
@media(prefers-reduced-motion:reduce) {
  [data-scene] > .scene-skip { display:none !important; }
}

/* Service scroll reveals */
@media screen and (prefers-reduced-motion: no-preference) {
  [data-scroll-motion] .motion-word {
    display: inline-block;
    --rise: clamp(0, calc(1.48 * var(--entry, 1) - var(--word-lag)), 1);
    transform: translateY(calc((1 - var(--rise)) * .53em));
    opacity: calc(.58 + .42 * var(--rise));
  }
  [data-scroll-motion] .chapter-copy > h2 + p {
    transform: translateY(calc((1 - var(--entry, 1)) * 12px));
  }
  [data-scroll-motion] .directory-list .directory-detail > span {
    transform: translateX(calc((1 - var(--entry, 1)) * -12px));
  }
  [data-scroll-motion] .chapter-copy:focus-within .motion-word,
  [data-scroll-motion] .chapter-copy:focus-within > h2 + p,
  [data-scroll-motion] .directory-list .directory-detail:focus-visible > span {
    transform: none;
    opacity: 1;
  }
}
