/* Paladin Design */
:root {
  --bg: #0c0810;
  --panel: rgba(255, 255, 255, .035);
  --panel-hi: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .09);
  --line-hi: rgba(255, 255, 255, .2);
  --white: #f6f2ea;
  --text: #cfc9d2;
  --muted: #958e9c;
  --sun: #ffb04a;
  --ember: #ff6a3d;
  --cyan: #5ad1ff;
  --grad: linear-gradient(100deg, #ffc15a 0%, #ff6a3d 45%, #5ad1ff 100%);
  --radius: 18px;
  --wrap: 1160px;
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sun); }
h1, h2, h3 { font-family: var(--display); color: var(--white); margin: 0; line-height: 1.08; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); font-weight: 700; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 700; text-wrap: balance; }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; }
p { margin: 0; }
::selection { background: var(--ember); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; position: relative; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 200; background: var(--sun); color: #1a0f12; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.grad { background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 8s ease-in-out infinite alternate; }
@keyframes shimmer { to { background-position: 100% 0; } }

/* Ambient background */
.bg-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 85% -5%, rgba(255, 106, 61, .16), transparent 70%),
    radial-gradient(50vw 50vh at -5% 40%, rgba(90, 209, 255, .09), transparent 70%),
    radial-gradient(60vw 60vh at 60% 110%, rgba(255, 176, 74, .08), transparent 70%);
}
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; }
.progress span { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: 0 50%; background: var(--grad); }

/* Glass surfaces */
.glass {
  background: linear-gradient(180deg, var(--panel-hi), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 30px 60px -30px rgba(0, 0, 0, .7);
}

/* Buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  font: 600 1rem var(--body); letter-spacing: -0.01em;
  color: #1a0b08; text-decoration: none;
  background: linear-gradient(100deg, #ffc15a, #ff7a45);
  border: 0; border-radius: 999px; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset, 0 10px 34px -8px rgba(255, 106, 61, .7);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn span { transition: transform .2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .35) inset, 0 16px 44px -8px rgba(255, 106, 61, .9); }
.btn:hover span { transform: translateX(4px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-ghost { background: var(--panel); color: var(--white); box-shadow: 0 0 0 1px var(--line-hi) inset; backdrop-filter: blur(10px); }
.btn-ghost:hover { box-shadow: 0 0 0 1px var(--cyan) inset, 0 10px 34px -12px rgba(90, 209, 255, .6); }
.btn-small { min-height: 42px; padding: 0 20px; font-size: .92rem; }
.btn-block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; padding-top: 12px; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 60px; padding: 0 12px 0 18px; max-width: calc(var(--wrap) - 44px); width: calc(100% - 28px);
  background: rgba(14, 9, 18, .7);
  border: 1px solid var(--line); border-radius: 999px;
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); font-family: var(--display); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; }
.brand img { border-radius: 8px; }
.brand em { font-style: normal; font-weight: 500; color: var(--muted); margin-left: 5px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; font-size: .95rem; transition: color .2s; }
.nav a:not(.btn):hover { color: var(--white); }
.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--white); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; overflow: hidden; margin-top: -72px; padding: 150px 0 150px; min-height: min(100vh, 900px); display: flex; align-items: center; }
.stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.grid-floor {
  position: absolute; left: -50%; right: -50%; bottom: -10px; height: 46%;
  background-image:
    linear-gradient(rgba(255, 138, 76, .55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 138, 76, .55) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(520px) rotateX(64deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 85%);
  mask-image: linear-gradient(to top, #000 0%, transparent 85%);
  animation: floor 5s linear infinite;
  opacity: .85;
}
@keyframes floor { to { background-position: 0 64px; } }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 .78rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text);
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel);
  margin-bottom: 26px; backdrop-filter: blur(8px);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #5dffa0; box-shadow: 0 0 0 0 rgba(93, 255, 160, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(93, 255, 160, 0); } 100% { box-shadow: 0 0 0 0 rgba(93, 255, 160, 0); } }
.rotator { display: block; min-height: 1.15em; }
.rotator .grad { display: inline-block; transition: opacity .35s ease, transform .35s ease, filter .35s ease; }
.rotator .out { opacity: 0; transform: translateY(18px); filter: blur(8px); }
.lede { font-size: 1.17rem; max-width: 33em; margin-top: 24px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-art { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 500px; width: 100%; margin: 0 auto; }
/* Animated logo: float + mouse tilt + sun pulse + light sweep + glints + embers */
.hero-art { perspective: 900px; }
.logo { position: relative; width: 104%; animation: float 7s ease-in-out infinite, logo-in 1.4s cubic-bezier(.2, .8, .2, 1) both; }
.logo-inner {
  position: relative; overflow: hidden;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .25s ease-out;
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
}
.logo img { width: 100%; }
@keyframes float { 50% { translate: 0 -12px; } }
@keyframes logo-in { from { opacity: 0; scale: .7; } to { opacity: 1; scale: 1; } }

/* Sun behind the knight breathes brighter */
.sun-pulse {
  position: absolute; left: 50%; top: 30%; width: 62%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 190, 90, .55), rgba(255, 120, 60, .25) 60%, transparent 75%);
  mix-blend-mode: color-dodge; animation: sun-pulse 4.5s ease-in-out infinite;
}
@keyframes sun-pulse { 0%, 100% { opacity: .15; scale: .92; } 50% { opacity: .75; scale: 1.06; } }

