/* ==========================================================================
   Artspice Communication - stylesheet (plain CSS, no build step)
   Themes: stage-lit dark (default) and Ivory & Chili light, switched with data-theme on <html>.
   Edit the tokens in :root (dark) and [data-theme="light"] (bottom of file) to re-colour the site.

   Type system
   - Display + UI : Inter Tight (600/700), tight tracking at large sizes
   - Body         : Inter (400/500/600)
   - Accent       : Instrument Serif Italic, for one highlighted phrase per heading and for numerals
   All three are SIL Open Font License, self-hosted in /assets/fonts.
   ========================================================================== */

/* Fonts ------------------------------------------------------------------ */
@font-face { font-family: "Inter Tight"; src: url("../assets/fonts/inter-tight-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../assets/fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
/* Metric-matched fallbacks: keep layout steady while the web fonts load */
@font-face { font-family: "Inter Fallback"; src: local("Arial"); size-adjust: 107.4%; ascent-override: 90.2%; descent-override: 22.5%; line-gap-override: 0%; }
@font-face { font-family: "Inter Tight Fallback"; src: local("Arial"); size-adjust: 98%; ascent-override: 98%; descent-override: 24%; line-gap-override: 0%; }

:root {
  /* Surfaces */
  --bg: #07070c;
  --surface: #0d0d14;
  --surface-2: #14141d;
  --fg: 255 255 255;           /* foreground tint, as an rgb triplet */
  --bg-rgb: 7 7 12;
  --ember-rgb: 255 122 26;
  --amber-rgb: 255 181 46;
  --hl: rgb(255 255 255 / 0.05);   /* lit top edge on panels */
  --footer-bg: #05050a;
  --ok-text: #8be3b6;
  --err-text: #ff9a9a;
  --sel-bg: #ff7a1a;
  --sel-ink: #1a0d02;
  --line: rgb(var(--fg) / 0.09);
  --line-strong: rgb(var(--fg) / 0.2);

  /* Text */
  --text: #f6f2eb;
  --text-2: #d2cedb;
  --muted: #a8a4b4;
  --faint: #8d899a;

  /* Brand */
  --ember: #ff7a1a;
  --amber: #ffb52e;
  --magenta: #e2307a;
  --violet: #6b4dff;
  --spice: linear-gradient(110deg, #ff6a1a 0%, #ffb52e 100%);
  --ink-on-spice: #170b02;

  /* Type */
  --font-display: "Inter Tight", "Inter Tight Fallback", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-body: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;

  /* Layout */
  --container: 80rem;
  --gutter: 1.25rem;
  --header-h: 4.5rem;
  --radius: 0.875rem;
  --radius-sm: 0.625rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Film-grain tile used on the stage lighting (decorative) */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (min-width: 48rem) { :root { --gutter: 2rem; --header-h: 4.75rem; } }
@media (min-width: 80rem) { :root { --gutter: 3rem; } }

/* Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1.5rem); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 1rem; line-height: 1.65; letter-spacing: -0.003em;
  font-optical-sizing: auto; font-kerning: normal;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
main { flex: 1 0 auto; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; text-wrap: balance; }
p { text-wrap: pretty; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--sel-bg); color: var(--sel-ink); }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: 1rem; z-index: 100; padding: 0.65rem 1.25rem; border-radius: 999px; background: var(--spice); color: var(--ink-on-spice); font-family: var(--font-display); font-weight: 600; }
.skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
.icon { flex-shrink: 0; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4rem, 2.5rem + 5vw, 7rem); position: relative; }
.section--flush-top { padding-top: 0; }
.section--rule { border-top: 1px solid var(--line); }
.grad-text { background: var(--spice); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Type helpers ----------------------------------------------------------- */
.eyebrow { display: inline-flex; align-items: center; gap: 0.875rem; font-family: var(--font-display); font-size: 0.75rem; font-weight: 600; line-height: 1; text-transform: uppercase; letter-spacing: 0.2em; color: var(--amber); }
.eyebrow::before { content: ""; width: 1.75rem; height: 1px; background: var(--spice); }
.h-display { font-size: clamp(2.75rem, 1.35rem + 5.9vw, 6.25rem); line-height: 0.98; letter-spacing: -0.032em; word-spacing: 0.045em; font-weight: 600; }
.h-xl { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4.5rem); line-height: 1.02; letter-spacing: -0.032em; word-spacing: 0.035em; font-weight: 600; }
.h-lg { font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.875rem); line-height: 1.06; letter-spacing: -0.026em; word-spacing: 0.03em; font-weight: 600; }
.h-md { font-size: clamp(1.25rem, 1.12rem + 0.6vw, 1.5rem); line-height: 1.2; letter-spacing: -0.014em; font-weight: 600; }
/* One serif-italic phrase inside a heading. Sized up a touch so its small x-height sits level with the sans. */
.ital { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 1.12em; letter-spacing: -0.012em; line-height: 0.8; padding-right: 0.05em; }
.ital.grad-text { padding-right: 0.12em; }
.lead { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.6; color: var(--muted); letter-spacing: -0.008em; }
.lead--strong { color: var(--text); }
.muted { color: var(--muted); }
/* Serif-italic numerals */
.num { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-variant-numeric: lining-nums; letter-spacing: 0; line-height: 1; }

/* Buttons ---------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem; height: 3.125rem; padding-inline: 1.625rem; border-radius: 999px; border: 1px solid transparent; font-family: var(--font-display); font-weight: 600; font-size: 0.9375rem; letter-spacing: -0.005em; white-space: nowrap; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.2s, border-color 0.2s; }
.btn .icon { transition: transform 0.3s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn--primary { background: var(--spice); color: var(--ink-on-spice); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35), 0 10px 28px -12px rgb(var(--ember-rgb) / 0.65); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.4), 0 16px 36px -12px rgb(255 140 40 / 0.75); }
.btn--ghost { border-color: var(--line-strong); background: rgb(var(--fg) / 0.025); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: rgb(var(--fg) / 0.55); background: rgb(var(--fg) / 0.07); }
.btn--sm { height: 2.5rem; padding-inline: 1.15rem; font-size: 0.875rem; }
.btn--lg { height: 3.5rem; font-size: 1rem; }
.btn[aria-disabled="true"] { opacity: 0.65; pointer-events: none; }

/* Header ----------------------------------------------------------------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color 0.3s, border-color 0.3s; border-bottom: 1px solid transparent; }
/* Soft scrim so the logo and nav stay legible over bright stage beams */
.site-header::before { content: ""; position: absolute; inset: 0 0 -2.5rem; z-index: -1; background: linear-gradient(to bottom, rgb(var(--bg-rgb) / 0.8), rgb(var(--bg-rgb) / 0)); pointer-events: none; transition: opacity 0.3s; }
.site-header.is-scrolled, .site-header.is-solid { background: rgb(var(--bg-rgb) / 0.82); -webkit-backdrop-filter: saturate(1.4) blur(18px); backdrop-filter: saturate(1.4) blur(18px); border-bottom-color: var(--line); }
.site-header.is-scrolled::before, .site-header.is-solid::before { opacity: 0; }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 2rem; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 0.7rem; border-radius: 6px; }
.logo__img { display: block; height: 3.5rem; width: auto; }
.site-footer .logo__img { height: 4.75rem; }
/* Stand-in mark: a four-point "spark", drawn as a mask so it takes the spice gradient anywhere */
.main-nav { display: none; }
.main-nav ul { display: flex; align-items: center; gap: 0.125rem; }
.nav-link { position: relative; display: inline-flex; align-items: center; height: 2.5rem; padding-inline: 0.95rem; border-radius: 999px; font-size: 0.9375rem; font-weight: 500; color: var(--text-2); transition: color 0.2s, background-color 0.2s; }
.nav-link:hover { color: var(--text); background: rgb(var(--fg) / 0.06); }
.nav-link[aria-current="page"] { color: var(--text); font-weight: 600; }
.nav-link[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 0.1rem; width: 1.25rem; height: 2px; margin-left: -0.625rem; background: var(--spice); border-radius: 2px; }
.site-header__actions { display: flex; align-items: center; gap: 0.75rem; }
.site-header__cta { display: none; }
.menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--line-strong); border-radius: 999px; background: rgb(var(--fg) / 0.03); transition: background-color 0.2s, border-color 0.2s; }
.menu-toggle:hover { background: rgb(var(--fg) / 0.08); border-color: rgb(var(--fg) / 0.5); }
@media (min-width: 48rem) { .site-header__cta { display: inline-flex; } }
@media (min-width: 64rem) { .main-nav { display: block; } .menu-toggle { display: none; } }

