/* =================================================================
   Talk Arc LLC — site styles
   Design concept: "The Arc" — communication bends into value.
   Signature: a sweeping arc, cool (talk) -> warm (value).
   Type: Space Grotesk (display) / Inter (body) / IBM Plex Mono (records)
   ================================================================= */

:root {
  /* palette */
  --ink:      #161A22;   /* primary text, warm near-black */
  --deep:     #1C2B4A;   /* brand deep navy */
  --blue:     #356596;   /* cool — communication (arc origin) */
  --gold:     #B5862E;   /* warm — value (arc terminus); decorative / large-text use */
  --gold-lt:  #E0B65A;
  --gold-text:#8A6420;   /* AA-safe gold for small / normal-size text (~5:1 on white) */
  --surface:  #F5F6F8;   /* cool off-white page */
  --card:     #FFFFFF;
  --muted:    #5B6472;   /* secondary text */
  --line:     #E4E7EC;   /* hairline */
  --line-2:   #D5DAE2;

  /* type */
  --display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --body:    "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  /* scale */
  --maxw: 1120px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 14px;
  --radius-sm: 9px;

  --shadow: 0 1px 2px rgba(20,24,34,.04), 0 12px 32px -16px rgba(20,24,34,.18);
  --shadow-lg: 0 30px 70px -30px rgba(28,43,74,.35);

  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--surface);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--deep); text-decoration: none; }
a:hover { color: var(--gold-text); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}

p { margin: 0 0 1.1em; }
:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

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

/* ---- eyebrow / record label (mono): structure encodes "verified record" ---- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
}

/* ============================ HEADER ============================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand .word {
  font-family: var(--display);
  font-weight: 600; font-size: 19px; letter-spacing: -0.01em;
}
.brand .word b { font-weight: 600; }
.brand .word span { color: var(--gold); }

.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: 15px; font-weight: 500; color: var(--muted);
  position: relative; padding: 6px 0;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--gold)); border-radius: 2px;
}
.nav-cta {
  font-family: var(--body); font-size: 15px; font-weight: 600;
  color: #fff; background: var(--deep);
  padding: 10px 18px; border-radius: 999px;
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.nav-cta:hover { color: #fff; background: var(--ink); transform: translateY(-1px); }

.nav-toggle { display: none; }
.mobile-menu { display: none; } /* base: hidden until mobile breakpoint — fixes 900–901px gap */

/* skip link — off-screen until keyboard focus */
.skip-link {
  position: absolute; left: 12px; top: -56px; z-index: 100;
  background: var(--deep); color: #fff; padding: 11px 18px; border-radius: 8px;
  font-weight: 600; font-size: 15px; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

/* ============================ BUTTONS ============================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body); font-weight: 600; font-size: 16px;
  padding: 14px 26px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.btn-primary { background: var(--deep); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { color: #fff; background: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { color: var(--ink); border-color: var(--deep); transform: translateY(-2px); }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ============================ HERO ============================ */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 120px) 0 clamp(64px, 10vw, 132px); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(40px, 6.4vw, 76px);
  letter-spacing: -0.03em; font-weight: 600;
}
.hero h1 .grad,
.grad {
  background: linear-gradient(105deg, var(--blue) 12%, var(--gold) 92%);
  color: var(--deep); /* solid fallback if background-clip:text is unsupported */
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-lead {
  font-size: clamp(17px, 2vw, 20px); color: var(--muted);
  max-width: 33ch; margin-top: 26px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-meta {
  margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 26px 40px;
}
.hero-meta dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 4px; }
.hero-meta dd { margin: 0; font-weight: 600; font-size: 15px; }

/* arc signature */
.hero-arc { position: relative; aspect-ratio: 1 / 1; width: 100%; }
.hero-arc svg { width: 100%; height: 100%; overflow: visible; }
.arc-path { fill: none; stroke-linecap: round; }
.arc-draw {
  stroke-dasharray: var(--len, 900);
  stroke-dashoffset: var(--len, 900);
  animation: arc-draw 2.1s var(--ease) .25s forwards;
}
@keyframes arc-draw { to { stroke-dashoffset: 0; } }
.arc-node { opacity: 0; animation: arc-pop .5s var(--ease) forwards; }
.arc-node.n1 { animation-delay: .35s; }
.arc-node.n2 { animation-delay: 2.0s; }
@keyframes arc-pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
.arc-label { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; fill: var(--muted); opacity: 0; animation: arc-pop .6s var(--ease) forwards; }
.arc-label.l1 { animation-delay: .6s; } .arc-label.l2 { animation-delay: 2.2s; }

@media (prefers-reduced-motion: reduce) {
  .arc-draw { animation: none; stroke-dashoffset: 0; }
  .arc-node, .arc-label { animation: none; opacity: 1; }
}

/* ============================ SECTIONS ============================ */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-head { max-width: 60ch; margin-bottom: clamp(34px, 5vw, 56px); }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); }
.section-head p { color: var(--muted); font-size: 18px; margin-top: 16px; }

/* arc divider instead of a straight rule */
.arc-rule { height: 40px; }
.arc-rule svg { width: 100%; height: 100%; }
.arc-rule path { fill: none; stroke: var(--line-2); stroke-width: 1.4; }

