:root {
  --ground: #F1F1EE;
  --paper: #FAFAF8;
  --ink: #141414;
  --ink-soft: #5A5B57;
  --line: #D6D6D0;
  --accent: #23463A;
  --display: "Tenor Sans", "Optima", "Gill Sans", "Helvetica Neue", Arial, sans-serif;
  --body: "Jost", "Futura", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-weight: 300; font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 48px); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -.01em; text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.label { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; font-weight: 400; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

nav { position: sticky; top: 0; z-index: 5; background: rgba(241,241,238,.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.mark { font-family: var(--display); font-size: 17px; font-weight: 400; letter-spacing: .3em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.menu { display: flex; gap: clamp(14px, 3vw, 36px); flex-wrap: wrap; }
.menu a { text-decoration: none; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 400; padding-bottom: 2px; border-bottom: 1px solid transparent; }
.menu a:hover { border-color: var(--ink); }

.frame { overflow: hidden; background: var(--line); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.portrait { aspect-ratio: 4 / 5; }
.tall { aspect-ratio: 3 / 4; }
.wide { aspect-ratio: 16 / 9; }

.hero { padding-block: clamp(48px, 9vw, 110px) clamp(48px, 7vw, 90px); }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: end; }
.hero-text { min-width: 0; display: grid; gap: 28px; }
.hero h1 { font-size: clamp(40px, 7vw, 92px); line-height: 1.04; letter-spacing: -.015em; font-weight: 400; }
h1 em, h2 em { font-style: normal; color: var(--accent); }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-soft); max-width: 40ch; }
.ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-block; text-decoration: none; padding: 15px 26px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 400; border: 1px solid var(--ink); transition: background .25s, color .25s, border-color .25s; }
.btn.solid { background: var(--ink); color: var(--paper); }
.btn.solid:hover { background: var(--accent); border-color: var(--accent); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.meta { display: flex; gap: 10px 28px; flex-wrap: wrap; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 18px; }

section { padding-block: clamp(56px, 8vw, 104px); }
.head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--ink); padding-bottom: 16px; margin-bottom: clamp(32px, 5vw, 56px); }
.head h2 { font-size: clamp(34px, 5vw, 60px); line-height: 1; }
.head p { color: var(--ink-soft); max-width: 46ch; }

.work { background: var(--paper); }
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 5vw, 64px) clamp(24px, 4vw, 48px); }
.case { display: grid; gap: 16px; align-content: start; text-decoration: none; min-width: 0; }
.case .frame { aspect-ratio: 16 / 9; background: var(--ground); }
.case .frame img, .cs .frame.wide img { object-fit: contain; }
.cs .frame.wide { background: var(--ground); }
.cs .frame.film { position: relative; background: var(--ink); }
.cs .frame.film video { display: block; width: 100%; height: 100%; object-fit: cover; }
.cs .frame.film img.film-logo { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 22%; min-width: 90px; max-width: 240px; height: auto; object-fit: unset; filter: drop-shadow(0 4px 14px rgba(20,20,20,.35)); }
.type-hero { display: grid; place-items: center; text-align: center; color: var(--paper); padding: clamp(20px, 4vw, 48px); background: radial-gradient(120% 90% at 50% 100%, #2B5443 0%, #17362B 55%, #0E231B 100%); }
.type-hero-in { display: grid; gap: clamp(10px, 2vw, 18px); justify-items: center; }
.type-hero .label { color: rgba(250,250,248,.72); }
.type-line { font-family: var(--display); font-size: clamp(26px, 4.6vw, 64px); line-height: 1.08; text-wrap: balance; max-width: 16ch; }
.type-sub { color: rgba(250,250,248,.75); font-size: clamp(14px, 1.4vw, 18px); letter-spacing: .04em; }
.case .type-hero .type-line { font-size: clamp(22px, 3.2vw, 40px); }
.case.feature { grid-column: 1 / -1; }
.case.feature .type-hero .type-line { font-size: clamp(26px, 4.6vw, 64px); }
.case .type-hero { transition: opacity .4s; }
.case:hover .type-hero { opacity: .92; }
.deck .ctas { gap: 12px; }
.deck .pending { color: var(--ink-soft); font-size: 15px; }
.film-caption { position: absolute; inset: auto 0 0; margin: 0; padding: clamp(18px, 4vw, 40px) clamp(16px, 4vw, 48px); text-align: center; color: var(--paper); font-family: var(--display); font-size: clamp(18px, 2.6vw, 34px); line-height: 1.2; text-wrap: balance; background: linear-gradient(to top, rgba(20,20,20,.55), rgba(20,20,20,0)); }
.case .frame img { transition: opacity .4s; }
.case:hover .frame img { opacity: .88; }
.case-top { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-soft); }
.case h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; }
.case p { color: var(--ink-soft); max-width: 48ch; }
.more { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 400; color: var(--accent); }
.case:hover .more { text-decoration: underline; text-underline-offset: 4px; }

