/* Silentblast theme: core styles (shared by every page) */
/* Layout: one 1120px column on clean white with generous space. The hero is white type over the dark top of
   the studio photo, which runs full-bleed below; the showreel is the big moment, a dark video framed on white. Everything else is white and mist.
   Colour v0.3: white leads, ink carries the type, one violet family is the only accent; black logo;
   one dark glass moment (Silentblast AI) and an ink footer give the page weight.
   The page deliberately commits to this one light look, so every color is set explicitly. */
:root {
  color-scheme: light;
  --accent: #7C3AED;        /* Violet: primary buttons, glows (white text on it, 5.7:1) */
  --accent-ink: #6D28D9;    /* Violet Ink: links, icons, eyebrows on white (7.1:1) */
  --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
  --on-accent: #FFFFFF;
  --fx-deep: #2E0B8F; --fx-mid: #5B21D6; --fx-bright: #8B5CF6; --fx-hi: #E879F9; --fx-glow: #DDD0FF;
  --paper: #FFFFFF;
  --mist: #F5F4F9;
  --line: #E6E3EE;
  --ink: #0B0D10;
  --slate: #5B6670;
  --void: #05080A;
  --snow: #F2F6F7;
  --fog: #9AA7AE;
  --accent-tint: #F3EEFF;
  --accent-light: #C4B5FD; /* violet for text on dark and on photos */
  --haze: #E8E6EE;        /* cool grey ground behind the glass field */
  --ok: #17905A;
  --f-display: "Geist", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --f-body: "Geist", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --f-mono: "Geist Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --r-sm: 12px; --r-md: 20px; --r-lg: 28px; --r-xl: 36px; --r-pill: 999px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --water: cubic-bezier(.22, .9, .25, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: rgba(255,255,255,.9); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* bands */
.band { position: relative; padding-block: clamp(72px, 10vw, 128px); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.band > .wrap { max-width: 1120px; margin-inline: auto; position: relative; z-index: 1; }
.mist { background: var(--mist); }

/* type */
h1, h2, h3, h4 { font-family: var(--f-display); margin: 0; text-wrap: balance; }
.t-display { font-size: clamp(44px, 6.4vw, 84px); line-height: .98; font-weight: 700; letter-spacing: -.045em; }
.t-h2 { font-size: clamp(34px, 5vw, 56px); line-height: 1.04; font-weight: 680; letter-spacing: -.032em; }
.t-h3 { font-size: clamp(22px, 2.4vw, 26px); line-height: 1.2; font-weight: 620; letter-spacing: -.016em; }
.eyebrow { font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; margin: 0; color: var(--accent-ink); }
.lead { font-size: clamp(19px, 2vw, 22px); line-height: 1.5; letter-spacing: -.008em; margin: 0; max-width: 34em; color: var(--slate); text-wrap: pretty; }
.body { margin: 0; color: var(--slate); text-wrap: pretty; }
.caption { font-family: var(--f-mono); font-size: 12px; line-height: 1.5; letter-spacing: .02em; margin: 0; color: var(--slate); }
.grad-ink { background: linear-gradient(100deg, var(--ink) 30%, var(--accent-ink) 92%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sec-head { display: grid; gap: 16px; margin-bottom: clamp(40px, 6vw, 64px); max-width: 780px; }

/* buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 26px; border-radius: var(--r-pill); font: 500 16px/1 var(--f-body); letter-spacing: -.005em;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .45s var(--water), box-shadow .3s var(--ease), background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.95, .92); }
.btn.sm { height: 38px; padding: 0 18px; font-size: 14px; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { box-shadow: 0 10px 34px color-mix(in srgb, var(--accent) 50%, transparent); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { box-shadow: 0 12px 30px rgba(11,13,16,.22); }
.btn-glass {
  color: var(--ink); background: rgba(255,255,255,.55); border-color: rgba(255,255,255,.9);
  -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 8px 24px rgba(11,40,50,.08);
}
.btn-glass:hover { background: rgba(255,255,255,.8); }
.btn-outline { color: var(--ink); border-color: rgba(11,13,16,.16); background: transparent; }
.btn-outline:hover { border-color: var(--ink); }
.btn-dglass { color: var(--snow); background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.btn-dglass:hover { background: rgba(255,255,255,.15); }
.ripple { position: absolute; border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%) scale(0); animation: ripple .9s var(--water) forwards; background: radial-gradient(circle, rgba(255,255,255,.6), rgba(255,255,255,.14) 60%, transparent 70%); }
@keyframes ripple { to { transform: translate(-50%, -50%) scale(1); opacity: 0; } }
.spark { width: 18px; height: 18px; flex: none; }

/* light glass */
.glass-light {
  background: linear-gradient(180deg, rgba(255,255,255,.62), rgba(255,255,255,.34));
  -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid rgba(255,255,255,.9); border-radius: var(--r-lg); color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 24px 60px rgba(11,40,50,.10);
}

/* ---------- Nav ---------- */
.nav-shell { position: fixed; left: 0; right: 0; top: env(safe-area-inset-top, 0px); z-index: 50; padding: clamp(20px, 2.6vw, 32px) max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); height: 0; overflow: visible; }
.navbar { max-width: 1120px; margin-inline: auto; display: flex; align-items: center; gap: 20px; height: 60px; padding: 0 22px; border-radius: var(--r-pill); transition: box-shadow .3s var(--ease), background .3s; }
.navbar .lg-w, .navbar.on-dark .lg-k { display: none; }
.navbar.on-dark .lg-w { display: block; }
.navbar.on-dark { background: rgba(20,17,14,.38); border-color: rgba(255,255,255,.18); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 20px 50px rgba(0,0,0,.2); }
.navbar.on-dark ul a { color: rgba(255,255,255,.75); }
.navbar.on-dark ul a:hover { color: #FFFFFF; background: rgba(255,255,255,.1); }
.navbar.on-dark .btn-glass { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: #FFFFFF; box-shadow: none; }
.navbar.on-dark .btn-ink { background: #FFFFFF; color: var(--ink); }
.navbar.scrolled:not(.on-dark) { background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.62)); }
.navbar .brand img { height: 24px; width: auto; }
.navbar nav { margin-left: auto; }
.navbar ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.navbar ul a { display: block; padding: 8px 14px; border-radius: var(--r-pill); font-size: 14px; color: var(--slate); text-decoration: none; transition: background .2s, color .2s; }
.navbar ul a:hover { color: var(--ink); background: rgba(11,13,16,.05); }
.nav-ctas { display: flex; gap: 8px; align-items: center; }
.nav-phone span { font-variant-numeric: tabular-nums; letter-spacing: .01em; white-space: nowrap; }
@media (max-width: 400px) { .navbar .nav-phone { padding: 0 14px; } .navbar .brand img { height: 22px; } }
/* Compact nav: once you scroll, the bar slides right and shrinks into a round glass menu button; tapping it opens a glass menu */
.nav-shell { display: flex; justify-content: flex-end; padding-right: max(16px, calc((100% - 1120px) / 2)); padding-left: max(16px, calc((100% - 1120px) / 2)); }
.navbar { position: relative; width: 100%; max-width: 1120px; margin: 0; overflow: hidden; transition: max-width .8s var(--water), padding .6s var(--water), box-shadow .3s var(--ease), background .3s; }
.navbar .brand, .navbar .nav-ctas { flex: none; transition: opacity .3s var(--ease), transform .6s var(--water); }
.navbar nav { min-width: 0; flex: 0 1 auto; transition: opacity .3s var(--ease), transform .6s var(--water); }
.navbar ul { white-space: nowrap; }
.nav-menu { position: absolute; right: 0; top: 0; width: 60px; height: 60px; border: 0; padding: 0; border-radius: 50%; background: transparent; color: inherit; display: grid; place-items: center; cursor: pointer; opacity: 0; transform: scale(.6) rotate(-90deg); pointer-events: none; transition: opacity .3s var(--ease), transform .7s var(--water); }
.navbar.on-dark .nav-menu { color: #FFFFFF; }
.nav-menu i { position: absolute; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .45s var(--water), opacity .2s; }
.nav-menu i:nth-child(1) { transform: translateY(-4px); }
.nav-menu i:nth-child(2) { transform: translateY(4px); }
.nav-menu[aria-expanded="true"] i:nth-child(1) { transform: rotate(45deg); }
.nav-menu[aria-expanded="true"] i:nth-child(2) { transform: rotate(-45deg); }
.nav-menu:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: -4px; }
.navbar.compact { max-width: 60px; padding: 0; }
.navbar.compact .brand, .navbar.compact nav, .navbar.compact .nav-ctas { opacity: 0; transform: translateX(-24px); pointer-events: none; visibility: hidden; transition: opacity .2s var(--ease), transform .6s var(--water), visibility 0s .3s; }
.navbar.compact .nav-menu { opacity: 1; transform: none; pointer-events: auto; transition-delay: .25s; }
.navbar.compact:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 14px 36px rgba(11,13,16,.16); }
/* the menu panel */
.nav-panel { background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.7)) !important; position: absolute; right: max(16px, calc((100% - 1120px) / 2)); top: calc(clamp(20px, 2.6vw, 32px) + 70px); width: min(320px, calc(100vw - 32px)); padding: 10px; display: grid; gap: 4px; border-radius: var(--r-lg); transform-origin: top right; opacity: 0; transform: scale(.85) translateY(-8px); pointer-events: none; visibility: hidden; transition: opacity .25s var(--ease), transform .5s var(--water), visibility 0s .3s; }
.nav-panel.open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .25s var(--ease), transform .5s var(--water); }
.nav-panel ul { list-style: none; margin: 0; padding: 0; display: grid; }
.nav-panel ul a { display: flex; justify-content: space-between; align-items: center; padding: 13px 16px; border-radius: 14px; text-decoration: none; color: var(--ink); font-size: 17px; font-weight: 500; letter-spacing: -.01em; transition: background .2s; }
.nav-panel ul a:hover { background: rgba(11,13,16,.05); }
.nav-panel ul a span { color: var(--accent-ink); opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .3s var(--water); }
.nav-panel ul a:hover span { opacity: 1; transform: none; }
.nav-panel .panel-ctas { display: grid; gap: 8px; padding: 10px 6px 6px; border-top: 1px solid rgba(11,13,16,.08); margin-top: 6px; }
.nav-panel .panel-ctas .btn { width: 100%; }
.nav-panel.open ul li { animation: panelIn .5s var(--water) both; }
.nav-panel.open ul li:nth-child(2) { animation-delay: .04s; } .nav-panel.open ul li:nth-child(3) { animation-delay: .08s; } .nav-panel.open ul li:nth-child(4) { animation-delay: .12s; } .nav-panel.open ul li:nth-child(5) { animation-delay: .16s; }
@keyframes panelIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Hero: headline over the dark top of the studio photo, photo full-bleed below ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; color: #FFFFFF; background: #0D0B09; padding: clamp(112px, 11vw, 140px) 0 0; }
.hero > .wrap.hero-copy { z-index: 3; }
.hero > .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); box-sizing: content-box; }
/* the copy fills the first screen down to where the photo's top half ends, so the team appears as you scroll */
.hero-copy { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 24px clamp(24px, 5vw, 64px); align-items: end; align-content: end; position: relative; z-index: 2;
  padding-bottom: clamp(16px, 2vw, 28px); }
