/* Powers Computing — site styles (v3: cohesively DARK, footer-grade polish throughout)
   Brand tokens from brand/brand-kit.md (binding). The whole site is the brand dark system
   (charcoal #1B1F27 -> #0D0F13); amber does the heading/accent work, body in off-white.
   No light/paper sections — sections are separated by tonal shifts, hairlines, and spacing. */

:root {
  /* Charcoal / ink (the dark field) */
  --charcoal:   #1B1F27;   /* dark surface (top) */
  --charcoal-2: #0D0F13;   /* dark surface (deepest) */
  --field:      #11141A;   /* deepest field */

  /* Elevated dark surfaces (cards / panels on the dark field) */
  --surface:    #20242E;   /* raised panel */
  --surface-2:  #252A35;   /* panel hover / brighter */
  --surface-hi: #2C313D;   /* primary-ish raised */

  /* Amber */
  --amber-core: #E09A36;   /* FILL shapes / primary button */
  --amber-lt:   #F3C163;   /* amber-as-text on dark (headings, accents, AI pair) */

  /* Text on dark */
  --paper:    #F2F1EC;     /* primary body text on dark (warm off-white) */
  --white:    #F7F7F5;
  --muted:    #B7BCC6;     /* secondary text on dark (>=4.5:1 on charcoal) */
  --muted-2:  #8A9099;     /* tertiary / meta text on dark */

  /* Hairlines on dark */
  --hairline:    rgba(243,193,99,.16);  /* warm amber-tinted hairline (footer feel) */
  --hairline-2:  rgba(255,255,255,.08); /* neutral divider */

  /* Type */
  --font-head: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --maxw: 1080px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.30), 0 12px 34px rgba(0,0,0,.34);
  --header-h: 64px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--paper);
  /* One continuous dark field for the whole page; sections layer tone on top of this. */
  background: var(--charcoal-2);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: -0.01em; color: var(--white); }

a { color: var(--amber-lt); text-underline-offset: 3px; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* The amber "AI" easter-egg. Visual only — aria-label hides it from screen readers. */
.ai { color: var(--amber-lt); font-weight: 800; }

/* ---------- Skip link ---------- */
.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--amber-core); color: var(--charcoal-2); font-weight: 700;
  padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- Header / sticky nav (dark, footer-grade) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  /* Solid #0D0F13 to match the footer EXACTLY (Chris: make the footer color THE color).
     Amber hairline + warm shadow mirror the footer's top edge so header + footer bookend the page. */
  background: var(--charcoal-2); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(243,193,99,.16);
  box-shadow: 0 1px 0 rgba(224,154,54,.10);
}
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--white); flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; display: block; }
.brand .wordmark { font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; letter-spacing: -0.01em; white-space: nowrap; color: var(--white); }
.brand .wordmark .p, .brand .wordmark .c { color: var(--amber-lt); }

/* Primary (desktop) nav, centered between brand and actions */
.primary-nav { display: flex; gap: clamp(1rem, 2.2vw, 1.9rem); margin-inline: auto; }
.primary-nav a {
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  color: var(--muted); text-decoration: none; padding: .35rem 0;
  border-bottom: 2px solid transparent; transition: color .15s ease, border-color .15s ease;
}
.primary-nav a:hover { color: var(--amber-lt); text-decoration: none; }
.primary-nav a.is-active { color: var(--amber-lt); border-bottom-color: var(--amber-core); }

.header-actions { display: inline-flex; align-items: center; gap: .6rem; flex: 0 0 auto; }
.header-cta {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-head); font-weight: 700; font-size: .98rem;
  color: var(--amber-lt); text-decoration: none;
  padding: .5rem .85rem; border: 1.5px solid rgba(243,193,99,.45); border-radius: 999px;
  white-space: nowrap; transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.header-cta:hover { background: var(--amber-core); color: var(--charcoal-2); border-color: var(--amber-core); text-decoration: none; }

/* Hamburger toggle — hidden on desktop */
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 42px; height: 42px; padding: 0; border-radius: 10px;
  background: transparent; border: 1.5px solid var(--hairline-2); cursor: pointer;
}
.nav-toggle-bars { position: relative; display: block; width: 18px; height: 12px; }
.nav-toggle-bars i {
  position: absolute; left: 0; width: 18px; height: 2px; background: var(--paper); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease, top .2s ease;
}
.nav-toggle-bars i:nth-child(1) { top: 0; }
.nav-toggle-bars i:nth-child(2) { top: 5px; }
.nav-toggle-bars i:nth-child(3) { top: 10px; }
.nav-open .nav-toggle-bars i:nth-child(1) { top: 5px; transform: rotate(45deg); }
.nav-open .nav-toggle-bars i:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle-bars i:nth-child(3) { top: 5px; transform: rotate(-45deg); }