.mobile-menu { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; background: radial-gradient(60rem 30rem at 100% 0%, rgb(var(--ember-rgb) / 0.18), transparent 60%), var(--bg); animation: fade-in 0.3s var(--ease) both; }
.mobile-menu__bar { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); flex-shrink: 0; }
.mobile-menu__body { flex: 1; overflow-y: auto; padding-block: 1.5rem 2rem; }
.mobile-menu li { border-bottom: 1px solid var(--line); }
.mobile-menu__link { display: flex; align-items: baseline; gap: 1rem; min-height: 4.5rem; padding-block: 1.1rem; font-family: var(--font-display); font-weight: 600; font-size: 2.25rem; letter-spacing: -0.028em; }
.mobile-menu__link[aria-current="page"] { color: var(--amber); }
.mobile-menu__idx { min-width: 1.75rem; font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 1.25rem; letter-spacing: 0; color: var(--muted); }
.mobile-menu .btn { margin-top: 2rem; width: 100%; justify-content: space-between; }
@media (min-width: 64rem) { .mobile-menu { display: none !important; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Stage lighting (decorative) -------------------------------------------- */
.stage { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background:
  radial-gradient(70rem 40rem at 50% 115%, rgb(var(--ember-rgb) / 0.26), transparent 65%),
  radial-gradient(40rem 30rem at 12% 0%, rgb(107 77 255 / 0.2), transparent 60%),
  radial-gradient(40rem 30rem at 92% 5%, rgb(226 48 122 / 0.18), transparent 60%); }
.stage::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--grain); opacity: 0.07; mix-blend-mode: overlay; }
.beam { position: absolute; top: -12%; left: var(--x); width: 26vw; min-width: 11rem; height: 125%; margin-left: -13vw;
  background: linear-gradient(to bottom, var(--c) 0%, transparent 78%); opacity: 0.5; filter: blur(18px);
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%); transform-origin: 50% 0; transform: rotate(var(--r)); mix-blend-mode: screen; will-change: transform;
  animation: sway var(--d) ease-in-out infinite alternate; }