.hero-copy > div { display: grid; gap: 20px; min-width: 0; }
.hero-meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 14px; color: rgba(255,255,255,.72); margin: 0; }
.chip-glass { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: var(--r-pill); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: #FFFFFF; }
.chip-glass b { font: 600 14px/1 var(--f-display); }
.chip-glass .stars { letter-spacing: 1px; font-size: 12px; }
.hero h1 { font-size: clamp(40px, 6vw, 80px); line-height: .98; font-weight: 500; letter-spacing: -.045em; color: #FFFFFF; }
.hero .lead { color: rgba(255,255,255,.78); font-size: clamp(17px, 1.5vw, 19px); }
.hero-glow { position: absolute; inset: -60px -60px auto; height: 90%; z-index: 0; pointer-events: none; background: url(../img/hero-team-toronto.jpg) 50% 0 / cover no-repeat; filter: blur(30px) saturate(130%) brightness(.42); transform: scale(1.1);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
.hero-photo { position: relative; margin: -4vw 0 0; z-index: 1; -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.7) 8%, #000 18%); mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.7) 8%, #000 18%); aspect-ratio: 1672 / 941; max-width: 100%; overflow: hidden;
  }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(90deg, rgba(8,7,6,.82) 0%, rgba(8,7,6,.55) 30%, rgba(8,7,6,.12) 62%, rgba(8,7,6,0) 80%); }
.hero-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(13,11,9,.35) 0%, rgba(13,11,9,0) 40%); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; filter: blur(var(--hb, 18px)); transform: scale(1.08); transform-origin: 50% 100%; will-change: transform; }
/* the hero's supporting copy sits on a clear glass pane over the blurred team */
.hero-glass { padding: clamp(22px, 2.4vw, 32px); border-radius: var(--r-lg); background: linear-gradient(160deg, rgba(255,255,255,.16), rgba(255,255,255,.05)); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); border: 1px solid rgba(255,255,255,.32); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 24px 60px rgba(0,0,0,.25); }
.hero-glass .lead { color: rgba(255,255,255,.9); }
.btn-white { background: #FFFFFF; color: var(--ink); }
.btn-white:hover { box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.btn-clear { color: #FFFFFF; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn-clear:hover { background: rgba(255,255,255,.2); }

/* stats + logos */
.proof { padding-block: clamp(40px, 5vw, 64px) clamp(64px, 8vw, 96px); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.stat-card { background: var(--paper); border-radius: var(--r-lg); padding: 28px 30px; display: grid; gap: 6px; box-shadow: 0 1px 2px rgba(11,13,16,.04), 0 18px 40px rgba(11,13,16,.06); }
.stat { font-family: var(--f-display); font-size: clamp(44px, 5vw, 62px); line-height: 1; font-weight: 700; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.stat sup { font-size: .42em; vertical-align: top; position: relative; top: .2em; margin-left: 2px; color: var(--accent-ink); letter-spacing: 0; }
.stat-card .body { font-size: 15px; }
.stat-card.fill-violet { background: var(--accent); color: #FFFFFF; box-shadow: 0 18px 40px color-mix(in srgb, var(--accent) 30%, transparent); }
.stat-card.fill-ink { background: var(--ink); color: #FFFFFF; }
.stat-card.fill-violet .body, .stat-card.fill-ink .body { color: rgba(255,255,255,.82); }

.logos { margin-top: clamp(48px, 6vw, 72px); display: grid; gap: 18px; }
.logos .caption { text-align: center; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.mtrack { display: flex; gap: clamp(36px, 5vw, 64px); width: max-content; animation: scrollx 38s linear infinite; padding-block: 6px; }
.marquee:hover .mtrack { animation-play-state: paused; }
.mtrack span { font: 600 clamp(17px, 1.8vw, 21px)/1 var(--f-display); letter-spacing: -.015em; color: #8B969D; white-space: nowrap; }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ---------- Showreel (the one dark big moment) ---------- */
.reel { background: var(--paper); color: var(--ink); overflow: hidden; isolation: isolate; }
.reel .sec-head { margin-inline: auto; text-align: center; justify-items: center; }
.reel .lead { margin-inline: auto; }
.reel-frame {
  position: relative; display: block; aspect-ratio: 16 / 9; max-width: 100%; border-radius: var(--r-xl); overflow: hidden; text-decoration: none; color: var(--snow);
  background: #071016 url(../img/bg-currents.jpg) center / cover no-repeat;
  box-shadow: 0 0 0 1px rgba(11,13,16,.06), 0 40px 100px rgba(11,40,50,.22), 0 0 90px color-mix(in srgb, var(--accent) 18%, transparent);
  transform-origin: center top; will-change: transform;
}
.reel-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(5,8,10,.65)); }
.play {
  position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%); width: clamp(76px, 9vw, 104px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.35);
  -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 0 60px color-mix(in srgb, var(--accent) 35%, transparent); transition: transform .5s var(--water), background .3s;
}
.play::before { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); animation: ring 3.2s ease-out infinite; }
@keyframes ring { from { transform: scale(.8); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.reel-frame:hover .play { transform: translate(-50%, -50%) scale(1.08); background: rgba(255,255,255,.2); }
.play svg { margin-left: 5px; }
.reel-meta { position: absolute; left: clamp(18px, 3vw, 32px); right: clamp(18px, 3vw, 32px); bottom: clamp(16px, 3vw, 28px); z-index: 2; display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.reel-meta b { font: 600 clamp(17px, 2vw, 22px)/1.25 var(--f-display); letter-spacing: -.01em; }
.reel-meta .time { font: 500 13px/1 var(--f-mono); padding: 8px 12px; border-radius: var(--r-pill); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.reel-note { margin-top: 20px; text-align: center; }

/* ---------- Services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.svc-grid > * { min-width: 0; }
.svc { grid-column: span 4; background: var(--paper); border-radius: var(--r-lg); padding: 32px; display: grid; gap: 14px; align-content: start; text-decoration: none; color: inherit; position: relative; overflow: hidden;
  box-shadow: 0 1px 2px rgba(11,13,16,.04), 0 18px 40px rgba(11,13,16,.06); transition: transform .5s var(--water), box-shadow .4s var(--ease); }
.svc:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(11,13,16,.04), 0 28px 60px rgba(11,13,16,.10); }
.svc .icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); }
.svc .body { font-size: 16px; }
.svc .more { margin-top: 4px; font-size: 15px; font-weight: 500; color: var(--accent-ink); display: inline-flex; gap: 4px; }
.svc .more span { transition: transform .3s var(--water); }
.svc:hover .more span { transform: translateX(4px); }

/* Icon pop: a violet light orbits the tile; on hover the tile spins a full circle and lifts */
@property --orbit { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.svc .icon { position: relative; isolation: isolate; transition: transform .7s cubic-bezier(.34,1.56,.64,1), box-shadow .4s ease; }
.svc .icon::before { content: ""; position: absolute; inset: -3px; border-radius: 17px; padding: 2px; background: conic-gradient(from var(--orbit), transparent 0 52%, color-mix(in srgb, var(--accent) 60%, transparent) 72%, #C084FC 86%, var(--accent) 94%, transparent 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: iconOrbit 3.2s linear infinite; pointer-events: none; }
.svc .icon svg { transition: transform .7s cubic-bezier(.34,1.56,.64,1); }
.svc:hover .icon { transform: scale(1.14) rotate(360deg); box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 38%, transparent); }
.svc:hover .icon::before { animation-duration: 1.1s; }
@keyframes iconOrbit { to { --orbit: 360deg; } }
@media (prefers-reduced-motion: reduce) { .svc .icon::before { animation: none; } .svc:hover .icon { transform: scale(1.08); } }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px; border-radius: var(--r-pill); background: var(--mist); color: var(--slate); }
.svc.feature { grid-column: span 8; background: var(--mist); min-height: 340px; align-content: end; box-shadow: none; }
.svc.feature .inner { display: grid; gap: 14px; padding: 28px; max-width: 440px; }
.svc.feature .chip { background: rgba(255,255,255,.7); }
#services:not(.photo-band) .svc.feature { background: var(--paper); box-shadow: 0 1px 2px rgba(11,13,16,.04), 0 18px 40px rgba(11,13,16,.06); }
#services:not(.photo-band) .svc.feature .inner { padding: 0; background: none; box-shadow: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; max-width: 360px; position: relative; z-index: 1; }
#services:not(.photo-band) .svc.feature .chip { background: var(--mist); }
.svc.tall { grid-column: span 4; }
.svc.wide { grid-column: span 12; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 22px; }
.wide-copy { display: grid; gap: 6px; min-width: 0; }
.wide-copy .body { max-width: 68ch; }
.wide-copy .chip-row { margin-top: 6px; }
.svc.wide { align-items: start; }
.svc.wide .icon { margin-top: -6px; }
.svc.wide .more { align-self: center; }

/* ---------- Silentblast AI ---------- */
.ai-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.ai-copy { display: grid; gap: 22px; align-content: center; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: #2C353C; }
.ticks svg { flex: none; margin-top: 4px; color: var(--accent-ink); }
.chat-stage { position: relative; border-radius: var(--r-xl); padding: clamp(18px, 3vw, 34px); background: var(--mist) url(../img/bg-silk-light.jpg) left center / cover no-repeat; }
.chat { padding: 0; overflow: hidden; display: grid; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid rgba(11,13,16,.07); }
.chat-head img { width: 32px; height: auto; }
.chat-head .who { display: grid; line-height: 1.25; }
.chat-head .who b { font-size: 15px; font-weight: 600; }
.chat-head .who span { font-size: 12px; color: var(--slate); display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px rgba(23,144,90,.6); }
.chat-head .tag { margin-left: auto; }
.chat-log { padding: 20px; display: grid; gap: 12px; min-height: 290px; align-content: start; }
.bubble { max-width: 88%; padding: 12px 15px; border-radius: 18px; font-size: 14.5px; line-height: 1.5; animation: pop .55s var(--water) both; }
.bubble.me { justify-self: end; background: var(--ink); color: var(--paper); border-bottom-right-radius: 6px; }
.bubble.ai { background: rgba(255,255,255,.85); border: 1px solid rgba(11,13,16,.06); border-bottom-left-radius: 6px; color: #1E262C; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.slot-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.slot { font: 500 13px/1 var(--f-body); padding: 10px 14px; border-radius: var(--r-pill); background: var(--paper); color: var(--ink); border: 1px solid var(--line); cursor: pointer; transition: border-color .2s, background .2s; }
.slot:hover { border-color: var(--accent-ink); }
.slot[aria-pressed="true"] { background: var(--accent-tint); border-color: var(--accent-ink); color: var(--accent-ink); }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--fog); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.suggest { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 20px 14px; }
.suggest button { font: 500 13px/1.2 var(--f-body); padding: 9px 13px; border-radius: var(--r-pill); border: 1px solid color-mix(in srgb, var(--accent-ink) 25%, transparent); background: var(--accent-tint); color: var(--accent-ink); cursor: pointer; transition: background .2s; }
.suggest button:hover { background: color-mix(in srgb, var(--accent-tint) 70%, var(--accent) 12%); }
.chat-input { margin: 0 20px 20px; display: flex; gap: 8px; align-items: center; padding: 6px 6px 6px 16px; border-radius: var(--r-pill); background: var(--paper); border: 1px solid var(--line); }
.chat-input input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--ink); font: 400 15px var(--f-body); outline: none; }
.chat-input input::placeholder { color: #8C979E; }
.chat-input button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; cursor: pointer; flex: none; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; left: 24px; right: 24px; top: 23px; height: 2px; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent-ink) 15%, transparent)); border-radius: 2px; }
.step { display: grid; gap: 12px; align-content: start; position: relative; min-width: 0; }
.step .n { counter-increment: s; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font: 600 15px/1 var(--f-mono); background: var(--paper); border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(11,40,50,.08); position: relative; }
.step .n::before { content: counter(s, decimal-leading-zero); }
.step:first-child .n { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.step h3 { font-size: 21px; font-weight: 620; letter-spacing: -.014em; margin-top: 8px; }
.step .body { font-size: 15.5px; }
.step .chip { justify-self: start; background: var(--paper); border: 1px solid var(--line); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
.contact-copy { display: grid; gap: 22px; align-content: start; }
.reach { display: grid; gap: 0; margin-top: 6px; border-top: 1px solid var(--line); }
.reach div { display: flex; justify-content: space-between; gap: 12px; padding-block: 14px; border-bottom: 1px solid var(--line); font-size: 15px; }
.reach span:first-child { color: var(--slate); }
.reach b { font-weight: 600; font-variant-numeric: tabular-nums; user-select: all; }
.form-card { background: var(--paper); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); display: grid; gap: 20px; box-shadow: 0 1px 2px rgba(11,13,16,.04), 0 18px 40px rgba(11,13,16,.06); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 8px; min-width: 0; align-content: start; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 14px; font-weight: 500; padding: 0; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.input { width: 100%; height: 50px; padding: 0 16px; border-radius: var(--r-sm); font: 400 16px var(--f-body); color: var(--ink); background: var(--paper); border: 1px solid #D5DEE2; outline: none; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
textarea.input { height: 110px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.input::placeholder { color: #8C979E; }
.input:focus { border-color: var(--accent-ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { cursor: pointer; }
.checks input { position: absolute; opacity: 0; pointer-events: none; }
.checks span { display: inline-block; font-size: 14px; padding: 9px 14px; border-radius: var(--r-pill); border: 1px solid #D5DEE2; transition: all .2s; }
.checks input:checked + span { background: var(--accent-tint); border-color: var(--accent-ink); color: var(--accent-ink); }
.checks input:focus-visible + span { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-foot .caption { max-width: 30em; }
.sent[hidden] { display: none; }
.sent { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-radius: var(--r-md); background: #EAF7F0; color: #0E5E3B; font-size: 15px; }

/* ---------- Footer ---------- */
footer.band { padding-block: 56px 40px; background: var(--mist); }
.foot { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot > * { min-width: 0; }
.foot-brand { display: grid; gap: 14px; align-content: start; }
.foot-brand img { height: 26px; width: auto; }
.foot h2 { font: 500 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--slate); margin: 0 0 16px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; }
.foot ul a { text-decoration: none; color: #2C353C; }
.foot ul a:hover { color: var(--accent-ink); }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--slate); }
.foot-bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-bottom a { text-decoration: none; }

/* floating Ask AI */
.ask-fab { position: fixed; z-index: 55; right: max(18px, calc(env(safe-area-inset-right, 0px) + 18px)); bottom: max(18px, calc(env(safe-area-inset-bottom, 0px) + 18px)); height: 54px; padding: 0 22px 0 16px; }

/* scroll flow */
.flow-in { transition: transform 1.1s var(--water), opacity 1.1s var(--water), filter 1.1s var(--water); }
.flow-pre { transform: translateY(32px); opacity: .35; filter: blur(4px); }


/* ---------- v0.3b: more colour ---------- */
.tint { background: var(--mist); }
.dark { background: radial-gradient(60% 80% at 85% 30%, rgba(255,255,255,.07), transparent 70%), var(--void); color: var(--snow); overflow: hidden; isolation: isolate; }
.dark .eyebrow { color: var(--accent-light); }
.dark .lead, .dark .body { color: rgba(242,246,247,.76); }
.dark .caption { color: var(--fog); }
.dark .ticks li { color: var(--snow); }
.dark .ticks svg { color: var(--accent-light); }
.dark .chat-stage { background: transparent; padding: 0; }
.glass-d {
  background: linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.04));
  -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-lg); color: var(--snow);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 30px 80px rgba(0,0,0,.45);
}
.dark .chat-head { border-bottom-color: rgba(255,255,255,.1); }
.dark .chat-head .who span { color: var(--fog); }
.dark .dot { background: #4BE39A; box-shadow: 0 0 10px #4BE39A; }
.dark .chip { background: rgba(255,255,255,.08); color: var(--snow); border: 1px solid rgba(255,255,255,.12); }
.dark .bubble.ai { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.1); color: var(--snow); }
.dark .bubble.me { background: var(--accent); color: var(--on-accent); }
.dark .slot { background: rgba(255,255,255,.07); color: var(--snow); border-color: rgba(255,255,255,.16); }
.dark .slot[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 16%, transparent); border-color: var(--accent); color: var(--accent); }
.dark .suggest button { color: #FFFFFF; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 rgba(255,255,255,.16); transition: background .3s var(--water), border-color .3s var(--water), transform .35s var(--water), box-shadow .35s var(--water); }
.dark .suggest button:hover { background: var(--accent); border-color: color-mix(in srgb, var(--accent-light) 70%, transparent); transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 8px 24px color-mix(in srgb, var(--accent) 45%, transparent); }
.dark .suggest button:active { transform: translateY(0) scale(.97); }
.dark .suggest button:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }
.dark .chat-input { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); }
.dark .chat-input input { color: var(--snow); }
.dark .chat-input input::placeholder { color: var(--fog); }
.svc.ink { background: var(--ink); color: var(--snow); }
.svc.ink .body { color: rgba(242,246,247,.74); }
.svc.ink .icon { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent-light); box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 30%, transparent); }
.svc.ink .chip { background: rgba(255,255,255,.08); color: var(--snow); }
.svc.ink .more { color: var(--accent-light); }
footer.band.ink-foot { background: var(--ink); color: var(--snow); }
.ink-foot h2 { color: var(--fog); }
.ink-foot .body { color: rgba(242,246,247,.7) !important; }
.ink-foot ul li, .ink-foot ul a { color: rgba(242,246,247,.82); }
.ink-foot ul a:hover { color: var(--accent); }
.ink-foot .foot-bottom { border-top-color: rgba(255,255,255,.1); color: var(--fog); }






/* ---------- How we work: story cards (after innerbalancewear.com) ---------- */
#process { overflow: hidden; }
.story-track { list-style: none; margin: 0 calc(50% - 50vw) 0 0; padding: 0 max(16px, calc(50vw - 50%)) 4px 0; display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.story-track::-webkit-scrollbar { display: none; }
.story { position: relative; flex: 0 0 clamp(280px, 30vw, 400px); height: clamp(420px, 42vw, 560px); border-radius: var(--r-xl); overflow: hidden; scroll-snap-align: start; color: #FFFFFF; background: #15110D; transition: flex-basis .7s var(--water); isolation: isolate; }
.story.open { flex-basis: min(880px, 86vw); }
.story img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--water); }
.story:hover img { transform: scale(1.04); }
.story-ph { position: absolute; inset: 0; z-index: -2; background: radial-gradient(60% 50% at 75% 22%, color-mix(in srgb, var(--ph) 85%, #FFFFFF 15%), transparent 70%), radial-gradient(70% 60% at 15% 85%, color-mix(in srgb, var(--ph) 60%, #000 10%), transparent 70%), linear-gradient(160deg, color-mix(in srgb, var(--ph) 35%, #0B0D10), #0B0D10); transition: transform 1s var(--water); }
.story:hover .story-ph { transform: scale(1.04); }
.story-ph em { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); font: 500 12px/1 var(--f-mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.55); padding: 8px 12px; border: 1px dashed rgba(255,255,255,.35); border-radius: var(--r-pill); white-space: nowrap; }
.story.open .story-ph em { left: 30%; }

.story::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.15) 55%, rgba(0,0,0,.66) 100%); }
.story-chip { position: absolute; left: 22px; top: 22px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--r-pill); font-size: 13px; font-weight: 500; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); }
.story-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--dot); box-shadow: 0 0 10px var(--dot); }
.story-toggle { position: absolute; right: 20px; top: 18px; width: 46px; height: 46px; border-radius: 50%; border: 0; display: grid; place-items: center; background: #FFFFFF; color: var(--ink); cursor: pointer; box-shadow: 0 8px 20px rgba(0,0,0,.18); transition: transform .5s var(--water), box-shadow .3s; }
.story-toggle:hover { transform: scale(1.06); }
.story.open .story-toggle { transform: rotate(45deg); box-shadow: 0 0 0 3px var(--accent-light), 0 8px 20px rgba(0,0,0,.18); }
.story-toggle:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 3px; }
.story-copy { position: absolute; left: 28px; right: 28px; bottom: 28px; display: grid; gap: 12px; max-width: 460px; }
.story-copy h3 { font: 300 clamp(28px, 2.7vw, 36px)/1.1 var(--f-display); letter-spacing: -.02em; margin: 0; }
.story-copy h3 b { font-weight: 700; }
.story-copy p { margin: 0; font-size: 16px; line-height: 1.55; color: rgba(255,255,255,.88); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--water), opacity .5s var(--water); }
.story.open .story-copy p { max-height: 120px; opacity: 1; }
.story-panel { position: absolute; right: 28px; bottom: 28px; width: min(300px, 40%); display: grid; gap: 4px; padding: 18px 20px; border-radius: var(--r-md); background: linear-gradient(160deg, rgba(255,255,255,.22), rgba(255,255,255,.08)); border: 1px solid rgba(255,255,255,.4); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); box-shadow: inset 0 1px 0 rgba(255,255,255,.45); opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .5s var(--water) .15s, transform .6s var(--water) .15s; }
.story.open .story-panel { opacity: 1; transform: none; }
.story-panel .k { font: 600 11px/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-light); }
.story-panel b { font: 600 20px/1.25 var(--f-display); }
.story-panel span:last-child { font-size: 13.5px; color: rgba(255,255,255,.82); }
.story-ctrl { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.story-progress { flex: 1; height: 3px; border-radius: 3px; background: var(--line); margin-right: 20px; overflow: hidden; }
.story-progress i { display: block; height: 100%; width: 30%; border-radius: 3px; background: var(--ink); transition: width .3s var(--water); }
.story-nav { width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--ink); color: #FFFFFF; cursor: pointer; transition: transform .3s var(--water), background .3s; }
.story-nav:hover { background: var(--accent); transform: translateY(-2px); }
.story-nav:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }
@media (max-width: 640px) {
  .story.open { flex-basis: 86vw; }
  .story { height: 480px; transition: flex-basis .7s var(--water), height .7s var(--water); }
  .story.open { height: 620px; }
  .story.open .story-copy { bottom: 150px; }
  .story.open .story-ph em { display: none; }
  .story-panel { left: 20px; right: 20px; bottom: 20px; width: auto; }
}

