/* ════════════════════════════════════════
   ANTIVOLTA — STYLESHEET
   --------------------------------------------------
   All colors are driven by the CSS custom properties
   in :root below. Alpha variants are derived with
   color-mix() so a single token controls every shade.
   The "Palette Lab" tool edits these live.
   ════════════════════════════════════════ */

/* ── RESET & BASE ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Backgrounds */
  --bg:            #ffffff;   /* page + white sections (services) */
  --surface:       #f4f4f2;   /* about / faq sections */
  --dark:          #0a0a0a;   /* hero / approach / contact / footer / dark nav */
  --dark-card:     #111111;   /* approach cards, select dropdowns */

  /* Text */
  --text:          #0a0a0a;   /* headings + body on light backgrounds */
  --text-soft:     #4a4a4a;   /* body copy, modal answers */
  --text-muted:    #666666;   /* descriptions, intros */
  --gray:          #888888;   /* small labels, numbers, close icons */
  --on-dark:       #ffffff;   /* all text + UI sitting on dark surfaces */

  /* Lines */
  --border:        #e0e0e0;   /* hairline dividers on light */
  --line:          #0a0a0a;   /* strong borders (services grid, outline) */

  /* Buttons */
  --btn-light-bg:    #ffffff;
  --btn-light-text:  #0a0a0a;
  --btn-dark-bg:     #0a0a0a;
  --btn-dark-text:   #ffffff;

  /* Motion graphic */
  --motion:        #ffffff;   /* loop, ring & chevrons (shown via opacity) */
  --motion-arrow:  #ffffff;   /* the breakout arrow */

  /* Fonts */
  --font-head:  'Space Grotesk', sans-serif;
  --font-body:  'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }

/* ── NAVIGATION ── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 5%;
  transition: background 0.35s, border-bottom 0.35s;
}

#nav.on-dark {
  background: color-mix(in srgb, var(--dark) 92%, transparent);
  backdrop-filter: blur(12px);
}

#nav.on-light {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo { display: inline-flex; align-items: center; cursor: pointer; }
.nav-logo-img { height: 30px; width: auto; display: block; }
#nav.on-dark  .nav-logo-light { display: none; }
#nav.on-light .nav-logo-dark  { display: none; }

/* Right-hand cluster: links + tool toggle + hamburger */
.nav-right { display: flex; align-items: center; gap: 1.6rem; }

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: opacity 0.2s;
}

#nav.on-dark  .nav-links a { color: color-mix(in srgb, var(--on-dark) 75%, transparent); }
#nav.on-light .nav-links a { color: var(--text); }
.nav-links a:hover { opacity: 0.45; }

/* Palette Lab toggle */
.ct-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1.5px solid currentColor;
  border-radius: 100px;
  padding: 0.4rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.ct-toggle:hover { transform: translateY(-1px); }
#nav.on-dark  .ct-toggle { color: var(--on-dark); }
#nav.on-light .ct-toggle { color: var(--text); }
.ct-toggle .ct-dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: conic-gradient(#ff5b04, #ffd60a, #2ec4b6, #4361ee, #ff5b04);
  flex-shrink: 0;
}
.ct-toggle-label { white-space: nowrap; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 1000;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  transition: all 0.28s;
}
#nav.on-dark  .hamburger span { background: var(--on-dark); }
#nav.on-light .hamburger span { background: var(--text); }

.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile overlay */
#mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 800;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.8rem;
}
#mobile-menu.open { display: flex; }
#mobile-menu a {
  color: var(--on-dark);
  text-decoration: none;
  font-family: var(--font-head);
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  transition: opacity 0.2s;
}
#mobile-menu a:hover { opacity: 0.4; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.8rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.22s, background 0.22s, color 0.22s;
  white-space: nowrap;
}
.btn .arrow { transition: transform 0.22s; }
.btn:hover .arrow { transform: translateX(5px); }
.btn:hover { transform: translateY(-1px); }

