/* ============================================================
   5207418 LLC — Studio site
   Dark studio aesthetic · one accent · generous spacing
   ============================================================ */

:root {
  /* Neutrals (warm near-black) */
  --bg:        #0a0a0f;
  --bg-2:      #0f0f17;
  --surface:   #14141f;
  --surface-2: #1a1a27;
  --border:    #25253600;
  --line:      rgba(255, 255, 255, 0.08);
  --line-2:    rgba(255, 255, 255, 0.14);

  /* Text */
  --text:      #f4f4f8;
  --text-2:    #b6b6c6;
  --text-3:    #7d7d92;

  /* Accent — electric violet */
  --accent:    #7c5cff;
  --accent-2:  #9d7bff;
  --accent-ink:#ffffff;
  --accent-glow: rgba(124, 92, 255, 0.45);

  /* Type */
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Chrome */
  --nav-bg:          rgba(10, 10, 15, 0.7);
  --nav-bg-scrolled: rgba(10, 10, 15, 0.88);

  /* Layout */
  --container: 1120px;
  --radius:    16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Light theme ---------- */
html.light {
  --bg:        #f5f6fb;
  --bg-2:      #ececf3;
  --surface:   #ffffff;
  --surface-2: #f3f4f9;
  --line:      rgba(17, 17, 34, 0.09);
  --line-2:    rgba(17, 17, 34, 0.16);

  --text:      #14141d;
  --text-2:    #4a4a5a;
  --text-3:    #76768a;

  --accent:    #6c4bff;
  --accent-2:  #5a39e0;
  --accent-ink:#ffffff;
  --accent-glow: rgba(108, 75, 255, 0.3);

  --nav-bg:          rgba(255, 255, 255, 0.72);
  --nav-bg-scrolled: rgba(255, 255, 255, 0.9);

  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 16px;
}

.muted { color: var(--text-3); font-weight: 400; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  --pad-y: 14px; --pad-x: 26px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-size: 0.98rem; font-weight: 600;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease),
              border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn--sm { --pad-y: 9px; --pad-x: 18px; font-size: 0.9rem; }
.btn--block { width: 100%; --pad-y: 16px; font-size: 1.02rem; }

.btn--primary {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 8px 30px -8px var(--accent-glow);
}
.btn--primary:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: 0 14px 40px -10px var(--accent-glow); }

.btn--ghost {
  background: transparent; color: var(--text);
  border-color: var(--line-2);
}
.btn--ghost:hover { border-color: var(--accent-2); color: #fff; transform: translateY(-2px); }

.btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); background: var(--nav-bg-scrolled); }

.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__right { display: flex; align-items: center; gap: 18px; }

/* Theme toggle */
.theme-toggle {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: transparent; border: 1px solid var(--line-2);
  color: var(--text-2); cursor: pointer;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.theme-toggle:hover { color: var(--text); border-color: var(--accent-2); transform: translateY(-1px); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.theme-toggle .icon-moon { display: none; }
html.light .theme-toggle .icon-sun { display: none; }
html.light .theme-toggle .icon-moon { display: block; }

.brand { display: inline-flex; align-items: baseline; gap: 8px; }
.brand__mark {
  font-family: var(--mono); font-weight: 600; font-size: 1.18rem;
  letter-spacing: 0.02em; color: var(--text);
}
.brand__dot { color: var(--accent-2); }
.brand__suffix {
  font-family: var(--mono); font-size: 0.7rem; color: var(--text-3);
  letter-spacing: 0.18em; transform: translateY(-1px);
}

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links > a:not(.btn) {
  font-size: 0.95rem; font-weight: 500; color: var(--text-2);
  transition: color 0.16s var(--ease);
}
.nav__links > a:not(.btn):hover { color: var(--text); }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: transform 0.25s var(--ease), opacity 0.2s var(--ease); }

.nav__mobile { display: none; flex-direction: column; padding: 8px 24px 20px; border-bottom: 1px solid var(--line); background: var(--bg); }
.nav__mobile a { padding: 14px 0; font-weight: 500; color: var(--text-2); border-top: 1px solid var(--line); }
.nav__mobile a:first-child { border-top: 0; }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; padding: 96px 0 80px; overflow: hidden; }
.hero__glow {
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 700px; pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(124, 92, 255, 0.28), transparent 70%),
    radial-gradient(closest-side, rgba(60, 120, 255, 0.16), transparent 70%);
  background-position: 30% 30%, 70% 40%;
  background-repeat: no-repeat;
  filter: blur(10px);
}
.hero__inner { position: relative; max-width: 880px; }

