/* ==========================================================================
   Lukesoft LLC — site styles
   ========================================================================== */

:root {
  --ink: #0B1420;
  --ink-2: #111D2C;
  --ink-deep: #070E17;
  --paper: #F7F4EE;
  --paper-2: #EFEADF;
  --card: #FFFFFF;
  --text: #16202C;
  --muted: #56606E;
  --on-dark: #E9EEF4;
  --on-dark-muted: #9DAABA;

  --sun: #FF6A3D;
  --sun-text: #B8431F;
  --gold: #FFC24B;
  --rose: #E23E6B;
  --gulf: #19B3A4;

  --line: rgba(22, 32, 44, 0.12);
  --line-dark: rgba(233, 238, 244, 0.12);

  --radius: 18px;
  --shadow: 0 1px 2px rgba(11, 20, 32, .06), 0 18px 40px -16px rgba(11, 20, 32, .22);

  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;

  --container: 1180px;
  --header-h: 72px;
}

/* Base ------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

:focus-visible {
  outline: 2px solid var(--sun);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

@media (min-width: 768px) {
  .container { width: min(100% - 64px, var(--container)); }
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--sun);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 16px; }

/* Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s, background-color .2s, border-color .2s, box-shadow .2s, opacity .2s;
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s;
}
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--sun);
  color: #1B0B05;
  box-shadow: 0 10px 28px -10px rgba(255, 106, 61, .7);
}
.btn-primary:hover { background: #FF7F57; transform: translateY(-1px); }

.btn-ghost {
  color: var(--on-dark);
  border-color: rgba(233, 238, 244, .24);
}
.btn-ghost:hover { border-color: rgba(233, 238, 244, .6); background: rgba(255, 255, 255, .04); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); transform: translateY(-1px); }

.btn-sm { padding: 11px 18px; font-size: .92rem; }

.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* Header ----------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  color: var(--on-dark);
  transition: background-color .3s, box-shadow .3s;
}

.site-header.scrolled,
.menu-open .site-header {
  background: rgba(11, 20, 32, .86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 var(--line-dark);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand-mark { width: 32px; height: 32px; flex: none; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-menu a:not(.btn) {
  font-size: .95rem;
  font-weight: 500;
  color: var(--on-dark-muted);
  text-decoration: none;
  transition: color .2s;
}
.nav-menu a:not(.btn):hover { color: #fff; }

.nav-toggle { display: none; }

@media (max-width: 880px) {
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 10px;
    margin-right: -10px;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
  }
  .nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .3s;
  }
  .menu-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .nav-menu {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 24px;
    background: var(--ink);
    border-bottom: 1px solid var(--line-dark);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .menu-open .nav-menu { opacity: 1; visibility: visible; transform: none; }

  .nav-menu a:not(.btn) {
    padding: 14px 4px;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line-dark);
  }
  .nav-menu .btn { margin-top: 18px; justify-content: center; }
}

/* Hero ------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(40px, 7vw, 88px)) 0 clamp(72px, 9vw, 120px);
  background: var(--ink);
  color: var(--on-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55% 60% at 78% 38%, rgba(255, 106, 61, .16), transparent 70%),
    radial-gradient(45% 55% at 5% 100%, rgba(25, 179, 164, .14), transparent 70%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 25% 30%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 25% 30%, #000, transparent 75%);
  opacity: .45;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gulf);
  box-shadow: 0 0 0 4px rgba(25, 179, 164, .2);
}

.hero h1 {
  margin: 24px 0;
  font-size: clamp(2.6rem, 6.2vw, 4.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--gold), var(--sun) 50%, var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 34em;
  font-size: clamp(1.06rem, 1.4vw, 1.2rem);
  color: var(--on-dark-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  font-size: .95rem;
  color: var(--on-dark-muted);
}
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--gulf);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Entrance animation (CSS only, so the hero never flashes) */
.hero-copy > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-copy > :nth-child(5) { animation-delay: .32s; }
.hero-art { animation: fade 1.2s .2s ease both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade {
  from { opacity: 0; transform: scale(.97); }
  to { opacity: 1; transform: none; }
}

.hero-art {
  position: relative;
  width: 100%;
  max-width: 520px;
  justify-self: end;
}

.scene { width: 100%; height: auto; }

.sun-glow { opacity: .5; animation: glow 6s ease-in-out infinite alternate; }
@keyframes glow { to { opacity: .8; } }

.reflect rect {
  transform-box: fill-box;
  transform-origin: center;
  animation: shimmer 3.6s ease-in-out infinite alternate;
}
.reflect rect:nth-child(2) { animation-delay: -.8s; }
.reflect rect:nth-child(3) { animation-delay: -1.6s; }
.reflect rect:nth-child(4) { animation-delay: -2.4s; }
.reflect rect:nth-child(5) { animation-delay: -3.2s; }
@keyframes shimmer { to { transform: scaleX(.82); } }

.swell path { animation: swell 7s linear infinite; }
.swell path:nth-child(2) { animation-duration: 9s; animation-direction: reverse; }
.swell path:nth-child(3) { animation-duration: 12s; }
@keyframes swell { to { transform: translateX(60px); } }

.stars circle { animation: twinkle 3s ease-in-out infinite alternate; }
.stars circle:nth-child(2n) { animation-delay: -1.5s; }
@keyframes twinkle { from { opacity: .2; } to { opacity: .8; } }

.code-card {
  position: absolute;
  left: -12%;
  bottom: -9%;
  width: min(82%, 370px);
  margin: 0;
  background: rgba(17, 29, 44, .88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .65);
  font-family: var(--font-mono);
  font-size: .78rem;
}

.code-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-dark);
}
.code-bar i { width: 10px; height: 10px; border-radius: 50%; background: #FF5F57; }
.code-bar i:nth-child(2) { background: #FEBC2E; }
.code-bar i:nth-child(3) { background: #28C840; }
.code-bar span { margin-left: 8px; font-size: .72rem; color: var(--on-dark-muted); }

.code-card pre {
  margin: 0;
  padding: 14px 16px 16px;
  overflow-x: auto;
  line-height: 1.75;
  color: #CFD8E3;
}
.tk-k { color: #FF8A65; }
.tk-s { color: #7FDBCA; }
.tk-f { color: #FFC24B; }
.tk-p { color: #9CC4FF; }
.tk-c { color: #7A8BA0; font-style: italic; }

.coords {
  position: absolute;
  top: 6%;
  right: -4px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  color: var(--on-dark-muted);
  writing-mode: vertical-rl;
  opacity: .8;
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-art { justify-self: center; max-width: 460px; }
  .code-card { left: -2%; }
}

@media (max-width: 520px) {
  .code-card { left: 0; width: 92%; font-size: .72rem; }
  .coords { display: none; }
}

/* Sections --------------------------------------------------------------- */

.section { padding: clamp(80px, 10vw, 136px) 0; }
.section-alt { background: var(--paper-2); }

.section-dark {
  position: relative;
  background: var(--ink);
  color: var(--on-dark);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(44px, 6vw, 68px);
}

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sun-text);
}
.kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
}
.section-dark .kicker,
.contact .kicker { color: var(--sun); }

.section-head h2,
.why-intro h2 {
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
}

.section-head p { font-size: 1.125rem; color: var(--muted); }
.section-dark .section-head p { color: var(--on-dark-muted); }

/* Services cards */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  position: relative;
  overflow: hidden;
  padding: 30px 28px 34px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .3s, box-shadow .3s, border-color .3s, opacity .7s;
}

.card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--sun), var(--rose));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}

.card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--shadow);
}
.card:hover::after { transform: scaleX(1); }