/* Light sweeping across the armour (only brightens what is already lit) */
.shine {
  position: absolute; inset: -20% -60%;
  background: linear-gradient(105deg, transparent 44%, rgba(255, 255, 255, .5) 50%, transparent 56%);
  mix-blend-mode: color-dodge; transform: translateX(-60%);
  animation: sweep 6.5s ease-in-out infinite;
}
@keyframes sweep { 0%, 35% { transform: translateX(-60%); } 65%, 100% { transform: translateX(60%); } }

/* Glints on the helmet, pauldron and sword */
.glint {
  position: absolute; width: 9%; aspect-ratio: 1; translate: -50% -50%; opacity: 0;
  background: radial-gradient(closest-side, #fff, rgba(255, 220, 160, .6) 30%, transparent 70%);
  clip-path: polygon(50% 0, 56% 44%, 100% 50%, 56% 56%, 50% 100%, 44% 56%, 0 50%, 44% 44%);
  animation: glint 5s ease-in-out infinite;
}
.g1 { left: 50%; top: 19%; }
.g2 { left: 30%; top: 33%; animation-delay: 1.7s; }
.g3 { left: 50%; top: 63.5%; animation-delay: 3.3s; }
@keyframes glint { 0%, 78%, 100% { opacity: 0; scale: .2; rotate: 0deg; } 86% { opacity: 1; scale: 1.2; rotate: 45deg; } 94% { opacity: 0; scale: .3; rotate: 90deg; } }

/* Pixel embers drifting up around the knight */
.ember { position: absolute; bottom: 30%; width: 5px; height: 5px; background: var(--sun); box-shadow: 0 0 10px 1px rgba(255, 150, 70, .9); opacity: 0; animation: ember 6s linear infinite; }
.e1 { left: 14%; }
.e2 { left: 26%; animation-delay: 1.4s; animation-duration: 7.5s; width: 3px; height: 3px; }
.e3 { left: 76%; animation-delay: 2.6s; }
.e4 { left: 88%; animation-delay: .7s; animation-duration: 8s; width: 3px; height: 3px; background: var(--cyan); box-shadow: 0 0 10px 1px rgba(90, 209, 255, .9); }
.e5 { left: 62%; animation-delay: 4s; animation-duration: 7s; width: 4px; height: 4px; }
@keyframes ember { 0% { opacity: 0; transform: translate(0, 0); } 15% { opacity: 1; } 80% { opacity: .8; } 100% { opacity: 0; transform: translate(14px, -260px); } }
.halo { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 138, 60, .42), rgba(255, 106, 61, .12) 55%, transparent 72%); filter: blur(18px); animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.08); opacity: .8; } }
.orbit { position: absolute; border-radius: 50%; border: 1px solid var(--line-hi); }
.orbit::after { content: ""; position: absolute; top: 50%; left: -5px; width: 9px; height: 9px; border-radius: 50%; }
.orbit-1 { inset: 0; border-style: dashed; border-color: rgba(255, 176, 74, .35); animation: spin 38s linear infinite; }
.orbit-1::after { background: var(--sun); box-shadow: 0 0 16px 3px var(--sun); }
.orbit-2 { inset: -9%; border-color: rgba(90, 209, 255, .2); animation: spin 60s linear infinite reverse; }
.orbit-2::after { background: var(--cyan); box-shadow: 0 0 16px 3px var(--cyan); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: rgba(255, 255, 255, .02); padding: 18px 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; align-items: center; gap: 34px; width: max-content; animation: marquee 36s linear infinite; }
.marquee span { font: 500 .85rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.marquee i { width: 6px; height: 6px; background: var(--ember); transform: rotate(45deg); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: 120px 0; position: relative; }
.eyebrow { font: 500 .8rem var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--sun); margin-bottom: 18px; }
.section-lede { color: var(--muted); max-width: 36em; margin-top: 18px; font-size: 1.1rem; }

