/* ==========================================================================
   Techni-Build PCs — Global Stylesheet
   Palette pulled from the logo: orange #F1802D, navy #343B5E, white.
   Dark mode is the default; light mode via [data-theme="light"].
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand — constant across both themes */
  --orange:        #F1802D;
  --orange-bright: #FF9A52;
  --orange-deep:   #D96A18;
  --navy:          #343B5E;
  --navy-deep:     #232842;

  /* Typography */
  --font-display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Spacing + shape */
  --radius:    14px;
  --radius-sm: 9px;
  --chip-cut:  20px;          /* the clipped "chip" corner used on cards */
  --maxw:      1180px;
  --gutter:    clamp(1.15rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 7.5rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur:  0.55s;
}

/* Dark theme — the default */
:root,
:root[data-theme="dark"] {
  --bg:          #171A2B;
  --bg-alt:      #1D2136;
  --surface:     #242942;
  --surface-2:   #2C3252;
  --border:      rgba(255, 255, 255, 0.09);
  --border-str:  rgba(255, 255, 255, 0.16);
  --text:        #EEF0F8;
  --text-dim:    #A5ACC9;
  --text-faint:  #757C9E;
  --accent:      var(--orange);
  --accent-soft: rgba(241, 128, 45, 0.14);
  --circuit:     rgba(255, 255, 255, 0.055);
  --shadow:      0 18px 44px -18px rgba(0, 0, 0, 0.75);
  --shadow-lift: 0 26px 60px -22px rgba(0, 0, 0, 0.85);
  --header-bg:   rgba(23, 26, 43, 0.82);
  color-scheme:  dark;
}

/* Light theme */
:root[data-theme="light"] {
  --bg:          #F4F5FA;
  --bg-alt:      #FFFFFF;
  --surface:     #FFFFFF;
  --surface-2:   #EDEFF7;
  --border:      rgba(52, 59, 94, 0.13);
  --border-str:  rgba(52, 59, 94, 0.24);
  --text:        #232842;
  --text-dim:    #5B6285;
  --text-faint:  #858BA8;
  --accent:      #DE6F19;                    /* nudged darker for AA on white */
  --accent-soft: rgba(241, 128, 45, 0.13);
  --circuit:     rgba(52, 59, 94, 0.07);
  --shadow:      0 16px 38px -20px rgba(35, 40, 66, 0.32);
  --shadow-lift: 0 26px 54px -22px rgba(35, 40, 66, 0.4);
  --header-bg:   rgba(244, 245, 250, 0.85);
  color-scheme:  light;
}

/* --------------------------------------------------------------------------
   2. Reset + base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 6.2vw, 4.1rem); }
h2 { font-size: clamp(1.85rem, 4vw, 2.85rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); letter-spacing: -0.01em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -140%);
  background: var(--accent);
  color: #fff;
  padding: 0.7rem 1.4rem;
  font-weight: 700;
  border-radius: 0 0 10px 10px;
  z-index: 200;
  transition: transform 0.25s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }
.section--alt { background: var(--bg-alt); }

.section--alt::before,
.section--alt::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-str), transparent);
}
.section--alt::before { top: 0; }
.section--alt::after  { bottom: 0; }

.stack > * + * { margin-top: 1.1rem; }
.center { text-align: center; }
.narrow { max-width: 62ch; }
.center.narrow { margin-inline: auto; }

/* Section heading block */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.775rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.eyebrow::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 2px solid currentColor;
}
.center .eyebrow::after { display: none; }
.center .eyebrow { justify-content: center; }