.about-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 6vw, 88px); align-items: start; }
.about-grid > * { min-width: 0; }
.about .label { margin-bottom: 16px; }
.about h2 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.05; margin-bottom: 24px; }

.contact { background: var(--accent); color: var(--paper); }
.contact .head { border-color: rgba(250,250,248,.5); }
.contact .head p { color: rgba(250,250,248,.75); }
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; }
.contact-grid > * { min-width: 0; }

footer { background: var(--ink); color: rgba(250,250,248,.7); font-size: 13px; }
footer .wrap { padding-block: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Case study pages */
.cs-head { padding-block: clamp(40px, 7vw, 88px) clamp(32px, 5vw, 56px); }
.cs-head .wrap { display: grid; gap: 22px; }
.back { text-decoration: none; color: var(--ink-soft); }
.back:hover { color: var(--ink); }
.cs-head h1 { font-size: clamp(38px, 6.4vw, 84px); line-height: 1; letter-spacing: -.015em; max-width: 18ch; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; border-top: 1px solid var(--ink); margin-top: 8px; }
.facts div { display: grid; gap: 4px; padding-top: 14px; min-width: 0; }
.facts .label { color: var(--ink-soft); }
.cs-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 5vw, 64px) clamp(28px, 5vw, 72px); }
.block { min-width: 0; display: grid; gap: 16px; align-content: start; }
.block h2 { font-size: clamp(26px, 3vw, 36px); border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.block ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.block li { padding-left: 22px; position: relative; }
.block li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; background: var(--accent); transform: rotate(45deg); }
.block li a { color: var(--accent); }
.deck { background: var(--paper); padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); }
.deck h2 { border: 0; padding: 0; }
.deck p { color: var(--ink-soft); }
.deck .btn { justify-self: start; }
.next { display: grid; gap: 6px; text-decoration: none; border-top: 1px solid var(--ink); padding-block: 28px clamp(56px, 8vw, 96px); }
.next .label { color: var(--ink-soft); }
.next-title { font-family: var(--display); font-size: clamp(32px, 5vw, 60px); line-height: 1; }
.next:hover .next-title { color: var(--accent); }

/* Services */
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.service { display: grid; gap: 14px; align-content: start; padding: 28px 24px 28px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.service + .service { padding-left: 24px; border-left: 1px solid var(--line); }
.service h3 { font-size: clamp(22px, 2vw, 27px); line-height: 1.15; }
.service p { color: var(--ink-soft); font-size: 16px; }
.service .more { text-decoration: none; }
.service .more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* About story */
.about { background: var(--paper); }
.about-lead { position: sticky; top: 96px; display: grid; gap: 22px; align-content: start; }
.about .about-lead .label { margin-bottom: 0; }
.about .about-lead h2 { margin-bottom: 0; }
.about-text { display: grid; gap: 22px; }
.intro { font-size: clamp(18px, 1.6vw, 21px); max-width: 52ch; }
.story { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.story li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.story .num { font-family: var(--display); color: var(--accent); font-size: 15px; font-weight: 400; letter-spacing: .12em; padding-top: 6px; line-height: 1.2; }
.story h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; margin-bottom: 8px; }
.story p { color: var(--ink-soft); max-width: 58ch; }
.creds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 12px; }
.creds > div { min-width: 0; display: grid; gap: 12px; align-content: start; }
.creds .label { color: var(--ink-soft); }
.creds ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.creds li { display: grid; gap: 2px; }
.creds b { font-weight: 500; }
.creds span { color: var(--ink-soft); font-size: 15px; }