.btn-white  { background: var(--btn-light-bg);  color: var(--btn-light-text); }
.btn-white:hover  { background: color-mix(in srgb, var(--btn-light-bg) 90%, var(--btn-light-text)); }
.btn-black  { background: var(--btn-dark-bg);  color: var(--btn-dark-text); }
.btn-black:hover  { background: color-mix(in srgb, var(--btn-dark-bg) 88%, var(--btn-dark-text)); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--text);
}
.btn-outline:hover { background: var(--text); color: var(--bg); }

/* ── SECTION COMMON ── */
section { padding: 8rem 5%; }

.s-label {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 1.4rem;
}
.s-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

.s-title {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

/* ── FADE-UP ANIMATION ── */
.fu {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fu.vis { opacity: 1; transform: translateY(0); }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  background: var(--dark);
  color: var(--on-dark);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 5% 6rem;
  position: relative;
  overflow: hidden;
}

.hero-bg-text {
  position: absolute;
  top: 50%;
  right: -2%;
  transform: translateY(-50%);
  font-family: var(--font-head);
  font-size: clamp(12rem, 22vw, 22rem);
  font-weight: 700;
  line-height: 1;
  color: color-mix(in srgb, var(--on-dark) 2.5%, transparent);
  letter-spacing: -0.05em;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--on-dark) 38%, transparent);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: color-mix(in srgb, var(--on-dark) 30%, transparent);
}

.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(4rem, 11vw, 10rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: 2.5rem;
}
.hero-headline em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1.5px color-mix(in srgb, var(--on-dark) 35%, transparent);
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-sub {
  max-width: 420px;
  font-size: 1rem;
  line-height: 1.75;
  color: color-mix(in srgb, var(--on-dark) 50%, transparent);
  margin-bottom: 2rem;
}

.hero-scroll {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--on-dark) 30%, transparent);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-bottom: 0.2rem;
}
.hero-scroll-line {
  width: 36px;
  height: 1px;
  background: color-mix(in srgb, var(--on-dark) 15%, transparent);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: '';
  position: absolute;
  inset: 0;
  left: -100%;
  background: color-mix(in srgb, var(--on-dark) 60%, transparent);
  animation: pulse-line 2.2s ease-in-out infinite;
}
@keyframes pulse-line {
  0%   { left: -100%; }
  50%  { left:    0%; }
  100% { left:  100%; }
}

/* ── ABOUT ── */
#about { background: var(--surface); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-top: 4rem;
}

.about-copy p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-soft);
  margin-bottom: 1.4rem;
}
.about-copy .note {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--gray);
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat {
  padding: 2.2rem 1.8rem;
}
.stat:nth-child(odd)  { background: var(--dark); color: var(--on-dark); }
.stat:nth-child(even) { background: var(--bg);  color: var(--text); border: 1.5px solid var(--border); }
.stat:nth-child(2)  { margin-top: 1.5rem; }
.stat:nth-child(3)  { margin-bottom: 1.5rem; }

.stat-n {
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 0.3rem;
}
.stat-l {
  font-size: 0.75rem;
  opacity: 0.5;
  letter-spacing: 0.07em;
}

/* ── SERVICES ── */
#services { background: var(--bg); }

.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3.5rem;
  gap: 2rem;
  flex-wrap: wrap;
}
.services-header p {
  max-width: 380px;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1.5px solid var(--line);
}

.svc {
  padding: 2.4rem 2.2rem;
  border-right: 1.5px solid var(--line);
  border-bottom: 1.5px solid var(--line);
  transition: background 0.28s, color 0.28s;
  cursor: default;
}
.svc:nth-child(3n) { border-right: none; }
.svc:nth-last-child(-n+3) { border-bottom: none; }
.svc:hover { background: var(--dark); color: var(--on-dark); }

.svc-num {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--gray);
  margin-bottom: 1.4rem;
  transition: color 0.28s;
}
.svc:hover .svc-num { color: color-mix(in srgb, var(--on-dark) 35%, transparent); }

.svc-name {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
}

.svc-desc {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-muted);
  transition: color 0.28s;
}
.svc:hover .svc-desc { color: color-mix(in srgb, var(--on-dark) 60%, transparent); }

