/* PANNI Consulting. One accent (red), one ease, one grain. */
:root {
  --paper: #fcfcfb;
  --paper-2: #f4f4f2;
  --paper-3: #e9e9e6;
  --ink: #0b0b0c;
  --ink-2: oklch(0.32 0.004 260);
  --muted: oklch(0.5 0.004 260);
  --faint: oklch(0.5 0.003 260);
  --hair: rgba(11, 11, 12, 0.08);
  --ring: inset 0 0 0 1px rgba(11, 11, 12, 0.07);
  --red: #f0453a;
  --red-text: #c42b20;
  --dark: #0d0d0e;
  --dark-2: #19191b;
  --on-dark: #f2f2ef;
  --on-dark-muted: rgba(242, 242, 239, 0.62);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --pad-x: max(5vw, 24px);
  --sec-y: clamp(96px, 10vw, 152px);
  --max: 1360px;
  --shadow-2: 0 1px 0 rgba(11,11,12,.04), 0 24px 60px -20px rgba(11,11,12,.18), 0 60px 120px -40px rgba(11,11,12,.12);
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.55; letter-spacing: -0.011em;
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; }
.dot { color: var(--red); }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }

/* ---------- Fixed layers ---------- */
#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
.grain {
  position: fixed; inset: -50%; width: 200%; height: 200%; z-index: 60; pointer-events: none;
  opacity: .045; mix-blend-mode: multiply; background-size: 180px 180px;
}
main, .footer { position: relative; z-index: 1; }