.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.05; font-weight: 800; letter-spacing: -0.03em;
  margin-bottom: 24px;
}
/* Rotating build-type word */
.rotator { display: inline-block; color: var(--accent-2); }
.rotator__word {
  display: inline-block;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.hero__title-tail { color: var(--text); }
.hero__sub {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: var(--text-2); max-width: 660px; margin-bottom: 36px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 56px; }

.hero__meta {
  display: flex; flex-wrap: wrap; gap: 14px 40px; list-style: none;
  padding-top: 28px; border-top: 1px solid var(--line);
  color: var(--text-3); font-size: 0.95rem;
}
.hero__meta strong { color: var(--text); font-weight: 600; }

/* ============================================================
   Section scaffolding
   ============================================================ */
.section { padding: 110px 0; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section__head { max-width: 720px; margin-bottom: 56px; }
.section__title {
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  line-height: 1.12; font-weight: 700; letter-spacing: -0.02em;
}
.section__lead { margin-top: 18px; font-size: 1.1rem; color: var(--text-2); }

/* ============================================================
   Work grid
   ============================================================ */
.work-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(4, 1fr);
}
.work-card {
  --card-pad: 28px;
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--card-pad);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
  overflow: hidden;
}
/* Screenshot — full-bleed at the top of the card */
.work-card__shot {
  margin: calc(var(--card-pad) * -1) calc(var(--card-pad) * -1) 22px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.work-card__shot img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  display: block;
  transition: transform 0.45s var(--ease);
}
.work-card:hover .work-card__shot img { transform: scale(1.045); }
.work-card--feature .work-card__shot { aspect-ratio: 16 / 8; margin-bottom: 24px; }
/* Featured products span two columns and carry more detail */
.work-card--feature {
  --card-pad: 34px;
  grid-column: span 2;
  background:
    linear-gradient(180deg, rgba(124, 92, 255, 0.06), transparent 60%),
    var(--surface);
}
.work-card--feature h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
.work-card--feature p { font-size: 1.02rem; max-width: 46ch; }
.work-card__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.work-card__chips span {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.03em;
  color: var(--text-2); background: var(--bg);
  border: 1px solid var(--line-2); padding: 5px 10px; border-radius: 999px;
}
.work-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px circle at var(--mx, 50%) 0%, rgba(124,92,255,0.10), transparent 40%);
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.work-card:hover { transform: translateY(-4px); border-color: var(--line-2); background: var(--surface-2); }
.work-card:hover::after { opacity: 1; }
.work-card:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

.work-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.work-card__tag {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.05em;
  color: var(--accent-2); background: rgba(124, 92, 255, 0.1);
  border: 1px solid rgba(124, 92, 255, 0.22);
  padding: 5px 11px; border-radius: 999px;
}
.work-card__arrow { color: var(--text-3); font-size: 1.1rem; transition: transform 0.25s var(--ease), color 0.25s var(--ease); }
.work-card:hover .work-card__arrow { transform: translate(3px, -3px); color: var(--accent-2); }

.work-card h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 10px; }
.work-card p { color: var(--text-2); font-size: 0.96rem; flex: 1; }
.work-card__url { margin-top: 18px; font-family: var(--mono); font-size: 0.82rem; color: var(--text-3); }

/* ============================================================
   Sectors (marquee)
   ============================================================ */
.sectors { overflow: hidden; }
.sectors__head { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.sectors__head .section__lead { margin-left: auto; margin-right: auto; }

.marquee {
  display: flex; flex-direction: column; gap: 16px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__row { display: flex; gap: 14px; width: max-content; }
/* Animation only runs once JS has cloned the pills (so -50% loops seamlessly) */
.marquee--ready .marquee__row { animation: marquee 60s linear infinite; }
.marquee--ready .marquee__row--rev { animation-direction: reverse; }
.marquee--ready:hover .marquee__row,
.marquee--ready:focus-within .marquee__row { animation-play-state: paused; }
/* No-JS / pre-clone fallback: wrap the pills into a tidy block */
.marquee:not(.marquee--ready) .marquee__row { flex-wrap: wrap; width: auto; justify-content: center; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.sector-pill {
  flex: none;
  display: inline-flex; align-items: center;
  font-size: 0.96rem; font-weight: 500; color: var(--text);
  text-decoration: none; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line-2);
  padding: 12px 22px; border-radius: 999px; white-space: nowrap;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}
.sector-pill:hover { border-color: var(--accent-2); color: var(--accent-2); background: rgba(124, 92, 255, 0.08); transform: translateY(-2px); }
.sector-pill:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

.sectors__note { text-align: center; margin-top: 40px; color: var(--text-3); font-size: 1rem; }
.sectors__note a { color: var(--accent-2); font-weight: 600; }
.sectors__note a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .marquee, .marquee--ready { mask-image: none; -webkit-mask-image: none; }
  .marquee .marquee__row,
  .marquee--ready .marquee__row { animation: none !important; flex-wrap: wrap; width: auto; justify-content: center; }
}

/* ============================================================
   Services (capability list)
   ============================================================ */
.services__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }
.services__intro { position: sticky; top: 100px; }
.services__cta { margin-top: 28px; }

