/* Layout: Norse hall meets workshop. Deliberately dark-only (moody); dark-first soot and iron ground, bone text,
   ember + bronze accents, chamfered "forged plate" corners, Elder Futhark runes as
   section marks, fjord ridgeline and a turning rune ring as the hero's one bold element. */
:root {
  --bg: #0a0908;          /* soot */
  --surface: #121010;
  --surface-2: #1a1715;
  --ink: #ddd3c2;         /* bone */
  --muted: #8b7f6e;
  --line: #221e1a;
  --line-strong: #3a322b;
  --ember: #c2552c;       /* forge fire */
  --gold: #a8873e;        /* bronze */
  --iron: #48545b;
  --on-ink: #0a0908;
  --on-ember: #fff6ea;
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.85);
  --term-bg: #0e0c0a;
  --term-fg: #e6dccb;
  --term-muted: #8a7d6a;
  --term-ok: #d9b25c;
  --white: #fff6ea;

  --display: "Grenze Gotisch", "UnifrakturMaguntia", Georgia, serif;
  --heading: "Grenze", Georgia, serif;
  --body: "Alegreya Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --runic: "Noto Sans Runic", "Segoe UI Historic", sans-serif;

  --radius: 2px;
  --cut: 10px;
  --max: 1180px;
  --gutter: max(16px, calc((100vw - var(--max)) / 2));
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
h1, h2 { font-family: var(--display); font-weight: 600; line-height: 1; letter-spacing: 0; text-wrap: balance; }
h3 { font-family: var(--heading); font-weight: 600; line-height: 1.15; text-wrap: balance; }
h2 em, h1 em { font-style: normal; color: var(--ember); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }

/* ── Aurora wash ── */
.aurora { position: absolute; top: 0; left: 0; right: 0; height: 720px; overflow: hidden; z-index: -1; pointer-events: none; }
.aurora i {
  position: absolute; width: 70vw; height: 260px; border-radius: 50%;
  filter: blur(80px); opacity: 0.28; animation: sway 26s ease-in-out infinite alternate;
}
.aurora i:nth-child(1) { background: var(--gold); top: -80px; left: -10vw; }
.aurora i:nth-child(2) { background: var(--ember); top: 20px; right: -20vw; animation-delay: -9s; }
.aurora i:nth-child(3) { background: var(--iron); top: 140px; left: 25vw; opacity: 0.22; animation-delay: -17s; }
@keyframes sway { to { transform: translateX(8vw) skewX(-12deg) scaleY(1.2); } }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.85em 1.4em; border-radius: var(--radius); border: 1px solid var(--ink);
  background: var(--ink); color: var(--on-ink);
  font: 600 0.98rem var(--body); cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { background: var(--ember); border-color: var(--ember); }
.btn span { transition: transform 0.2s; }
.btn:hover span { transform: translateX(3px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface); border-color: var(--ink); }
.btn-small { padding: 0.5em 1em; font-size: 0.9rem; }