.card-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  transition: background-color .3s, color .3s, border-color .3s;
}
.card:hover .card-icon { background: var(--ink); color: var(--gold); border-color: var(--ink); }

.card-icon svg,
.principle-icon svg,
.contact-meta svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 { margin-bottom: 10px; font-size: 1.35rem; }
.card p { font-size: 1rem; color: var(--muted); }

@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

/* Process steps */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 22px;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--sun), var(--gulf) 70%, transparent);
  opacity: .6;
}

.step { position: relative; }

.step-num {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 28px;
  border: 1px solid rgba(255, 106, 61, .55);
  border-radius: 50%;
  background: var(--ink);
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--sun);
}

.step h3 { margin-bottom: 10px; font-size: 1.4rem; }
.step p { font-size: 1rem; color: var(--on-dark-muted); }

@media (max-width: 880px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before {
    top: 22px;
    bottom: 60px;
    left: 22px;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, var(--sun), var(--gulf));
  }
  .step {
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 22px;
    padding-bottom: 36px;
  }
  .step:last-child { padding-bottom: 0; }
  .step-num { grid-row: span 2; margin: 0; }
  .step h3 { padding-top: 8px; }
}

/* Why */

.why-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(44px, 7vw, 104px);
  align-items: start;
}

.why-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.why-intro > p:not(.kicker) { font-size: 1.125rem; color: var(--muted); }
.why-intro .serving {
  margin-top: 18px;
  padding-left: 16px;
  border-left: 2px solid var(--gulf);
  font-size: 1rem;
}
.why-intro .btn { margin-top: 32px; }