/* ---------- Type ---------- */
.h-display { font-size: clamp(44px, 6.2vw, 100px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 500; margin: 0; text-wrap: balance; }
.h-section { font-size: clamp(36px, 4.4vw, 68px); line-height: 1.04; letter-spacing: -0.038em; font-weight: 500; margin: 0; text-wrap: balance; }
.lead { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; color: var(--muted); max-width: 34ch; margin: 24px 0 0; letter-spacing: -0.015em; }
.mono-label { font-family: var(--mono); font-size: 11px; letter-spacing: .02em; color: var(--muted); margin: 0; }
.split-line { overflow: clip; padding-bottom: .1em; margin-bottom: -.1em; }

/* ---------- Buttons ---------- */
.btn {
  --h: 52px; display: inline-flex; align-items: center; gap: 10px; height: var(--h); padding: 0 26px;
  border-radius: 999px; font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  transition: transform .5s var(--ease), background-color .3s var(--ease), color .3s var(--ease), box-shadow .5s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-sm { --h: 40px; padding: 0 18px; font-size: 14px; }
.btn-ink { background: var(--ink); color: var(--paper); box-shadow: 0 8px 24px rgba(11,11,12,.18); }
.btn-ink:hover { background: #000; box-shadow: 0 12px 32px rgba(11,11,12,.26); }
.btn-ghost { box-shadow: inset 0 0 0 1px rgba(11,11,12,.16); background: rgba(252,252,251,.6); backdrop-filter: blur(8px); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px rgba(11,11,12,.45); }
.btn-red { background: var(--red-text); color: #fff; box-shadow: 0 10px 30px rgba(196,43,32,.28); }
.btn-red:hover { background: #a9231a; }
.btn .arrow { transition: transform .5s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; z-index: 50; transform: translateX(-50%);
  width: min(calc(100% - 28px), 1180px); height: 64px; padding: 0 12px 0 24px;
  display: flex; align-items: center; justify-content: space-between; border-radius: 999px;
  background: rgba(252,252,251,.92); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: var(--ring), 0 8px 30px rgba(11,11,12,.05);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.nav.on-dark { background: rgba(24,24,26,.9); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 8px 30px rgba(0,0,0,.2); }
.nav.on-dark .nav-links { color: rgba(242,242,239,.66); }
.nav.on-dark .brand img { filter: invert(1) hue-rotate(180deg) brightness(1.4); }
.nav.on-dark .btn-ink { background: #fff; color: var(--ink); }
.nav.on-dark .menu-btn { color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.nav-end { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 500; box-shadow: inset 0 0 0 1px rgba(11,11,12,.16); }
.menu { position: fixed; top: 82px; left: 14px; right: 14px; z-index: 49; display: grid; gap: 4px; padding: 14px; border-radius: 24px; background: rgba(252,252,251,.97); box-shadow: var(--ring), var(--shadow-2); }
.menu[hidden] { display: none; }
.menu a { padding: 14px 12px; font-size: 22px; font-weight: 500; letter-spacing: -0.03em; border-radius: 12px; }
.menu a:active { background: var(--paper-2); }
.brand { display: flex; align-items: center; }
.brand img { height: 27px; width: auto; transition: filter .4s var(--ease); }
.nav-links { position: relative; display: flex; gap: 4px; padding: 4px; border-radius: 999px; font-size: 14px; font-weight: 500; letter-spacing: -0.01em; color: var(--muted); transition: color .4s var(--ease); }
.nav-links a { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: 999px; transition: color .35s var(--ease); }
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
.nav-links a::before { content: ""; position: absolute; left: 7px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--red); transform: scale(0); transition: transform .5s var(--ease); }
.nav-links a.is-active::before { transform: scale(1); }
.nav-pill { position: absolute; z-index: 0; top: 4px; left: 0; height: 36px; width: 0; border-radius: 999px; background: rgba(11,11,12,.055); opacity: 0; pointer-events: none; }
.nav.on-dark .nav-links a:hover, .nav.on-dark .nav-links a.is-active { color: #fff; }
.nav.on-dark .nav-pill { background: rgba(255,255,255,.1); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
  max-width: calc(var(--max) + 2 * var(--pad-x)); margin: 0 auto; padding: 110px var(--pad-x) 60px;
}
.hero-copy { position: relative; z-index: 2; max-width: 660px; }
.hero-copy .lead { max-width: 32ch; margin-top: 30px; }
.hero-ctas { display: flex; gap: 12px; margin-top: 40px; flex-wrap: wrap; }
.hero-object { height: min(78vh, 760px); }

/* ---------- How it works ---------- */
.how { position: relative; padding: var(--sec-y) var(--pad-x); }
.how-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: 5vw; align-items: center; }
.how-steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 18px; }
.how-steps li { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.4; letter-spacing: -0.02em; color: var(--faint); max-width: 30ch; }
.how-steps li.is-on { color: var(--ink); }

/* The painted stage: the WebGL canvas paints this rectangle from behind */
.stage {
  position: relative; border-radius: 22px; aspect-ratio: 1.32; overflow: hidden;
  display: flex; align-items: center; justify-content: center; padding: 6%;
  box-shadow: var(--ring);
}
.stage::before { /* fallback paint if WebGL is off */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 90% at 85% 10%, #efe9e3, transparent 60%), radial-gradient(90% 80% at 10% 100%, #ecebe8, transparent 60%), var(--paper-2);
}
.has-gl .stage::before { display: none; }
.console {
  position: relative; width: 100%; border-radius: 16px; background: #fff; overflow: hidden;
  box-shadow: var(--ring), var(--shadow-2); font-size: 13.5px;
}
.console-bar { height: 44px; display: flex; align-items: center; gap: 14px; padding: 0 16px; border-bottom: 1px solid var(--hair); background: linear-gradient(#fff, #fafaf9); }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--paper-3); display: block; }
.console-title { font-weight: 500; font-size: 13px; }
.console-live { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.console-live b { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(240,69,58,.45); } 100% { box-shadow: 0 0 0 10px rgba(240,69,58,0); } }
.console-body { display: grid; grid-template-columns: 196px 1fr; min-height: 410px; }
.console-side { padding: 18px 12px; border-right: 1px solid var(--hair); background: #fbfbfa; display: flex; flex-direction: column; gap: 4px; }
.console-side .mono-label { padding: 0 10px 10px; }
.req { position: relative; text-align: left; padding: 10px 12px; border-radius: 10px; font-size: 13px; font-weight: 500; color: var(--ink-2); transition: background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease); }
.req:hover { background: var(--paper-2); }
.req.is-on { background: #fff; color: var(--ink); box-shadow: var(--ring), 0 2px 8px rgba(11,11,12,.05); }
.req.is-on::before { content: ""; position: absolute; left: -12px; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--red); }
.console-main { display: grid; grid-template-rows: 1fr auto; min-width: 0; }
.thread { padding: 20px 22px 8px; display: flex; flex-direction: column; gap: 10px; min-height: 250px; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 14px; line-height: 1.45; opacity: 0; transform: translateY(8px); }
.msg.in { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .7s var(--ease); }
.msg-you { align-self: flex-end; background: var(--ink); color: var(--paper); border-bottom-right-radius: 4px; }
.msg-ai { align-self: flex-start; background: var(--paper-2); border-bottom-left-radius: 4px; }
.msg-us { align-self: flex-start; background: #fff; box-shadow: var(--ring); border-bottom-left-radius: 4px; }
.msg .who { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--red-text); margin-bottom: 3px; }
.msg-us .who { color: var(--muted); }
.msg-typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.msg-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); animation: blink 1.2s infinite; }
.msg-typing i:nth-child(2) { animation-delay: .15s; } .msg-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.plan { padding: 14px 22px 22px; border-top: 1px solid var(--hair); background: #fdfdfc; }
.plan .mono-label { margin-bottom: 8px; }
.plan-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.plan-list li { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; color: var(--muted); transition: color .4s var(--ease); }
.plan-list li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--paper-3); background: #fff; transition: background-color .4s var(--ease), box-shadow .4s var(--ease); }
.plan-list li.on { color: var(--ink); }
.plan-list li.on::before { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 7.2l2 2 4-4.4' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; box-shadow: none; }
.plan-list li.active::before { background-color: var(--red); }

/* ---------- Statement (the one dark band) ---------- */
.statement { position: relative; padding: 0 12px; }
.statement-inner {
  position: relative; overflow: hidden; background: var(--dark); color: var(--on-dark); border-radius: 32px;
  padding: clamp(110px, 15vw, 220px) var(--pad-x);
}
.swarm { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.statement-text {
  position: relative; font-size: clamp(30px, 3.9vw, 60px); line-height: 1.12; letter-spacing: -0.035em; font-weight: 500;
  max-width: 22ch; width: fit-content; margin: 0 auto; text-wrap: balance;
}
.statement-text .w { color: rgba(242,242,239,.18); filter: blur(2px); }

/* ---------- Services: each one has its own shape ---------- */
.services { position: relative; padding: var(--sec-y) 0 calc(var(--sec-y) * .4); }
.svc-head.wrap { margin-bottom: clamp(48px, 6vw, 88px); }
.svc:last-child { margin-bottom: 0; }
.svc { max-width: calc(var(--max) + 2 * var(--pad-x)); margin: 0 auto clamp(96px, 11vw, 168px); padding: 0 var(--pad-x); }
.svc-title { font-size: clamp(34px, 3.6vw, 58px); font-weight: 500; letter-spacing: -0.042em; line-height: 1; margin: 0; }
.svc-text { color: var(--muted); font-size: clamp(17px, 1.3vw, 20px); line-height: 1.5; max-width: 32ch; margin: 18px 0 0; }
.ui { width: 100%; border-radius: 18px; background: #fff; box-shadow: var(--ring), var(--shadow-2); padding: 24px; font-size: 14.5px; }

/* split: words on one side, the live piece on the other */
.svc-split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 6vw; align-items: center; }
.svc-split .ui { max-width: 600px; justify-self: end; }
.svc-flip .svc-copy { order: 2; }
.svc-flip .ui { order: 1; justify-self: start; }

/* band: a full photo with the words on it */
.svc-band { position: relative; max-width: none; padding: 0 12px; }
.band-photo { position: relative; margin: 0; height: min(86vh, 820px); border-radius: 32px; overflow: hidden; }
.band-photo img { width: 100%; height: 108%; object-fit: cover; object-position: 50% 12%; will-change: transform; }
.band-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,8,9,.82) 0%, rgba(8,8,9,.55) 45%, rgba(8,8,9,0) 70%), linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.35)); }
.band-copy { position: absolute; left: max(var(--pad-x), calc((100vw - var(--max)) / 2)); right: var(--pad-x); bottom: clamp(32px, 5vw, 72px); color: #fff; z-index: 2; }
.band-copy .svc-text { color: rgba(255,255,255,.84); }
.svc-band .band-copy { top: 50%; bottom: auto; transform: translateY(-50%); max-width: 520px; }
.svc-band .svc-title { font-size: clamp(40px, 4.4vw, 76px); line-height: .98; letter-spacing: -0.045em; white-space: nowrap; }
.svc-band .svc-text { font-size: clamp(18px, 1.4vw, 21px); max-width: 34ch; margin-top: 24px; text-wrap: balance; }
.band-facts { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 10px; font-size: 15.5px; color: rgba(255,255,255,.92); }
.band-facts li { display: flex; align-items: center; gap: 12px; }
.band-facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); flex: none; }

/* centre: words above, one big window below */
.svc-center { text-align: center; }
.svc-center .svc-text { margin-left: auto; margin-right: auto; }
.svc-center .ui-web { max-width: 1080px; margin: clamp(40px, 5vw, 64px) auto 0; text-align: left; }
.site-shot { margin: 12px; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; background: #0b0b0c; }
.site-shot video { width: 100%; height: 100%; object-fit: cover; }

/* code band: a wide dark strip */
.svc-code { max-width: none; padding: 0 12px; }
.svc-code > * { max-width: var(--max); }
.svc-code { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 5vw; align-items: center;
  background: var(--dark); color: var(--on-dark); border-radius: 32px; padding: clamp(56px, 7vw, 112px) max(calc(var(--pad-x) - 12px), calc((100vw - var(--max)) / 2 - 12px));
  max-width: calc(100% - 24px); margin-left: 12px; margin-right: 12px; }
.svc-code .svc-text { color: var(--on-dark-muted); }
.code-wrap { border-radius: 18px; background: #131315; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 30px 80px -30px rgba(0,0,0,.6); overflow: hidden; }

/* video: the clip runs edge to edge */
.svc-video { max-width: none; padding: 0 12px; }
.vid-band { position: relative; height: min(88vh, 860px); border-radius: 32px; overflow: hidden; background: #000; }
.vid-band video { width: 100%; height: 100%; object-fit: cover; }
.vid-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.6)); pointer-events: none; }
.vid-band .band-copy { left: max(calc(var(--pad-x) - 12px), calc((100vw - var(--max)) / 2 - 12px)); }

/* training chat */
.ui-chat { display: grid; gap: 12px; min-height: 290px; align-content: start; }
.chat-me { justify-self: end; max-width: 84%; padding: 12px 15px; border-radius: 14px 14px 4px 14px; background: var(--ink); color: var(--paper); line-height: 1.45; min-height: 46px; }
.chat-ai { max-width: 90%; padding: 12px 15px; border-radius: 14px 14px 14px 4px; background: var(--paper-2); line-height: 1.5; min-height: 80px; }
.chat-ai .who { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--red-text); margin-bottom: 4px; }
.chat-ai p { margin: 0; }
.caret::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; background: currentColor; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
.chat-done { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); opacity: 0; }
.chat-done b { width: 18px; height: 18px; border-radius: 50%; background: var(--red); position: relative; flex: none; }
.chat-done b::after { content: ""; position: absolute; left: 6px; top: 4px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* build */
.code { margin: 0; padding: 28px 28px 22px; font-family: var(--mono); font-size: 14px; line-height: 1.8; white-space: pre-wrap; color: #d8d8d4; min-height: 150px; border-bottom: 1px solid rgba(255,255,255,.07); }
.code .ln { display: inline-block; }
.code .k { color: #8f8f8b; } .code .f { color: #fff; } .code .s { color: #ff8a80; } .code .c { color: #66666a; }
.build-out { padding: 20px 24px 24px; display: grid; gap: 12px; }
.build-out .mono-label { color: rgba(242,242,239,.5); margin-bottom: 2px; }
.bo-row { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 14px; font-size: 13.5px; color: rgba(242,242,239,.8); }
.bo-row b { height: 10px; border-radius: 5px; background: rgba(242,242,239,.9); transform-origin: left; transform: scaleX(var(--w)); }
.bo-row.hot b { background: var(--red); }

/* web */
.ui-web { padding: 0; overflow: hidden; }
.web-bar { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-bottom: 1px solid var(--hair); }
.web-url { flex: 1; height: 28px; border-radius: 8px; background: var(--paper-2); font-family: var(--mono); font-size: 12px; color: var(--ink-2); display: flex; align-items: center; padding: 0 10px; }
.wp-hero { position: relative; aspect-ratio: 2; margin: 12px; border-radius: 12px; overflow: hidden; color: #fff; }
.wp-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wp-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), transparent 35%, transparent 55%, rgba(0,0,0,.45)); }
.wp-nav, .wp-head { position: absolute; left: 18px; right: 18px; z-index: 1; display: flex; align-items: center; gap: 16px; }
.wp-nav { top: 14px; font-size: 12px; }
.wp-nav strong { margin-right: auto; font-weight: 600; letter-spacing: -0.02em; font-size: 14px; }
.wp-nav span { opacity: .88; }
.wp-head { bottom: 18px; justify-content: space-between; }
.wp-head strong { font-size: clamp(22px, 2.6vw, 40px); font-weight: 500; letter-spacing: -0.035em; }
.wp-btn { font-size: 13px; font-weight: 500; padding: 9px 16px; border-radius: 999px; background: #fff; color: var(--ink); white-space: nowrap; }

/* tickets */
.ui-tickets { max-width: 560px; }
.tix { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.tix li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border-radius: 12px; background: var(--paper-2); font-weight: 500; font-size: 14px; }
.tix em { font-style: normal; font-family: var(--mono); font-size: 11px; padding: 5px 10px; border-radius: 999px; background: #fff; color: var(--muted); box-shadow: var(--ring); white-space: nowrap; transition: background-color .4s var(--ease), color .4s var(--ease); }
.tix em[data-s="1"] { background: var(--ink); color: #fff; box-shadow: none; }
.tix em[data-s="2"] { background: #fff; color: var(--red-text); }
.tix em[data-s="2"]::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--red); margin-right: 6px; vertical-align: 1px; }

/* ---------- Work ---------- */
.work { position: relative; padding: var(--sec-y) 0 calc(var(--sec-y) * .4); }
.wrap { max-width: calc(var(--max) + 2 * var(--pad-x)); margin: 0 auto; padding: 0 var(--pad-x); }

.proj-list { list-style: none; margin: 0; padding: 0; }
.work .lead { margin-bottom: clamp(40px, 5vw, 72px); }
.work-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 5vw; align-items: start; }
.viewer { position: sticky; top: 110px; }
.viewer-frame { border-radius: 18px; background: #fff; overflow: hidden; box-shadow: var(--ring), var(--shadow-2); }
.viewer-bar { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--hair); }
.viewer-name { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.viewer { perspective: 1400px; }
.viewer-frame { transform-style: preserve-3d; will-change: transform; }
.viewer-screen { position: relative; aspect-ratio: 2.05; background: var(--paper-2); overflow: hidden; }
.viewer-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 0 0; }
.viewer-screen .vs-name { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 8%; }
.vs-name strong { font-size: clamp(30px, 3vw, 46px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.05; }
.vs-name span { margin-top: 10px; color: var(--muted); font-size: 16px; max-width: 34ch; line-height: 1.45; }
.proj { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 24px; padding: 20px 0; cursor: default; }
.proj-shot { display: none; }
.more { margin-top: clamp(72px, 8vw, 120px); }
.more-toggle { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 22px 0; cursor: pointer; }
.more-title { font-size: clamp(24px, 2.2vw, 34px); font-weight: 500; letter-spacing: -0.035em; }
.more-count { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 9px; border-radius: 999px; background: var(--paper-2); font-size: 13px; font-weight: 500; color: var(--ink-2); transition: background-color .4s var(--ease), color .4s var(--ease); }
.more-icon { position: relative; margin-left: auto; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); transition: transform .7s var(--ease), background-color .4s var(--ease); flex: none; }
.more-icon::before, .more-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 1.6px; margin: -.8px 0 0 -8px; background: #fff; border-radius: 2px; transition: transform .7s var(--ease); }
.more-icon::after { transform: rotate(90deg); }
.more-toggle:hover .more-icon { transform: scale(1.06); }
.more-toggle[aria-expanded="true"] .more-icon { transform: rotate(180deg); background: var(--red-text); }
.more-toggle[aria-expanded="true"] .more-icon::after { transform: rotate(0deg); }
.more-toggle[aria-expanded="true"] .more-count { background: var(--ink); color: #fff; }
.more-peek { margin: -6px 0 0; color: var(--muted); font-size: 16px; line-height: 1.5; max-width: 70ch; }
.more-body { overflow: hidden; height: 0; }
html[data-motion="reduced"] .more-body.open { height: auto; }
.more-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.more-list li { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); grid-template-areas: "name text" "area text"; column-gap: 5vw; row-gap: 2px; align-items: start; padding: 18px 0; }
.more-list li .proj-area { grid-area: area; }
.more-list li strong { grid-area: name; }
.more-list li p { grid-area: text; padding-top: 4px; }
.more-list strong { font-size: clamp(20px, 1.6vw, 24px); font-weight: 500; letter-spacing: -0.03em; }
.more-list p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.45; max-width: 44ch; }
.proj-logo { justify-self: end; height: 30px; display: flex; align-items: center; }
.proj-logo img { height: 100%; width: auto; max-width: 10rem; object-fit: contain; opacity: .9; }
.proj-logo img.h-sm { height: 76%; } .proj-logo img.h-xs { height: 56%; }
.proj-meta { display: flex; flex-direction: column; gap: 4px; }
.proj-name { font-size: clamp(28px, 2.8vw, 42px); font-weight: 500; letter-spacing: -0.045em; line-height: 1.04; display: inline-flex; align-items: center; transition: transform .7s var(--ease), color .4s var(--ease); }
.proj-name::before { content: ""; width: 0; height: .22em; border-radius: 50%; background: var(--red); margin-right: 0; transition: width .6s var(--ease), margin .6s var(--ease); }
.proj:hover .proj-name::before, .proj.is-on .proj-name::before { width: .22em; margin-right: .3em; }
.proj-text { grid-column: 1 / -1; color: var(--muted); font-size: 16px; line-height: 1.45; margin: 0; max-width: 46ch; transition: color .4s var(--ease); }
.proj-area { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.proj-list .proj:not(.is-on) .proj-name { color: var(--faint); }
.proj.is-on .proj-text { color: var(--ink-2); }

/* ---------- Contact ---------- */
.contact { position: relative; padding: calc(var(--sec-y) * .8) var(--pad-x) var(--sec-y); }
.contact-inner { width: 100%; max-width: 820px; margin: 0 auto; text-align: center; position: relative; z-index: 2; }
.contact .lead { margin-left: auto; margin-right: auto; }
.form { margin: 48px auto 0; text-align: left; background: rgba(255,255,255,.84); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-radius: 26px; box-shadow: var(--ring), var(--shadow-2); padding: clamp(22px, 3vw, 36px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 500; background: var(--paper-2); color: var(--ink-2); transition: background-color .3s var(--ease), color .3s var(--ease); }
.chips label:hover span { background: var(--paper-3); }
.chips input:checked + span { background: var(--ink); color: var(--paper); }
.chips input:checked + span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-right: 8px; }
.chips input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field span { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field input, .field textarea { font: inherit; font-size: 15.5px; color: var(--ink); background: var(--paper-2); border: 0; border-radius: 12px; padding: 13px 14px; resize: vertical; transition: box-shadow .3s var(--ease), background-color .3s var(--ease); }
.field input:focus, .field textarea:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.field input.bad { box-shadow: inset 0 0 0 1.5px var(--red); }
.form-ok { margin: 16px 0 0; font-weight: 500; }

/* ---------- Footer ---------- */
.footer { padding: 0 var(--pad-x) 28px; overflow: hidden; background: var(--paper); }
.foot-row { max-width: var(--max); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 18px 24px; flex-wrap: wrap; padding: 26px 0; font-size: 14px; color: var(--muted); }
.foot-row nav { display: flex; gap: 8px 20px; flex-wrap: wrap; }
.foot-row nav a { white-space: nowrap; }
.foot-row nav a:hover { color: var(--ink); }
.motion-toggle { font-size: 13px; color: var(--muted); padding: 8px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hair); }
.motion-toggle b { font-weight: 500; color: var(--ink); }
.foot-mark { max-width: var(--max); margin: 0 auto; padding-top: 2vw; overflow: hidden; }
.foot-mark img { width: min(520px, 70%); height: auto; }
.foot-copy { max-width: var(--max); margin: 18px auto 0; font-size: 13px; color: var(--muted); }

/* ---------- Tablet and phone ---------- */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; padding-top: 120px; min-height: auto; gap: 0; }
  .hero-object { order: -1; height: min(58vw, 40vh, 360px); min-height: 240px; margin: 0 -24px; }
  .hero-copy { max-width: 720px; }
}
@media (max-width: 1000px) {
  .how-grid { grid-template-columns: 1fr; }
  .stage { aspect-ratio: auto; padding: 5%; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 120px; min-height: auto; gap: 8px; }
  .hero-object { height: min(80vw, 42vh); min-height: 240px; order: -1; margin: 0 -24px; }
  .console-body { grid-template-columns: 1fr; }
  .console-side { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--hair); padding: 12px 40px 12px 12px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .console-side::-webkit-scrollbar { display: none; }
  .console-side .mono-label { display: none; }
  .req { white-space: nowrap; flex: none; }
  .req.is-on::before { display: none; }
  .thread { min-height: 300px; }
  .plan-list li { font-size: 11px; }
  .menu-btn { display: inline-flex; align-items: center; }
  .svc-split, .svc-code { grid-template-columns: 1fr; gap: 32px; }
  .svc-split .ui, .svc-flip .ui { justify-self: stretch; order: 2; }
  .svc-flip .svc-copy { order: 1; }
  .svc-code { padding: 48px 22px; }
  .code { font-size: 11.5px; padding: 20px 18px; overflow-x: auto; white-space: pre; }
  .band-photo, .vid-band { height: 74vh; border-radius: 24px; }
  .band-photo::after { background: linear-gradient(180deg, rgba(8,8,9,.1) 20%, rgba(8,8,9,.78)); }
  .svc-band .band-copy { top: auto; bottom: 28px; transform: none; }
  .svc-band .svc-title { white-space: normal; }
  .work-grid { grid-template-columns: 1fr; }
  .more-list li { grid-template-columns: 1fr; grid-template-areas: "area" "name" "text"; }
  .viewer { display: none; }
  .proj-list .proj:not(.is-on) .proj-name { color: var(--ink); }
  .proj.is-on .proj-name::before { width: 0; margin-right: 0; }
  .proj-shot { display: block; grid-column: 1 / -1; margin-top: 10px; border-radius: 12px; overflow: hidden; box-shadow: var(--ring); }
  .proj-shot img { width: 100%; height: auto; }
  .svc-video { margin-bottom: 40px; }
  .foot-row nav { gap: 8px 16px; font-size: 13.5px; }
  .band-copy, .vid-band .band-copy { left: 22px; right: 22px; }
  .svc-code { padding: 48px 22px; }
  .fields { grid-template-columns: 1fr; }
  .statement { padding: 0 8px; }
  .statement-inner { border-radius: 24px; }
  :root { --sec-y: 76px; }
  .hero { padding-bottom: 24px; }
  .wp-nav span { display: none; }
  .wp-hero { aspect-ratio: 1.2; }
  .wp-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .wp-head strong { font-size: 22px; }
}

