/* Radiant Innovation Studio — website styles
   Identity: The Bookmark (see 04-identity-system/LOCKED-TOKENS.md) */

@font-face { font-family: "Libre Caslon Text"; src: url("/assets/fonts/LibreCaslonText-VF.ttf") format("truetype"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url("/assets/fonts/LibreCaslonText-Italic-VF.ttf") format("truetype"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/assets/fonts/Figtree-VF.ttf") format("truetype"); font-weight: 300 900; font-display: swap; }

:root {
  --cobalt: #0B3FD9; --azure: #1E7BFF; --sky: #5AA9FF; --navy: #0E1726; --cloud: #F7F9FC;
  --white: #FFFFFF; --slate: #5B6577; --haze: #DCE7FB; --mist: #E6ECF5; --paper: #FBF9F5;
  --navy-2: #16213A;
  --grad: linear-gradient(135deg, var(--cobalt) 0%, var(--azure) 100%);
  --grad-dark: linear-gradient(135deg, var(--azure) 0%, var(--sky) 100%);
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(80px, 10vw, 136px);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(14,23,38,.05), 0 12px 32px rgba(14,23,38,.07);
  --shadow-lg: 0 2px 6px rgba(14,23,38,.06), 0 30px 70px rgba(14,23,38,.14);
  --ease: cubic-bezier(.2,.7,.2,1);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.65; color: var(--navy); background: var(--cloud); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--cobalt); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--azure); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 16px; color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; position: relative; }
.section.white { background: var(--white); }
.section.paper { background: var(--paper); }
.section.dark { background: var(--navy); color: var(--cloud); }
.section.tight { padding-top: calc(var(--section) * .6); }

/* ---------- type ---------- */
.eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--cobalt); margin: 0 0 18px; display: inline-flex; align-items: center; gap: 10px; }
.dark .eyebrow { color: var(--sky); }
.display { font-family: var(--serif); font-weight: 500; font-size: clamp(2.6rem, 5.4vw, 4.9rem); line-height: 1.04; letter-spacing: -.015em; }
.h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.3rem, 4.4vw, 3.6rem); line-height: 1.08; letter-spacing: -.012em; }
.h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 3.3vw, 2.75rem); line-height: 1.12; letter-spacing: -.01em; }
.h3 { font-family: var(--sans); font-weight: 600; font-size: 1.25rem; line-height: 1.3; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--slate); max-width: 60ch; }
.dark .lead, .dark p { color: #B4BFD0; }
.muted { color: var(--slate); }
.serif-italic { font-family: var(--serif); font-style: italic; color: var(--cobalt); }
.dark .serif-italic { color: var(--sky); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
.section-head .lead, .h2 + .lead, .h1 + .lead { margin-top: 18px; }

/* ---------- devices ---------- */
.ribbon { position: absolute; top: 0; right: clamp(24px, 8vw, 132px); width: 46px; height: 168px; background: var(--grad); clip-path: polygon(0 0,100% 0,100% 100%,50% 84%,0 100%); pointer-events: none; }
.dark .ribbon { background: var(--grad-dark); }
.notch { display: inline-block; flex: none; width: 12px; height: 15px; background: var(--cobalt); clip-path: polygon(0 0,100% 0,100% 100%,50% 72%,0 100%); }
.dark .notch { background: var(--sky); }
.list-notch { list-style: none; }
.list-notch li { position: relative; padding: 10px 0 10px 28px; border-bottom: 1px solid var(--mist); color: var(--navy); }
.list-notch li::before { content: ""; position: absolute; left: 0; top: 17px; width: 11px; height: 14px; background: var(--cobalt); clip-path: polygon(0 0,100% 0,100% 100%,50% 72%,0 100%); }
.list-notch li:last-child { border-bottom: 0; }
.dark .list-notch li { color: var(--cloud); border-color: rgba(230,236,245,.12); }
.dark .list-notch li::before { background: var(--sky); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 12px; font-weight: 600; font-size: 15.5px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s; white-space: nowrap; }
.btn-primary { background: var(--cobalt); color: #fff; box-shadow: 0 8px 24px rgba(11,63,217,.24); }
.btn-primary:hover { background: #0935B8; color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(11,63,217,.3); }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.dark .btn-ghost, .btn-ghost.light { border-color: rgba(247,249,252,.6); color: var(--cloud); }
.dark .btn-ghost:hover, .btn-ghost.light:hover { background: var(--cloud); color: var(--navy); }
.btn-white { background: #fff; color: var(--cobalt); }
.btn-white:hover { background: var(--cloud); color: var(--navy); transform: translateY(-2px); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--cobalt); }
.text-link:hover { gap: 12px; color: var(--navy); }
.dark .text-link { color: var(--sky); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: rgba(247,249,252,.82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.site-header.scrolled { border-color: var(--mist); background: rgba(255,255,255,.92); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand-link { display: block; flex: none; }
.brand-link img { height: 42px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav > a:not(.btn), .nav .dd > button { font-size: 15px; font-weight: 500; color: var(--navy); text-decoration: none; padding: 10px 14px; border-radius: 10px; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.nav > a:not(.btn):hover, .nav .dd > button:hover, .nav > a[aria-current="page"] { background: var(--mist); color: var(--navy); }
.nav .btn { margin-left: 10px; min-height: 46px; padding: 0 20px; font-size: 15px; }
.dd { position: relative; }
.dd > button svg { transition: transform .25s; }
.dd.open > button svg { transform: rotate(180deg); }
.dd-panel { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px); width: 560px; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; opacity: 0; visibility: hidden; transition: opacity .2s, transform .25s var(--ease), visibility .2s; }
.dd.open .dd-panel { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dd-panel a { display: block; padding: 14px 16px; border-radius: 12px; text-decoration: none; color: var(--navy); }
.dd-panel a:hover { background: var(--cloud); }
.dd-panel a strong { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.dd-panel a span { display: block; font-size: 13.5px; color: var(--slate); margin-top: 4px; line-height: 1.45; }
.dd-panel a.featured { grid-column: span 2; background: var(--cloud); }
.dd-panel a.featured:hover { background: var(--haze); }
.tag { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--cobalt); color: #fff; border-radius: 6px; padding: 3px 7px; }
.menu-btn { display: none; width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--mist); background: #fff; align-items: center; justify-content: center; cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; position: relative; transition: transform .3s, background .3s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-nav { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(92vh, 900px); display: flex; align-items: center; overflow: hidden; background: var(--cloud); margin-top: calc(var(--header-h) * -1); padding-top: var(--header-h); }
.hero-media { position: absolute; inset: 0; }
.hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero-media video { opacity: 0; transition: opacity 1.2s ease; }
.hero-media video.playing { opacity: 1; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(247,249,252,.97) 0%, rgba(247,249,252,.9) 34%, rgba(247,249,252,.35) 58%, rgba(247,249,252,0) 76%); }
.hero .wrap { position: relative; z-index: 2; }
.hero-copy { max-width: 640px; padding: 64px 0; }
.hero-copy .lead { margin: 26px 0 36px; color: #3E4859; }
.hero .ribbon { top: var(--header-h); z-index: 3; }
.hero-foot { position: absolute; left: 0; right: 0; bottom: 28px; z-index: 2; }
.hero-foot .wrap { display: flex; gap: 28px; flex-wrap: wrap; font-size: 13.5px; color: var(--slate); font-weight: 500; }
.hero-foot span { display: inline-flex; align-items: center; gap: 10px; }

.page-hero { position: relative; padding: clamp(72px, 9vw, 120px) 0 clamp(56px, 7vw, 88px); background: var(--cloud); overflow: hidden; }
.page-hero .lead { margin-top: 22px; }
.page-hero .btn-row { margin-top: 34px; }
.page-hero.has-media .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.page-hero .media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; background: var(--mist); }
.page-hero .media img { width: 100%; height: 100%; object-fit: cover; }
.crumbs { font-size: 13.5px; color: var(--slate); margin-bottom: 26px; }
.crumbs a { color: var(--slate); text-decoration: none; } .crumbs a:hover { color: var(--cobalt); }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: clamp(18px, 2.2vw, 28px); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border-radius: var(--radius); padding: clamp(24px, 2.6vw, 34px); box-shadow: var(--shadow); position: relative; }
.dark .card { background: var(--navy-2); box-shadow: none; border: 1px solid rgba(230,236,245,.08); }
.card .h3 { margin: 18px 0 10px; }
.card p { color: var(--slate); font-size: 16px; margin: 0; }
.card .num { font-family: var(--serif); font-size: 15px; color: var(--cobalt); letter-spacing: .04em; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.split.top { align-items: start; }

.deliverables { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.deliverables .card:nth-child(1), .deliverables .card:nth-child(2) { grid-column: span 3; }
.deliverables .card:nth-child(n+3) { grid-column: span 2; }
.deliverables .card.feature { background: var(--navy); color: var(--cloud); overflow: hidden; }
.deliverables .card.feature p { color: #B4BFD0; }
.deliverables .card.feature .num { color: var(--sky); }
.deliverables .card.feature .ribbon { right: 32px; width: 34px; height: 110px; background: var(--grad-dark); }
.icon-badge { width: 52px; height: 52px; border-radius: 14px; background: var(--haze); display: flex; align-items: center; justify-content: center; }
.icon-badge svg { width: 24px; height: 24px; color: var(--cobalt); }
.feature .icon-badge { background: rgba(90,169,255,.14); } .feature .icon-badge svg { color: var(--sky); }

/* work cards */
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(20px, 2.4vw, 32px); }
.work-card { grid-column: span 6; text-decoration: none; color: var(--navy); display: block; }
.work-card.wide { grid-column: span 12; }
.work-card .thumb { border-radius: var(--radius); overflow: hidden; background: var(--mist); aspect-ratio: 16 / 9; box-shadow: var(--shadow); }
.work-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.work-card:hover .thumb img { transform: scale(1.035); }
.work-card .meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 22px 4px 0; }
.work-card h3 { font-family: var(--serif); font-size: clamp(1.4rem, 2vw, 1.75rem); line-height: 1.2; }
.work-card .sector { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--cobalt); margin-bottom: 8px; }
.work-card .scope { color: var(--slate); font-size: 15px; margin-top: 6px; }
.work-card .go { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--mist); display: flex; align-items: center; justify-content: center; transition: background .3s, border-color .3s, transform .3s var(--ease); background: #fff; }
.work-card:hover .go { background: var(--cobalt); border-color: var(--cobalt); color: #fff; transform: rotate(-45deg); }

/* process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--mist); }
.dark .steps { border-color: rgba(230,236,245,.14); }
.step { padding: 34px 28px 10px 0; position: relative; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--mist); }
.dark .step + .step { border-color: rgba(230,236,245,.14); }
.step .when { font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--cobalt); display: flex; align-items: center; gap: 10px; }
.dark .step .when { color: var(--sky); }
.step h3 { font-family: var(--serif); font-size: 1.6rem; margin: 16px 0 12px; }
.step p { font-size: 16px; color: var(--slate); }
.dark .step p { color: #B4BFD0; }

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-grid.four { grid-template-columns: repeat(4, 1fr); }
.price-grid.two { grid-template-columns: repeat(2, 1fr); max-width: 900px; margin-inline: auto; }
.price { background: #fff; border-radius: var(--radius); padding: 34px 30px 30px; box-shadow: var(--shadow); display: flex; flex-direction: column; position: relative; border: 1px solid transparent; }
.price.recommended { border-color: var(--cobalt); box-shadow: 0 2px 6px rgba(11,63,217,.08), 0 24px 60px rgba(11,63,217,.14); }
.price .badge { position: absolute; top: -13px; left: 30px; }
.price h3 { font-family: var(--serif); font-size: 1.65rem; }
.price .for { color: var(--slate); font-size: 15px; margin: 8px 0 22px; min-height: 48px; }
.price .amount { font-family: var(--serif); font-size: 2.6rem; line-height: 1; letter-spacing: -.01em; }
.price .amount small { font-family: var(--sans); font-size: 14px; color: var(--slate); font-weight: 500; letter-spacing: 0; }
.price .from { font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); margin-bottom: 6px; }
.price .timeline { font-size: 14px; color: var(--slate); margin: 12px 0 0; }
.price ul { list-style: none; margin: 24px 0 28px; flex: 1; }
.price li { position: relative; padding: 8px 0 8px 26px; font-size: 15.5px; color: var(--navy); }
.price li::before { content: ""; position: absolute; left: 0; top: 14px; width: 11px; height: 14px; background: var(--cobalt); clip-path: polygon(0 0,100% 0,100% 100%,50% 72%,0 100%); }
.price .btn { width: 100%; }
.price .legal { font-size: 12.5px; color: var(--slate); margin: 14px 0 0; line-height: 1.5; }
.price .legal a { color: var(--slate); }
.addons { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.addons th, .addons td { text-align: left; padding: 16px 22px; border-bottom: 1px solid var(--mist); font-size: 15.5px; }
.addons th { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); font-weight: 600; background: var(--cloud); }
.addons tr:last-child td { border-bottom: 0; }
.addons td:last-child, .addons th:last-child { text-align: right; white-space: nowrap; }
.price-group + .price-group { margin-top: clamp(72px, 8vw, 112px); }
.price-group .group-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 34px; flex-wrap: wrap; }

/* services teaser */
.service-card { display: flex; flex-direction: column; text-decoration: none; color: var(--navy); background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .4s; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--navy); }
.service-card .img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--mist); }
.service-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.service-card:hover .img img { transform: scale(1.04); }
.service-card .body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.service-card h3 { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 10px; }
.service-card p { color: var(--slate); font-size: 15.5px; flex: 1; }
.service-card .from { margin-top: 18px; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 15px; color: var(--cobalt); }

/* commitments */
.commit { display: flex; gap: 18px; align-items: flex-start; }
.commit .notch { width: 16px; height: 20px; margin-top: 6px; }
.commit h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 6px; }
.commit p { color: var(--slate); font-size: 15.5px; margin: 0; }
.dark .commit p { color: #B4BFD0; }

/* faq */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--mist); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 52px 24px 0; position: relative; font-family: var(--serif); font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: linear-gradient(var(--cobalt), var(--cobalt)) center / 14px 2px no-repeat, linear-gradient(var(--cobalt), var(--cobalt)) center / 2px 14px no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 52px 26px 0; color: var(--slate); }
.faq .answer p:last-child { margin: 0; }

/* cta band */
.cta-band { position: relative; overflow: hidden; background: var(--grad); color: #fff; border-radius: 28px; padding: clamp(48px, 7vw, 96px) clamp(28px, 6vw, 88px); }
.cta-band .h1 { max-width: 16ch; }
.cta-band p { color: rgba(255,255,255,.82); max-width: 52ch; margin: 20px 0 34px; font-size: 1.15rem; }
.cta-band .ribbon { background: rgba(255,255,255,.95); width: 52px; height: 190px; right: clamp(28px, 7vw, 110px); }
.cta-band .mark { position: absolute; right: -40px; bottom: -120px; height: 460px; opacity: .1; }

/* case study */
.case-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 30px 0; border-top: 1px solid var(--mist); border-bottom: 1px solid var(--mist); margin-top: 48px; }
.case-meta dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--slate); margin-bottom: 6px; }
.case-meta dd { margin: 0; font-weight: 500; }
.case-hero-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); margin-top: clamp(40px, 5vw, 64px); background: var(--mist); }
.case-hero-img img { width: 100%; }
.figure { margin: 0; }
.figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
.figure figcaption { font-size: 14px; color: var(--slate); margin-top: 14px; }
.swatches { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.swatch { width: 86px; }
.swatch i { display: block; height: 64px; border-radius: 12px; border: 1px solid rgba(14,23,38,.08); }
.swatch b { display: block; font-size: 13px; font-weight: 600; margin-top: 8px; }
.swatch span { display: block; font-size: 12px; color: var(--slate); font-variant-numeric: tabular-nums; }
.next-case { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 36px 0; border-top: 1px solid var(--mist); text-decoration: none; color: var(--navy); }
.next-case:hover { color: var(--cobalt); }
.next-case .h2 { transition: transform .4s var(--ease); }
.next-case:hover .h2 { transform: translateX(8px); }

/* forms */
.form-card { background: #fff; border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow-lg); }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.field label .req { color: var(--cobalt); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--navy); background: var(--cloud); border: 1.5px solid var(--mist); border-radius: 12px; padding: 14px 16px; transition: border-color .2s, background .2s, box-shadow .2s; }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--azure); background: #fff; box-shadow: 0 0 0 4px rgba(30,123,255,.14); }
.field .hint { font-size: 13px; color: var(--slate); margin-top: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { padding: 16px 18px; border-radius: 12px; margin-bottom: 22px; font-size: 15px; }
.form-note.ok { background: #E7F6EF; color: #145C3E; border: 1px solid #A9DCC4; }
.form-note.err { background: #FDECEB; color: #8A2620; border: 1px solid #F2B8B4; }
.contact-list { list-style: none; }
.contact-list li { padding: 18px 0; border-bottom: 1px solid var(--mist); }
.contact-list dt, .contact-list .k { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--slate); }
.contact-list a { font-size: 1.1rem; text-decoration: none; }

/* legal */
.legal-prose { max-width: 780px; }
.legal-prose h1 { font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1.1; margin-bottom: 16px; }
.legal-prose h2 { font-family: var(--serif); font-size: 1.55rem; margin: 44px 0 14px; }
.legal-prose h3 { font-size: 1.1rem; font-weight: 600; margin: 28px 0 10px; }
.legal-prose p, .legal-prose li { color: #3E4859; }
.legal-prose ul, .legal-prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.legal-prose li { margin: 6px 0; }
.legal-prose .meta { color: var(--slate); font-size: 14.5px; margin-bottom: 36px; }

/* footer */
.site-footer { background: var(--navy); color: #B4BFD0; padding: clamp(64px, 8vw, 104px) 0 36px; position: relative; overflow: hidden; }
.site-footer .ribbon { background: var(--grad-dark); width: 40px; height: 140px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-top .brand img { height: 46px; width: auto; }
.footer-top .brand p { margin: 22px 0 0; max-width: 34ch; font-size: 15.5px; }
.footer-top .brand .line { font-family: var(--serif); font-size: 1.5rem; color: #fff; margin-top: 26px; }
.site-footer h4 { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); margin-bottom: 18px; }
.site-footer ul { list-style: none; }
.site-footer li { margin: 10px 0; font-size: 15px; }
.site-footer a { color: #DCE3EE; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { margin-top: 64px; padding-top: 28px; border-top: 1px solid rgba(230,236,245,.12); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13.5px; color: #8E9BB0; }
.footer-bottom a { color: #8E9BB0; }

/* reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media video { display: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-nav { display: block; position: fixed; inset: var(--header-h) 0 0 0; background: var(--cloud); z-index: 49; padding: 24px var(--gutter) 40px; overflow-y: auto; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .3s var(--ease), visibility .25s; }
  .menu-open .mobile-nav { opacity: 1; visibility: visible; transform: none; }
  .menu-open { overflow: hidden; }
  .mobile-nav a { display: block; padding: 16px 4px; border-bottom: 1px solid var(--mist); font-family: var(--serif); font-size: 1.5rem; color: var(--navy); text-decoration: none; }
  .mobile-nav .sub a { font-family: var(--sans); font-size: 1.05rem; padding: 12px 4px 12px 20px; color: #3E4859; }
  .mobile-nav .btn { display: flex; margin-top: 28px; width: 100%; font-family: var(--sans); font-size: 16px; border: 0; color: #fff; }
  .g4, .price-grid.four { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 900px) {
  .split, .page-hero.has-media .wrap { grid-template-columns: 1fr; }
  .g3, .price-grid, .price-grid.two { grid-template-columns: 1fr; }
  .g2 { grid-template-columns: 1fr; }
  .deliverables { grid-template-columns: 1fr; }
  .deliverables .card:nth-child(n) { grid-column: auto; }
  .work-card, .work-card.wide { grid-column: span 12; }
  .case-meta { grid-template-columns: 1fr 1fr; }
  .hero { display: block; min-height: 0; }
  .hero-media { position: relative; height: 64vw; min-height: 230px; max-height: 480px; }
  .hero-media img, .hero-media video { object-position: 62% 50%; }
  .hero-media::after { background: linear-gradient(180deg, rgba(247,249,252,0) 55%, rgba(247,249,252,1) 100%); }
  .hero-copy { padding: 18px 0 28px; }
  .hero-foot { position: static; padding-bottom: 44px; }
  .hero-foot .wrap { gap: 12px 22px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .g4, .price-grid.four, .steps, .footer-top { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 26px 0 6px; border-left: 0; }
  .step + .step { border-top: 1px solid var(--mist); }
  .field-row { grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; }
  .brand-link img { height: 36px; }
  .hero .ribbon, .page-hero .ribbon { width: 30px; height: 104px; }
  .addons th, .addons td { padding: 14px 14px; }
  .case-meta { grid-template-columns: 1fr; }
}

/* Self-initiated case studies */
.case-note { font-size: 14px; line-height: 1.6; color: var(--slate); margin-top: 18px; padding-left: 14px; border-left: 2px solid var(--haze); }
.type-name { font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.15; margin: 18px 0 6px; color: var(--navy); }
.board { position: relative; }
.board.picked::before { content: "Chosen"; position: absolute; top: 14px; left: 14px; z-index: 1; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--cobalt); color: #fff; border-radius: 6px; padding: 5px 9px; }
.board.picked img { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.scenes .figure img { aspect-ratio: 16 / 9; object-fit: cover; box-shadow: none; }
.section.dark .figure figcaption { color: rgba(255,255,255,.62); font-size: 13px; }
.section.dark .figure figcaption b { color: #fff; font-weight: 600; }
.case-hero-img + .case-note { margin-top: 22px; }

/* Layout safety on every screen size */
.split > *, .grid > *, .price-grid > *, .work-grid > * { min-width: 0; }
h1, h2, h3, .display, .h1, .h2 { overflow-wrap: break-word; }
.contact-list a, .contact-list li { overflow-wrap: anywhere; }
.contact-split { grid-template-columns: 1.25fr .75fr; }
@media (max-width: 900px) { .contact-split { grid-template-columns: 1fr; } }
@media (max-width: 380px) {
  .price { padding: 28px 20px 24px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
}

/* Message sent page */
.sent-hero .wrap { position: relative; }
.sent-badge { width: 64px; height: 64px; border-radius: 50%; background: var(--cobalt); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 26px; box-shadow: 0 12px 30px rgba(11,63,217,.28); }
.sent-card { display: flex; gap: 16px; align-items: flex-start; max-width: 640px; margin-top: 30px; padding: 20px 22px; background: #fff; border: 1px solid var(--mist); border-radius: var(--radius-sm); box-shadow: var(--shadow); font-size: 15px; color: var(--slate); }
.sent-card b { color: var(--navy); }
.sent-ic { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--haze); color: var(--cobalt); display: flex; align-items: center; justify-content: center; }
@media (max-width: 900px) { .work-grid .work-card[style] { grid-column: span 12 !important; } }
.sent-card > div:last-child { min-width: 0; overflow-wrap: anywhere; }

.amount.quote { font-size: clamp(1.6rem, 2.4vw, 2rem); }

/* Contact: call or discovery brief */
.mode-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 26px; }
.mode-tab { text-align: left; border: 1.5px solid var(--mist); background: var(--cloud); border-radius: 14px; padding: 14px 16px; cursor: pointer; color: var(--navy); transition: border-color .2s, background .2s, box-shadow .2s; }
.mode-tab b { display: block; font-size: 15px; }
.mode-tab span { display: block; font-size: 13px; color: var(--slate); margin-top: 3px; }
.mode-tab[aria-selected="true"] { border-color: var(--cobalt); background: #fff; box-shadow: 0 0 0 4px rgba(11,63,217,.10); }
.mode-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
.mode-fields[hidden] { display: none; }
@media (max-width: 480px) { .mode-tabs, .field-row { grid-template-columns: 1fr; } }

.site-footer .social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.site-footer .social a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; font-weight: 600; color: var(--cloud); text-decoration: none; border: 1px solid rgba(230,236,245,.18); border-radius: 99px; padding: 8px 16px 8px 12px; transition: border-color .2s, color .2s; }
.site-footer .social a:hover { border-color: var(--sky); color: var(--sky); }
