/* ============================================================
   Kee Studio — style.css
   Automotive Marketing Agency, Winchester UK
   ============================================================ */

/* ── 1. Reset ─────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; text-rendering: optimizeLegibility; }

/* ── 2. Design Tokens ─────────────────────────────────────── */
:root {
  --teal:       #1a9e8f;
  --teal-dim:   rgba(26,158,143,0.1);
  --D-bg:       #111210;
  --D-text:     #e8e7e2;
  --D-mu:       #8a8882;
  --D-fa:       #9c988f;
  --D-soft:     #555450;
  --D-bo:       rgba(232,231,226,0.15);
  --D-di:       rgba(232,231,226,0.08);
  --L-bg:       #f4f3ef;
  --L-text:     #111110;
  --L-mu:       #4a4946;
  --L-fa:       #6c6861;
  --L-soft:     #a09c95;
  --L-bo:       rgba(17,17,16,0.15);
  --L-di:       rgba(17,17,16,0.08);
  --T:          0.4s cubic-bezier(0.25,1,0.5,1);
  --pad-x-desk: 48px;
  --pad-x-tab:  24px;
  --pad-x-mob:  20px;
}

/* ── 3. Base ──────────────────────────────────────────────── */
body {
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  display: flex; flex-direction: column; min-height: 100vh;
  background: var(--D-bg); color: var(--D-text);
  transition: background var(--T), color var(--T);
}
a      { color: inherit; text-decoration: none; }
button { font: inherit; }

/* ── 4. Colour utilities ──────────────────────────────────── */
.tx   { color: var(--tx);   transition: color var(--T); }
.mu   { color: var(--mu);   transition: color var(--T); }
.fa   { color: var(--fa);   transition: color var(--T); }
.soft { color: var(--soft); transition: color var(--T); }
.ac   { color: var(--teal); }

/* ── 5. Theme classes ─────────────────────────────────────── */
.theme-dark {
  background: var(--D-bg);
  --bg: var(--D-bg); --tx: var(--D-text); --mu: var(--D-mu);
  --fa: var(--D-fa); --soft: var(--D-soft); --bo: var(--D-bo); --di: var(--D-di);
  transition: background var(--T);
}
.theme-light {
  background: var(--L-bg);
  --bg: var(--L-bg); --tx: var(--L-text); --mu: var(--L-mu);
  --fa: var(--L-fa); --soft: var(--L-soft); --bo: var(--L-bo); --di: var(--L-di);
  transition: background var(--T);
}
[data-inv="1"] .theme-dark {
  background: var(--L-bg);
  --bg: var(--L-bg); --tx: var(--L-text); --mu: var(--L-mu);
  --fa: var(--L-fa); --soft: var(--L-soft); --bo: var(--L-bo); --di: var(--L-di);
}
[data-inv="1"] .theme-light {
  background: var(--D-bg);
  --bg: var(--D-bg); --tx: var(--D-text); --mu: var(--D-mu);
  --fa: var(--D-fa); --soft: var(--D-soft); --bo: var(--D-bo); --di: var(--D-di);
}

/* ── 6. Nav — locked dark ─────────────────────────────────── */
nav {
  padding: 0 var(--pad-x-desk);
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 200;
  background: #111210;
  border-bottom: 1px solid rgba(232,231,226,0.08);
  transition: background var(--T), border-color var(--T);
}
[data-inv="1"] nav { background: var(--L-bg); border-bottom-color: var(--L-di); }

.n-left  { display: flex; align-items: center; gap: 14px; min-width: 0; }
.n-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.n-logo {
  display: flex; align-items: center;
  color: #e8e7e2; flex-shrink: 0; transition: opacity 0.2s;
}
[data-inv="1"] .n-logo { color: var(--L-text); }
.n-logo:hover { opacity: 0.45; }

.studio-pill {
  display: inline-flex; align-items: center;
  height: 26px; padding: 5px 13px;
  border: 1px solid var(--teal); border-radius: 99px;
  flex-shrink: 0; white-space: nowrap;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  line-height: 1; color: var(--teal);
}