@keyframes sway { from { transform: rotate(calc(var(--r) - 7deg)); } to { transform: rotate(calc(var(--r) + 7deg)); } }
/* Left-side shade keeps headline text crisp where beams cross it; bottom fade blends into the page */
.stage::after { content: ""; position: absolute; inset: 0; z-index: 2; background:
  radial-gradient(60rem 34rem at 14% 66%, rgb(var(--bg-rgb) / 0.66), transparent 72%),
  linear-gradient(to bottom, transparent 55%, var(--bg) 100%); }
.floor-line { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgb(var(--amber-rgb) / 0.55), transparent); }

/* Hero ------------------------------------------------------------------- */
.hero { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: min(100svh, 58rem); padding-top: calc(var(--header-h) + 3rem); padding-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem); overflow: hidden; }
.hero__inner { display: flex; flex-direction: column; align-items: flex-start; }
.hero h1 { max-width: 15ch; }
.hero__lead { margin-top: 1.75rem; max-width: 37rem; color: var(--text-2); }
@media (max-width: 47.99rem) { .beam { opacity: 0.26; } .stage::after { background: linear-gradient(to bottom, rgb(var(--bg-rgb) / 0.1) 0%, var(--bg) 92%); } }
.hero__actions { display: flex; flex-direction: column; align-self: stretch; gap: 0.75rem; margin-top: 2.25rem; }
@media (min-width: 40rem) { .hero__actions { flex-direction: row; align-items: center; align-self: flex-start; } }
/* Quick links to the three areas, anchored to the bottom of the hero */
.hero__index { display: none; align-self: stretch; margin-top: clamp(3rem, 2rem + 4vw, 5rem); border-top: 1px solid var(--line-strong); }
.hero__index a { display: flex; align-items: center; gap: 1rem; height: 100%; padding: 1.35rem 1.5rem 0 0; font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; color: var(--text-2); transition: color 0.2s; }
.hero__index a:hover { color: var(--text); }
.hero__index a::before { content: ""; flex-shrink: 0; width: 0.375rem; height: 0.375rem; background: var(--ember); transform: rotate(45deg); }
.hero__index .icon { margin-left: auto; color: var(--muted); transition: transform 0.3s var(--ease), color 0.2s; }
.hero__index a:hover .icon { transform: translateX(4px); color: var(--amber); }
@media (min-width: 48rem) and (max-width: 63.99rem) { .hero__index .icon { display: none; } }
@media (min-width: 48rem) {
  .hero__index { display: grid; grid-template-columns: repeat(3, 1fr); }
  .hero__index li + li a { padding-left: 1.75rem; border-left: 1px solid var(--line); }
}
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding-top: calc(var(--header-h) + clamp(3rem, 2rem + 4vw, 5.5rem)); padding-bottom: clamp(3rem, 2rem + 3.5vw, 5.5rem); }
.page-hero h1 { max-width: 16ch; }
.eyebrow + h1 { margin-top: 1.5rem; }
.page-hero .lead { margin-top: 1.75rem; max-width: 38rem; }
.page-hero--center { min-height: 70vh; display: flex; align-items: center; }
/* The hero already supplies bottom space, so the first section after it starts closer */
.page-hero + .section { padding-top: clamp(1rem, 0.5rem + 2vw, 2.5rem); }