/* ---------- Selected work ---------- */
.work-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: clamp(56px, 8vw, 96px) 0 24px; }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.work-card { display: grid; gap: 14px; align-content: start; text-decoration: none; color: inherit; min-width: 0; }
.work-card.big { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; gap: clamp(20px, 4vw, 48px); }
.work-shot { display: block; position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-lg); overflow: hidden; background: var(--mist); box-shadow: 0 1px 2px rgba(11,13,16,.04), 0 18px 40px rgba(11,13,16,.08); transition: transform .5s var(--water), box-shadow .5s var(--water); }
.work-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--water); }
.work-card:hover .work-shot { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(11,13,16,.05), 0 30px 60px rgba(11,13,16,.14); }
.work-card:hover .work-shot img { transform: scale(1.04); }
.work-shot.mock { background: radial-gradient(90% 80% at 80% 10%, color-mix(in srgb, var(--t2) 55%, transparent), transparent 60%), linear-gradient(160deg, var(--t1), #05080A); }
.work-shot.mock i { position: absolute; left: 10%; height: 9px; border-radius: 9px; background: rgba(255,255,255,.85); }
.work-shot.mock i:nth-child(1) { top: 38%; width: 58%; height: 14px; }
.work-shot.mock i:nth-child(2) { top: 50%; width: 40%; height: 14px; }
.work-shot.mock i:nth-child(3) { top: 66%; width: 22%; height: 22px; background: var(--t2); }
.work-meta { display: grid; gap: 6px; }
.work-meta b { font: 600 19px/1.25 var(--f-display); letter-spacing: -.01em; }
.work-card.big .work-meta b { font-size: clamp(24px, 2.6vw, 32px); }
.work-tag { font: 500 12px/1.4 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--slate); }
.work-line { color: var(--slate); font-size: 17px; }
.work-card .more { margin-top: 6px; color: var(--accent-ink); font-weight: 500; }

/* ---------- Reviews ---------- */
.rev-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.rev-card { margin: 0; background: var(--paper); border-radius: var(--r-lg); padding: 30px; display: grid; gap: 16px; align-content: start; box-shadow: 0 1px 2px rgba(11,13,16,.04), 0 18px 40px rgba(11,13,16,.06); }
.rev-card .stars { color: var(--accent); letter-spacing: 2px; font-size: 15px; }
.rev-card blockquote { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink); }
.rev-card figcaption { display: grid; gap: 2px; font-size: 14px; }
.rev-card figcaption span { color: var(--slate); }
.rev-note { margin-top: 20px; }

