/* Revolando — metro typographic tiles world */
:root {
  --ink: #000;
  --tile: #141414;
  --tile-2: #1f1f1f;
  --tile-3: #2b2b2b;
  --white: #fff;
  --soft: #d0d0d0;          /* secondary body text on dark tiles */
  --grey: #9a9a9a;          /* 7.1:1 on black */
  --red: #ef4123;
  --red-hi: #ff5a3c;        /* hover on red fills; also red text on dark tiles */
  --gap: 8px;
  --r: 14px;                /* corner radius, echoes the rounded-square logo */
  --r-sm: 8px;
  --pad: clamp(16px, 4vw, 56px);
  --display: "Red Hat Display", "Segoe UI", system-ui, sans-serif;
  --text: "Red Hat Text", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; scrollbar-color: var(--red) var(--ink); }
body { margin: 0; background: var(--ink); color: var(--white); font: 400 17px/1.6 var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: var(--red); color: var(--white); }
::-webkit-scrollbar { width: 10px; } ::-webkit-scrollbar-track { background: var(--ink); } ::-webkit-scrollbar-thumb { background: var(--red); }
input, textarea { caret-color: var(--red); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
img { display: block; max-width: 100%; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--red); color: #000; font-weight: 700; padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px var(--pad); background: transparent; transition: background .3s, backdrop-filter .3s; }
.nav.scrolled { background: rgba(0,0,0,.3); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }   /* fully clear at the very top */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1rem var(--display); letter-spacing: .16em; text-transform: uppercase; }
.nav nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); }
.nav nav a { text-decoration: none; font: 500 1.02rem var(--display); color: var(--white); transition: color .2s; }
.nav nav a:not(.nav-cta):hover { color: var(--red); }
.nav .nav-cta { color: #000; background: var(--red); padding: 8px 16px; font-weight: 700; }
.nav .nav-cta:hover { background: var(--red-hi); }
/* Desktop home: the CTA stays out of the nav while the hero's own "start a project" tile is on screen,
   then slides in (its width grows from 0, so the links ease left to make room). */
@media (min-width: 761px) {
  .nav .nav-cta { display: inline-block; white-space: nowrap; overflow: hidden; max-width: 220px;
    transition: max-width .55s var(--ease), padding .55s var(--ease), margin .55s var(--ease), opacity .35s .1s, transform .55s var(--ease), background .2s; }
  .cta-away .nav .nav-cta { max-width: 0; padding-left: 0; padding-right: 0; margin-left: calc(-1 * clamp(14px, 2.4vw, 32px)); opacity: 0; transform: translateX(-16px); pointer-events: none; transition: max-width .45s var(--ease), padding .45s var(--ease), margin .45s var(--ease), opacity .2s, transform .45s var(--ease); }
}
@media (max-width: 760px) { .nav nav a:not(.nav-cta) { display: none; } }

/* Phones: one menu button instead of the top CTA; the menu opens full screen (built by site.js). */
.menu-btn, .menu { display: none; }
@media (max-width: 760px) {
  .js .nav .nav-cta { display: none; }
  .js .menu-btn { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; background: none; color: var(--white); cursor: pointer; position: relative; z-index: 31; }
  .menu-btn span, .menu-btn span::after { display: block; width: 24px; height: 2px; background: currentColor; transition: transform .35s var(--ease); }
  .menu-btn span { position: relative; transform: translateY(-4px); }
  .menu-btn span::after { content: ""; position: absolute; left: 0; top: 8px; }
  .menu-open .menu-btn span { transform: rotate(45deg); }
  .menu-open .menu-btn span::after { transform: translateY(-8px) rotate(-90deg); }
  .js .menu { display: flex; position: fixed; inset: 0; z-index: 30; flex-direction: column; padding: calc(74px + 4vh) var(--pad) calc(28px + env(safe-area-inset-bottom)); background: var(--ink);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
  .menu-open .menu { opacity: 1; visibility: visible; transition: opacity .3s; }
  .menu ul { list-style: none; margin: 0; padding: 0; }
  .menu li a { display: block; padding: 4px 0; color: var(--white); text-decoration: none; font: 300 clamp(2.8rem, 14vw, 4.2rem)/1.05 var(--display); letter-spacing: -.03em;
    transform: translateY(14px); opacity: 0; transition: transform .5s var(--ease), opacity .4s; }
  .menu-open .menu li a { transform: none; opacity: 1; }
  .menu-open .menu li:nth-child(2) a { transition-delay: .04s; } .menu-open .menu li:nth-child(3) a { transition-delay: .08s; }
  .menu-open .menu li:nth-child(4) a { transition-delay: .12s; } .menu-open .menu li:nth-child(5) a { transition-delay: .16s; }
  .menu li a:active { color: var(--red); }
  .menu li a.m-cta { color: var(--red); }
  .menu .m-foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px 22px; font: 400 1.05rem var(--display); }
  .menu .m-foot a { color: var(--soft); text-underline-offset: 4px; }
  .menu-open { overflow: hidden; }
  .menu-open .nav { z-index: 40; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav .brand { position: relative; z-index: 31; }
}
@media (prefers-reduced-motion: reduce) { .menu, .menu li a, .menu-btn span, .menu-btn span::after { transition: none !important; } }

/* giant type: always fits the width; long lines wrap on narrow screens */
.giant { margin: 0; font: 300 clamp(3.6rem, 13vw, 14rem)/.9 var(--display); letter-spacing: -.04em; text-transform: lowercase; text-wrap: balance; overflow-wrap: normal; }
.giant span { display: inline; }
h2.giant { color: var(--red); }   /* section titles in brand red; page titles (h1) stay white */
/* Desktop: thinner section titles. 300 is the lightest weight of Red Hat Display, so a black outline
   (the page background) shaves the letters from the edges. Only valid on the plain black page. */
@media (min-width: 900px) { h2.giant { -webkit-text-stroke: .022em #000; } }
.hero, .block { overflow: hidden; padding: 0 var(--pad); }
.block { padding-top: clamp(80px, 12vw, 160px); }

/* hero */
.d-br { display: none; }
@media (min-width: 900px) { .d-br { display: inline; } .hero .promise, .hero .sub { max-width: none; } }
.hero { position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: calc(100svh - 66px); padding-top: clamp(28px, 6vw, 72px); padding-bottom: var(--pad); }   /* gap under the tiles matches the side margins */
.hero .giant { margin-top: auto; }   /* content sits at the bottom of the first screen; the light fills the space above */
.hero { overflow: visible; }   /* let the light run up behind the nav */
.hero-bg { position: absolute; top: -66px; left: 0; z-index: -1; width: 100%; height: calc(100% + 66px + 45vh);   /* behind the nav, and 45vh past the hero where it melts away */
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 60vh), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 60vh), transparent); }
.hero + .block { position: relative; z-index: 1; }   /* next section sits above the fading light */
/* Phones: the content sits at the bottom of the first screen; the light fills the whole screen behind it. */
@media (max-width: 700px) {
  .hero { min-height: calc(100svh - 72px); padding-top: 24px; }   /* the phone nav is 72px tall */
}
.hero .giant span { display: inline-block; animation: slide-in 1.2s var(--ease) both; }
/* "digital" at a quarter of the size of "dreamland", which fills the content width.
   On short wide screens it is capped by height so the hero still fits the first screen. */
.hero { container-type: inline-size; }
.hero .giant { --gm: min(100cqi / 4.25, 25svh); }
.hero .giant .g-main { display: block; font-size: var(--gm); line-height: .9; margin-left: -.03em; }
/* "digital" tucks into the gap above "rea", between the stems of d and l: the descender of its g clears dreamland's
   x-height, so its top rises a little above the ascenders. Offsets are fractions of the dreamland size (Red Hat Display metrics). */
.hero .giant { position: relative; }
.hero .giant .g-top { position: absolute; left: calc(var(--gm) * .51); top: calc(var(--gm) * .02); font-size: calc(var(--gm) / 4); line-height: 1; font-weight: 400; letter-spacing: 0; white-space: nowrap; }
@keyframes slide-in { from { transform: translateY(.25em); opacity: 0; } to { transform: none; opacity: 1; } }
.promise { margin: 18px 0 6px; font: 400 clamp(1.4rem, 2.8vw, 2.3rem)/1.2 var(--display); max-width: 30ch; color: var(--soft); }   /* softer than pure white under titles */
.hero .promise { color: var(--white); }   /* the hero tagline stays white over the light */
.sub { margin: 0 0 36px; color: var(--soft); max-width: 58ch; }
.intro { color: var(--grey); margin: 18px 0 32px; max-width: 60ch; font-size: 1.1rem; }

/* tiles */
.tiles { display: grid; gap: var(--gap); list-style: none; margin: 0; padding: 0; }
.tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; background: var(--tile); color: var(--white); text-decoration: none; min-height: 200px; overflow: hidden; transition: transform .35s var(--ease), background .2s; transform-origin: center; }
a.tile:active, button.tile:active { transform: perspective(700px) rotateX(5deg) rotateY(-4deg) scale(.985); }
.t-red { background: var(--red); }
a.t-red:hover, button.t-red:hover { background: var(--red-hi); }
.t-ink { background: var(--tile-2); }
a.t-ink:hover { background: var(--tile-3); }
.t-big { font: 300 clamp(2rem, 3.4vw, 3rem)/1 var(--display); letter-spacing: -.02em; }
.t-mid { font: 400 1.5rem/1.15 var(--display); }
.t-label { font: 500 .98rem/1.35 var(--display); }
.t-arrow { position: absolute; top: 18px; right: 18px; width: 30px; height: 30px; stroke-width: 1.4; transition: transform .35s var(--ease); }
a.tile:hover .t-arrow, button.tile:hover .t-arrow { transform: translateX(6px); }