.lede {
  font-size: clamp(1.03rem, 1.6vw, 1.16rem);
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   4. Circuit motif (the "creative hint" that ties back to the logo)
   -------------------------------------------------------------------------- */
.circuit-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.circuit-bg svg { width: 100%; height: 100%; }
.circuit-bg .trace {
  fill: none;
  stroke: var(--circuit);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.circuit-bg .node {
  fill: none;
  stroke: var(--circuit);
  stroke-width: 2.5;
}
/* live traces animate their dash on hero sections only */
.circuit-bg .trace--live {
  stroke: var(--accent);
  opacity: 0.5;
  stroke-dasharray: 14 320;
  animation: traceFlow 9s linear infinite;
}
.circuit-bg .trace--live:nth-of-type(even) { animation-duration: 12s; animation-delay: -3s; }

@keyframes traceFlow {
  from { stroke-dashoffset: 334; }
  to   { stroke-dashoffset: 0; }
}

/* thin animated divider used between some sections */
.trace-divider {
  height: 2px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.35;
}

/* --------------------------------------------------------------------------
   5. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--border);
  box-shadow: 0 10px 30px -22px rgba(0, 0, 0, 0.9);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

/* Wordmark — mirrors the logo's two-tone lockup */
.brand { display: flex; align-items: center; gap: 0.65rem; }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__mark .m-trace { fill: none; stroke: var(--text); stroke-width: 7; stroke-linecap: round; opacity: 0.85; }
.brand__mark .m-node  { fill: none; stroke: var(--text); stroke-width: 7; opacity: 0.85; }
.brand__mark .m-chip  { fill: none; stroke: var(--accent); stroke-width: 8; }
.brand__text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: -0.025em;
  line-height: 1;
  white-space: nowrap;
}
.brand__text span { color: var(--accent); }
.brand__text small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--text-faint);
  margin-top: 3px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  position: relative;
  display: block;
  padding: 0.55rem 0.85rem;
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-dim);
  border-radius: 8px;
  transition: color 0.22s var(--ease), background-color 0.22s var(--ease);
}
.nav__links a:hover { color: var(--text); background: var(--accent-soft); }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0.85rem; right: 0.85rem;
  bottom: 0.28rem;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__links a.active { color: var(--text); }
.nav__links a.active::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: 0.5rem; }

/* Theme toggle */
.theme-toggle {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .i-sun  { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun  { display: block; }
:root[data-theme="light"] .theme-toggle .i-moon { display: none; }

/* Mobile menu button */
.nav__burger {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  position: relative;
}
.nav__burger span {
  position: absolute;
  left: 11px;
  width: 18px; height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav__burger span:nth-child(1) { top: 14px; }
.nav__burger span:nth-child(2) { top: 20px; }
.nav__burger span:nth-child(3) { top: 26px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav__burger { display: block; }
  .nav__actions > .btn { display: none; }   /* CTA lives in the drawer instead */
  .nav__links {
    position: fixed;
    inset: 72px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem var(--gutter) 1.4rem;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.3s var(--ease), visibility 0.25s;
  }
  .nav__links.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav__links a { padding: 0.9rem 0.4rem; font-size: 1.05rem; border-bottom: 1px solid var(--border); }
  .nav__links a::after { display: none; }
  .nav__links a.active { color: var(--accent); }
}

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.82rem 1.55rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--btn-bg);
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -12px rgba(241, 128, 45, 0.6);
}
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0); }

/* subtle sheen sweep */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,0.28) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.6s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-str);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: none;
  background: var(--accent-soft);
}
.btn--block { width: 100%; }
.btn--lg { padding: 1rem 1.9rem; font-size: 0.97rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.center .btn-row { justify-content: center; }

/* text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--accent);
}
.link-arrow svg { width: 15px; height: 15px; transition: transform 0.3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(4rem, 11vw, 8.5rem) clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 78% -8%, var(--accent-soft), transparent 62%),
    radial-gradient(760px 420px at 6% 108%, rgba(52, 59, 94, 0.35), transparent 65%);
}
.hero .wrap { position: relative; z-index: 1; }

.hero--home {
  display: grid;
  align-items: center;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; }
}

.hero h1 .accent { color: var(--accent); }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem 0.4rem 0.5rem;
  border: 1px solid var(--border-str);
  border-radius: 100px;
  background: var(--surface);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}
.hero__badge b { color: var(--text); font-weight: 700; }
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: 0.35rem;
  position: relative;
}
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  70%  { transform: scale(3.2); opacity: 0; }
  100% { transform: scale(3.2); opacity: 0; }
}

/* Page hero (inner pages) */
.hero--page { padding-block: clamp(3.2rem, 8vw, 5.5rem) clamp(2.6rem, 5vw, 4rem); }
.hero--page h1 { max-width: 18ch; }

.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-faint);
  margin-bottom: 1.1rem;
  letter-spacing: 0.02em;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin-inline: 0.45rem; opacity: 0.55; }

/* --------------------------------------------------------------------------
   8. Image slots (placeholders until real photos are dropped in)
   -------------------------------------------------------------------------- */