/* Mobile dropdown nav */
.mobile-nav { display: none; }
.mobile-nav[hidden] { display: none; }

@media (max-width: 719px) {
  .primary-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-cta .label { display: none; }
  .header-cta { padding: .5rem; }

  .mobile-nav {
    display: block; border-top: 1px solid var(--hairline-2);
    background: rgba(13,15,19,.96); backdrop-filter: saturate(140%) blur(10px);
  }
  .mobile-nav[hidden] { display: none; }
  .mobile-nav a {
    display: block; padding: .9rem var(--gutter);
    font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
    color: var(--paper); text-decoration: none; border-bottom: 1px solid var(--hairline-2);
  }
  .mobile-nav a:last-child { border-bottom: none; }
  .mobile-nav a:hover, .mobile-nav a.is-active { color: var(--amber-lt); }
  .mobile-nav a.is-active { background: rgba(224,154,54,.10); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1.02rem;
  padding: .85rem 1.5rem; border-radius: 999px; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer; transition: transform .06s ease, filter .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--amber-core); color: var(--charcoal-2); box-shadow: 0 8px 24px rgba(224,154,54,.22); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(247,247,245,.45); }
.btn-ghost:hover { background: var(--white); color: var(--charcoal-2); border-color: var(--white); }

/* ---------- Hero (dark) ---------- */
.hero {
  /* Starts at #0D0F13 so there's NO seam under the header. Amber radial keeps depth. */
  background:
    radial-gradient(1100px 520px at 80% 30%, rgba(224,154,54,.12), transparent 62%),
    linear-gradient(165deg, var(--charcoal-2) 0%, var(--charcoal) 55%, var(--charcoal-2) 100%);
}
.hero .wrap { padding-top: clamp(3rem, 8vw, 5.5rem); padding-bottom: clamp(3rem, 8vw, 5.5rem); }
.hero .eyebrow {
  font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--amber-lt); margin: 0 0 1rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  color: var(--white);
  max-width: 17ch;
}
.hero .lede {
  margin: 1.25rem 0 0; max-width: 52ch;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  color: var(--muted);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-meta { margin-top: 1.75rem; font-size: .92rem; color: var(--muted-2); }
/* Floating amber power-button mark — transparent SVG, NO container box. */
.hero-mark { display: none; }
@media (min-width: 860px) {
  /* Let the mark bleed ~20% off the right edge so it anchors the composition
     instead of floating like clip-art. clip the overflow at the section. */
  .hero { overflow: hidden; }
  .hero .wrap { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2.5rem; }
  .hero-mark {
    display: block; width: clamp(200px, 23vw, 300px); height: auto; justify-self: end;
    margin-right: clamp(-4rem, -5vw, -6rem);
    filter: drop-shadow(0 10px 34px rgba(224,154,54,.28));
  }
}

/* ---------- Sections (consistent dark; rhythm via tone + hairlines + spacing) ---------- */
section { padding-block: clamp(3rem, 6vw, 4.75rem); position: relative; }
/* ONE color system: every section sits on the same #0D0F13 base.
   Rhythm comes from cards + hairlines + spacing, NOT tonal bands. */
.band-raised { background: var(--charcoal-2); }
.section-divider { border-top: 1px solid var(--hairline-2); }

.section-head { max-width: 60ch; margin-bottom: 2rem; }
.section-head h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); color: var(--white); }
.section-head p { color: var(--muted); margin: .7rem 0 0; }
.kicker { font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--amber-lt); margin: 0 0 .6rem; }

/* ---------- Meet Christopher (owner) ---------- */
.owner { background: var(--charcoal-2); }
.owner-grid { display: grid; gap: clamp(1.5rem, 4vw, 2.75rem); align-items: start; }
@media (min-width: 820px) { .owner-grid { grid-template-columns: minmax(220px, 290px) 1fr; } }
.owner-photo { margin: 0; position: sticky; top: calc(var(--header-h) + 1.5rem); }
@media (max-width: 819px) { .owner-photo { position: static; } }
.owner-photo-ph {
  aspect-ratio: 4 / 5; width: 100%; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface) 0%, var(--field) 100%);
  border: 1px solid var(--hairline);
  display: grid; place-content: center; gap: .65rem; justify-items: center;
  color: var(--muted-2); box-shadow: var(--shadow);
}
.owner-photo-ph img { width: 76px; height: 76px; opacity: .95; }
.owner-photo-ph span { font-family: var(--font-head); font-weight: 500; font-size: .82rem; letter-spacing: .04em; }
.owner-photo-img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 5;
  object-fit: cover; object-position: 50% 25%;
  border-radius: var(--radius); border: 1px solid var(--hairline);
  box-shadow: var(--shadow);
}
.owner-photo figcaption { margin-top: .75rem; font-size: .9rem; color: var(--muted); font-family: var(--font-head); font-weight: 500; }
.owner-copy .kicker { margin-bottom: .6rem; }
.owner-copy h2 { font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.25rem); max-width: 24ch; margin-bottom: 1.1rem; color: var(--white); }
.owner-copy p { color: var(--paper); margin: 0 0 1.1rem; max-width: 62ch; }
.owner-copy strong { color: var(--white); font-weight: 600; }
.owner-copy .owner-sign { color: var(--muted); font-family: var(--font-head); font-weight: 500; margin-bottom: 0; }
.archive-link {
  display: inline-block; margin-left: .15rem; white-space: nowrap;
  font-family: var(--font-head); font-weight: 500; font-size: .92rem;
  color: var(--amber-lt); text-decoration: none; border-bottom: 1px dotted rgba(243,193,99,.5);
}
.archive-link:hover { text-decoration: none; border-bottom-color: var(--amber-lt); }