/* ---------- Reduced motion: the site works fully without any of it ---------- */
html[data-motion="reduced"] *, html[data-motion="reduced"] *::before, html[data-motion="reduced"] *::after {
  animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important;
}
html[data-motion="reduced"] .statement-text .w { color: inherit; filter: none; }
html[data-motion="reduced"] .chat-done { opacity: 1; }
html[data-motion="reduced"] .grain { display: none; }



/* ---------- Hero: Panni top left, one block of text under it, the P floats right ---------- */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); grid-template-areas: "logo obj" "copy obj"; align-content: center; column-gap: 2vw;
  height: 100vh; height: 100svh; min-height: 700px; max-width: calc(1500px + 2 * var(--pad-x)); margin: 0 auto; padding: 84px var(--pad-x) 4vh; }
.hero-logo { grid-area: logo; align-self: end; display: block; width: 100%; height: auto; overflow: visible; margin-left: -.5%; z-index: 0; pointer-events: none; }
.hero-logo path { fill: var(--ink); fill-opacity: .13; }
.hero-logo rect { fill: var(--red); opacity: .6; }
.hero-logo .ltr { transform-box: fill-box; transform-origin: 50% 100%; will-change: transform, filter; }
.hero-copy { grid-area: copy; align-self: start; max-width: 620px; margin-top: clamp(28px, 3.6vw, 52px); position: relative; z-index: 2; }
.hero-intro { font-size: clamp(19px, 1.55vw, 26px); line-height: 1.42; letter-spacing: -0.02em; font-weight: 400; color: var(--muted); margin: 0; text-wrap: pretty; }
.hero-intro strong { color: var(--ink); font-weight: 600; }
.hero-ctas { margin-top: 32px; }
.hero-object { grid-area: obj; align-self: center; height: min(76vh, 780px); margin-right: -3vw; }
.booting .hero-copy, .booting .hero-logo { visibility: hidden; }
@media (max-width: 1100px) and (min-width: 901px) {
  .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); min-height: 720px; }
  .hero-object { height: min(56vh, 460px); margin-right: 0; }
}
@media (max-width: 900px) {
  .hero { height: auto; min-height: 0; grid-template-columns: 1fr; grid-template-areas: "obj" "logo" "copy"; padding: 96px var(--pad-x) 48px; }
  .hero-object { height: min(64vw, 40vh, 360px); min-height: 220px; margin: 0 calc(-1 * var(--pad-x)); }
  .hero-logo { margin-top: 4px; }
  .hero-copy { margin-top: 22px; }
}