.caplist { list-style: none; }
.caplist > li {
  display: grid; grid-template-columns: 52px 1fr; gap: 22px;
  padding: 28px 0; border-top: 1px solid var(--line);
}
.caplist > li:first-child { padding-top: 0; border-top: 0; }
.caplist__icon {
  width: 52px; height: 52px; border-radius: 13px;
  display: grid; place-items: center; font-size: 1.4rem;
  background: linear-gradient(135deg, rgba(124,92,255,0.18), rgba(124,92,255,0.04));
  border: 1px solid rgba(124, 92, 255, 0.22);
  color: var(--accent-2);
}
.caplist h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
.caplist p { color: var(--text-2); font-size: 0.97rem; }

/* ============================================================
   Process (connected timeline)
   ============================================================ */
.timeline { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.timeline::before {
  content: ""; position: absolute; top: 27px; left: 8%; right: 8%;
  height: 2px; background: linear-gradient(90deg, var(--accent), rgba(124,92,255,0.15));
}
.timeline__step { position: relative; padding-right: 12px; }
.timeline__node {
  position: relative; z-index: 1;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 22px;
  font-family: var(--mono); font-size: 1rem; font-weight: 600; color: var(--accent-2);
  background: var(--bg); border: 2px solid rgba(124, 92, 255, 0.45);
  box-shadow: 0 0 0 6px var(--bg);
}
.timeline__step h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 8px; }
.timeline__step p { color: var(--text-2); font-size: 0.95rem; }

/* ============================================================
   Start / intake
   ============================================================ */
.section--start { background: var(--bg-2); border-top: 1px solid var(--line); }
.start { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.start__intro { position: sticky; top: 100px; }
.start__points { list-style: none; margin-top: 28px; display: grid; gap: 14px; }
.start__points li {
  position: relative; padding-left: 30px; color: var(--text-2); font-size: 0.98rem;
}
.start__points li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(124,92,255,0.15); color: var(--accent-2);
  display: grid; place-items: center; font-size: 0.72rem; font-weight: 700;
}

/* ---------- Form ---------- */
.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 22px; display: flex; flex-direction: column; }
.form__row .field { margin-bottom: 22px; }

.field label, .field legend {
  font-size: 0.9rem; font-weight: 600; color: var(--text);
  margin-bottom: 9px;
}
.req { color: var(--accent-2); }