/* ── Nav ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(16px + env(safe-area-inset-top, 0px)) var(--gutter) 16px;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
.nav.scrolled, .nav.open {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-color: var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font: 600 1.1rem var(--display);  letter-spacing: -0.02em; }
.brand b { font-weight: 600; color: var(--ember); }
.brand-mark {
  width: 30px; height: 30px; border-radius: 5px; display: grid; place-items: center;
  background: var(--ink); color: var(--on-ink); font-size: 0.95rem;
}
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 0.95rem; }
.nav-links a:not(.btn) { color: var(--muted); transition: color 0.2s; }
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 6px auto; transition: transform 0.3s; }
.nav.open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ── Shared ── */
.section { max-width: var(--max); margin: 0 auto; padding: 120px 16px 0; }
.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head h2, .ai h2, .contact h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.label {
  display: flex; align-items: center; gap: 10px;
  font: 500 0.78rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
}
.label::before { content: ""; width: 22px; height: 1px; background: var(--ember); }
.hero .label::before { display: none; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.lead { color: var(--muted); font-size: 1.12rem; max-width: 58ch; }

/* Reveal: content is visible by default; only below-the-fold items get .pending */
.reveal { transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.pending { opacity: 0; transform: translateY(24px); }

/* ── Hero ── */
.hero {
  position: relative; max-width: var(--max); margin: 0 auto;
  padding: 150px 16px 120px;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center;
}
.ridge { position: absolute; left: 50%; bottom: 0; width: 100vw; height: 300px; transform: translateX(-50%); z-index: -1; pointer-events: none; }
.hero-copy { min-width: 0; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.8rem);  margin-bottom: 26px; }
.rotator { display: inline-block; color: var(--ember); transition: opacity 0.3s, transform 0.3s, filter 0.3s; }
.rotator.out { opacity: 0; transform: translateY(-12px); filter: blur(5px); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 40px; }
.spec { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; border-top: 1px solid var(--line); }
.spec li { padding: 12px 22px 0 0; margin-right: 22px; font-size: 0.9rem; border-right: 1px solid var(--line); }
.spec li:last-child { border-right: 0; margin-right: 0; }
.spec span { display: block; font: 500 0.7rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* Hero visual */
.hero-visual { position: relative; height: 500px; perspective: 1200px; --rx: 0deg; --ry: 0deg; }
.tilt { transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform 0.25s ease-out; }
.browser {
  position: absolute; top: 40px; left: 0; width: 82%;
  border-radius: 8px; overflow: hidden; background: var(--surface);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  animation: float 8s ease-in-out infinite;
}
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.browser-bar span { margin-left: 12px; font: 0.7rem var(--mono); color: var(--muted); }
.browser-body { padding: 16px; }
.mock-hero { height: 150px; border-radius: 4px; margin-bottom: 14px; position: relative; overflow: hidden; background: linear-gradient(160deg, var(--iron), var(--ember) 70%, var(--ink)); }
.mock-hero::before { content: ""; position: absolute; left: 18px; top: 30px; width: 55%; height: 14px; border-radius: 3px; background: var(--white); opacity: 0.9; box-shadow: 0 24px 0 -2px rgba(255, 255, 255, 0.45); }
.mock-hero::after { content: ""; position: absolute; left: 18px; bottom: 22px; width: 84px; height: 24px; border-radius: 4px; background: var(--white); opacity: 0.85; }
.mock-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.mock-row b { height: 60px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line); }
.mock-lines s { display: block; height: 7px; border-radius: 3px; background: var(--surface-2); margin-bottom: 8px; }

.phone {
  position: absolute; right: 2%; top: 110px; width: 196px; height: 392px;
  border-radius: 30px; padding: 9px; background: var(--ink);
  box-shadow: var(--shadow); animation: float 7s ease-in-out infinite -2s;
}
.phone-notch { position: absolute; top: 17px; left: 50%; width: 56px; height: 15px; margin-left: -28px; border-radius: 10px; background: var(--ink); z-index: 2; }
.phone-screen { height: 100%; border-radius: 22px; padding: 42px 13px 13px; position: relative; overflow: hidden; background: var(--bg); }
.app-head span { display: block; font: 0.6rem var(--mono); color: var(--muted); }
.app-head strong { font: 600 1.05rem var(--display);  }
.app-card { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 6px; margin-top: 10px; background: var(--surface); border: 1px solid var(--line); }
.app-card em { width: 28px; height: 28px; border-radius: 6px; flex: none; background: var(--ember); }
.app-card.a2 em { background: var(--gold); }
.app-card div { flex: 1; }
.app-card s { display: block; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 4px 0; }
.app-chart { display: flex; align-items: flex-end; gap: 6px; height: 96px; margin-top: 14px; padding: 10px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); }
.app-chart i { flex: 1; height: var(--h); border-radius: 2px; background: var(--ember); transform-origin: bottom; animation: grow 2.6s ease-in-out infinite alternate; }
.app-chart i:nth-child(2n) { background: var(--iron); animation-delay: -0.9s; }
.app-chart i:nth-child(3n) { animation-delay: -1.7s; }
@keyframes grow { from { transform: scaleY(0.55); } }
.app-nav { position: absolute; bottom: 11px; left: 13px; right: 13px; display: flex; justify-content: space-around; padding: 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }
.app-nav i { width: 13px; height: 13px; border-radius: 3px; background: var(--line-strong); }
.app-nav i:first-child { background: var(--ember); }

.ad-card {
  position: absolute; left: 6%; bottom: 0; width: 164px; height: 164px;
  border-radius: 6px; padding: 16px; display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(150deg, var(--gold), var(--ember));
  box-shadow: var(--shadow); color: var(--white);
  animation: float 9s ease-in-out infinite -4s;
}
.ad-card strong { font: 600 1.45rem/1 var(--display);  }
.ad-card small { font-size: 0.72rem; opacity: 0.92; margin-top: 6px; }
.ad-badge { position: absolute; top: 12px; left: 12px; font: 500 0.62rem var(--mono); letter-spacing: 0.1em; padding: 3px 7px; border-radius: 3px; border: 1px solid rgba(255, 255, 255, 0.6); }

