/* Kriyavo — "Midnight" design (Oct 2026).
   Dark, editorial and quiet: one serif for headlines, one sans for reading,
   and the blue / cyan / violet of the K logo used only as light and accent. */

@font-face { font-family: 'Inter'; src: url('fonts/inter-var.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('fonts/instrument-serif-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('fonts/instrument-serif-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --bg: #05070d;
  --bg-raised: #0a0e19;
  --surface: rgba(255, 255, 255, .035);
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #eef0f6;
  --text-2: #a9b0c4;
  --text-3: #8790a8;
  --accent: #8fb4ff;
  --grad: linear-gradient(100deg, #8fb4ff 0%, #62e1f6 45%, #b7a2ff 100%);
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --r-sm: 12px; --r: 20px; --r-lg: 28px;
  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.7 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(123, 92, 250, .4); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.icon { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: fixed; top: -80px; left: var(--s4); z-index: 100; padding: var(--s3) var(--s4); background: var(--text); color: var(--bg); border-radius: var(--r-sm); }
.skip-link:focus { top: var(--s4); }

/* Type */
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; color: var(--text); }
h1 { font-size: clamp(56px, 8.4vw, 124px); line-height: .96; }
h2 { font-size: clamp(42px, 5.4vw, 76px); line-height: 1.02; }
h1 em, h2 em, .statement em {
  font-style: italic; padding-right: .06em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow { display: inline-flex; align-items: center; gap: var(--s3); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--text-2); }
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--grad); }
p { color: var(--text-2); }
.lead { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.65; max-width: 32em; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent; font: 500 15px/1 var(--sans); white-space: nowrap; transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s; }
.btn .icon { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translate(2px, -2px); }
.btn:hover .icon.arrow { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: #fff; box-shadow: 0 0 0 6px rgba(143, 180, 255, .12), 0 14px 44px rgba(98, 140, 255, .28); transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, .03); border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .3); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: var(--s2); padding: 0; background: none; border: 0; font-size: 15px; font-weight: 500; color: var(--text); }
.text-link .icon { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.text-link:hover { color: var(--accent); }
.text-link:hover .icon { transform: translateX(3px); }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s, backdrop-filter .3s; }
.site-header.scrolled { background: rgba(5, 7, 13, .72); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 600; letter-spacing: -.02em; color: var(--text); }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav > a { font-size: 15px; color: var(--text-2); transition: color .2s; }
.site-nav > a:hover { color: var(--text); }
.menu-btn { display: none; width: 44px; height: 44px; place-items: center; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .03); }
.menu-btn .icon { width: 22px; height: 22px; }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 140px 0 var(--s9); }
.aurora { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .42; animation: drift 20s ease-in-out infinite alternate; }
.aurora .a1 { width: 620px; height: 620px; top: -8%; right: 2%; background: radial-gradient(circle, #2e6ff2, transparent 66%); }
.aurora .a2 { width: 520px; height: 520px; top: 22%; right: 26%; background: radial-gradient(circle, #7b5cfa, transparent 66%); animation-duration: 26s; }
.aurora .a3 { width: 440px; height: 440px; top: 44%; right: -8%; background: radial-gradient(circle, #22c7e5, transparent 66%); animation-duration: 32s; opacity: .3; }
.grid-lines { position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 72px 72px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 15%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 15%, transparent 75%); }
.hero-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: var(--s7); align-items: center; width: 100%; }
.hero h1 { margin: var(--s5) 0 var(--s5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s6); margin-top: var(--s8); padding-top: var(--s5); border-top: 1px solid var(--line); font-size: 14px; color: var(--text-3); max-width: 560px; }
.hero-meta li { display: inline-flex; align-items: center; gap: 10px; }
.hero-meta li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--grad); }

/* Orbit: the K at the centre of everything we build */
.orbit { position: relative; width: min(460px, 100%); aspect-ratio: 1; margin-inline: auto; }
.ring { position: absolute; border-radius: 50%; border: 1px solid var(--line); }
.ring-1 { inset: 0; }
.ring-2 { inset: 16%; }
.ring-3 { inset: 32%; border-color: rgba(255, 255, 255, .13); background: radial-gradient(circle, rgba(98, 140, 255, .14), transparent 70%); }
.spin { position: absolute; animation: spin 70s linear infinite; }
.spin-1 { inset: 0; }
/* Both rings turn together so the six labels keep their spacing and never collide. */
.spin-2 { inset: 16%; }
.chip-pos { position: absolute; transform: translate(-50%, -50%); }
.chip { display: inline-flex; align-items: center; gap: var(--s2); padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(10, 14, 25, .88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); font-size: 13px; font-weight: 500; color: var(--text); white-space: nowrap; animation: spin 70s linear infinite reverse; }
.chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 10px #62e1f6; }
.orbit-core { position: absolute; inset: 39%; display: grid; place-items: center; border-radius: 26px; border: 1px solid var(--line-strong); background: linear-gradient(145deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .02)); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 0 90px rgba(98, 140, 255, .4), inset 0 1px 0 rgba(255, 255, 255, .14); }
.orbit-core img { width: 58%; height: auto; }

/* Marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: var(--s6) 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee-group { display: flex; align-items: center; gap: var(--s7); padding-right: var(--s7); }
.marquee-group span { font-family: var(--serif); font-size: clamp(28px, 3.2vw, 44px); line-height: 1.2; color: var(--text); white-space: nowrap; }
.marquee-group span:nth-child(4n+3) { font-style: italic; color: var(--text-2); }
.marquee-group i { width: 9px; height: 9px; transform: rotate(45deg); background: var(--grad); flex-shrink: 0; }

/* Sections */
.section { padding-block: clamp(96px, 12vw, 160px); }
.section-tight { padding-top: 0; }
.section-head { display: grid; grid-template-columns: 1.25fr .75fr; gap: var(--s7); align-items: end; margin-bottom: var(--s8); }
.section-head h2 { margin-top: var(--s5); }
.section-head > p { font-size: 17px; max-width: 30em; }

/* Services bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s4); }
.card { grid-column: span 2; position: relative; display: flex; flex-direction: column; padding: var(--s6); border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012)); overflow: hidden; transition: border-color .35s, transform .35s var(--ease); }
.card::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 0%), rgba(143, 180, 255, .1), transparent 60%); }
.card:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.card:hover::before { opacity: 1; }
.card-wide { grid-column: span 4; }
.card-full { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s7); align-items: center; }
.card-full-copy { display: flex; flex-direction: column; }
.num { font-size: 13px; letter-spacing: .12em; color: var(--text-3); }
.card h3 { margin: var(--s3) 0 var(--s2); font-size: 22px; font-weight: 600; line-height: 1.25; letter-spacing: -.015em; color: var(--text); }
.card .punch { font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.3; color: var(--text); margin-bottom: var(--s3); }
.card p { font-size: 15.5px; line-height: 1.65; }
.tags { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); }
.tags span { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; line-height: 1.4; color: var(--text-2); }
.card-cta { display: inline-flex; align-items: center; gap: var(--s2); align-self: flex-start; margin-top: auto; padding: var(--s6) 0 0; background: none; border: 0; font-size: 15px; font-weight: 500; color: var(--text); }
.card-cta .icon { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.card-cta:hover { color: var(--accent); }
.card-cta:hover .icon { transform: translateX(3px); }

/* Card illustrations (decorative, built from plain shapes) */
.visual { position: relative; height: 172px; margin-bottom: var(--s6); border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); overflow: hidden; }
.card-wide .visual { height: 210px; }
.v-browser { position: absolute; inset: 22px 24px -1px; border: 1px solid var(--line-strong); border-bottom: 0; border-radius: 14px 14px 0 0; background: var(--bg-raised); }
.v-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.v-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.v-bar span { margin-left: var(--s4); padding: 2px 12px; border-radius: 999px; background: rgba(255, 255, 255, .05); font-size: 11px; color: var(--text-3); }
.v-page { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--s5); padding: 22px; }
.v-copy { display: flex; flex-direction: column; gap: 10px; }
.v-copy span { display: block; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .1); }
.v-copy .l1 { height: 14px; width: 88%; background: rgba(255, 255, 255, .5); }
.v-copy .l2 { height: 14px; width: 62%; background: var(--grad); opacity: .85; }
.v-copy .l3 { width: 92%; margin-top: 6px; }
.v-copy .l4 { width: 70%; }
.v-copy .v-btn { width: 86px; height: 24px; margin-top: 8px; border-radius: 999px; background: var(--text); }
.v-art { border-radius: 12px; background: radial-gradient(circle at 30% 30%, rgba(123, 92, 250, .9), transparent 55%), radial-gradient(circle at 75% 70%, rgba(34, 199, 229, .8), transparent 55%), #10162a; min-height: 110px; }

.v-dash { padding: 20px; display: flex; flex-direction: column; }
.v-dash-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--text-3); }
.v-dash-head strong { font-size: 18px; font-weight: 600; color: var(--text); }
.v-bars { flex: 1; display: flex; align-items: flex-end; gap: 9px; padding-top: var(--s4); border-bottom: 1px solid var(--line); }
.v-bars i { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, rgba(143, 180, 255, .9), rgba(123, 92, 250, .35)); }
.v-bars i:nth-child(6) { background: var(--grad); box-shadow: 0 0 22px rgba(98, 225, 246, .35); }