.field input,
.field select,
.field textarea {
  font-family: var(--sans); font-size: 0.98rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); padding: 12px 14px;
  width: 100%; transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
  appearance: none;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237d7d92' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; cursor: pointer;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.2);
}
.field input.is-invalid, .field textarea.is-invalid, .field select.is-invalid {
  border-color: #ff6b6b; box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.15);
}
.field__error { color: #ff8787; font-size: 0.82rem; margin-top: 7px; min-height: 0; }
.field__error:empty { display: none; }

fieldset.field { border: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.92rem; font-weight: 500; color: var(--text-2);
  background: var(--bg); border: 1px solid var(--line-2);
  padding: 9px 14px; border-radius: 999px; cursor: pointer;
  transition: border-color 0.16s var(--ease), color 0.16s var(--ease), background 0.16s var(--ease);
  margin-bottom: 0;
}
.chip input { width: auto; accent-color: var(--accent); margin: 0; }
.chip:has(input:checked) { border-color: var(--accent); color: #fff; background: rgba(124,92,255,0.12); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.btn__spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff;
  display: none; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn.is-loading { pointer-events: none; opacity: 0.85; }
.btn.is-loading .btn__spinner { display: inline-block; }

.form__status { margin-top: 18px; font-size: 0.95rem; text-align: center; }
.form__status.is-error { color: #ff8787; }
.form__status.is-success { color: #69db7c; }

/* ============================================================
   Footer
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding: 64px 0 40px; background: var(--bg); }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer__brand p { color: var(--text-3); font-size: 0.92rem; margin-top: 12px; max-width: 320px; }
.footer__contact { font-style: normal; margin-top: 14px; color: var(--text-3); font-size: 0.88rem; line-height: 1.7; }
.footer__contact a { color: var(--text-2); }
.footer__contact a:hover { color: var(--accent-2); }
.footer__links { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }
.footer__links a { color: var(--text-2); font-size: 0.95rem; }
.footer__links a:hover { color: var(--text); }
.footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; color: var(--text-3); font-size: 0.85rem; }

/* ============================================================
   Sector page
   ============================================================ */
.sector-hero { padding-top: 56px; }
.sector-hero__back {
  display: inline-block; font-family: var(--mono); font-size: 0.85rem;
  color: var(--text-2); margin-bottom: 28px;
}
.sector-hero__back:hover { color: var(--accent-2); }
.sector-hero__icon { font-size: 2.8rem; line-height: 1; margin-bottom: 18px; }
.sector-hero__title { max-width: 18ch; }

.build-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.build-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.build-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.build-card h3 { font-size: 1.18rem; font-weight: 700; margin-bottom: 10px; }
.build-card p { color: var(--text-2); font-size: 0.96rem; }

.includes { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.includes li { display: flex; gap: 14px; align-items: flex-start; }
.includes__icon {
  flex: none; width: 44px; height: 44px; border-radius: 11px;
  display: grid; place-items: center; font-size: 1.2rem;
  background: linear-gradient(135deg, rgba(124,92,255,0.18), rgba(124,92,255,0.04));
  border: 1px solid rgba(124, 92, 255, 0.22); color: var(--accent-2);
}
.includes li div { display: flex; flex-direction: column; gap: 3px; }
.includes strong { font-size: 1rem; font-weight: 600; }
.includes span { color: var(--text-3); font-size: 0.9rem; }

.others { display: flex; flex-wrap: wrap; gap: 12px; }

.final-cta { text-align: center; max-width: 700px; margin: 0 auto; }
.final-cta .section__lead { margin-left: auto; margin-right: auto; }
.final-cta .btn { margin-top: 28px; }
.btn--lg { --pad-y: 17px; --pad-x: 34px; font-size: 1.05rem; }

/* ============================================================
   Orange County (local) section
   ============================================================ */
.local__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.local__col h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; }
.local__col h3 + p { margin-bottom: 0; }
.local__col p { color: var(--text-2); }
.local__col h3:not(:first-child) { margin-top: 34px; }

.cities { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.cities li {
  font-size: 0.85rem; color: var(--text-2);
  background: var(--surface); border: 1px solid var(--line);
  padding: 6px 13px; border-radius: 999px;
}

.local__address {
  margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 0.95rem; color: var(--text-2); font-style: normal; line-height: 1.9;
}
.local__address strong { color: var(--text); display: inline-block; margin-bottom: 2px; }
.local__address a { color: var(--accent-2); }
.local__address a:hover { text-decoration: underline; }

.faq details {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  margin-bottom: 12px; background: var(--surface); overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 16px 20px; font-weight: 600; font-size: 1rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  transition: color 0.16s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-2); font-size: 1.4rem; line-height: 1; transition: transform 0.2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent-2); }
.faq summary:focus-visible { outline: 2px solid var(--accent-2); outline-offset: -2px; border-radius: var(--radius-sm); }
.faq details p { padding: 0 20px 18px; color: var(--text-2); font-size: 0.95rem; }

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 920px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .work-card--feature { grid-column: span 2; }
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 36px 28px; }
  .timeline::before { display: none; }
  .services__grid { grid-template-columns: 1fr; gap: 40px; }
  .services__intro { position: static; }
  .start { grid-template-columns: 1fr; gap: 36px; }
  .start__intro { position: static; }
  .build-grid { grid-template-columns: repeat(2, 1fr); }
  .includes { grid-template-columns: repeat(2, 1fr); }
  .local__grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 680px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav.is-open .nav__mobile { display: flex; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .section { padding: 80px 0; }
  .hero { padding: 64px 0 56px; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card--feature { grid-column: span 1; }
  .timeline { grid-template-columns: 1fr; gap: 32px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .form { padding: 24px; }
  .hero__meta { gap: 12px 28px; }
  .build-grid { grid-template-columns: 1fr; }
  .includes { grid-template-columns: 1fr; }
  .sector-hero__title { max-width: none; }
}