/* ---------- Training: the team's real tasks move from by hand to with AI ---------- */
.ui-train { max-width: 600px; justify-self: end; padding: 22px; }
.team { display: flex; gap: 6px; margin-bottom: 16px; }
.team i { font-style: normal; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 600; letter-spacing: .02em; background: var(--paper-2); color: var(--faint); transition: background-color .5s var(--ease), color .5s var(--ease), transform .6s var(--ease); }
.team i.on { background: var(--ink); color: #fff; transform: translateY(-2px); }
.team i.on:last-child { background: var(--ink); }
.tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.task { border-radius: 14px; background: var(--paper-2); transition: background-color .5s var(--ease), box-shadow .5s var(--ease); }
.task.active { background: #fff; box-shadow: var(--ring), 0 14px 34px -14px rgba(11,11,12,.22); }
.t-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 16px; }
.t-name { font-weight: 500; font-size: 15px; letter-spacing: -0.01em; }
.t-state { font-size: 12px; font-weight: 500; padding: 5px 11px; border-radius: 999px; background: #fff; color: var(--muted); box-shadow: var(--ring); white-space: nowrap; transition: background-color .4s var(--ease), color .4s var(--ease); }
.t-state[data-s="1"] { background: var(--ink); color: #fff; box-shadow: none; }
.t-state[data-s="2"] { color: var(--red-text); }
.t-state[data-s="2"]::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--red); margin-right: 6px; vertical-align: 1px; }
.t-work { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
.task.active .t-work { grid-template-rows: 1fr; }
.t-inner { min-height: 0; overflow: hidden; padding: 0 16px; }
.task.active .t-inner { padding-bottom: 16px; }
.t-tip { margin: 0 0 10px; display: flex; gap: 10px; align-items: baseline; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); min-height: 20px; }
.t-tip b { flex: none; font-size: 11.5px; font-weight: 600; color: var(--red-text); padding: 3px 9px; border-radius: 999px; background: rgba(240,69,58,.09); }
.t-ask { margin: 0; display: flex; gap: 8px; align-items: flex-start; }
.t-ask i { flex: none; font-style: normal; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 10.5px; font-weight: 600; background: var(--paper-3); color: var(--ink-2); margin-top: 6px; }
.t-prompt { flex: 1; padding: 10px 13px; border-radius: 12px 12px 12px 4px; background: var(--ink); color: var(--paper); font-size: 13.5px; line-height: 1.45; min-height: 40px; }
.t-out { margin: 8px 0 0 36px; font-size: 14px; line-height: 1.5; color: var(--ink-2); min-height: 42px; }
@media (max-width: 900px) { .ui-train { justify-self: stretch; } }
.t-prompt:empty, .t-ask:has(.t-prompt:empty) i { opacity: 0; }
.t-prompt, .t-ask i { transition: opacity .4s var(--ease); }

/* training card, round 2: a visible trainer, a labelled AI answer, one person per task */
.team { align-items: center; }
.team-label { font-size: 12.5px; font-weight: 500; color: var(--muted); margin-right: 6px; }
.t-tip { align-items: center; flex-wrap: wrap; row-gap: 4px; }
.t-tip b.trainer { width: 24px; height: 24px; padding: 0; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; }
.t-tip em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--red-text); margin-right: 2px; }
.t-tip span { flex-basis: 100%; padding-left: 34px; }
.t-out-wrap { margin: 10px 0 0 36px; display: flex; gap: 8px; align-items: flex-start; }
.t-out-wrap .t-out { margin: 0; flex: 1; }
.ai-tag { flex: none; font-family: var(--mono); font-size: 10.5px; font-weight: 500; padding: 3px 7px; border-radius: 6px; background: var(--paper-3); color: var(--ink-2); margin-top: 2px; }
.t-out:empty, .t-out-wrap:has(.t-out:empty) .ai-tag { opacity: 0; }
.ai-tag { transition: opacity .4s var(--ease); }
.t-state[data-s="1"] { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.t-state[data-s="2"] { background: var(--red-text); color: #fff; box-shadow: none; }
.t-state[data-s="2"]::before { background: #fff; }
@media (max-width: 900px) { .ui-train { padding: 16px; } .t-row { padding: 13px 14px; } .t-inner { padding: 0 14px; } }

/* ---------- Video and photo: footage full screen, stills floating over it ---------- */
.vid-band { height: min(94vh, 980px); }
.vid-band::after { background: radial-gradient(120% 90% at 0% 100%, rgba(6,6,7,.82) 0%, rgba(6,6,7,.55) 30%, rgba(6,6,7,0) 62%), linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,0) 22%, rgba(0,0,0,0) 55%, rgba(0,0,0,.45)); }
.vid-band .band-copy { z-index: 3; bottom: clamp(40px, 6vw, 88px); max-width: 760px; }
.vid-title { font-size: clamp(56px, 7.6vw, 140px); line-height: .92; letter-spacing: -0.05em; }
.vid-band .svc-text { font-size: clamp(18px, 1.4vw, 22px); max-width: 36ch; margin-top: 26px; text-wrap: balance; color: rgba(255,255,255,.9); }
.rec { position: absolute; z-index: 3; top: clamp(90px, 9vw, 110px); left: max(calc(var(--pad-x) - 12px), calc((100vw - var(--max)) / 2 - 12px)); display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; color: rgba(255,255,255,.92); text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.rec b { width: 9px; height: 9px; border-radius: 50%; background: var(--red); animation: recblink 1.6s steps(1) infinite; }
@keyframes recblink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: .2; } }
.still { position: absolute; z-index: 2; margin: 0; overflow: hidden; border-radius: 16px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.12); will-change: transform; }
.still img { width: 100%; height: 100%; object-fit: cover; }
.still.s1 { right: 6%; top: 14%; width: clamp(170px, 17vw, 320px); aspect-ratio: 3 / 4; }
.still.s2 { right: 21%; bottom: 9%; width: clamp(180px, 17vw, 340px); aspect-ratio: 4 / 3; }
@media (max-width: 900px) {
  .vid-band { height: 86vh; }
  .vid-title { font-size: clamp(48px, 13vw, 72px); }
  .still.s1 { right: 6%; top: 14%; width: 34vw; }
  .still.s2 { display: none; }
  .vid-band::after { background: linear-gradient(180deg, rgba(0,0,0,.3), rgba(0,0,0,0) 30%, rgba(0,0,0,.78)); }
}