/* ── WORK / APPROACH ── */
#work {
  background: var(--dark);
  color: var(--on-dark);
}
#work .s-title { color: var(--on-dark); }
#work .s-label { color: color-mix(in srgb, var(--on-dark) 38%, transparent); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 4rem;
}

.work-card {
  background: var(--dark-card);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  cursor: default;
  aspect-ratio: 1 / 1;
}

.wc-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: clamp(5rem, 12vw, 10rem);
  font-weight: 700;
  color: color-mix(in srgb, var(--on-dark) 3.5%, transparent);
  letter-spacing: -0.05em;
  pointer-events: none;
  transition: transform 0.55s ease, color 0.3s;
}
.work-card:hover .wc-bg {
  transform: scale(1.06);
  color: color-mix(in srgb, var(--on-dark) 6.5%, transparent);
}

.wc-info { position: relative; z-index: 1; }
.wc-tag {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--on-dark) 38%, transparent);
  margin-bottom: 0.35rem;
}
.wc-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.wc-desc {
  font-size: 0.86rem;
  line-height: 1.6;
  color: color-mix(in srgb, var(--on-dark) 50%, transparent);
  margin-top: 0.5rem;
  max-width: 460px;
}

.work-notice {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: color-mix(in srgb, var(--on-dark) 32%, transparent);
}

/* ── FAQ ── */
#faq { background: var(--surface); }

.faq-cols {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5rem;
  margin-top: 3rem;
  align-items: start;
}

.faq-intro p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-top: 1rem;
}

.faq-list { border-top: 1.5px solid var(--border); }

.faq-item {
  border-bottom: 1.5px solid var(--border);
  padding: 1.6rem 0;
  cursor: pointer;
}
.faq-item:hover .faq-q { opacity: 0.6; }

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  font-family: var(--font-head);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: opacity 0.2s;
}
.faq-q-arrow {
  font-size: 1rem;
  color: var(--gray);
  flex-shrink: 0;
  transition: transform 0.25s;
}
.faq-item:hover .faq-q-arrow { transform: translateX(4px); }

/* FAQ Modal */
#faq-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--dark) 65%, transparent);
  z-index: 950;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  backdrop-filter: blur(4px);
}
#faq-modal.open { display: flex; }

.faq-modal-box {
  background: var(--bg);
  max-width: 580px;
  width: 100%;
  padding: 3rem;
  position: relative;
  animation: slide-up 0.28s ease;
  max-height: 85vh;
  overflow-y: auto;
}
@keyframes slide-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0);    }
}

#faq-close {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--gray);
  transition: color 0.2s;
}
#faq-close:hover { color: var(--text); }

#modal-q {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 1.4rem;
  padding-right: 2rem;
}
#modal-a {
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--text-soft);
}

/* ── CONTACT ── */
#contact {
  background: var(--dark);
  color: var(--on-dark);
}
#contact .s-label { color: color-mix(in srgb, var(--on-dark) 38%, transparent); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 6rem;
  margin-top: 4rem;
  align-items: start;
}

.contact-left h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 1.5rem;
}
.contact-left p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: color-mix(in srgb, var(--on-dark) 50%, transparent);
  margin-bottom: 2.5rem;
}
.contact-details { display: flex; flex-direction: column; gap: 0.75rem; }
.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: color-mix(in srgb, var(--on-dark) 45%, transparent);
}
.contact-detail a { color: inherit; text-decoration: none; transition: color 0.2s; }
.contact-detail a:hover { color: var(--on-dark); }
.contact-detail strong { color: var(--on-dark); font-weight: 500; }

/* Form */
.c-form { display: flex; flex-direction: column; gap: 1.1rem; }
.c-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }

.c-group { display: flex; flex-direction: column; gap: 0.4rem; }
.c-group label {
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--on-dark) 35%, transparent);
}
.c-group input,
.c-group textarea,
.c-group select {
  background: color-mix(in srgb, var(--on-dark) 5.5%, transparent);
  border: 1.5px solid color-mix(in srgb, var(--on-dark) 10%, transparent);
  color: var(--on-dark);
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
  appearance: none;
}
.c-group input::placeholder,
.c-group textarea::placeholder { color: color-mix(in srgb, var(--on-dark) 22%, transparent); }
.c-group input:focus,
.c-group textarea:focus,
.c-group select:focus { border-color: color-mix(in srgb, var(--on-dark) 45%, transparent); }
.c-group select option { background: var(--dark-card); }