.float-chip {
  position: absolute; padding: 7px 12px; border-radius: 4px; white-space: nowrap;
  font: 500 0.74rem var(--mono); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.chip-1 { top: 0; right: 8%; }
.chip-1::before { content: "● "; color: var(--gold); }
.chip-2 { bottom: 50px; right: 36%; animation-delay: -3s; }
@keyframes float { 50% { translate: 0 -12px; } }

/* ── Strip ── */
.marquee {
  overflow: hidden; padding: 18px 0; border-block: 1px solid var(--line); background: var(--surface);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; gap: 28px; width: max-content; animation: scroll 50s linear infinite; }
.marquee-track span { font: 500 0.9rem var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.marquee-track i { font-style: normal; color: var(--ember); font-family: var(--mono); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ── Services ── */
.services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service { padding: 32px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); transition: background 0.25s; position: relative; }
.service::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--ember); transform: scaleX(0); transform-origin: left; transition: transform 0.35s; }
.service:hover::after { transform: scaleX(1); }
.service-icon { width: 44px; height: 44px; border-radius: 6px; display: grid; place-items: center; margin-bottom: 28px; border: 1px solid var(--line-strong); color: var(--ember); }
.service-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { font-size: 1.3rem; margin-bottom: 10px; }
.service p { color: var(--muted); font-size: 0.95rem; margin-bottom: 20px; }
.service li { font: 0.8rem var(--mono); padding: 7px 0; border-top: 1px solid var(--line); color: var(--ink); }