/* video zoom: the section is tall, a sticky stage holds the frame centred while it grows and shrinks */
.svc-video { height: 260vh; padding: 0; margin-bottom: 0; }
.vid-stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.vid-band { flex: none; width: 100%; height: 100%; max-width: none; will-change: width, height; }
html[data-motion="reduced"] .svc-video { height: auto; }
html[data-motion="reduced"] .vid-band { height: min(94vh, 980px); }

/* video zoom v2: the film is always full size; a clip window opens and closes over it */
.svc-video { height: 300vh; }
.vid-band { width: 100vw; height: 100vh; height: 100svh; border-radius: 0; will-change: clip-path; }
.vid-band video { transform-origin: 50% 50%; will-change: transform; }
.vid-lead { position: absolute; z-index: 0; left: 0; right: 0; top: clamp(120px, 19vh, 200px); margin: 0; text-align: center; font-size: clamp(36px, 4.4vw, 68px); font-weight: 500; letter-spacing: -0.038em; line-height: 1.04; color: var(--ink); pointer-events: none; }
.vid-stage { flex-direction: column; }
.vid-stage .vid-band { position: absolute; inset: 0; z-index: 1; }
html[data-motion="reduced"] .vid-lead { display: none; }

/* ---------- Custom builds: a small, real looking editor ---------- */
.ide { display: grid; }
.ide-bar { display: flex; align-items: center; gap: 4px; height: 40px; padding: 0 12px; border-bottom: 1px solid rgba(255,255,255,.07); background: #0f0f11; }
.ide-bar .dots { margin-right: 12px; } .ide-bar .dots i { background: #2a2a2e; }
.ide-tab { font-family: var(--mono); font-size: 11.5px; color: rgba(242,242,239,.45); padding: 7px 12px; border-radius: 8px 8px 0 0; }
.ide-tab.on { color: #f2f2ef; background: #131315; box-shadow: inset 0 2px 0 var(--red); }
.ide-body { display: grid; grid-template-columns: 150px 1fr; min-height: 0; }
.ide-files { padding: 14px 12px; border-right: 1px solid rgba(255,255,255,.07); font-family: var(--mono); font-size: 11.5px; color: rgba(242,242,239,.5); display: flex; flex-direction: column; gap: 6px; }
.ide-files p { margin: 6px 0 2px; font-size: 10.5px; color: rgba(242,242,239,.32); letter-spacing: .04em; }
.ide-files span { padding: 3px 8px; border-radius: 6px; }
.ide-files span.on { color: #f2f2ef; background: rgba(255,255,255,.06); }
.ide .code { border-bottom: 0; padding: 16px 18px; font-size: 12.5px; line-height: 1.72; min-height: 0; white-space: pre; overflow: hidden; }
.ide .code .ln { display: block; }
.ide .code .ln i { font-style: normal; display: inline-block; width: 2.2em; margin-right: 14px; text-align: right; color: #45454a; user-select: none; }
.code .n { color: #c9a0ff; }
.ide-term { padding: 12px 18px; border-top: 1px solid rgba(255,255,255,.07); background: #0f0f11; font-family: var(--mono); font-size: 12px; line-height: 1.7; }
.ide-term .tl { margin: 0; color: rgba(242,242,239,.6); }
.ide-term .tl.ok { color: #f2f2ef; }
.ide-term .tl.ok::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-right: 9px; vertical-align: 1px; }
.ide-term b { font-weight: 400; color: rgba(242,242,239,.5); margin-left: 8px; }
.ide .build-out { border-top: 1px solid rgba(255,255,255,.07); }
@media (max-width: 900px) {
  .ide-body { grid-template-columns: 1fr; }
  .ide-files { display: none; }
  .ide-tab:not(.on) { display: none; }
  .ide .code { font-size: 10.5px; padding: 14px 12px; }
}

/* custom builds: the line people should read first stands out */
.build-lead { font-size: clamp(19px, 1.55vw, 24px); line-height: 1.45; max-width: 30ch; color: rgba(242,242,239,.66); }
.build-lead strong { display: block; color: #f2f2ef; font-weight: 500; margin-bottom: 8px; }

/* fuller menu bar: one link per offer */
.nav-links a { padding: 0 13px; }
@media (max-width: 1240px) and (min-width: 901px) { .nav-links a { padding: 0 9px; font-size: 13.5px; } .nav-links a.nl-wide { display: none; } }
@media (max-width: 1080px) and (min-width: 901px) { .nav-links a:nth-of-type(4) { display: none; } }
.nav-links a::before { left: 2px; }

/* a play button that appears only when a video could not start by itself (Low Power Mode, Reduce Motion) */
.site-shot, .vid-band { position: relative; }
.tap-play { position: absolute; z-index: 4; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 10px 30px rgba(0,0,0,.35); cursor: pointer; }
.tap-play::after { content: ""; position: absolute; left: 26px; top: 20px; border-left: 18px solid var(--ink); border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.tap-play[hidden] { display: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-err { margin: 16px 0 0; font-weight: 500; color: var(--red-text); }
.form-err a { text-decoration: underline; }

/* the training card keeps one height while its tasks open and close, so nothing below jumps */
.ui-train .tasks { min-height: 372px; align-content: start; }
@media (max-width: 900px) { .ui-train .tasks { min-height: 430px; } }

/* ---------- Phone pass: bigger, easier to read ---------- */
@media (max-width: 600px) {
  body { font-size: 17px; }
  .hero-object { height: min(84vw, 46vh, 400px); min-height: 280px; }
  .hero-intro { font-size: 19px; }
  .svc-title { font-size: clamp(38px, 11vw, 48px); }
  .svc-text, .build-lead { font-size: 18px; }
  .svc { margin-bottom: 88px; }
  /* demo cards: real reading sizes */
  .ui, .ui-train { padding: 18px; }
  .t-name { font-size: 16px; }
  .t-state { font-size: 12.5px; }
  .t-tip, .t-prompt, .t-out { font-size: 15px; }
  .team-label { font-size: 13.5px; }
  .tix li { font-size: 15.5px; padding: 16px; }
  .tix em { font-size: 12px; }
  .code { font-size: 13px !important; line-height: 1.7; white-space: pre-wrap !important; word-break: break-word; padding: 20px 18px !important; }
  .bo-row { grid-template-columns: 110px 1fr; font-size: 14.5px; }
  .web-url { font-size: 13px; }
  .proj-name { font-size: 32px; }
  .proj-text { font-size: 16.5px; }
  .more-title { font-size: 26px; }
  .more-list strong { font-size: 22px; }
  .more-list p { font-size: 16px; }
  /* form: 16px stops iPhones zooming in when you tap a box */
  .field input, .field textarea { font-size: 16px; padding: 15px 14px; }
  .field span { font-size: 14.5px; }
  .chips span { height: 42px; font-size: 15px; padding: 0 16px; }
  .btn { --h: 54px; font-size: 16px; }
  .foot-row { font-size: 15px; }
  .foot-row nav { gap: 10px 20px; font-size: 15px; }
  .vid-lead { font-size: 40px; top: 120px; }
}

/* Our work: projects with a live site link out */
.proj-link { color: inherit; text-decoration: none; display: inline-flex; align-items: baseline; gap: 6px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease, ease); }
.proj-link:hover { background-size: 100% 1px; }
.proj-link .ext { font-size: .62em; color: var(--red, #e5322d); transform: translateY(-.35em); }
.viewer-frame.has-link { cursor: pointer; }

/* Tablet (601 to 900): cards use the full width, text a size up */
@media (max-width: 900px) {
  .svc-split .ui, .svc-flip .ui { max-width: none; }
}
@media (min-width: 601px) and (max-width: 900px) {
  .ui { font-size: 16px; padding: 28px; }
  .svc-text { font-size: 19px; }
  .ui-train .tasks { min-height: 390px; }
  .svc { margin-bottom: 120px; }
}
@media (min-width: 601px) and (max-width: 900px) { .svc-code .code { font-size: 15px; } .svc-code .bo-row { font-size: 16px; } }

/* Phone: every button easy to tap (44px or more) and small labels easy to read */
@media (max-width: 600px) {
  .menu-btn { height: 44px; padding: 0 18px; font-size: 15px; }
  .brand { padding: 8px 0; }
  .chips span { height: 44px; }
  .foot-row nav a { display: inline-block; padding: 11px 0; }
  .motion-toggle { min-height: 44px; font-size: 14px; }
  .proj-link { padding: 6px 0; }
  .proj-area, .trainer, .tix em { font-size: 13px; }
  .t-state { font-size: 13px; }
  .ai-tag { font-size: 12px; }
}

/* ---------- Footer: brand, links, Onni Capital, big wordmark ---------- */
.footer { padding: 0 var(--pad-x) 26px; border-top: 1px solid var(--hair); }
.foot-top { max-width: var(--max); margin: 0 auto; display: flex; align-items: flex-start; gap: 40px 7vw; flex-wrap: wrap; padding: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); }
.foot-brand { flex: 1 1 300px; max-width: 380px; }
.foot-logo { height: 34px; width: auto; display: block; margin-bottom: 22px; }
.foot-brand p { font-size: 16px; line-height: 1.55; color: var(--ink-2); margin: 0 0 18px; }
.foot-mail { font-size: 15px; font-weight: 500; color: var(--ink); background: linear-gradient(var(--red), var(--red)) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; }
.foot-links { display: flex; gap: 32px 64px; flex-wrap: wrap; }
.foot-links div { display: flex; flex-direction: column; gap: 10px; }
.foot-links h3 { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.foot-links a { font-size: 15px; color: var(--ink-2); width: fit-content; transition: color .3s var(--ease), transform .4s var(--ease); }
.foot-links a:hover { color: var(--ink); transform: translateX(3px); }
.foot-onni { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; color: var(--muted); font-size: 13px; opacity: .85; transition: opacity .3s var(--ease); }
.foot-onni:hover { opacity: 1; }
.foot-onni img { height: 60px; width: auto; }
.foot-mark { max-width: var(--max); margin: 0 auto; padding-top: 0; overflow: hidden; }
.foot-mark img { width: 100%; max-width: none; height: auto; opacity: .08; display: block; }
.foot-bottom { max-width: var(--max); margin: 22px auto 0; display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.foot-bottom p { margin: 0; }
.foot-bottom a { color: var(--ink-2); }
.foot-bottom a:hover { color: var(--ink); }
@media (max-width: 760px) {
  .foot-onni { margin-left: 0; align-items: flex-start; }
}
@media (max-width: 600px) {
  .foot-links a { font-size: 16px; padding: 6px 0; }
  .foot-links { gap: 32px 48px; }
  .foot-bottom { font-size: 14px; }
}