.h-captcha { margin-top: 0.2rem; }

.form-sent {
  display: none;
  border: 1.5px solid color-mix(in srgb, var(--on-dark) 15%, transparent);
  padding: 2.5rem;
  text-align: center;
}
.form-sent.show { display: block; }
.form-sent h3 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--on-dark);
  margin-bottom: 0.6rem;
}
.form-sent p { color: color-mix(in srgb, var(--on-dark) 45%, transparent); font-size: 0.88rem; }

/* ── FOOTER ── */
footer {
  background: var(--dark);
  border-top: 1px solid color-mix(in srgb, var(--on-dark) 8%, transparent);
  padding: 2rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  color: color-mix(in srgb, var(--on-dark) 25%, transparent);
}
footer a { color: inherit; text-decoration: none; transition: color 0.2s; cursor: pointer; }
footer a:hover { color: var(--on-dark); }
.footer-logo { height: 26px; width: auto; opacity: 0.6; }
.footer-links { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }
.footer-lr { display: inline-flex; line-height: 0; flex-shrink: 0; }
.footer-lr img { height: 44px; width: auto; display: block; transition: transform 0.2s, opacity 0.2s; }
.footer-lr:hover img { transform: translateY(-1px); opacity: 0.85; }

/* ════════════════════════════════════════
   COOKIE CONSENT
   ════════════════════════════════════════ */
#cookie-banner {
  position: fixed;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 980;
  max-width: 720px;
  margin: 0 auto;
  background: var(--dark);
  color: var(--on-dark);
  border: 1px solid color-mix(in srgb, var(--on-dark) 14%, transparent);
  padding: 1.6rem 1.8rem;
  display: none;
  flex-direction: column;
  gap: 1.1rem;
  box-shadow: 0 18px 50px color-mix(in srgb, var(--dark) 45%, transparent);
  animation: slide-up 0.35s ease;
}
#cookie-banner.show { display: flex; }

.cookie-banner-text {
  font-size: 0.86rem;
  line-height: 1.7;
  color: color-mix(in srgb, var(--on-dark) 60%, transparent);
}
.cookie-banner-text strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--on-dark);
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}
.cookie-banner-text a { color: var(--on-dark); text-decoration: underline; }

.cookie-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.cookie-actions .btn { padding: 0.7rem 1.4rem; font-size: 0.72rem; }
.btn-ghost {
  background: transparent;
  color: var(--on-dark);
  border: 1.5px solid color-mix(in srgb, var(--on-dark) 28%, transparent);
}
.btn-ghost:hover { background: color-mix(in srgb, var(--on-dark) 10%, transparent); }

/* Cookie settings modal */
#cookie-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--dark) 65%, transparent);
  z-index: 990;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  backdrop-filter: blur(4px);
}
#cookie-modal.open { display: flex; }

.cookie-modal-box {
  background: var(--bg);
  color: var(--text);
  max-width: 560px;
  width: 100%;
  padding: 2.6rem;
  position: relative;
  max-height: 88vh;
  overflow-y: auto;
  animation: slide-up 0.28s ease;
}
.cookie-modal-box h3 {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.8rem;
  padding-right: 2rem;
}
.cookie-modal-box > p {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-soft);
  margin-bottom: 1.8rem;
}

#cookie-modal-close {
  position: absolute;
  top: 1.3rem;
  right: 1.3rem;
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--gray);
  transition: color 0.2s;
}
#cookie-modal-close:hover { color: var(--text); }