.img-slot {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(145deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  color: var(--text-faint);
  isolation: isolate;
}
.img-slot img { width: 100%; height: 100%; object-fit: cover; }
.img-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--circuit) 1px, transparent 1px),
    linear-gradient(90deg, var(--circuit) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.9;
}
.img-slot__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  padding: 1rem;
}
.img-slot__label svg { width: 30px; height: 30px; opacity: 0.55; }
.img-slot--wide { aspect-ratio: 16 / 10; }
.img-slot--tall { aspect-ratio: 3 / 4; }
.img-slot--dashed { border: 1.5px dashed var(--border-str); }

/* --------------------------------------------------------------------------
   9. Cards
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-str);
  box-shadow: var(--shadow-lift);
}
/* chip-cut corner echoes the logo's processor silhouette */
.card--chip {
  clip-path: polygon(0 0, calc(100% - var(--chip-cut)) 0, 100% var(--chip-cut), 100% 100%, 0 100%);
}
.card--chip::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: var(--chip-cut);
  height: var(--chip-cut);
  background: linear-gradient(225deg, var(--accent) 0 52%, transparent 52%);
  opacity: 0.55;
  transition: opacity 0.35s var(--ease);
}
.card--chip:hover::after { opacity: 1; }

.card__icon {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1.05rem;
}
.card__icon svg { width: 23px; height: 23px; }
.card h3 { margin-bottom: 0.45rem; }
.card p { color: var(--text-dim); font-size: 0.945rem; }

.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   10. Home — service showcase rows
   -------------------------------------------------------------------------- */
.showcase { display: grid; gap: clamp(3.5rem, 7vw, 6rem); }

.showcase__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.8rem, 5vw, 4rem);
  align-items: center;
}
.showcase__row:nth-child(even) .showcase__media { order: -1; }
@media (max-width: 880px) {
  .showcase__row { grid-template-columns: 1fr; }
  .showcase__row:nth-child(even) .showcase__media { order: 0; }
}

.showcase__media { position: relative; }
.showcase__media .img-slot { box-shadow: var(--shadow); }
/* floating stat chip on the media */
.float-chip {
  position: absolute;
  bottom: -18px;
  right: -12px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border-str);
  box-shadow: var(--shadow);
  font-size: 0.82rem;
  font-weight: 600;
}
.float-chip b {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--accent);
}
@media (max-width: 620px) { .float-chip { right: 8px; } }

.showcase__num {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 0.7rem;
}

.tick-list { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: 0.55rem; }
.tick-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--text-dim);
}
.tick-list li::before {
  content: "";
  flex: none;
  width: 17px; height: 17px;
  margin-top: 0.28rem;
  border-radius: 5px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F1802D' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 11px;
  background-position: center;
  background-repeat: no-repeat;
}

/* --------------------------------------------------------------------------
   11. Stat strip
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.stats__item {
  background: var(--bg-alt);
  padding: 1.6rem 1.2rem;
  text-align: center;
}
.stats__num {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stats__label {
  font-size: 0.83rem;
  color: var(--text-dim);
  letter-spacing: 0.03em;
}
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* --------------------------------------------------------------------------
   12. Forms
   -------------------------------------------------------------------------- */
.form-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.6rem);
  box-shadow: var(--shadow);
}

.form-grid { display: grid; gap: 1.25rem; }
.form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 680px) { .form-grid--2 { grid-template-columns: 1fr; } }
.span-2 { grid-column: 1 / -1; }
@media (max-width: 680px) { .span-2 { grid-column: auto; } }

.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field > label,
.fieldset__legend {
  font-size: 0.855rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}
.hint {
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-faint);
}
.req { color: var(--accent); }

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 0.78rem 0.95rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-str);
  border-radius: var(--radius-sm);
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease), background-color 0.22s var(--ease);
}
:root[data-theme="light"] input[type="text"],
:root[data-theme="light"] input[type="email"],
:root[data-theme="light"] input[type="tel"],
:root[data-theme="light"] select,
:root[data-theme="light"] textarea { background: var(--surface-2); }

input::placeholder, textarea::placeholder { color: var(--text-faint); }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
textarea { resize: vertical; min-height: 118px; }

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A5ACC9' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 16px;
  padding-right: 2.4rem;
}
:root[data-theme="light"] select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6285' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