.v-chat, .v-ai { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 82%; padding: 9px 14px; border-radius: 16px; font-size: 13px; line-height: 1.4; }
.bubble.in { align-self: flex-start; background: rgba(255, 255, 255, .07); color: var(--text); border-bottom-left-radius: 5px; }
.bubble.out { align-self: flex-end; background: linear-gradient(120deg, rgba(46, 111, 242, .55), rgba(123, 92, 250, .5)); color: #fff; border-bottom-right-radius: 5px; }
.ticks { margin-left: 6px; font-size: 11px; color: #9be8f7; letter-spacing: -2px; }
.bubble.ai { align-self: flex-end; display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line-strong); background: rgba(10, 14, 25, .9); border-bottom-right-radius: 5px; }
.bubble.ai .icon { width: 15px; height: 15px; color: #b7a2ff; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-2); animation: typing 1.2s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
.v-label { margin-top: auto; font-size: 12px; color: var(--text-3); }

.v-flow { display: flex; align-items: center; justify-content: center; gap: 0; padding: 0 16px; }
.node { flex-shrink: 0; padding: 9px 13px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg-raised); font-size: 12.5px; color: var(--text); white-space: nowrap; }
.node:last-child { border-color: rgba(143, 180, 255, .45); box-shadow: 0 0 24px rgba(98, 140, 255, .25); }
.link { position: relative; flex: 1; min-width: 18px; height: 1px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 4px, transparent 4px 8px); }
.link::after { content: ''; position: absolute; top: -2.5px; left: 0; width: 6px; height: 6px; border-radius: 50%; background: #62e1f6; box-shadow: 0 0 10px #62e1f6; animation: travel 2.4s ease-in-out infinite; }
.link:nth-of-type(4)::after { animation-delay: 1.2s; }

.card-full .visual { height: 260px; margin: 0; }
.v-hub .hub-lines { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: rgba(143, 180, 255, .35); stroke-width: 1; stroke-dasharray: 4 5; }
.hub-node { position: absolute; transform: translate(-50%, -50%); padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--bg-raised); font-size: 12.5px; color: var(--text); white-space: nowrap; }
.hub-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 76px; height: 76px; border-radius: 22px; border: 1px solid var(--line-strong); background: linear-gradient(145deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .02)); box-shadow: 0 0 60px rgba(98, 140, 255, .4); }