/* ── Work ── */
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; }
.filter {
  padding: 7px 16px; border-radius: 4px; cursor: pointer;
  border: 1px solid var(--line-strong); background: transparent;
  color: var(--muted); font: 500 0.8rem var(--mono); letter-spacing: 0.04em; transition: all 0.2s;
}
.filter:hover { color: var(--ink); border-color: var(--ink); }
.filter.active { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.work-card { overflow: hidden; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color 0.25s, transform 0.25s; }
.work-card.hidden { display: none; }
.work-card:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.work-art {
  position: relative; height: 230px; overflow: hidden; display: grid; place-items: center;
  background:
    radial-gradient(circle at 18% 20%, color-mix(in srgb, var(--c1) 45%, transparent), transparent 60%),
    radial-gradient(circle at 85% 90%, color-mix(in srgb, var(--c2) 40%, transparent), transparent 60%),
    var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.work-art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 22px 22px; opacity: 0.6;
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%);
}
.work-art > * { position: relative; z-index: 1; transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.work-card:hover .work-art > :not(.sample-badge) { transform: translateY(-6px) scale(1.03); }
.work-art img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.sample-badge { position: absolute; top: 12px; right: 12px; z-index: 2; font: 500 0.62rem var(--mono); letter-spacing: 0.1em; padding: 3px 8px; border-radius: 3px; background: var(--surface); color: var(--muted); border: 1px solid var(--line-strong); }
.work-info { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.work-cat { font: 500 0.7rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ember); }
.work-info h3 { font-size: 1.25rem; margin: 6px 0 8px; }
.work-info p { color: var(--muted); font-size: 0.93rem; margin-bottom: 16px; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font: 0.7rem var(--mono); padding: 3px 8px; border-radius: 3px; border: 1px solid var(--line); color: var(--muted); }
.work-link { align-self: flex-start; margin-top: 16px; font-weight: 600; font-size: 0.9rem; border-bottom: 1px solid var(--ember); }
.work-link span { display: inline-block; transition: transform 0.2s; }
.work-link:hover span { transform: translate(2px, -2px); }

/* Card art */
.art-phone { width: 104px; height: 200px; margin-top: 50px; border-radius: 20px; padding: 6px; background: var(--ink); box-shadow: var(--shadow); }
.ap-screen { height: 100%; border-radius: 15px; padding: 18px 9px; background: var(--bg); }
.ap-screen i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; margin-bottom: 10px; font-style: normal; font-size: 15px; background: color-mix(in srgb, var(--c1) 30%, var(--surface)); }
.ap-screen s { display: block; height: 5px; border-radius: 3px; background: var(--line-strong); margin-bottom: 6px; }
.ap-screen s.short { width: 55%; }
.ap-screen b { display: block; height: 26px; border-radius: 5px; margin-top: 8px; background: var(--surface); border: 1px solid var(--line); }
.art-browser { width: 78%; border-radius: 6px; overflow: hidden; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.ab-bar { display: flex; gap: 5px; padding: 7px 10px; background: var(--surface-2); }
.ab-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.ab-body { padding: 10px; }
.ab-hero { height: 70px; border-radius: 3px; background: linear-gradient(120deg, var(--c1), var(--c2)); margin-bottom: 8px; }
.ab-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ab-cols b { height: 32px; border-radius: 3px; background: var(--surface-2); }
.art-ad { width: 140px; height: 150px; border-radius: 6px; padding: 14px; color: var(--white); display: flex; flex-direction: column; justify-content: flex-end; rotate: -5deg; background: linear-gradient(140deg, var(--c1), var(--c2)); box-shadow: var(--shadow); }
.art-ad span { font: 500 0.6rem var(--mono); letter-spacing: 0.15em; }
.art-ad strong { font: 600 2.4rem/1 var(--display); }
.art-ad small { font-size: 0.65rem; opacity: 0.9; }
.art-ad-2 { position: absolute !important; width: 120px; height: 130px; rotate: 7deg; translate: 70px 10px; z-index: 0 !important; opacity: 0.45; padding: 0; }
.art-term { width: 80%; padding: 16px; border-radius: 6px; background: var(--term-bg); font: 0.78rem/1.9 var(--mono); box-shadow: var(--shadow); }
.art-term code { display: block; color: var(--term-fg); }
.art-term em { color: var(--term-ok); font-style: normal; }
.art-term .ok { color: var(--term-ok); }
.art-term u { display: inline-block; width: 8px; height: 14px; vertical-align: middle; background: var(--term-fg); animation: blink 1s steps(1) infinite; }

/* ── AI ── */
.ai { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.ai-copy { min-width: 0; }
.ai h2 { margin-bottom: 20px; }
.ai .lead + .lead { margin-top: 14px; }
.ai-points { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 32px; border-top: 1px solid var(--line); }
.ai-points div { padding: 14px 14px 0 0; }
.ai-points div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.ai-points dt { font: 600 1.05rem var(--display);  }
.ai-points dd { font-size: 0.85rem; color: var(--muted); }
.terminal { border-radius: 8px; overflow: hidden; background: var(--term-bg); box-shadow: var(--shadow); min-width: 0; }
.terminal-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.terminal-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.terminal-bar span { margin-left: 10px; font: 0.75rem var(--mono); color: var(--term-muted); }
.terminal-body { padding: 22px; min-height: 330px; font: 0.85rem/1.85 var(--mono); white-space: pre-wrap; word-break: break-word; color: var(--term-fg); }
.t-out { color: var(--term-muted); }
.t-ok { color: var(--term-ok); }
.t-cursor { display: inline-block; width: 9px; height: 17px; vertical-align: middle; background: var(--term-fg); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ── Process ── */
.process { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.process li { padding: 22px 24px 0 0; }
.process li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.step { font: 500 0.8rem var(--mono); color: var(--ember); }
.process h3 { font-size: 1.5rem; margin: 16px 0 10px; }
.process p { color: var(--muted); font-size: 0.95rem; }

/* ── Contact ── */
.contact { padding-bottom: 120px; }
.contact-card { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 52px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; }
.contact-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--ember), var(--iron)); }
.contact-copy { min-width: 0; }
.contact-copy h2 { margin-bottom: 18px; }
.contact-email { display: inline-block; margin-top: 26px; font: 500 1rem var(--mono); border-bottom: 1px solid var(--ember); padding-bottom: 2px; user-select: all; word-break: break-all; }
.contact-form { display: grid; gap: 16px; min-width: 0; }
.contact-form label { display: grid; gap: 6px; font: 500 0.72rem var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 12px 14px; border-radius: 4px;
  border: 1px solid var(--line-strong); background: var(--bg);
  color: var(--ink); font: 1rem var(--body); text-transform: none; letter-spacing: 0; resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--ember); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ember) 22%, transparent);
}
.contact-form .btn { justify-self: start; }

