/* ───────────────────────────────────────────────────────────
   anglworks.com — the AI automation studio
   Vibe: "doctor technical / whitepaper" — serious, credible, editorial.
   Navy/Silver base (distinct from the warm personal hub's cream/gold/brown).
   Display serif headlines (Source Serif 4) + IBM Plex Sans body; JetBrains
   Mono kept for the /kicker slash-labels only, where it reads as the actual
   system's own voice, not the studio's marketing voice.
   Makeover 2026-08-01 (grilled with Nathan — see project-log for the brief):
   dropped the purple/red cool-startup palette and Space Grotesk everywhere,
   kept mono confined to kickers, reworked the nav/footer brand treatment.
   ─────────────────────────────────────────────────────────── */

:root {
  --bg:        #eef1f5;   /* navy-tinted silver base */
  --surface:   #ffffff;   /* cards */
  --surface-2: #e4e8ee;   /* alt sections */
  --ink:       #16202f;   /* deep navy-black */
  --ink-soft:  #57647a;   /* slate */
  --line:      #d2d8e2;   /* hairline */

  --accent:      #22456f;  /* NAVY — primary interactive */
  --accent-soft: #4a719e;
  --accent-dim:  #163254;
  --red:         #7c8798;  /* SILVER-BLUE — secondary accent (was red) */
  --red-soft:    #a3acb9;
  --silver:      #99a2b3;  /* metallic silver-grey */

  --maxw: 980px;
  --narrow: 640px;
  --pad: clamp(1.25rem, 5vw, 2.5rem);

  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --font-display: "Source Serif 4", Georgia, serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-wordmark: "Cormorant Garamond", Georgia, serif;

  --shadow:   0 1px 3px rgba(20,25,40,0.06), 0 1px 2px rgba(20,25,40,0.04);
  --shadow-2: 0 8px 26px rgba(20,35,55,0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(55% 50% at 100% 0%, rgba(34,69,111,0.07) 0%, transparent 60%),
    radial-gradient(50% 45% at 0% 100%, rgba(124,135,152,0.06) 0%, transparent 60%),
    var(--bg);
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dim); }

.wrap { max-width: var(--maxw); margin: 0 auto; }
.wrap--narrow { max-width: var(--narrow); }

/* ── Brand mark ────────────────────────────────────────── */
.brand { display: inline-flex; align-items: baseline; gap: 0.18rem; }
.brand__logo-wrap { display: inline-flex; align-items: center; justify-content: center; }
.brand__name { display: inline-flex; align-items: baseline; gap: 0; } /* "ANGLWorks", no gap */
.brand__mark {
  font-family: var(--font-wordmark);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  font-size: 1.02rem;
}
.brand__works {
  font-family: var(--font-wordmark);
  font-weight: 400;
  color: var(--silver);
  font-size: 1.02rem;
}
/* Wordmark centered independently in the nav bar; logo stays put in its
   normal flex position (nav is `position: sticky`, a positioning context). */
.nav .brand__logo-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
/* Footer shows the wordmark only (left-aligned, its natural position) — no logo. */
.footer .brand__logo-wrap { display: none; }

