/* Tokens: C:\Claude\branding\stellnor\colors\tokens.css */
:root {
  --sn-navy: #0F1626;
  --sn-brass: #C9A46A;
  --sn-brass-deep: #B08A4E;
  --sn-cream: #F3ECE0;
  --sn-font: 'Nunito Sans', system-ui, sans-serif;
  --navy-2: #151E33;
  --line: rgba(243, 236, 224, .1);
  --muted: rgba(243, 236, 224, .72);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sn-navy);
  color: var(--sn-cream);
  font: 400 17px/1.6 var(--sn-font);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-weight: 700; line-height: 1.15; margin: 0; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.brand img { height: 36px; width: auto; }
.top-link { text-decoration: none; font-weight: 600; color: var(--sn-brass); padding: 10px 4px; }
.top-link:hover { text-decoration: underline; }

/* hero */
.hero { padding: clamp(56px, 12vw, 128px) 0 clamp(64px, 10vw, 112px); max-width: 760px; margin-left: max(16px, (100% - 1080px) / 2); }
.eyebrow { color: var(--sn-brass); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 18px; }
.hero h1 { font-size: clamp(38px, 7vw, 68px); letter-spacing: -.02em; margin-bottom: 22px; }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); margin: 0 0 34px; max-width: 620px; }
.fine { font-size: 14px; color: var(--muted); margin: 14px 0 0; }

.cta {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px;
  background: var(--sn-brass); color: var(--sn-navy);
  font-weight: 700; font-size: 17px; text-decoration: none; border-radius: 10px;
  transition: background .15s, transform .15s;
}
.cta:hover { background: #D6B47E; transform: translateY(-1px); }
.cta:focus-visible, .top-link:focus-visible { outline: 2px solid var(--sn-cream); outline-offset: 3px; }

/* sections */
section h2 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 32px; }
.services, .how { padding: 72px 0; border-top: 1px solid var(--line); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
@media (min-width: 960px) { /* 3 on top, 2 wider below — no empty slot */
  .grid { grid-template-columns: repeat(6, 1fr); }
  .service { grid-column: span 2; }
  .service:nth-child(n+4) { grid-column: span 3; }
}
.service { background: var(--navy-2); border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.service svg { width: 30px; height: 30px; fill: none; stroke: var(--sn-brass); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 16px; }
.service h3 { font-size: 20px; margin-bottom: 8px; }
.service p { margin: 0; color: var(--muted); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 28px; }
.steps .num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--sn-brass); color: var(--sn-brass); font-weight: 700; margin-bottom: 14px;
}
.steps h3 { font-size: 20px; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); }

.about {
  display: grid; grid-template-columns: 140px 1fr; gap: 36px; align-items: center;
  padding: 72px 0; border-top: 1px solid var(--line);
}
.about .photo { /* photo slot: swap the mark for Dave's photo later */
  width: 140px; height: 140px; border-radius: 50%; background: var(--navy-2);
  border: 1px solid var(--line); display: grid; place-items: center;
}
.about .photo img { width: 64px; }
.about h2 { margin-bottom: 14px; }
.about p { margin: 0 0 12px; color: var(--muted); max-width: 620px; }

.close { text-align: center; padding: 88px 0 96px; border-top: 1px solid var(--line); }
.close h2 { margin-bottom: 28px; }

.foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  padding: 28px 0 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted);
}
.foot a { color: var(--sn-brass); text-decoration: none; }
.foot .copy { margin-left: auto; }

@media (max-width: 640px) {
  .about { grid-template-columns: 1fr; gap: 22px; }
  .about .photo { width: 96px; height: 96px; }
  .about .photo img { width: 44px; }
  .cta { width: 100%; justify-content: center; }
  .foot .copy { margin-left: 0; }
}

/* fade-in: only when JS is on AND the visitor hasn't asked for less motion */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}