fieldset { border: 0; margin: 0; padding: 0; }
.fieldset__legend { display: block; margin-bottom: 0.7rem; }

/* Chip-style radio / checkbox options */
.opt-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.opt {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.62rem 1rem;
  border: 1px solid var(--border-str);
  border-radius: 100px;
  background: var(--bg);
  font-size: 0.9rem;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
}
:root[data-theme="light"] .opt { background: var(--surface-2); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt__dot {
  width: 15px; height: 15px;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--border-str);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.opt input[type="checkbox"] ~ .opt__dot { border-radius: 5px; }
.opt:hover { border-color: var(--accent); }
.opt:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
}
.opt input:checked ~ .opt__dot {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 3.5px var(--accent);
}
.opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

/* --- 3-notch preference slider --- */
.slider-block {
  background: var(--bg);
  border: 1px solid var(--border-str);
  border-radius: var(--radius-sm);
  padding: 1.3rem 1.35rem 1rem;
}
:root[data-theme="light"] .slider-block { background: var(--surface-2); }

.slider-input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 26px;
  background: transparent;
  cursor: pointer;
  margin: 0.35rem 0 0.15rem;
}
.slider-input::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) var(--fill, 50%), var(--border-str) var(--fill, 50%), var(--border-str) 100%);
}
.slider-input::-moz-range-track {
  height: 6px;
  border-radius: 99px;
  background: var(--border-str);
}
.slider-input::-moz-range-progress {
  height: 6px;
  border-radius: 99px;
  background: var(--accent);
}
.slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  margin-top: -8px;
  border-radius: 50%;
  background: var(--accent);
  border: 4px solid var(--bg-alt);
  box-shadow: 0 3px 10px -2px rgba(241, 128, 45, 0.8);
  transition: transform 0.2s var(--ease);
}
.slider-input::-webkit-slider-thumb:hover { transform: scale(1.14); }
.slider-input::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 4px solid var(--bg-alt);
  box-shadow: 0 3px 10px -2px rgba(241, 128, 45, 0.8);
}

.slider-ticks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 0.15rem;
}
.slider-ticks span {
  font-size: 0.775rem;
  color: var(--text-faint);
  text-align: center;
  transition: color 0.25s var(--ease), font-weight 0.25s var(--ease);
}
.slider-ticks span:first-child { text-align: left; }
.slider-ticks span:last-child  { text-align: right; }
.slider-ticks span.on { color: var(--accent); font-weight: 700; }

.slider-readout {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.slider-readout output {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--accent);
}
.slider-readout .desc { font-size: 0.83rem; color: var(--text-dim); }

/* Form footer + status */
.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.form-foot .fine { font-size: 0.8rem; color: var(--text-faint); max-width: 42ch; }