/* Industries */
.industries { display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--s7); align-items: stretch; }
.ind-list { border-top: 1px solid var(--line); }
.ind-list button { display: flex; align-items: center; gap: 18px; width: 100%; padding: 22px var(--s2); background: none; border: 0; border-bottom: 1px solid var(--line); font-size: 19px; text-align: left; color: var(--text-2); transition: color .2s, padding .3s var(--ease); }
.ind-list button span { width: 26px; font-size: 13px; color: var(--text-3); }
.ind-list button .icon { margin-left: auto; opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .25s var(--ease); }
.ind-list button:hover { color: var(--text); }
.ind-list button[aria-pressed="true"] { color: var(--text); padding-left: var(--s4); }
.ind-list button[aria-pressed="true"] .icon { opacity: 1; transform: none; color: var(--accent); }
.ind-panel { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(28px, 4vw, 52px); border: 1px solid var(--line); border-radius: var(--r-lg); background: radial-gradient(120% 120% at 100% 0%, rgba(123, 92, 250, .2), transparent 50%), radial-gradient(90% 90% at 0% 100%, rgba(34, 199, 229, .08), transparent 60%), var(--surface); min-height: 420px; }
.ind-panel h3 { margin: var(--s5) 0 var(--s4); font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 3.6vw, 48px); line-height: 1.05; color: var(--text); max-width: 13em; }
.ind-panel > p { font-size: 17px; max-width: 30em; }
.ind-panel .tags { margin-bottom: var(--s5); }
.ind-panel .note { font-size: 14px; color: var(--text-3); margin-bottom: var(--s5); }