.cookie-cat {
  border-top: 1.5px solid var(--border);
  padding: 1.3rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
}
.cookie-cat:last-of-type { border-bottom: 1.5px solid var(--border); margin-bottom: 1.8rem; }
.cookie-cat-info h4 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.35rem;
}
.cookie-cat-info p {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.cookie-switch {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 24px;
}
.cookie-switch input { opacity: 0; width: 0; height: 0; }
.cookie-slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: var(--border);
  transition: background 0.25s;
  border-radius: 24px;
}
.cookie-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background: var(--bg);
  transition: transform 0.25s;
  border-radius: 50%;
}
.cookie-switch input:checked + .cookie-slider { background: var(--text); }
.cookie-switch input:checked + .cookie-slider::before { transform: translateX(20px); }
.cookie-switch input:disabled + .cookie-slider { background: var(--text); opacity: 0.45; cursor: not-allowed; }

.cookie-modal-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.cookie-modal-actions .btn { padding: 0.75rem 1.5rem; font-size: 0.72rem; }
.btn-dark-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--text);
}
.btn-dark-outline:hover { background: var(--text); color: var(--bg); }

/* ════════════════════════════════════════
   HERO MOTION GRAPHIC — trace, break, shatter
   ════════════════════════════════════════ */
.hero-headline-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 4vw, 3.5rem);
  flex-wrap: wrap;
  width: 100%;
  margin-bottom: 2.5rem;
}
.hero-headline-wrap .hero-headline { margin-bottom: 0; }

.hero-motion {
  flex: 0 0 auto;
  width: clamp(230px, 30vw, 360px);
  height: auto;
  overflow: visible;
}

/* The circle, built from shards that rest together as one ring,
   then burst outward and fade once the arrow breaks free. */
.hm-shard {
  fill: none;
  stroke: color-mix(in srgb, var(--motion) 100%, transparent);
  stroke-width: 2;
  stroke-linecap: round;
  transform-box: fill-box;
  transform-origin: center;
  animation: hm-shatter 3s ease-in-out infinite;
}
.hm-debris {
  fill: none;
  stroke: color-mix(in srgb, var(--motion) 100%, transparent);
  stroke-width: 1;
  stroke-linecap: round;
  transform-box: fill-box;
  transform-origin: center;
  animation: hm-shatter 3s ease-in-out infinite;
}
@keyframes hm-shatter {
  0%   { opacity: 0; transform: translate(0,0) rotate(0deg) scale(1); }
  6%   { opacity: 1; }
  58%  { opacity: 1; transform: translate(0,0) rotate(0deg) scale(1); }
  86%  { opacity: 0; transform: translate(calc(var(--dx) * 1px), calc(var(--dy) * 1px)) rotate(calc(var(--rot) * 1deg)) scale(0.6); }
  100% { opacity: 0; transform: translate(calc(var(--dx) * 1px), calc(var(--dy) * 1px)) rotate(calc(var(--rot) * 1deg)) scale(0.6); }
}

/* The arrow: rounds the loop (SMIL animateMotion), brightest element. */
.hm-arrow-shape { fill: var(--motion-arrow); }
.hm-arrow { animation: hm-arrow-fade 3s linear infinite; }
@keyframes hm-arrow-fade {
  0%   { opacity: 0; }
  4%   { opacity: 1; }
  72%  { opacity: 1; }
  80%  { opacity: 0.7; }
  100% { opacity: 0; scale: 5}
}

/* ════════════════════════════════════════
   PALETTE LAB — live colour tool
   ════════════════════════════════════════ */
#ct-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 330px;
  max-width: 88vw;
  background: #0d0d0f;
  color: #f4f4f5;
  z-index: 970;
  transform: translateX(105%);
  transition: transform 0.34s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -16px 0 50px rgba(0,0,0,0.5);
  font-family: var(--font-body);
}
#ct-panel.open { transform: translateX(0); }

.ct-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.3rem;
  border-bottom: 1px solid #232327;
  flex-shrink: 0;
}
.ct-head h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.ct-head h3 .ct-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: conic-gradient(#ff5b04, #ffd60a, #2ec4b6, #4361ee, #ff5b04);
}
#ct-close {
  background: none; border: none; color: #9a9aa2;
  font-size: 1.4rem; line-height: 1; cursor: pointer; transition: color 0.2s;
}
#ct-close:hover { color: #fff; }