/* ── Footer ── */
.footer {
  max-width: var(--max); margin: 0 auto; padding: 32px 16px 48px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line); color: var(--muted); font: 0.8rem var(--mono);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .process li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 120px; padding-bottom: 80px; }
  .hero-visual { height: 450px; max-width: 520px; width: 100%; margin: 0 auto; }
  .ai, .contact-card { grid-template-columns: 1fr; }
  .contact-card { padding: 36px 22px; }
  .nav-links {
    position: fixed; top: calc(62px + env(safe-area-inset-top, 0px)); left: 0; right: 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 20px; display: none;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-links .btn { margin-top: 16px; justify-content: center; }
  .nav-toggle { display: block; }
}
@media (max-width: 600px) {
  .section { padding-top: 88px; }
  .services, .work-grid, .process { grid-template-columns: 1fr; }
  .process li, .process li + li { padding-left: 0; border-left: 0; }
  .process li + li { border-top: 1px solid var(--line); padding-top: 20px; }
  .process { row-gap: 20px; }
  .spec { grid-template-columns: 1fr; }
  .spec li { border-right: 0; margin-right: 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .ai-points { grid-template-columns: 1fr; }
  .ai-points div, .ai-points div + div { padding: 12px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .hero-visual { height: 390px; }
  .browser { width: 92%; }
  .phone { width: 148px; height: 296px; top: 100px; border-radius: 24px; }
  .phone-screen { padding-top: 34px; border-radius: 17px; }
  .app-chart { height: 58px; }
  .ad-card { width: 128px; height: 128px; left: 0; }
  .ad-card strong { font-size: 1.15rem; }
  .chip-2 { display: none; }
  .terminal-body { font-size: 0.76rem; min-height: 300px; }
  .ridge { height: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal.pending { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
.ridge { mask-image: linear-gradient(180deg, transparent, #000 35%); -webkit-mask-image: linear-gradient(180deg, transparent, #000 35%); }

/* ── Norse layer ── */
.brand { font-family: var(--display); font-size: 1.35rem; letter-spacing: 0.01em; }
.brand b { color: var(--ember); }
.brand-mark { background: var(--ember); color: var(--on-ember); font-family: var(--display); font-size: 1.15rem; clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); border-radius: 0; }
.hero h1 { font-size: clamp(3rem, 7.4vw, 6rem); line-height: 0.95; }
.section-head h2, .ai h2, .contact h2 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
h2 em, h1 em, .rotator { color: var(--ember); }
.runes { font: 400 0.95rem var(--runic); letter-spacing: 0.18em; color: var(--gold); text-transform: none; }
.label { gap: 12px; }
.label::before { background: var(--gold); }

/* Forged-plate corners */
.btn, .filter, .work-card, .contact-card, .service-icon, .float-chip, .ad-card, .spec-plate {
  border-radius: 0;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.btn, .filter, .float-chip { --cut: 7px; }
.btn { background: var(--ember); border-color: var(--ember); color: var(--on-ember); font-weight: 700; letter-spacing: 0.02em; }
.btn:hover { background: var(--gold); border-color: var(--gold); color: var(--on-ink); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); border-color: var(--gold); }
.filter.active { background: var(--ember); border-color: var(--ember); color: var(--on-ember); }

/* Carved band (replaces plain strip borders) */
.marquee { position: relative; border: 0; background: var(--surface); }
.marquee::before, .marquee::after {
  content: ""; position: absolute; left: 0; right: 0; height: 8px;
  background: repeating-linear-gradient(135deg, var(--gold) 0 2px, transparent 2px 8px),
              repeating-linear-gradient(45deg, var(--gold) 0 2px, transparent 2px 8px);
  opacity: 0.45;
}
.marquee::before { top: 0; }
.marquee::after { bottom: 0; }
.marquee { padding: 24px 0; }
.marquee-track span { font: 600 1.05rem var(--heading); letter-spacing: 0.1em; color: var(--ink); }
.marquee-track i { font: 1.1rem var(--runic); color: var(--ember); }

/* Rune ring behind the hero mockups */
.rune-ring { position: absolute; width: 520px; height: 520px; left: 50%; top: 50%; margin: -260px 0 0 -260px; z-index: -1; opacity: 0.55; animation: turn 120s linear infinite; }
.rune-ring text { font: 400 22px var(--runic); letter-spacing: 6px; fill: var(--gold); }
.rune-ring .inner { font-size: 16px; fill: var(--ember); letter-spacing: 9px; }
.rune-ring circle { fill: none; stroke: var(--line-strong); stroke-width: 1; }
@keyframes turn { to { transform: rotate(360deg); } }

/* Services: iron plates with a bronze edge */
.service::after { background: var(--ember); height: 3px; }
.service-icon { color: var(--gold); border-color: var(--gold); }
.service li { font-family: var(--body); font-size: 0.9rem; }
.service li::before { content: "ᛜ "; font-family: var(--runic); color: var(--gold); }

/* Process numerals as runes of the futhark row */
.step { font: 400 1.6rem var(--runic); color: var(--gold); }
.step small { font: 500 0.75rem var(--mono); color: var(--muted); margin-left: 8px; vertical-align: middle; }
.process { border-top: 2px solid var(--gold); }
.process h3 { font-size: 1.6rem; }

.contact-card::before { background: repeating-linear-gradient(90deg, var(--ember) 0 18px, var(--gold) 18px 22px); height: 4px; }
.work-cat { color: var(--gold); }
.work-link { border-color: var(--ember); }
.contact-email { border-color: var(--ember); }
.ad-card { background: linear-gradient(150deg, var(--ember), #6e2412); }
.mock-hero { background: linear-gradient(160deg, var(--iron), #3b2a1e 60%, var(--ember)); }
.ridge { opacity: 0.8; }
.aurora i { opacity: 0.16; }
.aurora i:nth-child(1) { background: var(--ember); }
.aurora i:nth-child(2) { background: var(--gold); }
.footer .runes { display: block; margin-top: 4px; }

@media (max-width: 600px) {
  .rune-ring { width: 380px; height: 380px; margin: -190px 0 0 -190px; }
}

/* ── Mood: vignette, grain, fog, hearth glow ── */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 40;
  background: radial-gradient(ellipse at 50% 40%, transparent 45%, rgba(0, 0, 0, 0.6) 100%);
}
.grain {
  position: fixed; inset: -50%; z-index: 41; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(4) infinite;
}
@keyframes grain { 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-1%, 3%); } }
.aurora i { opacity: 0.1; }
.aurora i:nth-child(3) { background: var(--iron); opacity: 0.14; }
.fog { position: absolute; left: 50%; bottom: 40px; width: 100vw; height: 220px; transform: translateX(-50%); z-index: -1; pointer-events: none; overflow: hidden; }
.fog i { position: absolute; bottom: 0; width: 70%; height: 140px; border-radius: 50%; background: var(--iron); filter: blur(60px); opacity: 0.18; animation: fog 40s ease-in-out infinite alternate; }
.fog i:nth-child(1) { left: -10%; }
.fog i:nth-child(2) { right: -15%; bottom: 30px; animation-duration: 55s; animation-direction: alternate-reverse; }
@keyframes fog { to { transform: translateX(18vw); } }
.hero::after { content: ""; position: absolute; left: 50%; bottom: -80px; width: 70vw; height: 260px; transform: translateX(-50%); z-index: -1; background: radial-gradient(ellipse, color-mix(in srgb, var(--ember) 22%, transparent), transparent 70%); pointer-events: none; }
.hero h1 { text-shadow: 0 2px 30px rgba(0, 0, 0, 0.8); }
.rotator { text-shadow: 0 0 24px color-mix(in srgb, var(--ember) 55%, transparent); }
.rune-ring { opacity: 0.4; }
.service, .work-card, .contact-card { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03); }
.section-head h2, .contact h2 { color: var(--ink); }
.nav.scrolled, .nav.open { background: color-mix(in srgb, var(--bg) 88%, transparent); }
@media (max-width: 1024px) { .services { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 860px) { .services { grid-template-columns: 1fr; } }

/* ── Real app screenshots ── */
.phone-screen.shot { padding: 0; background: var(--surface); }
.phone-screen.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone { z-index: 2; }
.phone-2 { right: auto; left: 4%; top: auto; bottom: -10px; width: 150px; height: 300px; border-radius: 24px; padding: 7px; z-index: 1; animation-delay: -4s; }
.phone-2 .phone-screen { border-radius: 18px; }
.chip-2 { z-index: 3; bottom: 40px; right: 30%; }
.work-art { height: 280px; }
.art-shot {
  width: 150px; margin-top: 70px; align-self: start;
  padding: 6px; border-radius: 22px; background: var(--ink);
  box-shadow: var(--shadow); clip-path: none;
}
.art-shot img { width: 100%; aspect-ratio: 1080 / 2340; object-fit: cover; object-position: top; border-radius: 16px; }
@media (max-width: 600px) {
  .phone-2 { width: 116px; height: 232px; border-radius: 20px; left: 0; }
  .phone-2 .phone-screen { border-radius: 14px; }
}

/* Contact form status */
.botcheck { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { min-height: 1.4em; font-size: 0.95rem; color: var(--muted); }
.form-status[data-kind="ok"] { color: var(--gold); }
.form-status[data-kind="error"] { color: var(--ember); }
.contact-form .btn:disabled { opacity: 0.6; cursor: wait; }
