/* ═══════════════════════════════════════════════════════════
   Nano code — OBSIDIAN FORGE
   World: near-black surfaces, ember-gold accent, Fraunces display,
   Space Grotesk text, code as a first-class material.
   ═══════════════════════════════════════════════════════════ */

:root {
  /* ── theme: dark (default) ── */
  --bg:        #0a0908;
  --bg-1:      #100e0c;
  --bg-2:      #151310;
  --bg-3:      #1a1815;
  --bg-4:      #23201c;
  --bg-5:      #2e2b26;
  --border:    #23201c;
  --border-hi: #2e2b26;
  --text-hi:   #f2ede6;
  --text-md:   #b8b0a5;
  --text-lo:   #8a8279;
  --text-faint:#5c564f;
  --head-bg:   rgba(10, 9, 8, 0.82);
  --head-line: rgba(232, 180, 76, 0.08);
  --glow:      rgba(232, 180, 76, 0.07);
  --scroll-track: #100e0c;
  --scroll-thumb: #2e2b26;
  --scroll-hover: #23201c;
  --btn-solid-shadow: 0 4px 24px -4px rgba(232, 180, 76, 0.35);
  --btn-solid-fg: #0a0908;

  /* surfaces (legacy, kept for compat) */
  --ink-950: var(--bg);
  --ink-900: var(--bg-1);
  --ink-850: var(--bg-2);
  --ink-800: var(--bg-3);
  --ink-700: var(--bg-4);
  --ink-600: var(--bg-5);

  /* accent — ember gold (same in both themes) */
  --ember:        #e8b44c;
  --ember-bright: #f5cf7a;
  --ember-deep:   #a87a2e;
  --ember-dim:    #6e5426;

  /* type */
  --font-display: "Fraunces", "Georgia", serif;
  --font-text:    "Space Grotesk", "Avenir Next", system-ui, sans-serif;
  --font-mono:    "SFMono-Regular", "Roboto Mono", "Consolas", monospace;

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snap: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 180ms;
  --dur-mid:  420ms;
  --dur-slow: 800ms;

  /* spacing scale */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.5rem;
  --sp-6:  2rem;
  --sp-7:  3rem;
  --sp-8:  4rem;
  --sp-9:  6rem;
  --sp-10: 8rem;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;

  --max-w: 1200px;
}

/* ── theme: light ── */
[data-theme="light"] {
  --bg:        #faf6ee;
  --bg-1:      #f3eee1;
  --bg-2:      #ece5d3;
  --bg-3:      #e3dbc6;
  --bg-4:      #d6cbb0;
  --bg-5:      #c9bd9f;
  --border:    #e3dbc6;
  --border-hi: #d6cbb0;
  --text-hi:   #1c1710;
  --text-md:   #4a4236;
  --text-lo:   #756c5d;
  --text-faint:#a39a8a;
  --head-bg:   rgba(250, 246, 238, 0.85);
  --head-line: rgba(168, 122, 46, 0.18);
  --glow:      rgba(232, 180, 76, 0.16);
  --scroll-track: #f3eee1;
  --scroll-thumb: #c9bd9f;
  --scroll-hover: #d6cbb0;
  --btn-solid-shadow: 0 4px 24px -4px rgba(168, 122, 46, 0.28);
  --btn-solid-fg: #0a0908;

  /* keep accent punchy on light bg */
  --ember:        #c8892a;
  --ember-bright: #e8b44c;
  --ember-deep:   #8a6224;
  --ember-dim:    #b8892e;
}

/* ── reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text-hi);
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* browser surfaces */
::selection {
  background: var(--ember-deep);
  color: var(--bg);
}
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--scroll-track); }
::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--scroll-hover); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-700); }
:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
  border-radius: 2px;
}
a { color: var(--ember); text-decoration: none; }
a:hover { color: var(--ember-bright); }

/* ── typography helpers ────────────────────────────────────── */
.line { display: block; overflow: hidden; }
.line-in {
  display: block;
  transform: translateY(110%);
  opacity: 0;
}
body.intro-done .hero .line-in,
body.intro-done .craft .line-in,
body.intro-done .process .line-in,
body.intro-done .work .line-in,
body.intro-done .cta .line-in {
  animation: line-up 0.9s var(--ease-out) forwards;
}
@keyframes line-up {
  to { transform: translateY(0); opacity: 1; }
}

/* stagger per section */
.hero  .line:nth-child(1) .line-in { animation-delay: 0.10s; }
.hero  .line:nth-child(2) .line-in { animation-delay: 0.22s; }
.hero  .line:nth-child(3) .line-in { animation-delay: 0.34s; }

/* ── buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition:
    background var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
  white-space: nowrap;
  text-decoration: none;
}
.btn:active { transform: scale(0.97); }

.btn-solid {
  background: var(--ember);
  color: var(--btn-solid-fg);
  border-color: var(--ember);
  box-shadow: 0 0 0 0 transparent;
}
.btn-solid:hover {
  background: var(--ember-bright);
  border-color: var(--ember-bright);
  box-shadow: var(--btn-solid-shadow);
  color: var(--btn-solid-fg);
}

.btn-ghost {
  background: transparent;
  color: var(--text-hi);
  border-color: var(--bg-5);
}
.btn-ghost:hover {
  border-color: var(--ember);
  color: var(--ember);
}

/* inline icons inside buttons */
.btn .ic {
  width: 18px; height: 18px;
  flex-shrink: 0;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 0.9375rem;
}

/* ── header ────────────────────────────────────────────────── */
.site-head {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-6);
  background: var(--head-bg);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--head-line);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--text-hi);
}
.brand:hover { color: var(--text-hi); }
.brand-mark {
  width: 28px; height: 28px;
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  gap: var(--sp-6);
  margin-left: auto;
}
.site-nav a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-md);
  letter-spacing: 0.02em;
  transition: color var(--dur-fast) var(--ease-out);
}
.site-nav a:hover { color: var(--text-hi); }

/* theme toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--bg-5);
  background: transparent;
  color: var(--text-lo);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}
.theme-toggle:hover {
  border-color: var(--ember);
  color: var(--ember);
}
.theme-toggle .ic { width: 18px; height: 18px; display: block; }
.theme-toggle .ic-sun, .theme-toggle .ic-moon { grid-area: 1/1; }
.theme-toggle { display: inline-grid; place-items: center; }
[data-theme="dark"]  .theme-toggle .ic-sun  { display: block; }
[data-theme="dark"]  .theme-toggle .ic-moon { display: none; }
[data-theme="light"] .theme-toggle .ic-sun  { display: none; }
[data-theme="light"] .theme-toggle .ic-moon { display: block; }

/* header CTA: compact on all sizes, full-width only on small screens */
.site-head .btn {
  padding: 0.55rem 1.1rem;
  font-size: 0.8125rem;
  flex-shrink: 0;
}

/* ── intro overlay ─────────────────────────────────────────── */
.intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--sp-6);
  opacity: 1;
  transition: opacity 0.7s var(--ease-out), visibility 0.7s;
}
.intro.out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-5);
}

.intro-mark {
  width: 88px; height: 88px;
  color: var(--ember);
  overflow: visible;
}

/* stroke-draw animation */
.intro-mark .im-frame {
  stroke: var(--ember);
  stroke-dasharray: 416;
  stroke-dashoffset: 416;
  animation: draw 1.4s var(--ease-out) 0.2s forwards;
}
.intro-mark .im-arrow {
  stroke: var(--ember);
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  animation: draw 0.8s var(--ease-out) 1.1s forwards;
}
.intro-mark .im-dot {
  fill: var(--ember);
  opacity: 0;
  transform-origin: 41px 81px;
  transform: scale(0);
  animation: dot-pop 0.4s var(--ease-snap) 1.7s forwards;
}
@keyframes draw  { to { stroke-dashoffset: 0; } }
@keyframes dot-pop { to { opacity: 1; transform: scale(1); } }

.intro-word {
  display: flex;
  gap: 0.75em;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  letter-spacing: 0.18em;
  color: var(--text-hi);
}
.intro-word .iw {
  opacity: 0;
  transform: translateY(12px);
  animation: word-in 0.7s var(--ease-out) forwards;
}
.intro-word .iw:nth-child(1) { animation-delay: 1.5s; }
.intro-word .iw:nth-child(2) { animation-delay: 1.68s; color: var(--ember); }
@keyframes word-in { to { opacity: 1; transform: translateY(0); } }

.intro-line {
  width: 48px; height: 1px;
  background: var(--ember-deep);
  transform: scaleX(0);
  animation: line-grow 0.6s var(--ease-out) 1.9s forwards;
}
@keyframes line-grow { to { transform: scaleX(1); } }

.intro-hint {
  font-size: 0.75rem;
  color: var(--text-lo);
  letter-spacing: 0.06em;
  opacity: 0;
  animation: fade-in 0.6s var(--ease-out) 2.1s forwards;
}
@keyframes fade-in { to { opacity: 1; } }

.intro-skip {
  position: absolute;
  bottom: var(--sp-6);
  right: var(--sp-6);
  background: none;
  border: 1px solid var(--bg-5);
  color: var(--text-lo);
  font-family: var(--font-text);
  font-size: 0.75rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--dur-fast), color var(--dur-fast);
}
.intro-skip:hover {
  border-color: var(--ember);
  color: var(--text-hi);
}

/* ── hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--sp-10) var(--sp-6) var(--sp-8);
  width: 100%;
  max-width: none;
  margin: 0;
  overflow: hidden;
}

/* inner content keeps the readable max-width, centered */
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

/* animated silk canvas (from silk.js) — full width, fade at the bottom only */
.silk-canvas {
  position: absolute;
  /* extend the canvas past the bottom of the hero so the silk pattern
     runs under the scrim and disappears before the next section */
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: calc(100% + 120px);
  z-index: 0;
  display: block;
  /* progressive fade — bottom 35% dissolves into the page background */
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
}


/* readability scrim behind hero content — stronger on light so text pops */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 70% 60% at 30% 45%,
    color-mix(in srgb, var(--bg) 72%, transparent) 0%,
    color-mix(in srgb, var(--bg) 30%, transparent) 55%,
    transparent 80%
  );
}
[data-theme="light"] .hero-scrim {
  background: radial-gradient(
    ellipse 70% 60% at 30% 45%,
    color-mix(in srgb, var(--bg) 88%, transparent) 0%,
    color-mix(in srgb, var(--bg) 55%, transparent) 60%,
    transparent 85%
  );
}

.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 120vw);
  height: 600px;
  background: radial-gradient(
    ellipse 50% 50% at 50% 50%,
    var(--glow) 0%,
    transparent 70%
  );
  pointer-events: none;
  filter: blur(60px);
  z-index: 1;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.8rem, 6.5vw, 5.2rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin-bottom: var(--sp-5);
  color: var(--text-hi);
  text-shadow: 0 2px 24px color-mix(in srgb, var(--bg) 60%, transparent);
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--text-md);
  max-width: 56ch;
  line-height: 1.75;
  margin-bottom: var(--sp-6);
  text-shadow: 0 1px 12px color-mix(in srgb, var(--bg) 50%, transparent);
}

.hero-actions {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-bottom: var(--sp-7);
}

.hero-spec {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--text-lo);
  letter-spacing: 0.04em;
}
.hero-spec i {
  display: block;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--ember-deep);
}

/* hero-spec icon items */
.spec-item {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}
.spec-item .ic {
  width: 16px; height: 16px;
  color: var(--ember);
  flex-shrink: 0;
}

/* ── section common ────────────────────────────────────────── */
section {
  padding: var(--sp-9) var(--sp-6);
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── craft section ─────────────────────────────────────────── */
.craft {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--sp-8);
  align-items: start;
}

.craft-left {
  position: sticky;
  top: var(--sp-9);
}

.craft-left h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-5);
  color: var(--text-hi);
}

.craft-left p {
  color: var(--text-md);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: var(--sp-4);
  max-width: 42ch;
}

.craft-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: craft;
}

.craft-list li {
  position: relative;
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--border);
  counter-increment: craft;
}
.craft-list li:first-child { border-top: 1px solid var(--border); }

.craft-list li::before {
  content: "0" counter(craft);
  position: absolute;
  right: 0;
  top: var(--sp-5);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-faint);
  letter-spacing: 0.1em;
}

.craft-list h3 {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--text-hi);
  margin-bottom: var(--sp-2);
  letter-spacing: -0.01em;
}

.craft-ic {
  width: 22px; height: 22px;
  color: var(--ember);
  flex-shrink: 0;
}

.craft-list p {
  font-size: 0.9375rem;
  color: var(--text-md);
  line-height: 1.7;
  max-width: 52ch;
}

/* ── process section ───────────────────────────────────────── */
.process {
  background: var(--bg-1);
  border-radius: var(--radius-lg);
  margin: 0 var(--sp-6);
  max-width: none;
  padding: var(--sp-8) var(--sp-6);
  border: 1px solid var(--border);
}
@media (min-width: 800px) {
  .process { margin: 0 auto; max-width: var(--max-w); }
}

.process-head {
  max-width: 56ch;
  margin-bottom: var(--sp-7);
}
.process-head h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.1;
  color: var(--text-hi);
  margin-bottom: var(--sp-4);
  letter-spacing: -0.01em;
}
.process-head p {
  color: var(--text-md);
  font-size: 1rem;
  line-height: 1.7;
}

.process-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-6);
}

.process-steps li {
  position: relative;
  padding-top: var(--sp-5);
}

.process-steps li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--ember);
  border-radius: 1px;
}

.step-ic {
  display: block;
  width: 34px; height: 34px;
  color: var(--ember);
  margin-bottom: var(--sp-4);
  padding: 6px;
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.step-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--ember);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
}

