/* Layer0 Agency. Tokens taken from the Webflow design: black canvas, Aeonik, white-to-grey heading gradient. */
@font-face { font-family: Aeonik; font-weight: 300; src: url("/assets/fonts/Aeonik-Light.otf") format("opentype"); font-display: swap; }
@font-face { font-family: Aeonik; font-weight: 400; src: url("/assets/fonts/Aeonik-Regular.otf") format("opentype"); font-display: swap; }
@font-face { font-family: Aeonik; font-weight: 500; src: url("/assets/fonts/Aeonik-Medium.otf") format("opentype"); font-display: swap; }
@font-face { font-family: Aeonik; font-weight: 700; src: url("/assets/fonts/Aeonik-Bold.otf") format("opentype"); font-display: swap; }
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  --black: #000; --white: #fff; --grey: #a2a2a2; --dim: #8c8c8c;
  --line: rgba(255,255,255,.15); --line-soft: rgba(95,95,95,.25); --plate: #0c0c0f;
  --green: linear-gradient(90deg, #0097a5, #8cd408);
  --gutter: clamp(18px, 4vw, 30px); --max: 1220px;
  --ease: cubic-bezier(.65, 0, .35, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--black); color: var(--white); font: 400 16px/1.2 Aeonik, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
img { height: auto; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: #fff; color: #000; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 1080px; }
.center { text-align: center; }
.grey { color: var(--grey); line-height: 1.45; }
.small { font-size: 13px; line-height: 1.3; color: var(--grey); }
.upper { text-transform: uppercase; letter-spacing: .02em; color: #fff; }
.label { color: var(--grey); }
main > section { padding-top: clamp(90px, 13vw, 180px); }

/* Headings */
.h-grad { display: inline-block; font-weight: 700; font-size: clamp(32px, 4.2vw, 48px); line-height: 1.2; background: linear-gradient(90deg, #fff, rgba(255,255,255,.5)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h-grad.h-sm { font-size: clamp(26px, 3vw, 36px); }
.sec-title { text-align: center; margin-bottom: 60px; }
.sec-sub { max-width: 620px; margin: 18px auto 0; font-size: clamp(18px, 2vw, 26px); line-height: 1.2; }
.left { text-align: left; }
.slash { font-size: 20px; margin-bottom: 14px; }
.big-text { font-weight: 300; font-size: clamp(24px, 3vw, 36px); line-height: 1.1; letter-spacing: -.03em; }
.js .words span { opacity: .18; transition: opacity .25s linear; }

/* Scroll reveal and page-load sequence */
/* Hidden only when scripts run, so the page still reads without them */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .65s var(--ease), transform .65s var(--ease); transition-delay: var(--d, 0ms); }
.js .rv.in { opacity: 1; transform: none; }
.hero-in { animation: hero-in .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 140ms + 150ms); }
@keyframes hero-in { from { opacity: 0; transform: translateY(14px); } }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: linear-gradient(#000 55%, rgba(0,0,0,0)); }
.top .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 96px; }
.logo { display: inline-block; width: 150px; }
.logo video { width: 150px; height: auto; mix-blend-mode: screen; }
.menu { display: flex; gap: 0; }
.top-right { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.burger { display: none; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; background: none; cursor: pointer; position: relative; }
.burger i { position: absolute; left: 14px; right: 14px; height: 1.5px; background: #fff; transition: transform .3s var(--ease); }
.burger i:first-child { top: 19px; } .burger i:last-child { top: 26px; }
.burger[aria-expanded="true"] i:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Menu link: the label slides up and a copy slides in from below */
.swap { position: relative; display: inline-block; overflow: hidden; padding: 0 11px; line-height: 1.2; text-decoration: none; white-space: nowrap; }
.swap span { display: inline-flex; white-space: pre; }
.swap i { position: relative; display: inline-block; font-style: normal; transition: transform .5s var(--ease); transition-delay: calc(var(--n) * 22ms); }
.swap i::after { content: attr(data-c); position: absolute; left: 0; top: 100%; }
.swap:hover i, .swap:focus-visible i { transform: translateY(-100%); }
.swap[aria-current] { color: var(--grey); }

/* Pill button with a light that travels round its border */
.glow-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-width: 176px; height: 48px; padding: 0 28px; border-radius: 999px; text-decoration: none; color: rgba(255,255,255,.9); background: #000; border: 0; cursor: pointer; isolation: isolate; white-space: nowrap; }
.glow-btn::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: -1;
  background: conic-gradient(from var(--spin), rgba(255,255,255,.35) 0 62%, #fff 78%, rgba(255,255,255,.35) 94%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 5s linear infinite; }
.glow-btn:hover::before { animation-duration: 1.6s; }
.glow-btn img { transition: transform .4s var(--ease); transform-origin: 70% 80%; }
.glow-btn:hover img { transform: rotate(-18deg); }
.glow-btn.sm { min-width: 0; height: 38px; padding: 0 20px; font-size: 14px; margin-top: 12px; background: transparent; }
@keyframes spin { to { --spin: 360deg; } }

/* Hero */
.hero { padding-top: clamp(40px, 9vw, 120px) !important; text-align: center; }
.tag { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 7px; border: 1px solid rgba(255,255,255,.4); border-radius: 50px; text-decoration: none; font-weight: 300; font-size: 14px; }
.hero h1 { margin: 22px auto 0; font-weight: 400; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.22; max-width: 22em; }
.hero h1 { --i: 1; } .hero .chat { --i: 2; margin-top: 26px; } .hero .trusted { --i: 4; }
.chat-hint { margin-top: 14px; }
.trusted { margin-top: clamp(70px, 12vw, 150px); }
.trusted p { margin-bottom: 30px; }
.marquee { display: flex; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; flex: none; align-items: center; gap: 64px; padding-right: 64px; animation: marquee 34s linear infinite; }
.marquee-track img { height: 32px; width: auto; max-width: 170px; object-fit: contain; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* Chat input (from the Webflow embed) */
.conv-input-wrapper { width: 100%; max-width: 700px; margin: 0 auto; position: relative; text-align: left; }
.conv-border-glow { position: absolute; top: -2px; left: -2px; right: -2px; bottom: -2px; border-radius: 22px; pointer-events: none; z-index: 0; }
.conv-input-outer { position: relative; z-index: 1; background: rgba(12,12,15,.95); border-radius: 20px; padding: 1px; box-shadow: 0 4px 24px rgba(0,0,0,.5); }
.conv-input-inner { background: linear-gradient(180deg, rgba(16,16,20,.98) 0%, rgba(12,12,15,.98) 100%); border-radius: 19px; padding: 1.25rem 1.5rem; }
.conv-input-area { min-height: 60px; margin-bottom: 1rem; position: relative; cursor: text; }
.conv-placeholder { position: absolute; top: 0; left: 0; color: rgba(255,255,255,.3); font-size: 1.05rem; pointer-events: none; display: flex; align-items: center; line-height: 1.5; }
.conv-cursor { width: 2px; height: 1.2em; background: rgba(180,190,210,.8); margin-left: 1px; animation: conv-blink 1.06s step-end infinite; }
@keyframes conv-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.conv-textarea { width: 100%; background: transparent; border: none; outline: none; color: rgba(255,255,255,.9); font-size: 1.05rem; font-family: inherit; resize: none; line-height: 1.5; min-height: 48px; }
.conv-bottom-bar { display: flex; align-items: center; justify-content: flex-end; }
.conv-send-btn { width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,.06); border: none; cursor: default; display: flex; align-items: center; justify-content: center; transition: all .2s ease; transform: scale(.95); }
.conv-send-btn.active { background: linear-gradient(135deg, #fff 0%, #e8e8e8 100%); cursor: pointer; transform: scale(1); box-shadow: 0 4px 12px rgba(255,255,255,.1); }
.conv-send-btn.active:hover { transform: scale(1.05); box-shadow: 0 6px 20px rgba(255,255,255,.15); }
.conv-send-btn svg { width: 20px; height: 20px; stroke: rgba(255,255,255,.25); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s; }
.conv-send-btn.active svg { stroke: #111; }

/* Cards */
.card { border: 2px solid var(--line-soft); border-radius: 25px; overflow: hidden; box-shadow: inset 0 0 20px 5px rgba(16,15,15,.6); }
.card.pad { padding: 28px; }
.card h3 { font-size: 18px; font-weight: 500; }
.card .small { margin-top: 8px; }

/* Cases */
.case { display: block; text-decoration: none; padding: 0 var(--gutter); margin: 0 auto 90px; max-width: calc(var(--max) + 2 * var(--gutter)); }
.case-pic { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 8; background: var(--plate); }
.case-pic img, .case-pic video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), opacity .6s; }
.case-go { position: absolute; right: 18px; bottom: 18px; padding: 10px 18px; border-radius: 999px; background: #fff; color: #000; font-size: 14px; opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s var(--ease); }
a.case:hover .case-go, a.case:focus-visible .case-go { opacity: 1; transform: none; }
.case-meta .case-title { font-weight: 500; font-size: clamp(44px, 7vw, 96px); line-height: .95; letter-spacing: -.035em; margin-top: 0; max-width: none; }
.case-line { margin-top: 12px; font-size: clamp(18px, 2vw, 24px); line-height: 1.2; color: #d6d6d6; max-width: 26em; }
a.case:hover .case-pic img, a.case:hover .case-pic video { transform: scale(1.03); }
.case.soon .case-pic img { opacity: .55; }
.case-meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-top: 26px; }
.case-side { display: grid; gap: 4px; }
.case-meta h3 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 400; margin-top: 8px; max-width: 24em; }
.case-side { text-align: right; flex: none; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.case-side .tags { justify-content: flex-end; }
.tags span, .pill { font-size: 11px; font-weight: 500; padding: 6px 12px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; white-space: nowrap; }

/* We specialise in */
.spec-top { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 253px; padding: 30px; border-radius: 16px; background: #050505 center / cover no-repeat; border: 1px solid var(--line); text-align: center; }
.spec-top h3 { font-size: clamp(26px, 3vw, 36px); }
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 16px 0 50px; }
.spec-card { border: 1px solid #3e3e3e; border-radius: 10px; overflow: hidden; box-shadow: 0 0 5px 5px rgba(62,62,62,.15); text-align: center; background: #000; }
.spec-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.spec-card div { padding: 24px 18px 34px; }
.spec-card h3 { font-size: clamp(20px, 2vw, 26px); font-weight: 400; margin-top: 26px; }

/* What do we offer */
.offer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.offer-grid.three { grid-template-columns: repeat(3, 1fr); }
.offer { display: flex; flex-direction: column; min-height: 335px; transition: border-color .4s; }
.offer:hover { border-color: rgba(255,255,255,.35); }
.offer img { width: 100%; flex: 1; min-height: 0; max-height: 210px; object-fit: contain; padding: 20px 20px 0; }
.offer div { padding: 18px 20px 22px; }
.offer.span2 { grid-column: span 2; flex-direction: row; align-items: center; }
.offer.span2 img { width: 55%; max-height: 260px; }
.offer.span2 div { width: 45%; }

/* Why us */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.why { display: flex; flex-direction: column; justify-content: center; gap: 5px; min-height: 200px; padding: 20px 34% 20px 30px; border: 1px solid var(--line); border-radius: 16px; background-repeat: no-repeat; background-position: center, right center; background-size: auto, contain; align-items: flex-start; }
.why b { font-weight: 400; font-size: clamp(34px, 3.6vw, 50px); line-height: 1.2; }
.grad-green { font-size: clamp(18px, 2vw, 24px); background: var(--green); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Engagements */
.engage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.engage { padding: 26px 24px; display: flex; flex-direction: column; gap: 16px; }
.engage-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.engage h3 { font-size: 22px; }
.engage dl { margin: auto 0 0; display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; }
.engage dt, .facts dt, .svc-facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--dim); }
.engage dd, .facts dd, .svc-facts dd { margin: 4px 0 0; font-size: 14px; }

/* Team */
.member { display: inline-block; margin-top: 10px; }
.member img { width: 260px; height: 260px; object-fit: cover; object-position: 50% 22%; border-radius: 16px; margin: 0 auto 18px; filter: grayscale(1); transition: filter .6s; }
.member:hover img { filter: none; }
.member h3 { font-size: 24px; }
.member-links { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.member-links.col { flex-direction: column; align-items: flex-start; gap: 10px; }

/* FAQ */
.faq { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; gap: 28px; padding: 26px 0; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq-n { font-size: clamp(30px, 3.4vw, 44px); width: 1.9em; flex: none; }
.faq-q { flex: 1; font-size: clamp(18px, 2vw, 22px); }
.faq i { width: 22px; height: 22px; flex: none; position: relative; }
.faq i::before, .faq i::after { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 1.5px; background: #fff; transition: transform .35s var(--ease); }
.faq i::after { transform: rotate(90deg); }
.faq[open] i::after { transform: rotate(0); }
.faq > p { padding: 0 50px 28px calc(1.9em * 2.2 + 28px); max-width: 46em; }

/* Web3 native */
.native-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.native-grid .grey { margin: 18px 0 28px; max-width: 30em; }
.niches { display: flex; flex-wrap: wrap; gap: 13px; }
.niches span { font-size: 12px; font-weight: 500; padding: 10px 16px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; }
.niches .you { background: #fff; color: #000; }

/* Call block */
.call { text-align: center; }
.call .sec-title { margin-bottom: 20px; }
.call-text { max-width: 620px; margin: 0 auto 34px; color: var(--grey); line-height: 1.45; }

/* Footer */
footer { margin-top: clamp(100px, 14vw, 190px); }
.hi-marquee { display: flex; overflow: hidden; text-decoration: none; padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hi-track { display: flex; flex: none; align-items: center; gap: 46px; padding-right: 46px; animation: marquee 30s linear infinite; }
.hi-track span { font-size: 40px; white-space: nowrap; }
.hi-marquee:hover .hi-track { animation-play-state: paused; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 2fr 1fr; gap: 16px; padding-top: 70px; padding-bottom: 70px; }
.foot-logo { height: 24px; width: auto; margin-bottom: 14px; }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.foot-col .swap { padding-left: 0; }
.foot-base { display: flex; justify-content: space-between; padding-bottom: 36px; }

/* Projects page */
.reel-hero { padding-top: 10px !important; }
.reel { position: relative; border-radius: 20px; overflow: hidden; background: var(--plate); aspect-ratio: 16 / 9.5; max-height: 76vh; width: 100%; }
.reel video { width: 100%; height: 100%; object-fit: cover; }
.reel-text { position: absolute; left: 5%; bottom: 12%; max-width: 560px; text-shadow: 0 2px 30px rgba(0,0,0,.6); }
.reel-text h1 { font-weight: 400; font-size: clamp(22px, 3vw, 34px); line-height: 1.15; margin-bottom: 22px; }
.work-grid { columns: 3; column-gap: 30px; }
.work-grid img { width: 100%; margin-bottom: 30px; border-radius: 14px; break-inside: avoid; }
.reel-modal { width: min(1100px, 94vw); padding: 0; border: 1px solid var(--line); border-radius: 18px; background: #000; color: #fff; overflow: hidden; }
.reel-modal::backdrop { background: rgba(0,0,0,.85); }
.reel-modal video { width: 100%; }
.reel-modal .close { position: absolute; right: 12px; top: 12px; z-index: 2; background: rgba(0,0,0,.6); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; cursor: pointer; }

/* Services page */
.svc-hero { padding-top: clamp(60px, 10vw, 130px) !important; }
.svc-hero h1 { font-size: clamp(44px, 7vw, 84px); line-height: 1.02; }
.svc-hero .lead { max-width: 480px; margin: 26px auto 30px; --i: 1; }
.svc-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: clamp(60px, 9vw, 110px) 0 0; text-align: left; --i: 3; }
.svc-facts div { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.svc-facts dd { font-size: 16px; text-transform: uppercase; }
.tabs { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: stretch; }
.tab { display: block; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); padding: 20px 0; cursor: pointer; opacity: .45; transition: opacity .3s; }
.tab.on, .tab:hover { opacity: 1; }
.tab h3 { font-size: 22px; text-transform: uppercase; }
.tab p { max-height: 0; overflow: hidden; margin: 0; transition: max-height .5s var(--ease), margin .5s var(--ease); }
.tab.on p { max-height: 90px; margin-top: 10px; }
.tab-panes { position: relative; border-radius: 20px; overflow: hidden; background: var(--plate); min-height: 380px; }
.pane { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--ease); }
.pane.on { opacity: 1; }
.pane img, .pane video { width: 100%; height: 100%; object-fit: cover; }
.how { list-style: none; margin: 0; padding: 0; counter-reset: how; }
.how li { counter-increment: how; display: grid; grid-template-columns: 110px 1fr 1.4fr; gap: 20px; align-items: baseline; padding: 28px 0; border-top: 1px solid var(--line); }
.how li::before { content: "0" counter(how); font-size: clamp(30px, 3.4vw, 44px); }
.how h3 { font-size: 24px; }

/* Contact page */
.contact { padding-top: 20px !important; }
.contact-label { display: block; text-align: center; margin-bottom: 30px; }
.contact-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.contact h1 { font-weight: 300; font-size: clamp(46px, 7.4vw, 104px); line-height: .98; letter-spacing: -.035em; --i: 1; }
.contact form { margin-top: 30px; display: grid; gap: 22px; max-width: 620px; --i: 2; }
.contact label, .contact legend { display: grid; gap: 8px; font-size: 13px; font-weight: 500; padding: 0; }
.contact input:not([type=checkbox]), .contact textarea { width: 100%; background: transparent; border: 1px solid rgba(255,255,255,.25); border-radius: 10px; color: #fff; font: inherit; font-size: 16px; padding: 14px 14px; resize: vertical; }
.contact input:focus, .contact textarea:focus { outline: none; border-color: #fff; }
.contact fieldset { border: 0; padding: 0; margin: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.check { display: inline-flex !important; cursor: pointer; }
.check input { position: absolute; opacity: 0; }
.check span { padding: 9px 16px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; font-weight: 400; transition: background .2s, color .2s; }
.check input:checked + span { background: #fff; color: #000; }
.check input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.submit { display: inline-flex; align-items: center; gap: 14px; background: none; border: 0; padding: 0; font-size: 16px; font-weight: 500; cursor: pointer; justify-self: start; }
.submit i { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #fff; border-radius: 50%; font-style: normal; transition: transform .4s var(--ease), background .3s, color .3s; }
.submit:hover i { transform: rotate(45deg); background: #fff; color: #000; }
.form-error { color: #ff8f8f; font-size: 14px; }
.next-steps { margin: 44px 0 0; padding: 0; list-style: none; counter-reset: ns; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 620px; --i: 3; }
.next-steps li { counter-increment: ns; border-top: 1px solid var(--line); padding-top: 12px; font-size: 14px; color: var(--grey); }
.next-steps li::before { content: counter(ns); display: block; color: #fff; font-size: 22px; margin-bottom: 6px; }
.contact aside { --i: 2; display: grid; gap: 16px; }
.contact aside img { width: 220px; height: 220px; object-fit: cover; object-position: 50% 22%; border-radius: 10px; }
.connect { font-size: 21px; margin-top: 6px; }
.contact aside .swap { padding-left: 0; }

/* Case study pages */
.case-hero { padding-top: 10px !important; }
.case-hero-media { position: relative; border-radius: 20px; overflow: hidden; background: var(--plate); aspect-ratio: 16 / 9; max-height: 78vh; width: 100%; }
.case-hero-media video { width: 100%; height: 100%; object-fit: cover; }
.case-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,0) 62%); }
.case-hero-text { position: absolute; z-index: 1; left: 5%; top: 50%; transform: translateY(-50%); max-width: 430px; display: grid; gap: 14px; }
.case-logo { height: 30px; width: auto; }
.case-name { font-size: 30px; font-weight: 500; }
.case-hero-text .small { color: #fff; }
.case-hero h1 { font-weight: 400; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.12; }
.arrow-link { font-size: 14px; text-decoration: none; }
.arrow-link::after { content: " ↗"; }
.arrow-link:hover { text-decoration: underline; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 60px; text-align: center; }
.stats b { display: block; font-weight: 500; font-size: clamp(34px, 4vw, 50px); }
.stats div > span { display: block; margin-top: 6px; color: var(--grey); font-size: 15px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); }
.two-col .grey + .grey { margin-top: 14px; }
.facts { display: flex; gap: 40px; margin: 22px 0 16px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 60px; }
.pair img, .gallery img, .product img, .web img, .web video, .wide-media video, .intro-img { width: 100%; border-radius: 16px; }
.problem-h { margin: 14px 0 26px; }
.intro-img { max-width: 760px; margin: 34px auto 0; }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step-media { border-radius: 16px; overflow: hidden; background: var(--plate); aspect-ratio: 16 / 10; margin-bottom: 18px; }
.step-media img, .step-media video { width: 100%; height: 100%; object-fit: cover; }
.step-n { color: var(--dim); font-size: 14px; margin-bottom: 6px; }
.step h3 { font-size: 22px; margin-bottom: 8px; }
.gallery { columns: 3; column-gap: 16px; }
.gallery img { margin-bottom: 16px; break-inside: avoid; }
.logo-re { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 6vw, 80px); padding: 60px 20px; border: 1px solid var(--line); border-radius: 20px; }
.logo-re img { max-height: 110px; max-width: 34%; width: auto; }
.logo-re span { font-size: 40px; color: var(--grey); }
.values p, .values-h { font-weight: 400; font-size: clamp(30px, 5vw, 60px); line-height: 1.05; letter-spacing: -.02em; padding: 22px 0; border-top: 1px solid var(--line); }
.values-h { border: 0; padding-top: 0; }
.product { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.web { display: grid; gap: 16px; }
.next { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; text-decoration: none; padding: 24px; border: 1px solid var(--line); border-radius: 20px; }
.next img { border-radius: 14px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.next b { display: block; font-weight: 500; font-size: clamp(40px, 6vw, 84px); letter-spacing: -.03em; margin: 6px 0; }

/* Smaller screens */
@media (max-width: 1000px) {
  .spec-grid, .offer-grid, .engage-grid { grid-template-columns: repeat(2, 1fr); }
  .offer-grid.three, .steps3, .product { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .native-grid, .tabs, .contact-grid, .two-col { grid-template-columns: 1fr; }
  .work-grid, .gallery { columns: 2; }
}
@media (max-width: 760px) {
  .top .wrap { grid-template-columns: 1fr auto; height: 76px; }
  .burger { display: block; }
  .top-right .glow-btn { min-width: 0; padding: 0 18px; height: 46px; }
  .menu { position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 22px; padding: 30px var(--gutter) 40px; background: #000; border-bottom: 1px solid var(--line); font-size: 28px; transform: translateY(-130%); visibility: hidden; transition: transform .5s var(--ease), visibility 0s .5s; z-index: -1; }
  .menu.open { transform: none; visibility: visible; transition: transform .5s var(--ease); }
  .hero h1 br { display: none; }
  .case-meta { flex-direction: column; gap: 14px; }
  .case-side { text-align: left; } .case-side .tags { justify-content: flex-start; }
  .case-pic { aspect-ratio: 4 / 3; }
  .why-grid, .spec-grid, .offer-grid, .engage-grid, .pair { grid-template-columns: 1fr; }
  .offer.span2 { grid-column: auto; flex-direction: column; } .offer.span2 img, .offer.span2 div { width: 100%; }
  .stats, .svc-facts { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; }
  .how li { grid-template-columns: 60px 1fr; } .how li p { grid-column: 2; }
  .faq > p { padding-left: 0; }
  .next, .next-steps { grid-template-columns: 1fr; }
  .case-hero-media { aspect-ratio: 4 / 5; } .reel { aspect-ratio: 4 / 5; }
  .work-grid, .gallery { columns: 1; }
  .hi-track span { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .rv, .hero-in { opacity: 1; transform: none; animation: none; transition: none; }
  .js .words span { opacity: 1; }
  .marquee-track, .hi-track, .glow-btn::before { animation: none; }
  .swap i { transition: none; }
}

/* Buttons side by side, legal links, pause-motion control */
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; }
.contact .btn-row { justify-content: flex-start; gap: 26px; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: flex-end; }
.foot-legal a { text-decoration: none; } .foot-legal a:hover { text-decoration: underline; }
.motion-toggle { background: none; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 6px 14px; font-size: 13px; color: var(--grey); cursor: pointer; }
.motion-toggle:hover, .motion-toggle[aria-pressed="true"] { color: #fff; border-color: #fff; }
.paused .marquee-track, .paused .hi-track, .paused .glow-btn::before, .paused .conv-cursor { animation-play-state: paused; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-ok { color: #9be28f; }

/* Team: founder plus the network */
.team-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; margin-top: 10px; }
.member.network { width: 260px; }
.member .plus { display: grid; place-items: center; width: 260px; height: 260px; margin: 0 auto 18px; border: 1px dashed rgba(255,255,255,.3); border-radius: 16px; font-size: 64px; font-weight: 300; color: var(--grey); }
.member.network .tags { justify-content: center; margin-top: 14px; }

/* Prices and client quotes (shown once filled in in build.py) */
.price { font-size: 20px; }
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.quote { margin: 0; padding: 30px; display: flex; flex-direction: column; gap: 22px; }
.quote blockquote { margin: 0; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.35; font-weight: 300; }
.quote figcaption { margin-top: auto; display: grid; gap: 4px; font-size: 14px; }
.quote figcaption b { font-weight: 500; }

/* Legal pages */
.legal { padding-top: clamp(40px, 7vw, 90px) !important; }
.prose { max-width: 720px; margin-top: 30px; color: #d6d6d6; line-height: 1.55; }
.prose h2 { font-size: 22px; font-weight: 500; color: #fff; margin: 38px 0 10px; }
.prose p { margin-bottom: 12px; }
@media (max-width: 760px) { .foot-base { flex-direction: column; gap: 16px; } .foot-legal { justify-content: flex-start; } }

/* Long-form pages: Fedi case and About */
.lf-head { margin-bottom: 44px; max-width: 860px; }
.lf-head h2 { display: block; }
.lf-lead { margin-top: 14px; font-size: clamp(18px, 1.9vw, 22px); line-height: 1.35; color: #d6d6d6; }
.lf-sub { font-size: 24px; margin: 60px 0 20px; }
.lf-note { max-width: 760px; margin-top: 22px; }
.lf-text { margin-top: 30px; align-items: start; }
.lf-text h3 { font-size: 22px; margin-bottom: 10px; }
.lf-aside { margin-top: 30px; max-width: 760px; }
.lf-aside .grey { margin-top: 8px; }
.lf .offer-grid .card h3 { font-size: 19px; line-height: 1.2; }
.wrap-facts { flex-wrap: wrap; gap: 22px 40px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 50px; padding-top: 22px; border-top: 1px solid var(--line); }
.toc a { font-size: 13px; padding: 8px 14px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; text-decoration: none; }
.toc a:hover { background: #fff; color: #000; }
.shot { margin: 0; }
.shot img, .shot video { width: 100%; border-radius: 16px; border: 1px solid var(--line); }
.shot figcaption { margin-top: 10px; font-size: 13px; color: var(--grey); }
.shot.tight img { max-height: 420px; object-fit: cover; object-position: top; }
.lf [id] { scroll-margin-top: 110px; }

.studies { border-top: 1px solid var(--line); }
.study { display: grid; grid-template-columns: 1.1fr 1.2fr .9fr 1.6fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: start; }
.study h3 { font-size: 18px; }
.study .found { font-weight: 500; }
.study-head { padding: 12px 0; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--dim); }

.fix { display: grid; grid-template-columns: .8fr 1.6fr; gap: clamp(24px, 4vw, 60px); align-items: start; }
.fix h3 { font-size: 26px; margin-bottom: 12px; }
.fix-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }

.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; margin-bottom: 30px; }
.flow > div { position: relative; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: radial-gradient(circle at 20% 0%, rgba(255,255,255,.07), rgba(255,255,255,0) 70%); }
.flow > div + div::before { content: ""; position: absolute; left: -27px; top: 50%; width: 20px; height: 1px; background: #fff; }
.flow > div + div::after { content: ""; position: absolute; left: -13px; top: calc(50% - 4px); width: 8px; height: 8px; border-top: 1px solid #fff; border-right: 1px solid #fff; transform: rotate(45deg); }
.flow b { display: block; font-weight: 500; font-size: 18px; margin-bottom: 8px; }
.flow span { font-size: 13px; line-height: 1.35; color: var(--grey); }
.codes { display: flex; flex-wrap: wrap; gap: 8px; }
.codes code { font: 12px/1 ui-monospace, "SF Mono", Menlo, monospace; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; color: #d6d6d6; }

.levels { border-top: 1px solid var(--line); }
.level { display: grid; grid-template-columns: 70px 1.6fr 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: start; }
.level b { font-weight: 400; font-size: 44px; line-height: 1; }
.level h3 { font-size: 20px; margin-bottom: 6px; }
.lf-numbers { margin-top: 30px; }
.lf-results { grid-template-columns: repeat(4, 1fr); row-gap: 40px; }
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.numbers div { border-top: 1px solid rgba(255,255,255,.4); padding-top: 16px; }
.numbers b { display: block; font-weight: 400; font-size: clamp(34px, 4vw, 54px); line-height: 1; }
.numbers span { display: block; margin-top: 10px; color: var(--grey); font-size: 14px; line-height: 1.35; }
.concept { grid-template-columns: repeat(3, 1fr); }

.about-hero { padding-top: clamp(40px, 7vw, 90px) !important; }
.about-grid { display: grid; grid-template-columns: 1.5fr .7fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.about-grid h1 { font-weight: 300; font-size: clamp(38px, 5.6vw, 76px); line-height: 1; letter-spacing: -.03em; margin: 14px 0 24px; }
.about-grid .lead { font-size: clamp(18px, 1.8vw, 21px); max-width: 34em; margin-bottom: 30px; }
.about-grid > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: 16px; }
.btn-row.left { justify-content: flex-start; }
.asks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 60px; border-top: 1px solid var(--line); }
.ask { padding: 26px 0; border-bottom: 1px solid var(--line); }
.ask h3 { font-size: 21px; line-height: 1.2; margin-bottom: 10px; }
.ask .arrow-link { display: inline-block; margin-top: 12px; }
.jobs { border-top: 1px solid var(--line); margin-bottom: 20px; }
.job { display: grid; grid-template-columns: 170px 1fr 1.3fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.job h3 { font-size: 19px; }
@media (max-width: 1000px) {
  .study, .level, .job { grid-template-columns: 1fr; gap: 8px; }
  .study-head { display: none; }
  .fix, .fix-pair, .about-grid, .asks { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; gap: 16px; } .flow > div + div::before, .flow > div + div::after { display: none; }
  .numbers, .lf-results { grid-template-columns: repeat(2, 1fr); }
  .concept { grid-template-columns: repeat(2, 1fr); }
  .about-grid > img { max-width: 320px; }
}
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; } .concept { grid-template-columns: 1fr; } }

/* Case hero with the title above the film (for light-coloured footage) */
.case-hero.plain { padding-top: clamp(30px, 5vw, 70px) !important; }
.plain-head { display: grid; gap: 14px; max-width: 980px; margin-bottom: 40px; }
.plain-head h1 { font-weight: 400; font-size: clamp(34px, 5.2vw, 68px); line-height: 1.04; letter-spacing: -.025em; }
.plain-head .small { color: var(--grey); }
.case-hero-media.nolay::after { display: none; }

/* Fedi case: read-on-scroll pieces */
.big-text.huge { font-size: clamp(30px, 4.6vw, 62px); line-height: 1.05; max-width: 20em; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 60px; }
.trio > div { border-top: 1px solid rgba(255,255,255,.4); padding-top: 16px; }
.trio h3 { font-size: 22px; margin-bottom: 8px; }
.habits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; counter-reset: hb; }
.habits li { counter-increment: hb; padding: 24px 0; border-top: 1px solid var(--line); }
.habits li::before { content: "0" counter(hb); display: block; font: 13px/1 ui-monospace, "SF Mono", Menlo, monospace; color: var(--dim); margin-bottom: 14px; }
.habits h3 { font-size: 22px; margin-bottom: 8px; }
.findings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.finding { padding: 26px; display: grid; gap: 6px; align-content: start; }
.finding b { font-weight: 400; font-size: clamp(44px, 5vw, 68px); line-height: 1; background: var(--green); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 10px; justify-self: start; }
.finding h3 { font-size: 20px; }
.finding .grey { margin-top: 10px; }
.delta { font-weight: 400; font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: -.02em; margin-bottom: 18px; white-space: nowrap; }
.delta span { color: var(--dim); }
.delta.sm { font-size: clamp(26px, 3vw, 36px); white-space: normal; }
.fix h3 { font-size: 22px; margin-bottom: 8px; }
.fix-pair h3 { margin-bottom: 6px; }
.level { grid-template-columns: 70px 1fr 2fr; align-items: center; }
.level h3 { margin-bottom: 0; }

/* Terminal */
.term { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #08080a; margin-bottom: 14px; box-shadow: 0 30px 80px rgba(0, 151, 165, .08); }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #333; }
.term-bar span { margin-left: 10px; font: 12px/1 ui-monospace, "SF Mono", Menlo, monospace; color: var(--dim); }
.term-body { padding: 22px 22px 26px; font: clamp(12px, 1.25vw, 15px)/1.75 ui-monospace, "SF Mono", Menlo, monospace; overflow-x: auto; }
.tl { display: flex; gap: 12px; white-space: pre-wrap; word-break: break-word; }
.tm { flex: none; width: 1ch; color: var(--dim); }
.tl.cmd .tt, .tl.req .tt { color: #fff; }
.tl.req { margin-top: 12px; }
.tl.out .tt { color: var(--grey); }
.tl.ok .tm, .tl.ok .tt { color: #8cd408; }
.tl.bad .tm, .tl.bad .tt { color: #ff8f8f; }
.tl.go .tm, .tl.go .tt { color: #5fd3de; }
.js .term:not(.done) .tl { visibility: hidden; }
.js .term:not(.done) .tl.show { visibility: visible; }
.tl.typing .tt::after { content: "▋"; margin-left: 2px; animation: conv-blink 1s step-end infinite; }
.term-note { margin-bottom: 40px; }
@media (max-width: 1000px) { .trio, .habits, .findings { grid-template-columns: 1fr; } .level { grid-template-columns: 50px 1fr; } .level .grey { grid-column: 2; } }
@media (prefers-reduced-motion: reduce) { .js .term .tl { visibility: visible !important; } }

/* Personal site: name in the header, studio logo in the footer */
.swap.name { font-weight: 500; font-size: 20px; letter-spacing: -.02em; padding-left: 0; justify-self: start; }
.foot-name { font-weight: 500; font-size: 22px; letter-spacing: -.02em; margin-bottom: 8px; }
.foot-studio { display: inline-flex; flex-direction: column; gap: 8px; margin-top: 28px; text-decoration: none; }
.foot-studio video { width: 150px; height: auto; mix-blend-mode: screen; }
.studio-logo video { width: 300px; max-width: 70vw; height: auto; margin: 0 auto 30px; mix-blend-mode: screen; }
.home-proof { margin-top: 70px; }
.more { margin-top: 44px; }
#asks .lf-head, #experience .lf-head { max-width: 860px; }