/* About */
.about { position: relative; border-block: 1px solid var(--line); background: radial-gradient(60% 80% at 15% 0%, rgba(46, 111, 242, .12), transparent 60%), var(--bg); }
.statement { margin: var(--s6) 0 var(--s8); max-width: 17em; font-family: var(--serif); font-size: clamp(38px, 5vw, 70px); line-height: 1.06; letter-spacing: -.01em; color: var(--text); }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--s8); align-items: start; }
.about-lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--text); }
.principles > div { position: relative; padding: var(--s5) 0 var(--s5) 52px; border-top: 1px solid var(--line); }
.principles > div:last-child { border-bottom: 1px solid var(--line); }
.principles span { position: absolute; left: 0; top: 27px; font-size: 13px; color: var(--text-3); }
.principles h3 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; color: var(--text); }
.principles p { margin-top: 4px; font-size: 15.5px; }
.remote { display: flex; align-items: center; gap: var(--s3); margin-top: var(--s8); font-size: 15px; color: var(--text-2); }
.remote .icon { width: 20px; height: 20px; color: var(--accent); }

/* Process */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5); }
.steps::before { content: ''; position: absolute; top: 23px; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, rgba(143, 180, 255, .6), rgba(183, 162, 255, .35) 60%, transparent); }
.steps li { position: relative; }
.step-num { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg); font-family: var(--serif); font-size: 22px; color: var(--text); }
.steps h3 { margin: var(--s5) 0 var(--s3); font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.1; color: var(--text); }
.steps p { font-size: 15.5px; max-width: 24em; }

/* Contact */
.section-cta { padding-top: 0; }
.cta { position: relative; isolation: isolate; overflow: hidden; padding: clamp(64px, 9vw, 128px) clamp(24px, 6vw, 96px); border: 1px solid var(--line-strong); border-radius: 36px; text-align: center; background: var(--bg-raised); }
.cta-glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 70% at 50% 0%, rgba(98, 140, 255, .32), transparent 70%), radial-gradient(40% 60% at 85% 100%, rgba(123, 92, 250, .25), transparent 70%), radial-gradient(35% 55% at 10% 100%, rgba(34, 199, 229, .16), transparent 70%); }
.cta h2 { margin: var(--s5) auto var(--s5); font-size: clamp(48px, 7vw, 104px); line-height: .98; }
.cta p { max-width: 30em; margin: 0 auto; font-size: 18px; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 40px; }