/* ── Kicker (mono, slash-command tint) ─────────────────── */
.kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ── Nav ───────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0.9rem var(--pad);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__links { display: flex; gap: clamp(1rem, 3vw, 1.8rem); margin-left: auto; }
.nav__links a { color: var(--ink-soft); font-size: 0.94rem; }
.nav__links a:hover { color: var(--ink); }
.nav__cta { margin-left: 0.4rem; }
@media (max-width: 620px) {
  .nav__links { gap: 1rem; }
  .nav__cta { display: none; }
}

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.62rem 1.15rem;
  border-radius: 8px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  transition: transform 0.16s, border-color 0.16s, background 0.16s, color 0.16s, box-shadow 0.16s, filter 0.16s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--accent {
  /* purple → red gradient: shows both signature colors in one element */
  background: linear-gradient(120deg, var(--accent) 0%, var(--red) 100%);
  border-color: transparent;
  color: #fff;
  font-weight: 700;
}
.btn--accent:hover { filter: brightness(1.07); box-shadow: var(--shadow-2); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--silver); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  padding: clamp(3.75rem, 10.5vw, 7rem) var(--pad);
  background:
    radial-gradient(60% 80% at 6% -12%, rgba(124,135,152,0.20) 0%, transparent 55%),
    radial-gradient(62% 82% at 100% 2%, rgba(34,69,111,0.24) 0%, transparent 55%),
    radial-gradient(85% 60% at 55% 120%, rgba(153,162,179,0.20) 0%, transparent 60%),
    transparent;
  border-bottom: 1px solid var(--line);
}
.hero__h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 18ch;
  color: var(--ink);
}
.hero__sub {
  margin: 1.4rem 0 0;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 52ch;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }

/* ── The edge / differentiator band (the one dark "moment") ─ */
.edge {
  background:
    radial-gradient(55% 90% at 12% 0%, rgba(34,69,111,0.40) 0%, transparent 60%),
    radial-gradient(52% 88% at 100% 100%, rgba(124,135,152,0.30) 0%, transparent 60%),
    radial-gradient(70% 60% at 60% 50%, rgba(153,162,179,0.10) 0%, transparent 70%),
    var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.edge__inner { margin: 0 auto; }
.kicker--on-dark { color: var(--accent-soft); }
.edge__headline {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 3.1rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 auto 1.6rem;
  max-width: 20ch;
  color: #fff;
}
.edge__accent {
  background: linear-gradient(120deg, var(--accent-soft) 0%, var(--red-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.edge__body {
  font-size: clamp(1.02rem, 1.8vw, 1.2rem);
  line-height: 1.65;
  color: #c9cdda;
  max-width: 56ch;
  margin: 0 auto;
}

/* ── Dark section (conviction band: /principles) ───────── */
.section--dark {
  background:
    radial-gradient(50% 82% at 100% 0%, rgba(34,69,111,0.24) 0%, transparent 60%),
    radial-gradient(46% 78% at 0% 100%, rgba(124,135,152,0.16) 0%, transparent 60%),
    var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section--dark .section__title { color: #fff; }
.section--dark .kicker { color: var(--accent-soft); }
.section--dark .card {
  background: rgba(255,255,255,0.045);
  border-color: rgba(255,255,255,0.12);
  box-shadow: none;
}
.section--dark .card:hover {
  border-color: var(--accent-soft);
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
  box-shadow: none;
}
.section--dark .card__title { color: #fff; }
.section--dark .card__body { color: #c9cdda; }
.section--dark .scroller__arrow {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
  color: #fff;
}
.section--dark .scroller__arrow:hover { background: rgba(255,255,255,0.14); color: #fff; }

/* ── Sections ──────────────────────────────────────────── */
.section { padding: clamp(3.5rem, 9vw, 6rem) var(--pad); }
.section--alt {
  background:
    radial-gradient(48% 80% at 0% 0%, rgba(124,135,152,0.11) 0%, transparent 55%),
    radial-gradient(50% 74% at 100% 100%, rgba(34,69,111,0.13) 0%, transparent 55%),
    var(--surface-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 2rem;
  color: var(--ink);
}
.section__lead { color: var(--ink-soft); margin: -1.2rem 0 2rem; max-width: 48ch; }

/* Centered kicker + header for /principles and /prove-it. */
#principles .kicker, #prove-it .kicker { display: block; text-align: center; }
#principles .section__title, #prove-it .section__title { text-align: center; }

/* ── Service cards ─────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.card:hover { border-color: var(--accent-soft); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.card__title { font-family: var(--font-display); font-size: 1.18rem; font-weight: 600; margin: 0 0 0.6rem; color: var(--ink); }
.card__body { color: var(--ink-soft); margin: 0; font-size: 0.97rem; }
.card__body em { color: var(--red); font-style: normal; font-weight: 500; }

/* ── Process steps (numbered journey) ──────────────────── */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.6rem 1.1rem;
}
.step { position: relative; }
.step__num {
  display: inline-grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(120deg, var(--accent) 0%, var(--red) 100%);
  box-shadow: var(--shadow);
  margin-bottom: 0.9rem;
}
.step__title { font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; margin: 0 0 0.5rem; color: var(--ink); }
.step__body { color: var(--ink-soft); margin: 0; font-size: 0.93rem; line-height: 1.55; }
@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; gap: 1.3rem; }
}

/* ── Horizontal scroller (Netflix-style row) ───────────── */
.scroller { position: relative; }
.scroller__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 0.4rem 0.2rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.scroller__track::-webkit-scrollbar { display: none; }
.scroller__track > .card {
  flex: 0 0 calc((100% - 2rem) / 3);   /* exactly 3 visible; 4th is a scroll away */
  scroll-snap-align: start;
}
.scroller__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--accent);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.16s, box-shadow 0.16s, color 0.16s;
}
.scroller__arrow:hover { box-shadow: var(--shadow-2); color: var(--accent-dim); transform: translateY(-50%) scale(1.05); }
.scroller__arrow--left { left: -12px; }
.scroller__arrow--right { right: -12px; }
@media (max-width: 860px) {
  .scroller__track > .card { flex: 0 0 calc((100% - 1rem) / 2); }  /* 2 visible */
}
@media (max-width: 560px) {
  .scroller__track > .card { flex: 0 0 84%; }                      /* ~1 visible, swipe */
  .scroller__arrow { display: none; }
}

/* ── Proof / case study ────────────────────────────────── */
.proof {
  background:
    radial-gradient(55% 120% at 100% 0%, rgba(34,69,111,0.14) 0%, transparent 55%),
    radial-gradient(45% 110% at 0% 100%, rgba(124,135,152,0.10) 0%, transparent 55%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow);
}
.proof__tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red);
}
.proof__title { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 600; margin: 0.5rem 0 1rem; color: var(--ink); }
.proof__body { color: var(--ink-soft); margin: 0 0 1.8rem; max-width: 60ch; }
.proof__note { color: var(--accent); font-size: 0.85rem; }
.proof__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; }
.stat { border-top: 2px solid var(--accent); padding-top: 0.9rem; }
.stat__num { display: block; font-family: "Inter", system-ui, sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--accent); }
.stat__label { display: block; color: var(--ink-soft); font-size: 0.85rem; margin-top: 0.2rem; }

/* ── Intake form ───────────────────────────────────────── */
.intake { display: flex; flex-direction: column; gap: 0.7rem; }
.intake__row { display: flex; gap: 0.7rem; }
.intake__field {
  width: 100%;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.97rem;
  transition: border-color 0.16s, box-shadow 0.16s;
}
.intake__field::placeholder { color: var(--ink-soft); }
.intake__field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(34,69,111,0.16); }
.intake__textarea { resize: vertical; min-height: 120px; }
.intake__submit { align-self: flex-start; cursor: pointer; margin-top: 0.3rem; }
.intake__note { font-size: 0.8rem; color: var(--ink-soft); margin: 0.2rem 0 0; }
.hp { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 480px) { .intake__row { flex-direction: column; } }

/* ── Footer ────────────────────────────────────────────── */
.footer { padding: 2.4rem var(--pad); border-top: 1px solid var(--line); }
.footer__inner { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; justify-content: space-between; }
.footer__meta { font-family: "IBM Plex Sans", system-ui, sans-serif; color: var(--ink-soft); font-size: 0.82rem; }

/* ── Draft markers ─────────────────────────────────────── */
.is-draft { opacity: 1; }

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

/* ── Logo mark (2026-07-20) ── */
.brand { align-items: center; }
.brand__logo { height: 1.35em; width: auto; display: block; margin-right: 0.1rem; }