.process-steps h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--text-hi);
  margin-bottom: var(--sp-2);
  letter-spacing: -0.01em;
}

.process-steps p {
  font-size: 0.9rem;
  color: var(--text-md);
  line-height: 1.7;
}

/* ── work section ──────────────────────────────────────────── */
.work-head {
  max-width: 56ch;
  margin-bottom: var(--sp-6);
}
.work-head h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.1;
  color: var(--text-hi);
  margin-bottom: var(--sp-3);
  letter-spacing: -0.01em;
}
.work-head p {
  color: var(--text-md);
  font-size: 1rem;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
  margin-bottom: var(--sp-5);
}

.work-card {
  padding: var(--sp-6);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-1);
  transition:
    border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}
.work-card:hover {
  border-color: var(--ember-deep);
  box-shadow: 0 8px 32px -8px var(--glow);
  transform: translateY(-2px);
}
.work-card--wide {
  grid-column: 1 / -1;
  background: var(--bg-2);
}

.work-ic {
  width: 34px; height: 34px;
  color: var(--ember);
  margin-bottom: var(--sp-4);
  padding: 6px;
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.work-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--text-hi);
  margin-bottom: var(--sp-3);
  letter-spacing: -0.01em;
}

.work-card p {
  font-size: 0.9375rem;
  color: var(--text-md);
  line-height: 1.7;
  margin-bottom: var(--sp-4);
}

.work-meta {
  display: inline-flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-lo);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.work-meta::before {
  content: "";
  display: block;
  width: 16px;
  height: 1px;
  background: var(--ember-deep);
  flex-shrink: 0;
  margin-top: 0.55em;
}

.work-note {
  font-size: 0.9375rem;
  color: var(--text-md);
}
.work-note a {
  color: var(--ember);
  font-weight: 500;
}

/* ── CTA ───────────────────────────────────────────────────── */
.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: var(--sp-10) var(--sp-6);
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 120%, var(--glow) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  max-width: 56ch;
  margin: 0 auto;
}

.cta h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.08;
  color: var(--text-hi);
  margin-bottom: var(--sp-5);
  letter-spacing: -0.01em;
}

.cta p {
  color: var(--text-md);
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: var(--sp-6);
}

.cta-actions {
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
  flex-wrap: wrap;
}

/* ── footer ────────────────────────────────────────────────── */
.site-foot {
  border-top: 1px solid var(--border);
  padding: var(--sp-6);
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--text-md);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  letter-spacing: 0.03em;
}
.foot-mark {
  width: 20px; height: 20px;
  color: var(--ember-deep);
}

.foot-nav {
  display: flex;
  gap: var(--sp-5);
}
.foot-nav a {
  font-size: 0.8125rem;
  color: var(--text-lo);
  transition: color var(--dur-fast);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
}
.foot-nav a .ic { width: 15px; height: 15px; }
.foot-nav a:hover { color: var(--text-hi); }

.cta-alt {
  margin-top: var(--sp-4);
  font-size: 0.9375rem;
  color: var(--text-md);
}

.foot-note {
  font-size: 0.75rem;
  color: var(--text-faint);
  letter-spacing: 0.03em;
}

/* ── responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .site-head { padding: var(--sp-3) var(--sp-4); gap: var(--sp-2); }
  .site-nav { display: none; }
  .site-head .btn { flex: 1; justify-content: center; padding: 0.7rem 1rem; }
  .brand { flex: 0 0 auto; }

  .hero { padding: var(--sp-8) var(--sp-4) var(--sp-6); }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-spec { gap: var(--sp-3); font-size: 0.75rem; }

  .hero-glow {
    width: 120vw;
    height: 420px;
    top: -10%;
  }

  .work-note { font-size: 0.875rem; }

  .craft { grid-template-columns: 1fr; gap: var(--sp-6); }
  .craft-left { position: static; }

  .process { margin: 0; padding: var(--sp-6) var(--sp-4); }
  .process-steps { grid-template-columns: 1fr; }

  .work-grid { grid-template-columns: 1fr; }
  .work-card--wide { grid-column: auto; }

  .site-foot {
    flex-direction: column;
    text-align: center;
  }
}

/* ── reduced motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .intro-mark .im-frame,
  .intro-mark .im-arrow,
  .intro-mark .im-dot,
  .intro-word .iw,
  .intro-line,
  .intro-hint,
  .hero .line-in,
  .craft .line-in,
  .process .line-in,
  .work .line-in,
  .cta .line-in {
    animation: none;
    opacity: 1;
    transform: none;
    stroke-dashoffset: 0;
  }

  .intro {
    /* show static logo, no animation */
    transition: opacity 0.3s;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:active { transform: none; }
}