/* ---------- Web Design card: device mockup ---------- */
#services:not(.photo-band) .svc.feature { min-height: 380px; }
.device { position: absolute; top: 40px; right: -96px; width: 52%; aspect-ratio: 16 / 10.5; border-radius: 16px; background: #0D0B12; box-shadow: 0 2px 6px rgba(11,13,16,.08), 0 30px 70px rgba(11,13,16,.22); overflow: hidden; pointer-events: none; transition: transform .7s var(--water); }
.device-bar { display: flex; gap: 6px; padding: 10px 12px; background: #1A1720; }
.device-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.22); }
.device-screen { position: absolute; inset: 28px 0 0; background: radial-gradient(70% 90% at 85% 20%, rgba(124,58,237,.55), transparent 60%), radial-gradient(60% 70% at 10% 100%, rgba(10,132,255,.35), transparent 60%), #0D0B12; }
.d-chip { position: absolute; left: 8%; top: 16%; width: 18%; height: 10px; border-radius: 10px; background: rgba(255,255,255,.2); }
.d-h { position: absolute; left: 8%; top: 30%; width: 52%; height: 14px; border-radius: 6px; background: rgba(255,255,255,.9); }
.d-h.short { top: 42%; width: 36%; }
.d-btn { position: absolute; left: 8%; top: 60%; width: 20%; height: 18px; border-radius: 18px; background: var(--accent); }
.d-glass { position: absolute; right: 7%; top: 26%; width: 30%; height: 46%; border-radius: 12px; background: linear-gradient(160deg, rgba(255,255,255,.22), rgba(255,255,255,.06)); border: 1px solid rgba(255,255,255,.35); }
.phone { position: absolute; right: 27%; bottom: -54px; width: 15%; aspect-ratio: 9 / 18; border-radius: 22px; background: #0D0B12; border: 4px solid #1A1720; box-shadow: 0 24px 50px rgba(11,13,16,.28); overflow: hidden; pointer-events: none; transition: transform .7s var(--water); }
.phone-screen { position: absolute; inset: 0; background: radial-gradient(90% 60% at 80% 10%, rgba(124,58,237,.6), transparent 60%), #0D0B12; }
.phone .d-h { left: 12%; top: 24%; width: 70%; height: 8px; }
.phone .d-h.short { top: 32%; width: 48%; }
.phone .d-btn { left: 12%; top: 44%; width: 44%; height: 12px; }
.svc.feature:hover .device { transform: translateY(-6px) rotate(-1deg); }
.svc.feature:hover .phone { transform: translateY(-10px); }

/* ---------- Photo bands: real photos behind the glass ---------- */
.photo-band { position: relative; overflow: hidden; isolation: isolate; background: #15110D; }
.band-photo { position: absolute; inset: -12% 0; z-index: -2; margin: 0; }
.band-photo img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.photo-band::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
#services.photo-band::before { background: linear-gradient(180deg, rgba(12,10,8,.74) 0%, rgba(12,10,8,.42) 32%, rgba(12,10,8,.3) 70%, rgba(12,10,8,.5) 100%); }
/* clear glass: a thin pane over the photo, white type (Antonio: "more clear") */
.photo-band .svc {
  background: linear-gradient(160deg, rgba(255,255,255,.20), rgba(255,255,255,.07));
  -webkit-backdrop-filter: blur(12px) saturate(160%); backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(255,255,255,.42); color: #FFFFFF;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -1px 0 rgba(255,255,255,.08), 0 24px 60px rgba(0,0,0,.22);
}
.photo-band .svc h3, .photo-band .svc .t-h3 { color: #FFFFFF; }
.photo-band .svc .body { color: rgba(255,255,255,.86); }
.photo-band .svc .chip { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); color: #FFFFFF; }
.photo-band .svc .icon { background: rgba(255,255,255,.16); color: #FFFFFF; border: 1px solid rgba(255,255,255,.3); }
.photo-band .svc .more { color: #FFFFFF; }
.photo-band .svc:hover { background: linear-gradient(160deg, rgba(255,255,255,.26), rgba(255,255,255,.1)); }
/* the feature card is the clearest pane: the photo shows through sharp */
.photo-band .svc.feature { background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.02)); -webkit-backdrop-filter: none; backdrop-filter: none; border-color: rgba(255,255,255,.5); }
.photo-band .svc.feature .inner { background: linear-gradient(160deg, rgba(255,255,255,.18), rgba(255,255,255,.06)); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); border: 1px solid rgba(255,255,255,.35); border-radius: calc(var(--r-lg) - 8px); }
.photo-band .svc.ink { background: linear-gradient(160deg, rgba(20,16,12,.45), rgba(20,16,12,.25)); border-color: rgba(255,255,255,.22); }
.photo-band .svc.ink .icon { background: color-mix(in srgb, var(--accent) 30%, transparent); color: var(--accent-light); }
#contact.photo-band::before { background: linear-gradient(90deg, rgba(12,10,8,.78) 0%, rgba(12,10,8,.55) 40%, rgba(12,10,8,.25) 100%); }
#contact .eyebrow { color: rgba(255,255,255,.8); }
#contact .t-h2 { color: #FFFFFF; }
#contact .lead { color: rgba(255,255,255,.84); }
#contact .reach { border: 1px solid rgba(255,255,255,.32); border-radius: var(--r-md); padding: 4px 22px; background: linear-gradient(160deg, rgba(255,255,255,.16), rgba(255,255,255,.05)); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 20px 50px rgba(0,0,0,.22); }
#contact .reach div:last-child { border-bottom: 0; }
#contact .reach div { border-bottom-color: rgba(255,255,255,.22); color: #FFFFFF; }
#contact .reach span:first-child { color: rgba(255,255,255,.7); }
#contact .btn-glass { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); color: #FFFFFF; box-shadow: none; }
#contact .btn-glass:hover { background: rgba(255,255,255,.2); }
/* the form is a clear pane: the office reads through, white type on top */
#contact .form-card { color: #FFFFFF; background: linear-gradient(160deg, rgba(255,255,255,.18), rgba(255,255,255,.06)); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); border: 1px solid rgba(255,255,255,.42); box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 30px 70px rgba(0,0,0,.25); }
#contact .form-card .field label, #contact .form-card .field legend { color: #FFFFFF; }
#contact .form-card .input { color: #FFFFFF; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.32); }
#contact .form-card .input::placeholder { color: rgba(255,255,255,.6); }
#contact .form-card .input:focus { border-color: #FFFFFF; box-shadow: 0 0 0 4px rgba(255,255,255,.18); }
#contact .form-card .checks span { border-color: rgba(255,255,255,.32); background: rgba(255,255,255,.06); }
#contact .form-card .checks input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
#contact .form-card .caption { color: rgba(255,255,255,.7); }
#ai.photo-band { background: #02050B; }
#ai.photo-band::before { background: linear-gradient(90deg, rgba(2,5,11,.55) 0%, rgba(2,5,11,.2) 50%, rgba(2,5,11,0) 100%); }
#ai .chat-head img { filter: brightness(0) invert(1); }
#ai .glass-d { background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.05)); -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%); }


/* responsive */
/* desktop: the hero message sits in the optical centre of the first screen; the blurred team rises behind its lower half */
@media (min-width: 961px) {
  .hero-copy { min-height: 100svh; margin-top: calc(-1 * clamp(112px, 11vw, 140px)); padding-top: 96px; padding-bottom: 96px; align-content: center; align-items: center; }
  .hero-photo { margin-top: -26vw; }
}
@media (max-width: 960px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-grid, .rev-grid { grid-template-columns: minmax(0, 1fr); }
  .work-card.big { grid-template-columns: minmax(0, 1fr); }
  .device, .phone { display: none; }
  #services:not(.photo-band) .svc.feature { min-height: 0; }
  .hero-copy { grid-template-columns: minmax(0, 1fr); }
  .ai-grid, .contact { grid-template-columns: minmax(0, 1fr); }
  .svc, .svc.tall { grid-column: span 6; }
  .svc.feature { grid-column: span 12; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .steps::before { display: none; }
  .navbar ul { display: none; }
  .navbar .nav-ctas { margin-left: auto; }
  .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .hero-photo { aspect-ratio: 4 / 3.4; margin-top: -12vw; } .hero-photo img { object-position: 48% 40%; }
  .hero-copy { min-height: max(420px, calc(100svh - 30vw - 112px)); }
  .stats { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .stat-card { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 18px; padding: 22px 24px; }
  .svc, .svc.tall, .svc.feature, .svc.wide { grid-column: span 12; }
  .svc.wide { grid-template-columns: minmax(0, 1fr); }
  .svc.wide .icon { margin-top: 0; }
  .svc.wide .more { align-self: start; }
  .svc { padding: 26px; }
  .svc.feature .inner { padding: 14px; }
  .steps, .fields { grid-template-columns: minmax(0, 1fr); }
  .navbar { padding-left: 18px; padding-right: 18px; }
  .navbar .btn-ink { display: none; }
  .reel-frame { border-radius: 22px; }
  .reel-meta b { display: none; }
  .ask-fab { height: 48px; padding: 0 18px 0 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .flow-pre { transform: none; opacity: 1; filter: none; }
  .hero-photo img { filter: none; }
}

/* ---------- Service pop-up: a glass panel that grows out of the card you tap ---------- */
.svc[data-svc] { cursor: pointer; }
.svc-dlg { border: 0; padding: 16px; margin: 0; inset: 0; width: 100%; height: 100%; height: 100dvh; max-width: 100vw; max-height: none; background: transparent; display: grid; place-items: center; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
/* page behind stays put while a service pop-up is open (iOS would otherwise scroll and pan it) */
html.svc-lock, html.svc-lock body { overflow: hidden; overscroll-behavior: none; }
.svc-dlg:not([open]) { display: none; }
.svc-dlg::backdrop { background: rgba(11,13,16,.28); -webkit-backdrop-filter: blur(10px) saturate(140%); backdrop-filter: blur(10px) saturate(140%); }
.svc-dlg.closing::backdrop { background: rgba(11,13,16,0); -webkit-backdrop-filter: none; backdrop-filter: none; transition: background .35s var(--ease); }
.svc-pop { position: relative; width: min(880px, 100%); border-radius: var(--r-xl); padding: clamp(26px, 4vw, 48px); overflow: hidden; isolation: isolate; transform-origin: 0 0; color: var(--ink);
  background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.7)); -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255,255,255,.95); box-shadow: inset 0 1px 0 #FFFFFF, 0 40px 120px rgba(11,13,16,.28), 0 8px 24px rgba(11,13,16,.08); }
.svc-pop-glow { position: absolute; z-index: -1; width: 420px; height: 420px; max-width: 100%; right: 0; top: -180px; transform: translateX(33%); border-radius: 50%; pointer-events: none; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 65%); filter: blur(10px); }
.svc-x { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.7); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: transform .5s var(--water), background .2s; }
.svc-x:hover { transform: rotate(90deg); background: #FFFFFF; }
.svc-pop-head { display: grid; gap: 14px; max-width: 620px; padding-right: 40px; }
.svc-pop-head .icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); }
.svc-pop-head h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.04; font-weight: 680; letter-spacing: -.032em; margin: 0; }
.svc-pop-head .lead { margin: 0; color: var(--slate); font-size: clamp(16px, 1.4vw, 18px); }
.svc-pop-body { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(22px, 4vw, 48px); margin-top: clamp(24px, 3.4vw, 36px); padding-top: clamp(22px, 3vw, 30px); border-top: 1px solid var(--line); }
.svc-pop-body h3 { font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); margin: 0 0 14px; }
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.svc-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 15.5px; line-height: 1.45; }
.svc-list li::before { content: ""; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%236D28D9' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.6'/%3E%3C/svg%3E") center / 20px no-repeat; }
.svc-pairs { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-pair { font: inherit; font-size: 14px; font-weight: 500; padding: 9px 14px; border-radius: var(--r-pill); border: 1px solid var(--line); background: rgba(255,255,255,.75); color: var(--ink); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; transition: transform .4s var(--water), border-color .2s, color .2s; }
.svc-pair:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); color: var(--accent-ink); }
.svc-pop-note { margin: 22px 0 0; font-size: 14px; color: var(--slate); }
.svc-pop-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: clamp(24px, 3.4vw, 36px); }
.svc-pop-foot .btn-glass { background: rgba(255,255,255,.7); }
.svc-pop-foot .spark { width: 16px; height: 16px; }
.svc-pop [data-in] { will-change: transform, opacity; }
@media (max-width: 720px) {
  .svc-dlg { padding: 0; place-items: end stretch; overflow: hidden; touch-action: pan-y; }
  /* the sheet only ever scrolls up and down: no sideways panning or drifting on phones */
  .svc-pop { width: 100%; max-width: 100%; min-width: 0; border-radius: 28px 28px 0 0; max-height: 92svh; max-height: 92dvh; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; -webkit-overflow-scrolling: touch; padding: 26px 22px calc(26px + env(safe-area-inset-bottom, 0px)); }
  .svc-pop-glow { width: 320px; height: 320px; transform: none; right: 0; background: radial-gradient(circle at 75% 50%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 62%); }
  .svc-pop-head h2 { overflow-wrap: anywhere; }
  .svc-pop-body { grid-template-columns: minmax(0, 1fr); }
  .svc-pop-foot .btn { flex: 1 1 auto; justify-content: center; white-space: nowrap; padding-left: 18px; padding-right: 18px; }
  .svc-pop-foot .svc-ask { flex: none; }
  .svc-pop-foot { position: sticky; bottom: calc(-26px - env(safe-area-inset-bottom, 0px)); z-index: 2; margin: 24px -22px calc(-26px - env(safe-area-inset-bottom, 0px)); padding: 14px 22px calc(14px + env(safe-area-inset-bottom, 0px)); flex-wrap: nowrap; background: rgba(255,255,255,.82); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
}

/* story art: brand-colour glass fields with a small animated drawing per step (plays while the card is on screen) */
.story-ph::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1.2px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(70% 60% at 50% 38%, #000, transparent); mask-image: radial-gradient(70% 60% at 50% 38%, #000, transparent); }
.story-art { position: absolute; z-index: -1; left: 50%; top: 38%; width: min(74%, 300px); height: auto; transform: translate(-50%, -50%); overflow: visible; transition: left .7s var(--water), width .7s var(--water); filter: drop-shadow(0 18px 30px rgba(0,0,0,.25)); }
.story.open .story-art { left: 28%; width: min(36%, 300px); }
.story-art * { animation-play-state: paused; }
.story.inview .story-art * { animation-play-state: running; }
.story-art .a-pop { transform-box: fill-box; transform-origin: center; animation: artPop .9s cubic-bezier(.34,1.56,.64,1) both; }
.story-art .a1 { animation-delay: .1s; } .story-art .a2 { animation-delay: .45s; } .story-art .a3 { animation-delay: .8s; }
.story-art .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: artDraw 1.6s .3s var(--water) forwards; }
.story-art .sig { animation-delay: .5s; animation-duration: 1.4s; }
.story-art .a-fade { opacity: 0; animation: artFade 1s 1.2s ease forwards; }
.story-art .a-float { animation: artFloat 6s ease-in-out infinite; }
.art-talk .dot { transform-box: fill-box; transform-origin: center; animation: artDot 1.2s ease-in-out infinite; }
.art-talk .d2 { animation-delay: .15s; } .art-talk .d3 { animation-delay: .3s; }
.art-talk .twinkle { transform-box: fill-box; transform-origin: center; animation: artTwinkle 2.6s ease-in-out infinite; }
.art-build .cursor { animation: artCursor 5s 1.2s ease-in-out infinite; transform: translate(150px, 150px); }
.art-launch .rocket { offset-path: path("M20 168 C60 160 80 150 104 132 S150 104 168 80 200 44 214 30"); offset-rotate: auto 45deg; offset-distance: 0%; animation: artRide 1.6s .3s var(--water) forwards, artHover 3s 2s ease-in-out infinite; }
.art-launch .exhaust { animation: artFlick .5s ease-in-out infinite alternate; }
@keyframes artPop { from { opacity: 0; transform: scale(.6) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes artDraw { to { stroke-dashoffset: 0; } }
@keyframes artFade { to { opacity: 1; } }
@keyframes artFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes artDot { 0%, 100% { transform: translateY(0); opacity: .45; } 40% { transform: translateY(-5px); opacity: 1; } }
@keyframes artTwinkle { 0%, 100% { transform: scale(.6) rotate(0); opacity: .5; } 50% { transform: scale(1.1) rotate(45deg); opacity: 1; } }
@keyframes artCursor { 0% { transform: translate(150px, 150px); } 25% { transform: translate(176px, 82px); } 35% { transform: translate(176px, 82px) scale(.88); } 40% { transform: translate(176px, 82px); } 65% { transform: translate(110px, 136px); } 100% { transform: translate(150px, 150px); } }
@keyframes artRide { to { offset-distance: 100%; } }
@keyframes artHover { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
@keyframes artFlick { from { opacity: .5; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .story-art .draw { stroke-dashoffset: 0; } .story-art .a-fade { opacity: 1; } .art-launch .rocket { offset-distance: 100%; } }

/* showreel plays inline: the poster frame swaps to the Vimeo player on click */
.reel-frame.playing { cursor: default; }
.reel-frame.playing::after, .reel-frame.playing .play, .reel-frame.playing .reel-meta { display: none; }
.reel-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }

/* AI agents: pick an agent to try in the demo */
.agent-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.agent-pick button { font: 500 13.5px/1 var(--f-body); padding: 10px 14px; border-radius: var(--r-pill); cursor: pointer; color: var(--ink); background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.85); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background .25s, color .25s, transform .4s var(--water); }
.agent-pick button:hover { transform: translateY(-1px); background: rgba(255,255,255,.8); }
.agent-pick button[aria-selected="true"] { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.ai-cta { margin-top: 8px; }
.chat-head .tag { white-space: nowrap; }

/* ---------- AI agents band: woman by the window (video), small self-running agent chat, copy on glass ---------- */
.agent-band { color: #FFFFFF; background: #0B0D10; }
.agent-scene { display: grid; }
.agent-frame { position: relative; overflow: hidden; isolation: isolate; border-radius: 32px; aspect-ratio: 16 / 8; max-height: 600px; width: 100%; box-shadow: 0 40px 80px -40px rgba(0,0,0,.7); }
.agent-media { position: absolute; inset: 0; z-index: -2; background: #0B0D10 url(../img/agent-poster-coffee.jpg) 30% 50% / cover no-repeat; }
.agent-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.agent-frame::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(0deg, rgba(11,13,16,.75) 0%, rgba(11,13,16,0) 40%), linear-gradient(270deg, rgba(5,7,12,.35), rgba(5,7,12,0) 45%); }
.agent-ph { position: absolute; left: 24px; top: 24px; max-width: 300px; font: 500 12px/1.5 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.85); padding: 10px 14px; border: 1px dashed rgba(255,255,255,.55); border-radius: 14px; background: rgba(0,0,0,.25); }
.agent-copy { position: relative; z-index: 1; max-width: 520px; margin: clamp(-240px, -16vw, -120px) 0 0 clamp(16px, 4vw, 48px); padding: clamp(20px, 2.4vw, 28px); border-radius: 26px; display: grid; gap: 12px; }
.agent-copy .eyebrow { color: var(--accent-light); }
.agent-copy h2 { font-size: clamp(26px, 2.6vw, 34px); }
.agent-copy .lead { font-size: 15px; color: rgba(255,255,255,.84); margin: 0; }
.agent-copy .ticks li { color: rgba(255,255,255,.92); font-size: 14px; }
.agent-copy .btn { justify-self: start; }
.agent-copy .ticks svg { color: var(--accent-light); }
.agent-chat { position: absolute; right: clamp(16px, 3vw, 36px); top: clamp(16px, 3vw, 36px); width: min(330px, 40%); border-radius: 24px; overflow: hidden; background: rgba(14,16,22,.42); }
#ai .glass-d { background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.06)); -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%); border: 1px solid rgba(255,255,255,.3); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 30px 70px rgba(0,0,0,.3); }
.agent-chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.14); }
.agent-chat-head img { width: 24px; height: auto; filter: brightness(0) invert(1); }
.agent-chat-head div { display: grid; line-height: 1.25; }
.agent-chat-head b { font-size: 13.5px; font-weight: 600; }
.agent-chat-head span { font-size: 11.5px; color: rgba(255,255,255,.7); display: inline-flex; align-items: center; gap: 6px; }
.agent-chat-head .dot { width: 6px; height: 6px; border-radius: 50%; background: #34D399; box-shadow: 0 0 8px #34D399; }
.ac-live { margin-left: auto; font: 500 10px/1 var(--f-mono) !important; letter-spacing: .12em; text-transform: uppercase; padding: 6px 8px; border-radius: 99px; border: 1px solid rgba(255,255,255,.3); }
.agent-chat-log { padding: 14px; overflow: hidden; display: grid; gap: 8px; align-content: end; height: clamp(236px, 26vw, 330px); transition: opacity .4s ease, transform .4s var(--water); }
.agent-chat-log.out { opacity: 0; transform: translateY(-8px); }
.ab { max-width: 86%; padding: 9px 12px; border-radius: 15px; font-size: 13px; line-height: 1.45; animation: abIn .5s var(--water) both; }
.ab-me { justify-self: end; background: #FFFFFF; color: var(--ink); border-bottom-right-radius: 5px; }
.ab-ai { justify-self: start; background: rgba(20,22,30,.62); color: #FFFFFF; border: 1px solid rgba(255,255,255,.18); border-bottom-left-radius: 5px; }
.ab-ok { justify-self: center; display: inline-flex; align-items: center; gap: 6px; font: 500 11.5px/1 var(--f-mono); letter-spacing: .03em; padding: 8px 12px; border-radius: 99px; color: #A7F3D0; background: rgba(6,40,30,.72); border: 1px solid rgba(52,211,153,.4); }
.ab .typing { display: inline-flex; gap: 4px; padding: 3px 0; }
.ab .typing i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.8); animation: abDot 1s ease-in-out infinite; }
.ab .typing i:nth-child(2) { animation-delay: .15s; } .ab .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes abIn { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes abDot { 0%, 100% { opacity: .35; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (max-width: 860px) {
  .agent-frame { aspect-ratio: 4 / 5; max-height: none; border-radius: 26px; }
  .agent-media, .agent-video { background-position: 40% 50%; object-position: 40% 50%; }
  .agent-chat { top: auto; bottom: 56px; right: 10px; transform: none; width: min(236px, 66%); }
  .agent-chat-log { height: 150px; overflow: hidden; padding: 10px; }
  .agent-chat .ab { font-size: 12.5px; }
  .agent-copy { margin: -44px 10px 0; max-width: none; }
  .agent-ph { top: 16px; left: 16px; right: 16px; }
}
}

/* ---------- Inner pages (theme templates): same nav, glass and type as the splash ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; color: #FFFFFF; background: radial-gradient(60% 80% at 80% 0%, #2E0B8F 0%, #0B0D10 70%); padding-top: clamp(150px, 16vw, 200px); padding-bottom: clamp(56px, 7vw, 88px); }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1.2px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }
.page-hero .eyebrow { color: var(--accent-light); }
.page-hero h1 { font-size: clamp(40px, 6vw, 76px); line-height: 1; letter-spacing: -.04em; font-weight: 600; margin: 14px 0 0; max-width: 18ch; }
.page-hero .lead { color: rgba(255,255,255,.75); max-width: 640px; margin-top: 18px; }
.page-body { padding-block: clamp(56px, 7vw, 96px); }
.prose { max-width: 760px; font-size: 18px; line-height: 1.7; color: var(--ink); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -.03em; font-weight: 650; margin-top: 1.8em; }
.prose h3 { font-size: 24px; line-height: 1.2; letter-spacing: -.02em; font-weight: 650; margin-top: 1.6em; }
.prose a { color: var(--accent-ink); text-underline-offset: 3px; }
.prose img, .prose figure { max-width: 100%; height: auto; border-radius: var(--r-lg); }
.prose blockquote { margin-left: 0; padding: 18px 24px; border-radius: var(--r-md); background: var(--mist); border-left: 3px solid var(--accent); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose .alignwide { max-width: 1120px; margin-left: auto; margin-right: auto; }
.post-list { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.post-card { display: grid; gap: 10px; padding: 28px; border-radius: var(--r-lg); background: var(--paper); text-decoration: none; color: inherit; box-shadow: 0 1px 2px rgba(11,13,16,.04), 0 18px 40px rgba(11,13,16,.06); transition: transform .45s var(--water), box-shadow .3s; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(11,13,16,.04), 0 28px 60px rgba(11,13,16,.10); }
.post-card time { font: 500 12px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--slate); }
.pagination { margin-top: 40px; display: flex; gap: 10px; }
.pagination .page-numbers { padding: 10px 16px; border-radius: var(--r-pill); background: var(--mist); text-decoration: none; color: var(--ink); }
.pagination .current { background: var(--ink); color: #FFFFFF; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
body.admin-bar .nav-shell { top: 32px; }
@media (max-width: 782px) { body.admin-bar .nav-shell { top: 46px; } }