/* ---------- Historical relic (the REAL 2001 Blizzard Dynasty page, framed as a period browser) ---------- */
/* A single authentic full-page screenshot mounted in a period browser-window chrome:
   slim title bar (three dots + bwdynasty.com), a --surface mat the image sits IN, and a
   subtle amber top-edge that ties it to the brand. The screenshot itself is NOT recolored —
   only a light saturate/brightness so the 2001 blue doesn't blow out against the dark field. */
.relic {
  margin: 1.75rem 0 0;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(243,193,99,.2);
  overflow: hidden;
}
/* Period browser title bar */
.relic-bar {
  display: flex; align-items: center; gap: .6rem;
  padding: .6rem .9rem;
  border-bottom: 1px solid var(--hairline-2);
  background: var(--surface);
}
.relic-dots { display: inline-flex; gap: .4rem; flex: 0 0 auto; }
.relic-dots i {
  width: 11px; height: 11px; border-radius: 999px; display: block;
  background: var(--muted-2); opacity: .55;
}
.relic-url {
  font-family: var(--font-body);
  font-size: .82rem; color: var(--muted-2);
  letter-spacing: .01em;
}
/* The mat the screenshot sits IN — a recessed window with an inset edge. */
.relic-mat {
  background: var(--surface);
  padding: 10px;
}
.relic-shot {
  display: block;
  width: 100%; height: auto;
  border: 1px solid var(--hairline-2);
  border-radius: 4px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.45);
  /* Tame the 2001 blue against the dark field — NOT a recolor, just a touch of restraint. */
  filter: saturate(.9) brightness(.97);
}
.relic-cap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem .9rem;
  padding: .8rem .95rem .95rem;
}
.relic-label {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .9rem;
  letter-spacing: .01em;
  color: var(--muted);
}
.relic-cap .archive-link { margin-left: 0; }

.owner-textlink { margin: 1.25rem 0 0; }
.owner-textlink a {
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  color: var(--amber-lt); text-decoration: none;
}
.owner-textlink a:hover { text-decoration: underline; }

/* ---------- How I work (values + steps) ---------- */
.how { background: var(--charcoal-2); }
.values-strip {
  list-style: none; margin: 0 0 2rem; padding: 0;
  display: grid; gap: .75rem; grid-template-columns: 1fr;
}
@media (min-width: 640px) { .values-strip { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
.values-strip li {
  font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; color: var(--white);
  border-left: 3px solid var(--amber-core); padding: .4rem 0 .4rem 1rem;
}
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li {
  background: var(--surface);
  border: 1px solid var(--hairline); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.6rem 1.5rem;
}
.step-n {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 999px;
  background: var(--amber-core); color: var(--charcoal-2);
  font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; margin-bottom: 1.1rem;
}
.steps h3 { font-size: 1.14rem; margin-bottom: .45rem; color: var(--white); }
.steps p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ---------- AI in the open (the loud one) ---------- */
.ai-open { background: var(--charcoal-2); }
.ai-open .section-head h2 { color: var(--white); font-size: clamp(1.7rem, 1.3rem + 1.7vw, 2.5rem); max-width: 24ch; }
.ai-open .section-head p { color: var(--muted); max-width: 58ch; }
.ai-points { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1.75rem; }
@media (min-width: 760px) { .ai-points { grid-template-columns: repeat(3, 1fr); } }
.ai-point {
  border: 1px solid var(--hairline); border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow); padding: 1.5rem;
}
.ai-point h3 { color: var(--amber-lt); font-size: 1.14rem; margin-bottom: .45rem; }
.ai-point p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ---------- Contact reassurance line (melded from the old name band) ---------- */
.contact-note {
  margin: 1.1rem 0 0; max-width: 64ch; color: var(--muted);
  font-size: clamp(1rem, .98rem + 0.25vw, 1.12rem);
}
.contact-note strong { color: var(--amber-lt); font-family: var(--font-head); font-weight: 700; }

/* ---------- Services (problem-framed cards) ---------- */
.services { background: var(--charcoal-2); }
.cards { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 920px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface);
  border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.6rem; box-shadow: var(--shadow);
  transition: border-color .15s ease, transform .12s ease;
}
.card:hover { border-color: rgba(243,193,99,.4); transform: translateY(-2px); }
.card h3 { font-size: 1.18rem; margin-bottom: .45rem; color: var(--white); }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }
.card .dot { width: 40px; height: 40px; border-radius: 10px; background: rgba(224,154,54,.16); display: grid; place-items: center; margin-bottom: 1rem; }
.card .dot svg { width: 21px; height: 21px; }
/* Card icons: amber strokes on dark (override the on-light #B5751E baked into the SVGs). */
.card .dot svg [stroke] { stroke: var(--amber-lt); }