.form-status {
  display: none;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1.2rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  border: 1px solid transparent;
}
.form-status.show { display: flex; animation: statusIn 0.45s var(--ease) both; }
.form-status svg { width: 19px; height: 19px; flex: none; margin-top: 2px; }
.form-status.ok    { background: rgba(52, 199, 123, 0.12); border-color: rgba(52, 199, 123, 0.45); color: #45c98a; }
.form-status.error { background: rgba(255, 92, 92, 0.12);  border-color: rgba(255, 92, 92, 0.45);  color: #ff7a7a; }
.form-status.info  { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

@keyframes statusIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

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

/* honeypot */
.hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* --------------------------------------------------------------------------
   13. Reviews
   -------------------------------------------------------------------------- */
.review {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  height: 100%;
}
.review__stars { display: flex; gap: 3px; color: var(--accent); }
.review__stars svg { width: 16px; height: 16px; fill: currentColor; }
.review__text { font-size: 0.97rem; color: var(--text); line-height: 1.6; }
.review__text::before { content: "\201C"; }
.review__text::after  { content: "\201D"; }
.review__who {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}
.review__avatar {
  width: 38px; height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
}
.review__name { font-weight: 600; font-size: 0.9rem; line-height: 1.3; }
.review__meta { font-size: 0.78rem; color: var(--text-faint); }

/* --------------------------------------------------------------------------
   14. Accordion (common issues / FAQ)
   -------------------------------------------------------------------------- */
.acc { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.acc__item + .acc__item { border-top: 1px solid var(--border); }
.acc__btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  background: none;
  border: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease);
}
.acc__btn:hover { background: var(--accent-soft); color: var(--accent); }
.acc__btn .plus {
  margin-left: auto;
  flex: none;
  width: 20px; height: 20px;
  position: relative;
}
.acc__btn .plus::before,
.acc__btn .plus::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transition: transform 0.3s var(--ease);
}
.acc__btn .plus::after { transform: rotate(90deg); }
.acc__btn[aria-expanded="true"] .plus::after { transform: rotate(0deg); }
.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.36s var(--ease);
}
.acc__panel.open { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__panel p {
  padding: 0 1.3rem 1.25rem;
  margin: 0;
  color: var(--text-dim);
  font-size: 0.94rem;
}

/* --------------------------------------------------------------------------
   15. Timeline (about page)
   -------------------------------------------------------------------------- */
.timeline { position: relative; display: grid; gap: 2rem; padding-left: 2.2rem; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--border-str));
  border-radius: 2px;
}
.timeline__item { position: relative; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -2.2rem;
  top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.section--alt .timeline__item::before { background: var(--bg-alt); }
.timeline__item:hover::before { transform: scale(1.22); box-shadow: 0 0 0 6px var(--accent-soft); }
.timeline__year {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.83rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.3rem;
}
.timeline__item h3 { margin-bottom: 0.35rem; font-size: 1.12rem; }
.timeline__item p { color: var(--text-dim); font-size: 0.94rem; }

/* Owner bio cards */
.bio { display: grid; grid-template-columns: 210px 1fr; gap: 1.6rem; align-items: start; }
@media (max-width: 640px) { .bio { grid-template-columns: 1fr; } }
.bio .img-slot { aspect-ratio: 1; border-radius: var(--radius); }
.bio__role {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.bio h3 { margin-bottom: 0.6rem; }
.bio p { color: var(--text-dim); font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   16. Contact
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.info-item {
  display: flex;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--border);
}
.info-item:last-child { border-bottom: 0; }
.info-item__icon {
  width: 42px; height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  transition: transform 0.3s var(--ease);
}
.info-item:hover .info-item__icon { transform: translateY(-3px) rotate(-4deg); }
.info-item__icon svg { width: 20px; height: 20px; }
.info-item h3 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.25rem;
}
.info-item p, .info-item a { font-size: 1rem; color: var(--text); margin: 0; }
.info-item a:hover { color: var(--accent); }
.info-item .sub { font-size: 0.85rem; color: var(--text-dim); margin-top: 0.15rem; }

.hours { list-style: none; margin: 0; padding: 0; }
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  font-size: 0.92rem;
  border-bottom: 1px dashed var(--border);
}
.hours li:last-child { border-bottom: 0; }
.hours .day { color: var(--text-dim); }
.hours .time { font-weight: 600; }
.hours li.today .day, .hours li.today .time { color: var(--accent); }

.map-slot {
  aspect-ratio: 21 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.map-slot iframe { width: 100%; height: 100%; border: 0; display: block; }

/* --------------------------------------------------------------------------
   17. CTA band
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: clamp(2.2rem, 6vw, 3.6rem);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  text-align: center;
  isolation: isolate;
}
.cta::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(241,128,45,0.4), transparent 62%);
  z-index: -1;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,0.78); }
.cta .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.35); }
.cta .btn--ghost:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: #fff; }

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding-block: clamp(2.8rem, 6vw, 4rem) 1.6rem;
  margin-top: 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 2rem;
}
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

.footer__grid h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.9rem;
}
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer__list a, .footer__list li { font-size: 0.92rem; color: var(--text-dim); }
.footer__list a { transition: color 0.2s var(--ease), padding-left 0.2s var(--ease); }
.footer__list a:hover { color: var(--accent); padding-left: 4px; }
.footer__blurb { font-size: 0.92rem; color: var(--text-dim); max-width: 34ch; margin-top: 1rem; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
  font-size: 0.83rem;
  color: var(--text-faint);
}

/* --------------------------------------------------------------------------
   19. Scroll reveal + motion preferences
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
}
.reveal.in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.7s var(--ease) var(--delay, 0s),
    transform 0.7s var(--ease) var(--delay, 0s);
}
.reveal--left  { transform: translateX(-32px); }
.reveal--right { transform: translateX(32px); }
.reveal--scale { transform: scale(0.96); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* --------------------------------------------------------------------------
   20. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .circuit-bg, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}