.hero-tiles { grid-template-columns: 2fr 1fr 1fr; }
.hero-tiles .tile { aspect-ratio: auto; min-height: clamp(180px, 22vw, 300px); }
.t-ai { background: #1c174d; }
.t-icon { width: 88px; height: 88px; margin: auto auto 18px 0; }
.t-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.t-img .front .t-label { position: relative; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
@media (max-width: 900px) { .hero-tiles { grid-template-columns: 1fr 1fr; } .hero-tiles .t-wide { grid-column: 1 / -1; min-height: 140px; } }

/* rounded corners, taken from the logo's rounded square */
.tile, .live .face, .cform { border-radius: var(--r); }
.nav .nav-cta, .chips span, .skip { border-radius: var(--r-sm); }
@media (max-width: 560px) { :root { --r: 10px; --r-sm: 6px; } }

/* live tiles flip */
.live { padding: 0; perspective: 900px; background: transparent; }
.live .face { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; backface-visibility: hidden; transition: transform .9s var(--ease); }
.live .front { background: inherit; }
.t-img.live .front { background: var(--tile); }
.t-ai.live .face { background:   /* same colours as the AI Cleaner DMG window */
  radial-gradient(circle at 18% 14%, rgba(138,124,224,.45), transparent 55%),
  radial-gradient(circle at 92% 96%, rgba(31,184,150,.28), transparent 50%),
  linear-gradient(150deg, #45389e, #1c174d); }
.t-ai.live .back .t-label { color: rgba(255,255,255,.72); }
.live .back { transform: rotateX(-180deg); gap: 8px; }
.live.flipped .front, .live:hover .front { transform: rotateX(180deg); }
.live.flipped .back, .live:hover .back { transform: rotateX(0); }
.live .back .t-label { color: var(--grey); }

/* apps */
.apps { grid-template-columns: repeat(2, 1fr); }   /* every app is equal; revisit (carousel) when a third ships */
.t-app { padding: 0; min-height: 0; justify-content: flex-start; }
.t-app > img, .ai-art { width: 100%; height: clamp(170px, 30vh, 340px); object-fit: cover; }
.t-app-ai { background: #1c174d; }
.ai-art { display: grid; place-items: center; background: #15113a; }
.ai-art { overflow: hidden; }
.ai-art img { width: auto; height: calc(clamp(170px, 30vh, 340px) * .58); border-radius: 22%; box-shadow: 0 18px 48px -12px rgba(0,0,0,.6); }   /* explicit size: a % height here resolved against the width and overflowed */
.t-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.t-body h3 { margin: 0; font: 300 clamp(2rem, 3.2vw, 2.8rem)/1 var(--display); letter-spacing: -.02em; }
.t-body p { margin: 0; max-width: 54ch; color: var(--soft); }
.t-app-ai .t-body p { color: #d4d1ee; }
.t-body .meta { color: var(--grey); font-size: .95rem; }
.t-app-ai .t-body .meta { color: #b2aed8; }
.link { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 8px; font: 500 1.1rem var(--display); text-decoration: none; color: var(--white); }
.link svg { width: 22px; height: 22px; color: var(--red); transition: transform .3s var(--ease); }
.link:hover svg { transform: translateX(4px); }
@media (max-width: 700px) { .apps { grid-template-columns: 1fr; } }

/* work */
.work { grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(200px, 17vw, 280px); }   /* two rows on desktop: wide, small, small / small, small, wide */
.work li { display: contents; }
.t-work { padding: 0; min-height: 0; }
.t-work img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .5s; filter: grayscale(.25) brightness(.85); }
.t-work:hover img, .t-work:focus-visible img { transform: scale(1.05); filter: none; }
.w-cap { position: relative; margin-top: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; background: linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,0)); }
.w-name { font: 400 1.45rem/1.1 var(--display); }
.w-tags { font-size: .9rem; color: var(--soft); }
.t-work::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 0 var(--red); transition: box-shadow .3s var(--ease); pointer-events: none; }
.t-work:hover::after { box-shadow: inset 0 -6px 0 0 var(--red); }
.w-xl { grid-column: span 2; }
@media (max-width: 900px) { .work { grid-template-columns: 1fr 1fr; grid-auto-rows: 220px; } .work .w-xl { grid-column: auto; } }   /* tablets and phones: three rows of two */
@media (max-width: 560px) { .work { grid-auto-rows: 180px; } .w-cap { padding: 10px 12px; } .w-name { font-size: 1.05rem; } .w-tags { display: none; } }   /* small tiles: name only, so the photo stays visible */

/* services: expertise groups, then the path */
.svc-intro { margin-top: 20px; max-width: 46ch; }
.expertise { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 4vw, 56px) clamp(24px, 3vw, 48px); margin-top: 48px; }
.exp-head { margin: 0 0 8px; font: 300 clamp(1.5rem, 2.2vw, 2rem)/1.1 var(--display); letter-spacing: -.01em; color: var(--white); }
.expertise ul { list-style: none; margin: 0; padding: 0; }
.expertise li { display: grid; gap: 2px; padding: 14px 0; border-top: 1px solid #262626; }
.exp-name { font: 500 1.02rem/1.3 var(--text); color: var(--white); }
.exp-desc { color: var(--grey); font-size: .95rem; }
.next .exp-head { color: var(--red-hi); }
@media (max-width: 1000px) { .expertise { grid-template-columns: 1fr 1fr; } }
.exp-toggle { all: unset; display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; box-sizing: border-box; font: inherit; color: inherit; }
.exp-toggle:disabled { cursor: default; }
.exp-toggle i { display: none; }
@media (max-width: 620px) {
  .expertise { grid-template-columns: 1fr; gap: 0; margin-top: 32px; }
  .exp-head { margin: 0; border-top: 1px solid #262626; }
  .exp-group:last-child { border-bottom: 1px solid #262626; }
  .exp-toggle { cursor: pointer; padding: 18px 0; }
  .exp-toggle:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
  .exp-toggle i { display: block; position: relative; flex: none; width: 18px; height: 18px; }
  .exp-toggle i::before, .exp-toggle i::after { content: ""; position: absolute; left: 0; top: 8px; width: 18px; height: 2px; background: var(--red-hi); transition: transform .3s var(--ease); }
  .exp-toggle i::after { transform: rotate(90deg); }
  .exp-group.open .exp-toggle i::after { transform: rotate(0deg); }
  .js .exp-group:not(.open) ul { display: none; }
  .exp-group.open ul { padding-bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) { .exp-toggle i::before, .exp-toggle i::after { transition: none; } }
.svc-sub { margin: clamp(56px, 7vw, 96px) 0 0; font: 300 clamp(2rem, 4vw, 3.4rem)/1 var(--display); letter-spacing: -.02em; color: var(--white); }
.t-num { font: 500 .85rem/1 var(--text); letter-spacing: .04em; color: var(--red-hi); }
.t-step.t-red .t-num { color: #000; }
.process { grid-template-columns: repeat(4, 1fr); margin-top: 28px; counter-reset: s; }
.t-step { min-height: 220px; gap: 10px; justify-content: space-between; }
.t-step .t-label { font-weight: 400; color: var(--soft); font-family: var(--text); font-size: .98rem; }
.t-step.t-red .t-label { color: #000; font-weight: 500; }
.t-step .t-mid { font-size: clamp(1.6rem, 2.4vw, 2.1rem); font-weight: 300; }
@media (max-width: 900px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } .t-step { min-height: 0; } }

/* about */
.about-body { margin-top: 32px; max-width: 68ch; }
.lede { font: 300 clamp(1.8rem, 3.4vw, 3rem)/1.1 var(--display); letter-spacing: -.02em; margin: 0 0 24px; color: var(--soft); }
.about-body p:not(.lede) { color: var(--soft); font-size: 1.1rem; }
.about-body a { color: var(--white); text-underline-offset: 4px; }
.about-body a:hover { color: var(--red-hi); }

/* contact */
.contact { padding-bottom: clamp(80px, 10vw, 140px); }
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--gap); margin-top: 40px; }
.cform { background: var(--tile); padding: clamp(18px, 3vw, 36px); display: grid; gap: 22px; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font: 500 1rem var(--display); color: var(--grey); padding: 0; }
.field input, .field textarea { width: 100%; background: var(--ink); color: var(--white); border: 0; border-bottom: 2px solid #3a3a3a; padding: 12px 2px; font: 400 1.15rem var(--text); border-radius: 0; transition: border-color .2s; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--red); }
.field .err { border-bottom-color: #ff8a73; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chips label { cursor: pointer; position: relative; }
.chips input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.chips span { display: block; padding: 9px 14px; background: var(--tile-3); font: 400 1rem var(--display); color: var(--soft); transition: background .2s; }
.chips label:hover span { background: #3a3a3a; }
.chips input:checked + span { background: var(--red); color: #000; font-weight: 500; }
.chips input:focus-visible + span { outline: 3px solid var(--white); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.send { border: 0; cursor: pointer; min-height: 96px; text-align: left; font: inherit; }
.send[disabled] { opacity: .6; cursor: progress; }
.form-msg { margin: 0; min-height: 1.6em; font: 500 1.05rem var(--display); }
.form-msg.ok { color: #7fe0a8; } .form-msg.bad { color: #ff8a73; }
.contact-side { display: grid; gap: var(--gap); grid-template-rows: auto 1fr auto; }
.c-mail { min-height: 150px; gap: 12px; }
.c-mail svg { position: absolute; top: 18px; right: 18px; width: 30px; height: 30px; }
.c-mail .t-mid { font-size: clamp(1.3rem, 2vw, 1.6rem); overflow-wrap: anywhere; }
.c-addr { min-height: 0; justify-content: space-between; gap: 18px; }
.c-addr .t-label { color: var(--grey); }
address { font: 400 1.3rem/1.35 var(--display); font-style: normal; }
.c-social { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.c-social .tile { min-height: 120px; }
.c-social svg { position: absolute; top: 16px; left: 18px; width: 30px; height: 30px; }
.c-social .dot { fill: currentColor; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* case-study pages (/work/<slug>/) */
.backlink { display: inline-flex; align-items: center; gap: 8px; margin-bottom: clamp(18px, 3vw, 32px); color: var(--grey); text-decoration: none; font: 500 1rem var(--display); }
.backlink svg { width: 20px; height: 20px; color: var(--red); transition: transform .3s var(--ease); }
.backlink:hover { color: var(--white); } .backlink:hover svg { transform: translateX(-4px); }
.case .promise { max-width: 60ch; font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.4; color: var(--soft); }
.c-cover { margin: clamp(24px, 4vw, 40px) 0 0; border-radius: var(--r); overflow: hidden; background: var(--tile); }
.c-cover img { display: block; width: 100%; height: auto; max-height: 78vh; object-fit: cover; }
.c-top { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); padding-top: clamp(32px, 5vw, 64px); }
.c-text { justify-content: flex-start; gap: 12px; min-height: 0; }
.c-text .t-label { margin: 0; color: var(--red-hi); font: 400 1.4rem/1.2 var(--display); }
.c-text p { margin: 0; color: var(--soft); }
.c-meta { margin: 0; justify-content: flex-start; gap: 16px; min-height: 0; background: var(--tile); }
.c-meta dt { font: 500 .9rem var(--display); color: var(--grey); }
.c-meta dd { margin: 2px 0 0; font: 400 1.15rem/1.35 var(--display); }
.c-meta dd a { color: var(--white); text-underline-offset: 4px; display: inline-flex; align-items: center; gap: 6px; }
.c-meta dd a svg { width: 18px; height: 18px; color: var(--red); }
.c-meta ul { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.c-meta li { font: 400 .92rem var(--display); background: var(--tile-3); padding: 5px 10px; border-radius: var(--r-sm); }
.c-facts { margin: var(--gap) var(--pad) 0; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .c-facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .c-facts { grid-template-columns: 1fr; } }
.c-facts .tile { justify-content: flex-start; gap: 10px; min-height: 0; }
.c-facts h3 { margin: 0; }
.c-facts p { margin: 0; color: var(--soft); font-size: 1rem; }
.c-gallery { margin: clamp(40px, 6vw, 80px) var(--pad) 0; grid-template-columns: 1fr 1fr; }
.g-tile { border-radius: var(--r); overflow: hidden; background: var(--tile); }
.auto .g-tile:first-child, .auto .g-tile:first-child ~ .g-tile:last-child:nth-child(even), .g-wide { grid-column: 1 / -1; }
.g-tile img { aspect-ratio: 3 / 2; object-fit: cover; }
.auto .g-tile:first-child img, .auto .g-tile:first-child ~ .g-tile:last-child:nth-child(even) img, .g-wide img { aspect-ratio: auto; }
.g-tile img { display: block; width: 100%; height: auto; }
.g-tile.g-long img { aspect-ratio: 3 / 2; object-fit: cover; object-position: top; }
.c-next { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); padding-bottom: clamp(48px, 8vw, 96px); }
.c-next .tile { min-height: clamp(180px, 20vw, 260px); gap: 6px; justify-content: flex-end; }
.c-next .tile { justify-content: space-between; }
.c-next .t-red .t-label { color: #000; font-weight: 500; }
.c-next .t-ink .t-label { color: var(--soft); }
@media (max-width: 700px) { .c-gallery, .c-next { grid-template-columns: 1fr; } }

/* text pages (privacy) */
.prose-page { padding-bottom: clamp(48px, 8vw, 96px); }
.prose { margin-top: clamp(28px, 4vw, 48px); max-width: 68ch; }
.prose h2 { margin: 2.2em 0 .5em; font: 400 1.5rem/1.2 var(--display); color: var(--white); }
.prose p { margin: 0 0 1em; color: var(--soft); }
.prose a { color: var(--white); text-underline-offset: 4px; }
.prose a:hover { color: var(--red-hi); }
.prose .updated { color: var(--grey); font-size: .95rem; }
.prose .doc-title { margin: 0 0 .4em; font: 400 clamp(1.3rem, 2vw, 1.6rem)/1.2 var(--display); color: var(--white); }
.prose h3 { margin: 1.6em 0 .4em; font: 500 1.1rem/1.3 var(--text); color: var(--white); }
.prose ul { margin: 0 0 1em; padding-left: 1.2em; color: var(--soft); }
.prose li { margin: 0 0 .5em; }
.prose strong { color: var(--white); font-weight: 500; }
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; color: var(--soft); }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-top: 1px solid #262626; }
.prose th { color: var(--white); font-weight: 500; }
.co-status { color: var(--white); font-weight: 500; }
.co-status:empty { display: none; }
/* AI Cleaner sub-pages: the way back is a real button */
.backbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 2px solid var(--red); border-radius: var(--r-sm); background: #000; color: var(--white); font: 500 1rem var(--display); text-decoration: none; transition: background .2s, color .2s; }
.backbtn:hover { background: var(--red); color: #000; }
.backbtn:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .backbtn { transition: none; } }
a.co-open { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; text-decoration: none; }
/* AI Cleaner invite landing (/i/<code>) */
.invite { max-width: 760px; }
.inv-icon { display: block; width: 72px; height: 72px; margin-bottom: 24px; }
.inv-title { margin: 0; font: 300 clamp(2.2rem, 5.4vw, 4.2rem)/1.02 var(--display); letter-spacing: -.03em; color: var(--white); text-wrap: balance; }
.inv-text { margin: 20px 0 0; max-width: 54ch; color: var(--soft); font-size: 1.08rem; }
.inv-code { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 16px; margin-top: 36px; padding: 20px 24px; border-radius: var(--r); background: #141414; }
.inv-label { grid-column: 1 / -1; font: 500 .85rem var(--text); color: var(--grey); }
.inv-value { font: 500 clamp(2.4rem, 7vw, 3.6rem)/1 var(--display); letter-spacing: .12em; color: var(--white); user-select: all; }
.inv-copy { min-height: 44px; padding: 0 20px; border: 2px solid var(--white); border-radius: var(--r-sm); background: transparent; color: var(--white); font: 500 1rem var(--display); cursor: pointer; transition: background .2s, color .2s; }
.inv-copy:hover { background: var(--white); color: #000; }
.inv-copy:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.inv-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.inv-note { margin: 16px 0 0; color: var(--grey); font-size: .95rem; }
.co-open { border: 0; cursor: pointer; padding: 12px 22px; border-radius: var(--r-sm); background: var(--red); color: #000; font: 700 1rem var(--display); transition: background .2s; }
.co-open:hover { background: var(--red-hi); }
.co-open:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.legal-nav { margin-top: clamp(40px, 6vw, 72px); display: flex; gap: 12px; flex-wrap: wrap; font: 400 1.1rem var(--display); color: var(--grey); }
.legal-nav a { color: var(--white); text-underline-offset: 4px; }
.legal-nav a[aria-current] { color: var(--red-hi); text-decoration: none; }
.legal-nav a:hover { color: var(--red-hi); }

.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; padding: 28px var(--pad) 36px; color: var(--grey); font-size: .95rem; border-top: 1px solid #1d1d1d; }
.foot p { margin: 0; }
.foot .brand { color: var(--white); }
.foot a:not(.brand) { color: var(--grey); text-underline-offset: 4px; }
.foot a:hover { color: var(--white); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .giant span, .hero .giant span { animation: none; transform: none !important; }
  .live .face, .tile, .t-work img { transition: none; }
}