/* Services bento */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 54px; }
.card { position: relative; padding: 30px; overflow: hidden; transition: transform .25s ease, border-color .25s ease; }
.card.wide { grid-column: span 2; }
.card:hover { transform: translateY(-4px); border-color: var(--line-hi); }
.card p { color: var(--muted); margin-top: 10px; font-size: 1rem; position: relative; }
.card h3 { position: relative; }
.spot::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 138, 76, .2), transparent 65%);
}
.spot:hover::before { opacity: 1; }
.icon { position: relative; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; margin-bottom: 22px; background: linear-gradient(140deg, rgba(255, 176, 74, .22), rgba(90, 209, 255, .1)); border: 1px solid var(--line); }
.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--sun); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tags { position: relative; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 20px 0 0; }
.tags li { font: 500 .72rem var(--mono); letter-spacing: .05em; color: var(--text); border: 1px solid var(--line); padding: 4px 11px; border-radius: 999px; background: rgba(255, 255, 255, .03); }

/* Work */
.work { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 54px; perspective: 1200px; }
.work-card { overflow: hidden; display: flex; flex-direction: column; transform-style: preserve-3d; transition: transform .2s ease-out, border-color .25s; will-change: transform; }
.work-card:hover { border-color: color-mix(in srgb, var(--h1) 55%, transparent); }
.screen { position: relative; aspect-ratio: 16 / 10; margin: 12px 12px 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--h1) 38%, #0c0810), #0c0810 70%); }
.screen::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(135deg, transparent 30%, #000); mask-image: linear-gradient(135deg, transparent 30%, #000); pointer-events: none; }
.screen-bar { display: flex; align-items: center; gap: 5px; padding: 8px 10px; border-bottom: 1px solid var(--line); background: rgba(0, 0, 0, .25); }
.screen-bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.screen-bar b { margin-left: 8px; font: 400 .62rem var(--mono); color: var(--muted); letter-spacing: .04em; }
.screen-body { position: absolute; inset: 30px 0 0; padding: 14px; display: grid; gap: 7px; }
.screen-body span { border-radius: 5px; background: linear-gradient(120deg, color-mix(in srgb, var(--h1) 75%, transparent), color-mix(in srgb, var(--h2) 70%, transparent)); opacity: .85; }
.ui-calendar { grid-template-columns: repeat(4, 1fr); }
.ui-calendar span:nth-child(3n) { opacity: .3; }
.ui-calendar span:nth-child(5) { background: var(--white); opacity: .9; }
.ui-catalog { grid-template-columns: repeat(3, 1fr); }
.ui-catalog span { border-radius: 50%; aspect-ratio: 1; align-self: center; justify-self: center; height: 100%; max-height: 54px; background: conic-gradient(from 20deg, var(--h1), var(--h2), var(--h1)); }
.ui-catalog span:nth-child(even) { opacity: .45; }
.ui-article { grid-template-rows: 2fr 1fr 1fr 1fr 1fr 1fr; padding: 16px 22%; }
.ui-article span { opacity: .35; }
.ui-article span:first-child { opacity: .9; width: 78%; }
.ui-article span:last-child { width: 55%; }
.ui-chart { grid-template-columns: repeat(8, 1fr); align-items: end; }
.ui-chart span:nth-child(1) { height: 35%; } .ui-chart span:nth-child(2) { height: 55%; }
.ui-chart span:nth-child(3) { height: 42%; } .ui-chart span:nth-child(4) { height: 70%; }
.ui-chart span:nth-child(5) { height: 60%; } .ui-chart span:nth-child(6) { height: 85%; }
.ui-chart span:nth-child(7) { height: 74%; } .ui-chart span:nth-child(8) { height: 100%; }
.ui-phones { inset: 0; grid-template-columns: repeat(3, auto); justify-content: center; align-items: center; gap: 14px; }
.ui-phones span { width: 54px; aspect-ratio: 9 / 18; border-radius: 12px; border: 2px solid rgba(255, 255, 255, .3); }
.ui-phones span:nth-child(2) { width: 66px; opacity: 1; box-shadow: 0 0 40px -6px var(--h1); }
.ui-phones span:nth-child(odd) { opacity: .5; }
.ui-plugin { grid-template-columns: 1fr 1fr; }
.ui-plugin span:nth-child(1) { grid-row: span 2; }
.ui-plugin span:nth-child(4) { opacity: .3; border: 1px dashed var(--h1); background: none; }
.work-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.work-kind { font: 500 .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--h1); }
.work-body > p:not(.work-kind) { color: var(--muted); font-size: .98rem; }
.work-link { margin-top: auto; padding-top: 10px; font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--white); }
.work-link span { display: inline-block; transition: transform .2s; color: var(--h1); }
.work-link:hover span { transform: translate(3px, -3px); }