/* Ticker */
.nav-ticker {
  min-width: 0; flex: 1 1 auto; max-width: 148px;
  overflow: hidden; padding: 0.18rem 0; border-radius: 9999px;
  background: rgba(232,231,226,0.06);
  mask-image: linear-gradient(to right,transparent,black 12%,black 88%,transparent);
  -webkit-mask-image: linear-gradient(to right,transparent,black 12%,black 88%,transparent);
}
[data-inv="1"] .nav-ticker { background: rgba(17,17,16,0.08); }
.nav-ticker-track { display: flex; width: max-content; animation: ntick 20s linear infinite; }
.nav-ticker-track:hover { animation-play-state: paused; }
@keyframes ntick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-item {
  display: flex; align-items: center; gap: 0.42rem; padding: 0 0.55rem;
  font-size: 0.64rem; font-weight: 400;
  color: rgba(232,231,226,0.78);
  white-space: nowrap; letter-spacing: 0.025em; font-family: 'Work Sans', sans-serif;
}
[data-inv="1"] .ticker-item { color: rgba(74,73,70,0.78); }
.ticker-sep { color: #555450; }
[data-inv="1"] .ticker-sep { color: var(--L-soft); }

/* ── 7. Circular buttons ──────────────────────────────────── */
.btn-circle {
  border-radius: 50%; border: 1px solid;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; background: transparent; flex-shrink: 0;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}
.btn-circle--neutral { border-color: rgba(232,231,226,0.25); color: #e8e7e2; }
[data-inv="1"] .btn-circle--neutral       { border-color: rgba(17,17,16,0.22); color: var(--L-text); }
.btn-circle--neutral:hover                 { background: #e8e7e2; color: #111210; border-color: #e8e7e2; }
[data-inv="1"] .btn-circle--neutral:hover { background: var(--L-text); color: var(--L-bg); border-color: var(--L-text); }

/* Teal circle — arrow always visible */
.btn-circle--teal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: var(--teal);
  color: var(--teal);
  overflow: visible;
}
.btn-circle--teal svg,
.btn-circle--teal svg line,
.btn-circle--teal svg polyline,
.btn-circle--teal svg path {
  stroke: currentColor;
  fill: none;
}
.cta-link .btn-circle--teal svg {
  width: 14px;
  height: 14px;
  display: block;
  flex-shrink: 0;
}

.size-44 { width: 44px; height: 44px; }
.size-52 { width: 52px; height: 52px; }
.menu-dots { display: flex; flex-direction: column; gap: 5px; }
.menu-dot  { display: block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }

/* ── 8. Shared section padding ────────────────────────────── */
.section-hero,
.section-statement,
.section-about,
.section-services,
.section-closing,
footer {
  padding-left: var(--pad-x-desk);
  padding-right: var(--pad-x-desk);
}

/* ── 9. Hero ──────────────────────────────────────────────── */
.section-hero {
  padding-top: 96px; padding-bottom: 80px;
  display: flex; flex-direction: column; gap: 72px;
}

.h1-kicker {
  display: block; margin-bottom: 24px;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--mu); transition: color var(--T);
}

h1 {
  max-width: 720px;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

/* All H1 lines — Syne 700 (not 800), matching statement section weight */
h1 .headline-strong {
  display: block;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--tx);
  transition: color var(--T);
}

/* Fourth line — same font, same weight, teal, no italic */
h1 .headline-teal {
  display: block;
  padding-top: 0.12em;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--teal);
}

.hero-foot {
  display: grid;
  grid-template-columns: minmax(0,1fr) 400px;
  gap: 80px; align-items: end;
  padding-top: 48px;
  border-top: 1px solid var(--di);
  transition: border-color var(--T);
}
.hero-foot__left, .hero-foot__right {
  display: flex; flex-direction: column; align-items: flex-start; min-width: 0;
}
.hero-foot__left  { gap: 12px; }
.hero-foot__right { gap: 24px; }

/* H2 under hero — Syne 700 matching H1 weight */
.hero-tagline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.3; color: var(--tx); transition: color var(--T);
}
.hero-sub {
  max-width: 460px; font-size: 15px;
  line-height: 1.8; font-weight: 400;
  color: var(--mu); transition: color var(--T);
}
.hero-closing { font-size: 12px; line-height: 1.6; color: var(--teal); }

/* ── 10. CTA links ────────────────────────────────────────── */
.cta-link { display: flex; align-items: center; gap: 16px; cursor: pointer; }
.cta-link__label {
  font-family: 'Syne', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--tx); transition: color var(--T);
}

/* Arrow always inherits currentColor — bulletproof across all states */
.btn-circle--teal svg path { stroke: currentColor; }

/* Primary: outlined at rest, fills on hover */
.cta-link--primary .btn-circle--teal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--teal);
}
.cta-link--primary:hover .cta-link__label   { color: var(--teal); }
.cta-link--primary:hover .btn-circle--teal  { background: var(--teal); color: #fff; transform: translateX(3px); }

/* Secondary: filled at rest, outlines on hover */
.cta-link--secondary .btn-circle--teal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--teal);
  color: #fff;
}
.cta-link--secondary:hover .cta-link__label  { color: var(--teal); }
.cta-link--secondary:hover .btn-circle--teal {
  display: inline-flex;
  align-items: center;
  justify-content: center; background: transparent; color: var(--teal); transform: translateX(3px); }

/* ── 11. Statement ────────────────────────────────────────── */
.section-statement { padding-top: 96px; padding-bottom: 96px; }
.statement-text {
  max-width: 860px;
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.04em;
  color: var(--tx); transition: color var(--T);
}
.statement-text span { color: var(--teal); }

/* ── 12. About ────────────────────────────────────────────── */
.section-about { padding-top: 96px; padding-bottom: 96px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }

/* About H2 — Syne 700 matching statement, not 800 */
.about-grid h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--tx); transition: color var(--T);
}

.about-grid__right p {
  max-width: 470px; font-size: 15px;
  line-height: 1.8; font-weight: 400;
  color: rgba(232,231,226,0.78); transition: color var(--T);
}
[data-inv="1"] .about-grid__right p { color: rgba(17,17,16,0.72); }
.about-grid__right p + p { margin-top: 20px; }
.about-quote {
  margin-top: 32px; padding: 16px 20px;
  border-left: 2px solid var(--teal);
  background: rgba(255,255,255,0.04);
  font-size: 14px; font-style: italic;
  line-height: 1.7; color: rgba(232,231,226,0.9);
  transition: color var(--T), border-color var(--T);
}
[data-inv="1"] .about-quote { background: rgba(0,0,0,0.04); color: rgba(17,17,16,0.72); }
.about-quote cite {
  display: block; margin-top: 10px;
  font-style: normal; font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em; color: rgba(232,231,226,0.5);
}
[data-inv="1"] .about-quote cite { color: rgba(17,17,16,0.45); }

/* ── 13. Services ─────────────────────────────────────────── */
.section-services { padding-top: 80px; padding-bottom: 80px; }
.services-label {
  display: block; margin-bottom: 40px;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--mu); transition: color var(--T);
}
.services-grid {
  display: grid; grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 1px; border: 1px solid var(--bo); background: var(--bo);
  transition: background var(--T), border-color var(--T);
}
.services-cell {
  padding: 28px 24px; background: var(--bg);
  cursor: default; transition: background 0.2s;
  display: flex; flex-direction: column; gap: 6px;
}
.services-cell:hover { background: var(--teal-dim); }
.services-cell:hover .services-cell__num { color: var(--teal); }
.services-cell:hover .services-cell__name { color: var(--teal); }
.services-cell__num {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.4rem,2vw,1.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--soft);
  line-height: 1;
  transition: color 0.2s;
}
.services-cell__name {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--mu); line-height: 1.4; transition: color 0.2s;
}
.services-cell__note {
  font-size: 14px; line-height: 1.7; font-weight: 400;
  color: var(--mu); transition: color var(--T); margin-top: 6px;
}

/* ── 14. Closing ──────────────────────────────────────────── */
.section-closing {
  display: flex; align-items: flex-end;
  justify-content: space-between; gap: 40px;
  padding-top: 104px; padding-bottom: 104px;
}
.closing-headline {
  max-width: 660px;
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.2rem,4.6vw,4.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--tx); transition: color var(--T);
}
.closing-headline span { color: var(--teal); }
.closing-cta {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

/* ── 15. Footer locked dark ──────────────────────────────── */
footer {
  padding-top: 28px; padding-bottom: 28px;
  display: flex; align-items: center; justify-content: space-between;
  background: #111210;
  border-top: 1px solid rgba(232,231,226,0.08);
  color: rgba(232,231,226,0.72);
  font-family: 'Work Sans', sans-serif;
  font-size: 12px; line-height: 1.5;
  transition: background var(--T), border-color var(--T), color var(--T);
}
[data-inv="1"] footer { background: var(--L-bg); border-top-color: var(--L-di); color: rgba(17,17,16,0.72); }
footer a { transition: color 0.2s; }
footer a:hover { color: var(--teal); }
footer address { font-style: normal; opacity: 0.42; margin-top: 3px; font-size: 11px; }

/* ── 16. Responsive tablet ───────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 0 var(--pad-x-tab); gap: 6px; }
  .n-left { gap: 10px; }
  .nav-ticker { max-width: 120px; }
  .section-hero { padding: 64px var(--pad-x-tab) 56px; gap: 56px; }
  h1 { font-size: clamp(2.2rem, 9vw, 3.6rem); }
  .hero-foot { grid-template-columns: 1fr; gap: 36px; padding-top: 40px; }
  .section-statement { padding: 64px var(--pad-x-tab); }
  .section-about { padding: 64px var(--pad-x-tab); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .section-services { padding: 56px var(--pad-x-tab); }
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .section-closing { flex-direction: column; padding: 64px var(--pad-x-tab); align-items: flex-start; }
  footer { padding: 24px var(--pad-x-tab); flex-wrap: wrap; gap: 12px; }
}

/* ── 17. Responsive mobile ───────────────────────────────── */
@media (max-width: 480px) {
  nav, .section-hero, .section-statement, .section-about, .section-services, .section-closing, footer {
    padding-left: var(--pad-x-mob);
    padding-right: var(--pad-x-mob);
  }
  .services-grid { grid-template-columns: 1fr; }
  .hero-foot { gap: 28px; }
  .cta-link { width: 100%; }
  .cta-link__label { max-width: 200px; }
}

/* ── 18. Reduced motion ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .nav-ticker-track { animation: none; }
  * { transition-duration: 0.01ms !important; }
}