/* focus cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px 32px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.card .idx { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--gold-text); }
.card h3 { font-size: 21px; margin: 16px 0 10px; }
.card p { color: var(--muted); font-size: 15.5px; margin: 0; }
.card .ico { width: 30px; height: 30px; color: var(--blue); margin-bottom: 18px; }

/* approach / principles list */
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.principle { background: var(--card); padding: 30px 30px 32px; }
.principle h3 { font-size: 19px; display: flex; align-items: baseline; gap: 12px; }
.principle h3 .n { font-family: var(--mono); font-size: 13px; color: var(--blue); font-weight: 500; }
.principle p { color: var(--muted); font-size: 15.5px; margin: 12px 0 0; }

/* record block — verified-record aesthetic (mono) */
.record {
  background: var(--deep); color: #E8ECF3; border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-lg);
  background-image: radial-gradient(120% 140% at 100% 0%, rgba(181,134,46,.16), transparent 55%);
}
.record h2 { color: #fff; }
.record .eyebrow { color: var(--gold-lt); }
.record .eyebrow::before { background: linear-gradient(90deg, var(--gold-lt), transparent); }
.record-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 28px;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.10); border-radius: 10px; overflow: hidden; }
.record-grid .row { background: var(--deep); padding: 18px 22px; }
.record-grid .k { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: #93A4C2; }
.record-grid .v { font-weight: 600; font-size: 16px; margin-top: 5px; color: #fff; }
.record-grid .v.mono { font-family: var(--mono); font-weight: 500; letter-spacing: .01em; }
.record-note { font-size: 13px; color: #93A4C2; margin: 18px 0 0; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(36px, 6vw, 64px); text-align: center; }
.cta-band h2 { font-size: clamp(26px, 3.6vw, 40px); }
.cta-band p { color: var(--muted); max-width: 52ch; margin: 16px auto 30px; }
.cta-band .glow { position: absolute; inset: auto -10% -60% -10%; height: 60%; background: radial-gradient(60% 100% at 50% 0%, rgba(53,101,150,.16), transparent 70%); pointer-events: none; }

/* generic prose page (about/legal) */
.page-hero { padding: clamp(54px, 8vw, 96px) 0 clamp(28px, 4vw, 44px); }
.page-hero h1 { font-size: clamp(34px, 5vw, 58px); }
.page-hero p { color: var(--muted); font-size: 19px; max-width: 60ch; margin-top: 18px; }

.prose { max-width: 760px; }
.prose h2 { font-size: clamp(22px, 3vw, 30px); margin: 48px 0 14px; }
.prose h3 { font-size: 19px; margin: 30px 0 8px; }
.prose p, .prose li { color: #2B313C; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 8px; }
.prose .meta { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.prose a:hover { text-decoration-color: var(--gold); }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 60px); align-items: start; }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow); }
.contact-item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: 0; }
.contact-item .k { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.contact-item .v { font-size: 17px; font-weight: 600; margin-top: 6px; }
.contact-item .v a { color: var(--ink); }
.contact-item .v a:hover { color: var(--gold-text); }
.contact-item address { font-style: normal; font-weight: 500; color: #2B313C; line-height: 1.6; }

/* ============================ FOOTER ============================ */
.site-footer { background: var(--ink); color: #AEB6C4; margin-top: clamp(40px, 7vw, 96px); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: clamp(48px, 6vw, 72px) 0 44px; }
.footer-brand .word { font-family: var(--display); font-size: 20px; font-weight: 600; color: #fff; display: inline-flex; gap: 10px; align-items: center; }
.footer-brand .word span { color: var(--gold-lt); }
.footer-brand p { margin-top: 16px; font-size: 14.5px; max-width: 36ch; }
.footer-col h4 { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: #7E8AA0; font-weight: 500; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { color: #AEB6C4; font-size: 15px; }
.footer-col a:hover { color: #fff; }
.footer-col address { font-style: normal; font-size: 14.5px; line-height: 1.7; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0 34px; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; align-items: center; }
.footer-bottom p { margin: 0; font-size: 13.5px; color: #7F8899; }
.footer-bottom .legal { font-family: var(--mono); font-size: 12px; letter-spacing: .03em; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-arc { max-width: 380px; margin: 6px auto 0; order: -1; }
  .cards { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .record-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .nav-links, .nav > .nav-cta { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 10px;
    background: var(--card); cursor: pointer;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    content: ""; display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: .25s var(--ease);
  }
  .nav-toggle span::before { position: absolute; top: -6px; } .nav-toggle span::after { position: absolute; top: 6px; }
  .mobile-menu { display: none; padding: 8px var(--gutter) 22px; border-bottom: 1px solid var(--line); background: var(--surface); }
  .mobile-menu.open { display: block; }
  .mobile-menu a { display: block; padding: 13px 0; font-weight: 600; font-size: 17px; border-bottom: 1px solid var(--line); color: var(--ink); }
  .mobile-menu a:last-child { border-bottom: 0; }
}
@media (min-width: 901px) { .mobile-menu { display: none; } }

@media (max-width: 540px) {
  body { font-size: 16px; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
}