/* Process */
.steps { list-style: none; padding: 0; margin: 60px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.steps::before { content: ""; position: absolute; top: 22px; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, var(--sun), var(--ember), var(--cyan), transparent); opacity: .6; }
.steps li { position: relative; padding-top: 68px; }
.step-num { position: absolute; top: 0; left: 0; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; font: 500 .85rem var(--mono); color: var(--white); background: var(--bg); border: 1px solid var(--line-hi); box-shadow: 0 0 24px -4px rgba(255, 138, 76, .7); }
.steps p { color: var(--muted); font-size: 1rem; margin-top: 10px; }

/* Contact */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.checks { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: rgba(255, 176, 74, .15); border: 1px solid rgba(255, 176, 74, .5); }
.checks li::after { content: ""; position: absolute; left: 6px; top: .62em; width: 8px; height: 4px; border-left: 2px solid var(--sun); border-bottom: 2px solid var(--sun); transform: rotate(-45deg); }

.form { padding: 32px; display: grid; gap: 18px; position: relative; }
.form::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(255, 176, 74, .7), transparent 35%, transparent 65%, rgba(90, 209, 255, .6)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.field { display: grid; gap: 7px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { font-size: .88rem; font-weight: 500; color: var(--white); }
.opt { color: var(--muted); font-weight: 400; }
input, select, textarea {
  width: 100%; min-height: 50px; padding: 12px 15px;
  font: inherit; font-size: 16px; /* 16px stops iOS zooming on focus */
  color: var(--white); background: rgba(0, 0, 0, .35);
  border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 130px; }
select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 21px) 22px, calc(100% - 15px) 22px; background-size: 6px 6px; background-repeat: no-repeat; }
select option { background: #15101a; color: var(--white); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sun); box-shadow: 0 0 0 4px rgba(255, 176, 74, .16), 0 0 30px -8px rgba(255, 138, 76, .6); }
.invalid { border-color: #ff6a3d; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; font-size: .95rem; }
.form-status.ok { color: #7dffb0; }
.form-status.err { color: #ff9a7a; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }

/* Scroll reveal (only when scripts run) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .work-card.reveal.in { transition: transform .2s ease-out, opacity .7s, border-color .25s; }

/* Tablet */
@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .work { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .steps::before { display: none; }
  .contact { grid-template-columns: 1fr; gap: 40px; }
  .section { padding: 96px 0; }
}

/* Phone */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .header-inner { border-radius: 22px; position: relative; }
  .nav {
    display: none; position: absolute; left: -1px; right: -1px; top: calc(100% + 8px);
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(14, 9, 18, .96); border: 1px solid var(--line); border-radius: 22px; padding: 8px 20px 20px;
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav .btn { margin-top: 16px; min-height: 50px; }
  .hero { padding: 110px 0 110px; min-height: 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 26px; text-align: center; }
  .hero-art { order: -1; max-width: 270px; }
  .lede { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .cta-row .btn { flex: 1 1 100%; }
  .section { padding: 76px 0; }
  .bento, .work, .steps, .field-row { grid-template-columns: 1fr; }
  .card.wide { grid-column: auto; }
  .steps { gap: 30px; }
  .form { padding: 22px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