/* Contact and inquiry form */
.contact-side { display: grid; gap: 18px; align-content: start; }
.contact-side div { display: grid; gap: 4px; border-top: 1px solid rgba(250,250,248,.35); padding-top: 12px; }
.contact-side .label { color: rgba(250,250,248,.7); }
.email-sm { font-family: var(--display); font-size: clamp(22px, 2.4vw, 30px); overflow-wrap: anywhere; text-decoration: none; }
.email-sm:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.contact .contact-grid { grid-template-columns: 1fr 1.6fr; align-items: start; gap: clamp(32px, 5vw, 72px); }
.inquiry { min-width: 0; }
.inquiry-form { display: grid; gap: 22px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field-label { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 400; color: rgba(250,250,248,.8); }
.req { color: rgba(250,250,248,.8); }
.inquiry input:not([type=checkbox]):not([type=radio]), .inquiry select, .inquiry textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--paper); background: transparent;
  border: 0; border-bottom: 1px solid rgba(250,250,248,.5); border-radius: 0; padding: 10px 0; -webkit-appearance: none; appearance: none; }
.inquiry textarea { border: 1px solid rgba(250,250,248,.5); padding: 12px 14px; resize: vertical; min-height: 140px; }
.inquiry select { background-image: linear-gradient(45deg, transparent 50%, var(--paper) 50%), linear-gradient(135deg, var(--paper) 50%, transparent 50%); background-position: calc(100% - 14px) 55%, calc(100% - 9px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 28px; }
.inquiry select option { color: var(--ink); background: var(--paper); }
.inquiry input::placeholder, .inquiry textarea::placeholder { color: rgba(250,250,248,.5); }
.inquiry input:focus, .inquiry select:focus, .inquiry textarea:focus { outline: none; border-color: var(--paper); box-shadow: 0 1px 0 0 var(--paper); }
.inquiry textarea:focus { box-shadow: none; outline: 1px solid var(--paper); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #F2B8A8; }
.field-error { margin: 0; min-height: 0; font-size: 14px; color: #F7CDBF; }
.field-error:empty { display: none; }
.choices { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.choice { display: flex; gap: 8px; align-items: center; }
.form-error { color: #F7CDBF; margin: 0; }
.form-error:empty { display: none; }
.form-note { color: rgba(250,250,248,.8); }
.btn.light { border-color: var(--paper); background: var(--paper); color: var(--accent); justify-self: start; cursor: pointer; font-family: var(--body); }
.btn.light:hover { background: transparent; color: var(--paper); }
.btn.light:disabled { opacity: .6; cursor: progress; }
.thanks { display: grid; gap: 10px; border-top: 1px solid rgba(250,250,248,.5); padding-top: 20px; outline: none; }
.thanks-title { font-family: var(--display); font-size: clamp(28px, 3.4vw, 40px); }

/* Call-to-action band */
.band { background: var(--accent); color: var(--paper); padding-block: clamp(48px, 7vw, 88px); }
.band-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.band h2 { font-size: clamp(30px, 4.4vw, 54px); line-height: 1.05; }

@media (max-width: 1000px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 820px) {
  .about-lead { position: static; }
  .contact .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .service-grid, .fields, .creds { grid-template-columns: 1fr; }
  .service, .service + .service { padding: 22px 0; border-left: 0; }
  .story li { grid-template-columns: 40px minmax(0, 1fr); }
}

@media (max-width: 820px) {
  .hero-grid, .about-grid, .contact-grid, .cs-body { grid-template-columns: 1fr; }
  .hero-grid .portrait { max-width: 420px; }
  .cases { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .facts div { padding-block: 12px; border-bottom: 1px solid var(--line); }
}
@media (max-width: 520px) {
  nav .wrap { flex-direction: column; align-items: flex-start; gap: 10px; padding-block: 14px; }
  .menu { gap: 16px; }
  .menu a { font-size: 11px; letter-spacing: .14em; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Recruiter path */
.hire { justify-self: start; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 400; color: var(--accent); text-underline-offset: 5px; }
.hire::after { content: " →"; }
.hire:hover { color: var(--ink); }
.role { display: grid; gap: 6px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.role:last-child { border-bottom: 0; }
.role-top { display: flex; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; }
.role-top b { font-weight: 500; }
.when { color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.role .org { color: var(--ink-soft); }
.role ul { margin-top: 8px; padding-left: 22px; border-left: 1px solid var(--line); gap: 12px; }
.role ul li { padding-left: 0; }
.role ul li::before { left: -25.5px; box-shadow: 0 0 0 4px var(--ground); }
.block ul.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.block ul.tags li { padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; line-height: 1.4; transition: border-color .25s, color .25s; }
.block ul.tags li::before { display: none; }
.block ul.tags li:hover { border-color: var(--accent); color: var(--accent); }
.block .sub + ul.tags { margin-top: -4px; }
.block .gap { margin-top: 20px; }
.sub { color: var(--ink-soft); margin-top: 4px; }
.wide-block { grid-column: 1 / -1; }
.block ul.proj { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.block ul.proj li { padding: 0; }
.block ul.proj li::before { display: none; }
.proj a { display: grid; gap: 4px; padding: 18px 18px 18px 0; text-decoration: none; color: var(--ink); }
.proj li + li a { padding-left: 18px; border-left: 1px solid var(--line); }
.proj span { color: var(--ink-soft); font-size: 15px; }
.proj a:hover b { color: var(--accent); }
@media (max-width: 820px) {
  .block ul.proj { grid-template-columns: 1fr; }
  .proj li + li a { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* Film with sound (Bentley) */
.cs .frame.film.sound video { object-fit: cover; }
.sound-btn { position: absolute; right: clamp(12px, 2vw, 24px); bottom: clamp(12px, 2vw, 24px); z-index: 2; display: inline-flex; align-items: center; gap: 9px; font-family: var(--body); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 400; color: var(--paper); background: rgba(20,20,20,.55); border: 1px solid rgba(250,250,248,.6); padding: 10px 16px; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .25s; }
.sound-btn::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .7; }
.sound-btn[aria-pressed="true"]::before { background: #8FD9B0; opacity: 1; }
.sound-btn:hover { background: rgba(20,20,20,.85); }
.sound-btn:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }

/* "Coming soon" placeholder card on the Work grid */
.case.soon { cursor: default; }
.case.soon .frame { background: transparent; border: 1px dashed var(--line); display: grid; place-items: center; text-align: center; padding: clamp(20px, 4vw, 48px); }
.soon-in { display: grid; gap: 12px; justify-items: center; color: var(--ink-soft); }
.soon-mark { font-family: var(--display); font-size: clamp(20px, 2.2vw, 30px); line-height: 1.15; text-wrap: balance; max-width: 14ch; color: var(--ink); }
.case.soon .more { text-decoration: none; }
.case.soon .more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Motion: reveals (only when the script is running and motion is allowed) */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] { opacity: 0; translate: 0 22px; transition: opacity .9s ease, translate .9s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
  html.js [data-reveal].is-in { opacity: 1; translate: 0 0; }
  html.js .hero h1 .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
  html.js .hero h1 .w > span { display: inline-block; translate: 0 110%; animation: rise 1s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: var(--d, 0s); }
  @keyframes rise { to { translate: 0 0; } }
  html.js .hero .lede, html.js .hero .ctas, html.js .hero .hire, html.js .hero .meta { opacity: 0; animation: fade 1s ease forwards; }
  html.js .hero .lede { animation-delay: .55s; } html.js .hero .ctas { animation-delay: .7s; } html.js .hero .hire { animation-delay: .8s; } html.js .hero .meta { animation-delay: .9s; }
  html.js .hero .portrait { opacity: 0; translate: 0 18px; animation: lift 1.2s cubic-bezier(.2, .7, .2, 1) .3s forwards; }
  @keyframes fade { to { opacity: 1; } }
  @keyframes lift { to { opacity: 1; translate: 0 0; } }
  .cases .case:nth-child(2n) { --d: .12s; }
  .service-grid .service:nth-child(2) { --d: .1s; } .service-grid .service:nth-child(3) { --d: .2s; } .service-grid .service:nth-child(4) { --d: .3s; }
  .story li:nth-child(2) { --d: .1s; } .story li:nth-child(3) { --d: .2s; } .story li:nth-child(4) { --d: .3s; }
  .cs-body .block:nth-child(2) { --d: .1s; } .cs-body .block:nth-child(3) { --d: .2s; } .cs-body .block:nth-child(4) { --d: .3s; }
}