/* Service band: slow marquee, paused on hover; static wrapped list if motion is reduced */
.band { border-block: 1px solid var(--line); background: rgb(var(--fg) / 0.018); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.band__track { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.band:hover .band__track { animation-play-state: paused; }
.band ul { display: flex; flex-shrink: 0; padding-block: 1.35rem; }
.band li { display: inline-flex; align-items: center; white-space: nowrap; font-family: var(--font-display); font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); }
.band li::after { content: ""; width: 0.3125rem; height: 0.3125rem; margin-inline: 1.75rem; background: var(--ember); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }
.section--tint { background: linear-gradient(to bottom, rgb(var(--fg) / 0.025), transparent 60%); }

/* Section head ----------------------------------------------------------- */
.section-head { display: grid; gap: 1.5rem; margin-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.section-head h2 { max-width: 17ch; }
@media (min-width: 64rem) { .section-head--split { grid-template-columns: 1.1fr 0.9fr; gap: 5rem; align-items: end; } }
.section-head--split .lead { max-width: 30rem; }

/* Intro ------------------------------------------------------------------ */
.intro { display: grid; gap: 2.5rem; }
.intro h2 { max-width: 14ch; }
.intro .lead + .lead { margin-top: 1.25rem; }
.intro__link { margin-top: 2rem; }
@media (min-width: 64rem) { .intro { grid-template-columns: 1.1fr 0.9fr; gap: 6rem; align-items: start; } }

/* Pillars ---------------------------------------------------------------- */
.pillars { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pillar { background: radial-gradient(22rem 14rem at 0 0, rgb(var(--ember-rgb) / 0.07), transparent 70%), var(--surface); padding: 2rem; }
.pillar__num { font-size: 4rem; line-height: 0.85; padding-bottom: 0.1em; background: var(--spice); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pillar h3 { margin-top: 0; font-size: clamp(1.5rem, 1.25rem + 0.9vw, 1.875rem); }
.pillar p { margin-top: 0.75rem; color: var(--muted); font-size: 0.9375rem; line-height: 1.6; }
.pillar ul { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.9375rem; font-weight: 500; color: var(--text-2); }
.pillar li { display: flex; align-items: center; gap: 0.75rem; }
.pillar li::before { content: ""; flex-shrink: 0; width: 0.3125rem; height: 0.3125rem; background: var(--ember); transform: rotate(45deg); }
@media (min-width: 64rem) { .pillars { grid-template-columns: repeat(3, 1fr); } .pillar { padding: 2.75rem; } }

/* Service cards (spotlight follows the pointer) -------------------------- */
.cards { display: grid; gap: 1rem; }
@media (min-width: 48rem) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .cards { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.card { position: relative; display: flex; flex-direction: column; padding: 2rem; min-height: 17rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; transition: border-color 0.3s, transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(22rem circle at var(--mx, 50%) var(--my, 0%), rgb(255 150 50 / 0.18), transparent 60%); opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.card:hover, .card:focus-within { border-color: rgb(var(--amber-rgb) / 0.45); transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgb(var(--ember-rgb) / 0.45); }
.card:hover::before, .card:focus-within::before { opacity: 1; }
.card__top { display: flex; justify-content: flex-start; align-items: flex-start; }
.card__icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 0.75rem; border: 1px solid var(--line-strong); color: var(--amber); background: rgb(var(--fg) / 0.03); }
.card__num { font-size: 1.375rem; color: var(--faint); }
.card h3 { margin-top: 2rem; }
.card h3 a::after { content: ""; position: absolute; inset: 0; } /* whole card is the link */
.card h3 a:focus-visible { outline: none; }
.card:focus-within { outline: 2px solid var(--amber); outline-offset: 2px; }
.card p { margin-top: 0.75rem; font-size: 0.9375rem; line-height: 1.6; color: var(--muted); max-width: 28rem; }
.card__more { margin-top: auto; padding-top: 1.5rem; display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-size: 0.9375rem; font-weight: 600; color: var(--amber); }
.card__more .icon { transition: transform 0.3s var(--ease); }
.card:hover .card__more .icon { transform: translateX(4px); }

/* Process ---------------------------------------------------------------- */
.steps { display: grid; gap: 2.5rem; border-left: 1px solid var(--line-strong); padding-left: 1.75rem; }
.step { position: relative; }
.step::before { content: ""; position: absolute; left: -2.0625rem; top: 0.45rem; width: 0.625rem; height: 0.625rem; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 5px var(--bg), 0 0 16px 2px rgb(var(--ember-rgb) / 0.7); }
.step__num { display: block; font-size: 1.5rem; color: var(--amber); }
.step h3 { margin-top: 0.6rem; }
.step p { margin-top: 0.75rem; font-size: 0.9375rem; line-height: 1.6; color: var(--muted); max-width: 22rem; }
@media (min-width: 64rem) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 2rem; padding-left: 0; border-left: 0; border-top: 1px solid var(--line-strong); padding-top: 2rem; }
  .step::before { left: 0; top: -2.3rem; }
}

/* Portfolio tiles (placeholder art: replace with photos) ----------------- */
.tiles { display: grid; gap: 1rem; }
@media (min-width: 40rem) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .tiles { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.tiles--four { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; aspect-ratio: 4 / 4.6; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; isolation: isolate; background: var(--surface); transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s var(--ease); }
.tile:hover { transform: translateY(-4px); border-color: rgb(var(--amber-rgb) / 0.45); box-shadow: 0 24px 50px -30px rgb(var(--ember-rgb) / 0.45); }
.tile__art { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(16rem 22rem at var(--ax, 30%) -10%, var(--c1), transparent 70%),
  radial-gradient(14rem 20rem at var(--bx, 80%) -5%, var(--c2), transparent 70%),
  linear-gradient(to bottom, transparent 38%, rgb(var(--bg-rgb) / 0.94)); transition: transform 0.6s var(--ease); }
.tile__art::after { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: 0.08; mix-blend-mode: overlay; }
.tile:hover .tile__art { transform: scale(1.06); }
.tile__tag { align-self: flex-start; display: inline-block; padding: 0.4rem 0.8rem; border: 1px solid var(--line-strong); border-radius: 999px; font-family: var(--font-display); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; background: rgb(var(--bg-rgb) / 0.45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.tile h3 { margin-top: 0; }
.tile p { margin-top: 0.35rem; font-size: 0.875rem; color: var(--muted); }
.tile[hidden] { display: none; }
.t1 { --c1: rgb(var(--ember-rgb) / 0.55); --c2: rgb(226 48 122 / 0.4); --ax: 25%; --bx: 85%; }
.t2 { --c1: rgb(107 77 255 / 0.55); --c2: rgb(var(--amber-rgb) / 0.35); --ax: 70%; --bx: 20%; }
.t3 { --c1: rgb(226 48 122 / 0.55); --c2: rgb(107 77 255 / 0.4); --ax: 40%; --bx: 90%; }
.t4 { --c1: rgb(var(--amber-rgb) / 0.5); --c2: rgb(var(--ember-rgb) / 0.4); --ax: 15%; --bx: 65%; }
.t5 { --c1: rgb(40 180 200 / 0.5); --c2: rgb(107 77 255 / 0.45); --ax: 60%; --bx: 15%; }
.t6 { --c1: rgb(var(--ember-rgb) / 0.5); --c2: rgb(107 77 255 / 0.45); --ax: 35%; --bx: 80%; }
.t7 { --c1: rgb(226 48 122 / 0.5); --c2: rgb(var(--amber-rgb) / 0.4); --ax: 75%; --bx: 25%; }
.t8 { --c1: rgb(107 77 255 / 0.5); --c2: rgb(40 180 200 / 0.4); --ax: 20%; --bx: 70%; }
.t9 { --c1: rgb(var(--amber-rgb) / 0.5); --c2: rgb(226 48 122 / 0.45); --ax: 55%; --bx: 10%; }
.filters { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-bottom: 2.5rem; }
.chip { height: 2.75rem; padding-inline: 1.25rem; border: 1px solid var(--line-strong); border-radius: 999px; font-family: var(--font-display); font-size: 0.9375rem; font-weight: 600; color: var(--text-2); transition: color 0.2s, border-color 0.2s, background-color 0.2s; }
.chip:hover { color: var(--text); border-color: rgb(var(--fg) / 0.55); }
.chip[aria-pressed="true"] { background: var(--spice); border-color: transparent; color: var(--ink-on-spice); }
.note { margin-top: 2.5rem; padding: 1rem 1.25rem; border: 1px dashed var(--line-strong); border-radius: var(--radius); font-size: 0.9375rem; color: var(--muted); }

/* CTA -------------------------------------------------------------------- */
.cta { position: relative; isolation: isolate; overflow: hidden; text-align: center; border-top: 1px solid var(--line); }
.cta .stage { background: radial-gradient(50rem 28rem at 50% 120%, rgb(var(--ember-rgb) / 0.34), transparent 65%), radial-gradient(30rem 20rem at 15% 0%, rgb(107 77 255 / 0.18), transparent 60%); }
.cta .stage::after { background: linear-gradient(to bottom, transparent 70%, var(--bg) 100%); }
.cta h2 { max-width: 16ch; margin-inline: auto; }
.cta .lead { max-width: 36rem; margin: 1.5rem auto 0; }
.cta__actions { display: flex; flex-direction: column; align-items: stretch; gap: 0.75rem; margin-top: 2.5rem; }
@media (min-width: 40rem) { .cta__actions { flex-direction: row; justify-content: center; align-items: center; } }

/* About ------------------------------------------------------------------ */
.principles { display: grid; gap: 1rem; }
@media (min-width: 48rem) { .principles { grid-template-columns: repeat(3, 1fr); } }
.principle { padding: 2rem; border: 1px solid var(--line); border-top: 2px solid var(--ember); border-radius: var(--radius); background: var(--surface); }
.principle__num { display: block; font-size: 1.75rem; color: var(--amber); }
.principle h3 { margin-top: 0; }
.principle p { margin-top: 0.75rem; font-size: 0.9375rem; line-height: 1.6; color: var(--muted); }
.statement { margin-top: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.875rem, 1.2rem + 2.8vw, 3.5rem); line-height: 1.08; letter-spacing: -0.03em; word-spacing: 0.03em; max-width: 20ch; text-wrap: balance; }

/* Services page ---------------------------------------------------------- */
.svc-layout { display: grid; gap: 3rem; }
@media (min-width: 64rem) { .svc-layout { grid-template-columns: 15rem 1fr; gap: 4rem; } }
.svc-index { display: none; }
@media (min-width: 64rem) { .svc-index { display: block; position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; } }
.svc-index ol { border-left: 1px solid var(--line); }
.svc-index a { display: flex; align-items: baseline; gap: 0.75rem; margin-left: -1px; padding: 0.5rem 0 0.5rem 1rem; border-left: 2px solid transparent; font-size: 0.9375rem; font-weight: 500; color: var(--muted); transition: color 0.2s, border-color 0.2s; }
.svc-index a:hover { color: var(--text); border-left-color: var(--line-strong); }
.svc-index a.is-active { color: var(--text); font-weight: 600; border-left-color: var(--ember); }
.svc-index .num { min-width: 1.5rem; font-size: 1.0625rem; color: var(--amber); }
.svc-list { display: flex; flex-direction: column; gap: 1.25rem; }
.svc { display: grid; gap: 1.75rem; padding: 1.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color 0.4s, box-shadow 0.4s; }
.svc:target { border-color: rgb(var(--amber-rgb) / 0.5); box-shadow: 0 24px 60px -34px rgb(var(--ember-rgb) / 0.5); }
@media (min-width: 40rem) { .svc { padding: 2.5rem; } }
@media (min-width: 64rem) { .svc { grid-template-columns: 1fr 1fr; gap: 3rem; padding: 3rem; } .svc__right { padding-left: 3rem; border-left: 1px solid var(--line); } }
.svc__top { display: flex; align-items: center; gap: 1rem; }
.svc__num { font-size: 1.5rem; color: var(--amber); }
.svc h2 { margin-top: 1.25rem; }
.svc__num { font-size: 2rem; }
.svc__sum { margin-top: 1rem; }
.svc__right > p { color: var(--text-2); }
.checks { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.checks li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.9375rem; font-weight: 500; line-height: 1.5; }
.checks .icon { color: var(--amber); margin-top: 0.15rem; }
.svc__link { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.75rem; font-family: var(--font-display); font-size: 0.9375rem; font-weight: 600; color: var(--amber); }
.svc__link .icon { transition: transform 0.3s var(--ease); }
.svc__link:hover .icon { transform: translateX(4px); }
.svc__link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Contact ---------------------------------------------------------------- */
.contact-layout { display: grid; gap: 1.5rem; }
@media (min-width: 64rem) { .contact-layout { grid-template-columns: 1.35fr 1fr; align-items: start; } }
.panel { padding: 1.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
@media (min-width: 40rem) { .panel { padding: 2.5rem; } }
@media (min-width: 64rem) { .panel { padding: 3rem; } .panel--sticky { position: sticky; top: calc(var(--header-h) + 2rem); } }
.panel--glow { background: radial-gradient(30rem 20rem at 100% 0%, rgb(var(--ember-rgb) / 0.16), transparent 60%), var(--surface); }
.details { margin-top: 2rem; }
.details > div { padding-block: 1.25rem; border-bottom: 1px solid var(--line); }
.details > div:first-child { padding-top: 0; }
.details > div:last-child { border-bottom: 0; padding-bottom: 0; }
.details dt { font-family: var(--font-display); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em; color: var(--amber); }
.details dd { margin-top: 0.5rem; font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; letter-spacing: -0.012em; overflow-wrap: anywhere; }
.form { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 2rem; }
.form__row { display: grid; gap: 1.25rem; }
@media (min-width: 40rem) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label { font-size: 0.875rem; font-weight: 600; color: var(--text-2); }
.opt { font-weight: 400; color: var(--faint); }
.control { width: 100%; height: 3.25rem; padding-inline: 1rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: rgb(var(--fg) / 0.035); color: var(--text); font-size: 1rem; transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s; }
select.control { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a8a4b4' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
select.control option { background: var(--surface-2); color: var(--text); }
textarea.control { height: auto; min-height: 9.5rem; padding-block: 0.9rem; line-height: 1.55; resize: vertical; }
.control::placeholder { color: var(--faint); }
.control:hover { border-color: rgb(var(--fg) / 0.42); }
.control:focus-visible { outline: none; border-color: var(--amber); background: rgb(var(--fg) / 0.05); box-shadow: 0 0 0 4px rgb(var(--amber-rgb) / 0.14); }
.control[aria-invalid="true"] { border-color: #ff6b6b; }
.control[aria-invalid="true"]:focus-visible { box-shadow: 0 0 0 4px rgb(255 107 107 / 0.16); }
.field__error { display: flex; gap: 0.4rem; align-items: flex-start; font-size: 0.875rem; color: var(--err-text); }
.field__error .icon { margin-top: 0.2rem; }
.form .btn { align-self: flex-start; }
.status { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.85rem 1rem; border: 1px solid; border-radius: var(--radius-sm); font-size: 0.9375rem; }
.status .icon { margin-top: 0.15rem; }
.status--ok { border-color: rgb(80 200 140 / 0.4); background: rgb(80 200 140 / 0.1); color: var(--ok-text); }
.status--err { border-color: rgb(255 107 107 / 0.4); background: rgb(255 107 107 / 0.1); color: var(--err-text); }
.status--info { border-color: var(--line-strong); background: rgb(var(--fg) / 0.04); }
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 1s linear infinite; }

/* Footer ----------------------------------------------------------------- */
.site-footer { position: relative; overflow: hidden; border-top: 1px solid var(--line); background: var(--footer-bg); }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: linear-gradient(90deg, transparent, var(--ember), var(--amber), transparent); }
.footer-grid { display: grid; gap: 3rem; padding-top: 4.5rem; }
@media (min-width: 40rem) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (min-width: 64rem) { .footer-grid { grid-template-columns: 1.4fr 0.8fr 1.2fr 1.1fr; gap: 3rem; } .footer-grid > :first-child { grid-column: auto; } }
.footer-about { margin-top: 1.5rem; max-width: 22rem; font-size: 0.9375rem; line-height: 1.6; color: var(--muted); }
.footer-title { display: block; padding-bottom: 1rem; font-family: var(--font-display); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em; color: var(--text); }
.footer-links a { display: inline-block; padding-block: 0.3rem; font-size: 0.9375rem; color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--amber); }
.footer-contact a, .details dd a { transition: color 0.2s; }
.footer-contact a:hover, .details dd a:hover { color: var(--amber); }
.footer-contact { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.9375rem; color: var(--muted); overflow-wrap: anywhere; }
.footer-bottom { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 3.5rem; padding-block: 1.75rem; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--faint); }
.footer-bottom a { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--muted); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--amber); }
@media (min-width: 40rem) { .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; } }
/* Oversized wordmark, decorative */
.footer-mark { display: block; margin-top: 0.5rem; padding-bottom: 0.04em; font-family: var(--font-display); font-weight: 700; font-size: clamp(3.5rem, 17.2vw, 17rem); line-height: 0.86; letter-spacing: -0.02em; text-align: center; text-transform: uppercase; white-space: nowrap; user-select: none; background: linear-gradient(to bottom, rgb(var(--fg) / 0.11), rgb(var(--fg) / 0.025) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Scroll reveal: only hides content when JS is running, so no-JS stays visible */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--delay, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (max-height: 17rem) { html { scroll-padding-top: 1rem; } .site-header { position: static; } }
@media print {
  .site-header, .mobile-menu, .stage, .band, .skip-link, .footer-mark { display: none !important; }
  body { background: #fff; color: #000; }
  .js .reveal { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .beam { animation: none; }
  .band { -webkit-mask-image: none; mask-image: none; }
  .band__track { animation: none; width: auto; justify-content: center; }
  .band ul { flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.5rem; padding-inline: var(--gutter); }
  .band ul + ul { display: none; }
  .band li::after { display: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ==========================================================================
   Premium refinements
   One orchestrated moment (the hero lights coming up + a follow-spot), then quiet detail.
   ========================================================================== */

/* Hero: the rig powers on, then the copy settles in -------------------- */
@keyframes light-on { from { opacity: 0; } to { opacity: var(--beam-o, 0.5); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero .beam { opacity: 0; animation: sway var(--d) ease-in-out infinite alternate, light-on 1.8s var(--ease) both; }
  .hero .beam:nth-child(1) { animation-delay: 0s, 0.10s; }
  .hero .beam:nth-child(2) { animation-delay: 0s, 0.35s; }
  .hero .beam:nth-child(3) { animation-delay: 0s, 0.60s; }
  .hero .beam:nth-child(4) { animation-delay: 0s, 0.85s; }
  .hero .beam:nth-child(5) { animation-delay: 0s, 1.10s; }
  .hero h1, .hero__lead, .hero__actions, .hero__index, .page-hero h1, .page-hero .lead, .page-hero .hero__actions {
    animation: rise 1.1s var(--ease) both; animation-delay: var(--rd, 0.2s); }
  .hero h1 { --rd: 0.45s; }
  .hero__lead { --rd: 0.7s; }
  .hero__actions { --rd: 0.85s; }
  .hero__index { --rd: 1s; }
  .page-hero h1 { --rd: 0.1s; }
  .page-hero .lead { --rd: 0.3s; }
  .page-hero .hero__actions { --rd: 0.45s; }
}
@media (max-width: 47.99rem) { .hero .beam { --beam-o: 0.26; } }

/* Follow-spot: a warm pool of light that trails the mouse on every page (fixed, above content, below header) */
.spot { position: fixed; left: 0; top: 0; z-index: 40; width: 36rem; height: 36rem; margin: -18rem 0 0 -18rem; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgb(255 196 120 / 0.16), rgb(var(--ember-rgb) / 0.06) 48%, transparent 72%);
  mix-blend-mode: screen; opacity: 0; transition: opacity 0.6s var(--ease); will-change: transform; }
.spot.is-on { opacity: 1; }

/* Header: slimmer once scrolling, with a reading-progress hairline ------ */
.site-header__bar { transition: height 0.35s var(--ease); }
.site-header.is-scrolled .site-header__bar { height: 4rem; }
@supports (animation-timeline: scroll()) {
  .site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--spice); transform: scaleX(0); transform-origin: 0 50%;
    animation: read-progress linear both; animation-timeline: scroll(root block); }
  @keyframes read-progress { to { transform: scaleX(1); } }
}

/* Page-to-page crossfade where the browser supports it ------------------ */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.35s; animation-timing-function: var(--ease); }
}

/* Buttons: a slow light sweep across the primary action ----------------- */
.btn--primary { position: relative; overflow: hidden; isolation: isolate; }
.btn--primary::after { content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(-130%);
  background: linear-gradient(105deg, transparent 38%, rgb(255 255 255 / 0.42) 50%, transparent 62%); transition: transform 0.8s var(--ease); }
.btn--primary:hover::after { transform: translateX(130%); }

/* Surfaces: a lit top edge so panels read as objects, not outlines ------- */
.card, .pillar, .principle, .svc, .panel { box-shadow: inset 0 1px 0 var(--hl); }
.card:hover, .card:focus-within { box-shadow: inset 0 1px 0 var(--hl), 0 24px 50px -30px rgb(var(--ember-rgb) / 0.45); }
.pillar { --pad: 2rem; position: relative; }
.pillar::before { content: ""; position: absolute; left: var(--pad); top: 0; width: 3.25rem; height: 2px; background: var(--spice); }
@media (min-width: 64rem) { .pillar { --pad: 2.75rem; } }

/* Homepage work panel: honest stand-in until real projects arrive ------- */
.showcase { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 2rem;
  min-height: clamp(20rem, 14rem + 22vw, 30rem); padding: clamp(1.75rem, 1rem + 3vw, 3.5rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.showcase__art { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(16rem 26rem at 14% -8%, rgb(var(--ember-rgb) / 0.5), transparent 70%),
  radial-gradient(16rem 26rem at 38% -8%, rgb(40 180 200 / 0.38), transparent 70%),
  radial-gradient(16rem 26rem at 62% -8%, rgb(226 48 122 / 0.45), transparent 70%),
  radial-gradient(16rem 26rem at 86% -8%, rgb(107 77 255 / 0.5), transparent 70%),
  linear-gradient(to bottom, transparent 30%, rgb(var(--bg-rgb) / 0.92)); }
.showcase__art::after { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: 0.08; mix-blend-mode: overlay; }
.showcase__body { max-width: 40rem; }
.showcase__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.showcase__tags li { padding: 0.4rem 0.8rem; border: 1px solid var(--line-strong); border-radius: 999px; background: rgb(var(--bg-rgb) / 0.45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-family: var(--font-display); font-size: 0.8125rem; font-weight: 500; color: var(--text-2); }
.showcase__cta { align-self: flex-start; }
@media (min-width: 48rem) { .showcase { flex-direction: row; align-items: flex-end; justify-content: space-between; } .showcase__cta { align-self: flex-end; } }

/* Reduced motion: no scroll-driven or pointer effects ------------------- */
@media (prefers-reduced-motion: reduce) {
  .spot, .site-header::after { display: none; }
  .btn--primary::after { display: none; }
}

/* ==========================================================================
   Theme toggle
   ========================================================================== */
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--line-strong); border-radius: 999px; background: rgb(var(--fg) / 0.03); transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
.theme-toggle:hover { background: rgb(var(--fg) / 0.08); border-color: rgb(var(--fg) / 0.5); }
.theme-toggle .icon--moon { display: none; }
[data-theme="light"] .theme-toggle .icon--sun { display: none; }
[data-theme="light"] .theme-toggle .icon--moon { display: block; }
.mobile-menu__tools { display: flex; align-items: center; gap: 0.5rem; }
html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after { transition: background-color 0.45s ease, color 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease, fill 0.45s ease !important; }
@media print { .theme-toggle { display: none !important; } }

/* ==========================================================================
   Light theme: Ivory & Chili
   Same type, same layout. Ink on ivory, a single chili accent, and the stage lights
   rendered as soft coloured washes on paper.
   ========================================================================== */
[data-theme="light"] {
  --bg: #f6f2ea;
  --surface: #fffdf8;
  --surface-2: #efe8db;
  --text: #1b1226;
  --text-2: #3b3247;
  --muted: #5e5569;
  --faint: #70677b;
  --line: rgb(27 18 38 / 0.12);
  --line-strong: rgb(27 18 38 / 0.26);

  --fg: 27 18 38;
  --bg-rgb: 246 242 234;
  --ember-rgb: 217 56 30;
  --amber-rgb: 217 56 30;
  --hl: rgb(255 255 255 / 0.9);
  --footer-bg: #ede6d8;
  --ok-text: #1a7a4c;
  --err-text: #b42318;
  --sel-bg: #d9381e;
  --sel-ink: #fff7ee;

  --amber: #c22f16;      /* accent for text and icons (AA on ivory) */
  --ember: #d9381e;      /* chili: bars, bullets, dots */
  --spice: linear-gradient(110deg, #d4341a 0%, #e24a22 100%);
  --ink-on-spice: #fff7ee;
}
html[data-theme="light"] { color-scheme: light; }

/* Stage lighting becomes soft coloured washes on paper */
[data-theme="light"] .stage { background:
  radial-gradient(70rem 40rem at 50% 115%, rgb(255 181 46 / 0.3), transparent 65%),
  radial-gradient(40rem 30rem at 12% 0%, rgb(107 77 255 / 0.13), transparent 60%),
  radial-gradient(40rem 30rem at 92% 5%, rgb(226 48 122 / 0.1), transparent 60%); }
[data-theme="light"] .cta .stage { background:
  radial-gradient(50rem 28rem at 50% 120%, rgb(255 181 46 / 0.34), transparent 65%),
  radial-gradient(30rem 20rem at 15% 0%, rgb(107 77 255 / 0.12), transparent 60%); }
[data-theme="light"] .stage::before { opacity: 0.04; }
[data-theme="light"] .beam { mix-blend-mode: normal; --beam-o: 0.3; opacity: 0.3; filter: blur(22px); }
@media (max-width: 47.99rem) { [data-theme="light"] .hero .beam { --beam-o: 0.2; } [data-theme="light"] .beam { opacity: 0.2; } }
[data-theme="light"] .spot { mix-blend-mode: normal; background: radial-gradient(closest-side, rgb(255 181 46 / 0.17), rgb(255 181 46 / 0.05) 50%, transparent 72%); }

/* Surfaces and details that need a different touch on paper */
[data-theme="light"] .card, [data-theme="light"] .pillar, [data-theme="light"] .principle, [data-theme="light"] .svc, [data-theme="light"] .panel { box-shadow: inset 0 1px 0 var(--hl), 0 1px 2px rgb(27 18 38 / 0.04); }
[data-theme="light"] .card:hover, [data-theme="light"] .card:focus-within { box-shadow: inset 0 1px 0 var(--hl), 0 24px 50px -28px rgb(217 56 30 / 0.4); }
[data-theme="light"] .card::before { background: radial-gradient(22rem circle at var(--mx, 50%) var(--my, 0%), rgb(255 181 46 / 0.2), transparent 60%); }
[data-theme="light"] .pillar { background: radial-gradient(22rem 14rem at 0 0, rgb(255 181 46 / 0.12), transparent 70%), var(--surface); }
[data-theme="light"] .btn--primary { box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.25), 0 10px 28px -12px rgb(217 56 30 / 0.55); }
[data-theme="light"] .btn--primary:hover { box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3), 0 16px 36px -12px rgb(217 56 30 / 0.65); }
[data-theme="light"] .btn--ghost { background: rgb(255 255 255 / 0.5); }
[data-theme="light"] .tile__tag, [data-theme="light"] .showcase__tags li { background: rgb(255 253 248 / 0.7); }
[data-theme="light"] .tile__art::after, [data-theme="light"] .showcase__art::after { mix-blend-mode: multiply; opacity: 0.05; }
[data-theme="light"] .footer-mark { background: linear-gradient(to bottom, rgb(var(--fg) / 0.1), rgb(var(--fg) / 0.02) 100%); -webkit-background-clip: text; background-clip: text; }
[data-theme="light"] select.control { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235e5569' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
[data-theme="light"] .control, [data-theme="light"] .control:focus-visible { background-color: #fff; }
[data-theme="light"] .mobile-menu { background: radial-gradient(60rem 30rem at 100% 0%, rgb(255 181 46 / 0.22), transparent 60%), var(--bg); }

/* Portfolio tiles loaded from the database can carry a photo */
.tile__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.tile:hover .tile__img { transform: scale(1.06); }