/* ---------- Contact ---------- */
.contact { background: var(--charcoal-2); }
.contact-inner { max-width: 780px; }
.contact .kicker { margin-bottom: .6rem; }
.contact h2 { color: var(--white); font-size: clamp(1.7rem, 1.3rem + 1.7vw, 2.5rem); max-width: 22ch; }
.contact-promise { color: var(--muted); margin: 1rem 0 0; max-width: 56ch; }
.contact-channels { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1.9rem; }
@media (min-width: 720px) { .contact-channels { grid-template-columns: repeat(3, 1fr); } }
.channel {
  display: flex; flex-direction: column; gap: .18rem;
  border: 1px solid var(--hairline); border-radius: var(--radius);
  background: var(--surface); padding: 1.35rem 1.4rem;
  text-decoration: none; color: var(--white); box-shadow: var(--shadow);
  transition: border-color .15s ease, transform .12s ease;
}
.channel:hover { text-decoration: none; border-color: rgba(243,193,99,.5); transform: translateY(-2px); }
.channel:active { transform: translateY(0); }
.channel-ico { width: 30px; height: 30px; color: var(--amber-lt); margin-bottom: .55rem; }
.channel-ico svg { width: 30px; height: 30px; }
.channel-label { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--white); }
.channel-sub { font-size: .9rem; color: var(--muted); }
/* Primary "Text me" card stays amber-FILLED; text inside is dark ink for legibility on amber. */
.channel-primary { background: var(--amber-core); border-color: var(--amber-core); box-shadow: 0 10px 28px rgba(224,154,54,.22); }
.channel-primary:hover { border-color: var(--amber-lt); filter: brightness(1.05); }
.channel-primary .channel-ico,
.channel-primary .channel-label { color: var(--charcoal-2); }
.channel-primary .channel-sub { color: #3A2C10; }
.contact-meta { margin: 1.8rem 0 0; font-size: .92rem; color: var(--muted-2); }

/* ---------- Footer (the north star) ---------- */
.site-footer { background: var(--charcoal-2); color: var(--muted); padding-block: 2.5rem; font-size: .9rem; border-top: 1px solid var(--hairline); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.site-footer a { color: var(--paper); }
.site-footer .foot-brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--white); font-family: var(--font-head); font-weight: 700; }
.site-footer .foot-brand img { width: 24px; height: 24px; }
.site-footer .foot-brand .p, .site-footer .foot-brand .c { color: var(--amber-lt); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.foot-nav a { color: var(--muted); text-decoration: none; }
.foot-nav a:hover { color: var(--white); text-decoration: underline; }
.foot-meta { color: var(--muted); }
.foot-meta a { color: var(--amber-lt); }
.foot-legal {
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; justify-content: space-between;
  margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--hairline-2);
  font-size: .82rem; color: var(--muted-2);
}
.foot-legal-nav { display: flex; gap: 1.25rem; }
.foot-legal-nav a { color: var(--muted-2); text-decoration: none; }
.foot-legal-nav a:hover { color: var(--white); text-decoration: underline; }

/* ---------- Standalone legal stub pages (dark) ---------- */
.legal-page { min-height: 60vh; }
.legal-page .wrap { padding-block: clamp(3rem, 8vw, 5rem); max-width: 720px; }
.legal-page h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); margin-bottom: 1rem; color: var(--white); }
.legal-page p { color: var(--muted); max-width: 60ch; }
.legal-page .back-link { display: inline-block; margin-top: 1.75rem; font-family: var(--font-head); font-weight: 600; }

/* ---------- Accessibility / motion ---------- */
:focus-visible { outline: 3px solid var(--amber-lt); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .channel, .card, .primary-nav a, .nav-toggle-bars i { transition: none; }
}