.principles { border-top: 1px solid var(--line); }

.principle {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 22px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.principle-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--sun) 60%, var(--rose));
  color: var(--ink);
}

.principle h3 { margin-bottom: 6px; font-size: 1.3rem; }
.principle p { color: var(--muted); }

@media (max-width: 880px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-intro { position: static; }
}

/* Stack */

.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stack-group {
  padding: 26px 24px 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.stack-group h3 {
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.3;
}

@media (max-width: 1024px) { .stack-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .stack-grid { grid-template-columns: 1fr; } }

/* Contact ---------------------------------------------------------------- */

.contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: var(--on-dark);
}

.contact::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -280px;
  right: -260px;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 106, 61, .26), transparent 65%);
}

.contact::after {
  content: "";
  position: absolute;
  z-index: -1;
  bottom: -320px;
  left: -260px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(25, 179, 164, .16), transparent 65%);
}

.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(44px, 6vw, 88px);
  align-items: start;
}

.contact-intro h2 {
  margin-bottom: 20px;
  font-size: clamp(2.3rem, 5vw, 3.9rem);
  letter-spacing: -0.03em;
}
.contact-intro > p:not(.kicker) { font-size: 1.125rem; color: var(--on-dark-muted); }

.contact-meta {
  display: grid;
  gap: 20px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}
.contact-meta li { display: flex; align-items: flex-start; gap: 14px; }
.contact-meta svg { flex: none; margin-top: 2px; color: var(--gold); }
.contact-meta strong { display: block; font-weight: 600; color: var(--on-dark); }
.contact-meta span { font-size: .95rem; color: var(--on-dark-muted); }

.form {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: clamp(24px, 4vw, 40px);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line-dark);
  border-radius: 22px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.field { display: grid; gap: 8px; align-content: start; }
.field-full { grid-column: 1 / -1; }

.field label { font-size: .9rem; font-weight: 600; color: var(--on-dark); }
.field label small { font-size: .85em; font-weight: 500; color: var(--on-dark-muted); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(233, 238, 244, .16);
  border-radius: 12px;
  background: rgba(7, 14, 23, .55);
  color: var(--on-dark);
  font: inherit;
  font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}

.field textarea { min-height: 150px; resize: vertical; }

.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%239DAABA' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.field select option { background: var(--ink-2); color: var(--on-dark); }

.field ::placeholder { color: #6E7D8F; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sun);
  box-shadow: 0 0 0 4px rgba(255, 106, 61, .18);
}

.field.invalid input,
.field.invalid textarea { border-color: #FF8A73; }

.form-footer {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap-reverse;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 6px;
}

.form-status { flex: 1 1 220px; min-height: 1.5em; font-size: .95rem; color: var(--on-dark-muted); }
.form-status[data-state="error"] { color: #FF9C85; }

@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .form { grid-template-columns: 1fr; }
  .form-footer .btn { width: 100%; justify-content: center; }
}

/* Footer ----------------------------------------------------------------- */

.site-footer {
  padding: 60px 0 40px;
  background: var(--ink-deep);
  color: var(--on-dark-muted);
  font-size: .95rem;
}
.site-footer .brand { color: var(--on-dark); }

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}
.footer-brand p { max-width: 32ch; margin-top: 14px; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.footer-nav a { text-decoration: none; transition: color .2s; }
.footer-nav a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  font-size: .88rem;
}

/* Simple pages (404, thanks) -------------------------------------------- */

.simple-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--ink);
  color: var(--on-dark);
}
.simple-page .site-header { position: static; }

.simple-main {
  display: grid;
  place-items: center;
  padding: 48px 0 80px;
  text-align: center;
}
.simple-main .sun-badge {
  width: 120px;
  height: 120px;
  margin: 0 auto 32px;
}
.simple-main h1 { margin-bottom: 16px; font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -0.03em; }
.simple-main p { max-width: 32em; margin: 0 auto 32px; font-size: 1.125rem; color: var(--on-dark-muted); }

/* Scroll reveal ---------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}
.js .reveal.in { opacity: 1; transform: none; }
.js .card.reveal.in:hover { transform: translateY(-4px); }

.cards > :nth-child(3n + 2),
.stack-grid > :nth-child(2),
.steps > :nth-child(2) { transition-delay: .08s; }
.cards > :nth-child(3n + 3),
.stack-grid > :nth-child(3),
.steps > :nth-child(3) { transition-delay: .16s; }
.stack-grid > :nth-child(4),
.steps > :nth-child(4) { transition-delay: .24s; }
.card.in:hover { transition-delay: 0s; }

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