/* Footer */
.site-footer { padding: var(--s8) 0 var(--s6); border-top: 1px solid var(--line); overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: var(--s7); }
.footer-brand p { margin-top: var(--s4); font-size: 15px; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s3); }
.footer-col > span { margin-bottom: var(--s2); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.footer-col a, .footer-col .text-link { font-size: 15px; font-weight: 400; color: var(--text-2); transition: color .2s; }
.footer-col a:hover, .footer-col .text-link:hover { color: var(--text); }
.footer-col p { font-size: 14px; color: var(--text-3); }
.footer-word { margin: var(--s8) 0 var(--s5); font-family: var(--serif); font-size: clamp(88px, 21vw, 300px); line-height: .8; text-align: center; letter-spacing: -.02em; background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: var(--s4); padding-top: var(--s5); border-top: 1px solid var(--line); font-size: 14px; color: var(--text-3); }
.footer-bottom a:hover { color: var(--text); }

/* Project brief dialog */
.brief { width: min(1000px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--bg-raised); color: var(--text); box-shadow: 0 40px 120px rgba(0, 0, 0, .65); overflow: auto; }
.brief::backdrop { background: rgba(3, 5, 10, .76); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
body.dialog-open { overflow: hidden; }
.brief-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 28px; border-bottom: 1px solid var(--line); }
.brief-head .brand { font-size: 18px; }
.brief-head .brand img { width: 30px; height: 30px; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; transition: background .2s; }
.icon-btn:hover { background: rgba(255, 255, 255, .07); }
.brief-body { display: grid; grid-template-columns: .85fr 1.15fr; gap: var(--s7); padding: clamp(24px, 4vw, 44px); }
.brief-intro h2 { margin: var(--s4) 0; font-size: clamp(36px, 4vw, 52px); }
.brief-intro > p { font-size: 16px; margin-bottom: var(--s5); }
.brief-intro .brief-note { margin: var(--s6) 0 0; padding: var(--s4); border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); font-size: 14px; line-height: 1.6; color: var(--text-3); }
#brief-form label { display: flex; flex-direction: column; gap: var(--s2); margin-bottom: 18px; font-size: 14px; font-weight: 500; color: var(--text-2); }
.optional { display: contents; font-weight: 400; color: var(--text-3); }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
input, select, textarea { width: 100%; min-width: 0; padding: 13px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: rgba(255, 255, 255, .04); color: var(--text); font: 400 16px/1.4 var(--sans); transition: border-color .2s, box-shadow .2s, background .2s; }
input::placeholder, textarea::placeholder { color: #6f7891; }
input:hover, select:hover, textarea:hover { border-color: rgba(255, 255, 255, .26); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); background: rgba(255, 255, 255, .06); box-shadow: 0 0 0 4px rgba(143, 180, 255, .16); }
select option { background: var(--bg-raised); color: var(--text); }
textarea { resize: vertical; min-height: 110px; }
#brief-ready { margin-top: var(--s5); padding-top: var(--s5); border-top: 1px solid var(--line); }
#brief-ready > p { font-size: 15px; color: var(--text); margin-bottom: var(--s4); }
.ready-actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
#brief-preview { margin: var(--s4) 0 0; max-height: 200px; overflow: auto; padding: var(--s4); border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); font: 400 13px/1.7 var(--sans); color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; }
#copy-status { margin-top: var(--s2); font-size: 14px; }

/* Motion: content is visible by default; main.js adds .motion only when movement is welcome */
.motion .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.motion .reveal.in { opacity: 1; transform: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-60px, 40px) scale(1.12); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes typing { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes travel { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 6px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Tablet */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero { min-height: 0; padding-top: 128px; }
  .orbit { width: min(420px, 100%); margin-top: var(--s5); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card, .card-wide { grid-column: span 1; }
  .card-wide { grid-column: 1 / -1; }
  .card-full { grid-column: 1 / -1; grid-template-columns: 1fr; gap: var(--s6); }
  .card-full .visual { order: -1; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: var(--s7); }
  .steps::before { display: none; }
}
@media (max-width: 860px) {
  .menu-btn { display: grid; }
  .site-nav { position: absolute; top: 76px; left: var(--gutter); right: var(--gutter); display: none; flex-direction: column; align-items: stretch; gap: 0; padding: var(--s3); border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--bg-raised); box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
  .site-nav.open { display: flex; }
  .site-nav > a { padding: 14px var(--s3); font-size: 17px; color: var(--text); border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: var(--s3); height: 50px; }
  .section-head { grid-template-columns: 1fr; gap: var(--s5); margin-bottom: var(--s7); }
  .industries { grid-template-columns: 1fr; }
  .ind-panel { min-height: 0; }
  .about-grid { grid-template-columns: 1fr; gap: var(--s6); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .brief-body { grid-template-columns: 1fr; gap: var(--s5); }
  .brief-intro .brief-note { margin-top: var(--s4); }
}
/* Phone */
@media (max-width: 600px) {
  .header-inner { height: 68px; }
  .site-nav { top: 68px; }
  .hero { padding: 112px 0 var(--s8); }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-meta { margin-top: var(--s7); gap: var(--s2) var(--s5); }
  /* Small enough that labels stay on screen at every point of the turn. */
  .orbit { width: min(250px, 70vw); margin-block: var(--s6) var(--s4); }
  .chip { padding: 6px 10px; font-size: 11.5px; }
  .bento { grid-template-columns: 1fr; }
  .card, .card-wide, .card-full { grid-column: 1 / -1; padding: var(--s5); }
  .card-wide .visual { height: 200px; }
  .v-page { padding: 18px; }
  .v-page { grid-template-columns: 1fr; }
  .v-art { display: none; }
  .card-full .visual { height: 230px; }
  .steps { grid-template-columns: 1fr; row-gap: var(--s6); }
  .field-pair { grid-template-columns: 1fr; gap: 0; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .cta { border-radius: var(--r-lg); }
  .cta-actions .btn { flex: 1 1 100%; }
}