.ct-presets {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1rem 1.3rem;
  border-bottom: 1px solid #232327;
  flex-shrink: 0;
}
.ct-presets label {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #76767e;
}
.ct-select {
  width: 100%;
  background-color: #1a1a1e;
  color: #e8e8ec;
  border: 1px solid #2c2c31;
  border-radius: 8px;
  padding: 0.6rem 2rem 0.6rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  transition: border-color 0.2s;
}
.ct-select:hover  { border-color: #3a3a40; }
.ct-select:focus  { outline: none; border-color: #5a5a64; }
.ct-select option { background: #1a1a1e; color: #e8e8ec; }

.ct-logo-row { display: flex; flex-direction: column; gap: 0.4rem; padding: 0.5rem 0; }
.ct-logo-row label { font-size: 0.8rem; color: #d7d7db; }

.ct-groups { overflow-y: auto; flex: 1; padding: 0.5rem 1.3rem 1rem; }

.ct-group-title {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #76767e;
  margin: 1.3rem 0 0.6rem;
}
.ct-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.4rem 0;
}
.ct-swatch {
  width: 30px; height: 30px;
  border-radius: 7px;
  border: 1px solid #34343a;
  padding: 0;
  background: none;
  cursor: pointer;
  flex-shrink: 0;
  overflow: hidden;
}
.ct-swatch::-webkit-color-swatch-wrapper { padding: 0; }
.ct-swatch::-webkit-color-swatch { border: none; border-radius: 6px; }
.ct-swatch::-moz-color-swatch { border: none; border-radius: 6px; }
.ct-row-info { flex: 1; min-width: 0; }
.ct-row-label { font-size: 0.82rem; color: #e4e4e7; }
.ct-row-hex {
  font-size: 0.68rem;
  color: #84848c;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  text-transform: uppercase;
}

.ct-actions {
  display: flex; gap: 0.6rem;
  padding: 1rem 1.3rem;
  border-top: 1px solid #232327;
  flex-shrink: 0;
}
.ct-btn {
  flex: 1;
  padding: 0.7rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid #34343a;
  background: #1a1a1e;
  color: #d4d4d8;
  transition: background 0.2s, transform 0.15s;
}
.ct-btn:hover { background: #26262b; transform: translateY(-1px); }
.ct-btn-primary { background: #f4f4f5; color: #0d0d0f; border-color: #f4f4f5; }
.ct-btn-primary:hover { background: #fff; }

.ct-toast {
  position: fixed;
  bottom: 1.5rem; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #0d0d0f;
  color: #fff;
  border: 1px solid #2c2c31;
  padding: 0.7rem 1.3rem;
  border-radius: 100px;
  font-size: 0.8rem;
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.ct-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .ct-toggle-label { display: none; }
  .ct-toggle { padding: 0.45rem; border-radius: 50%; }

  .about-grid   { grid-template-columns: 1fr; gap: 3rem; }
  .faq-cols     { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }

  .services-grid { grid-template-columns: 1fr 1fr; }
  .svc:nth-child(3n) { border-right: 1.5px solid var(--line); }
  .svc:nth-child(2n) { border-right: none; }
  .svc:nth-last-child(-n+3) { border-bottom: 1.5px solid var(--line); }
  .svc:last-child { border-bottom: none; }

  .work-grid { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }

  .services-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  section { padding: 5rem 5%; }
  .stat:nth-child(2), .stat:nth-child(3) { margin: 0; }

  .services-grid { grid-template-columns: 1fr; }
  .svc { border-right: none !important; border-bottom: 1.5px solid var(--line) !important; }
  .svc:last-child { border-bottom: none !important; }

  .c-row { grid-template-columns: 1fr; }

  footer { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .hero-bg-text { display: none; }

  .hero-headline-wrap { justify-content: center; gap: 1.5rem; }
  .hero-motion { width: min(74vw, 300px); margin: 0.5rem auto 0; }

  #cookie-banner { left: 0.8rem; right: 0.8rem; bottom: 0.8rem; padding: 1.3rem 1.4rem; }
  .cookie-modal-box { padding: 1.8rem 1.5rem; }
}
