/* =====================================================================
   COMPONENTS — buttons, header, footer, cards, sections, forms, overlays
   ===================================================================== */

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--primary); --btn-ink: var(--on-primary); --btn-line: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 48px; padding: 0.75em 1.45em;
  border-radius: var(--radius-pill); border: 1px solid var(--btn-line);
  background: var(--btn-bg); color: var(--btn-ink);
  font-weight: 600; font-size: 0.98rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn .icon { transition: transform 0.3s var(--ease); }
.btn:hover { --btn-bg: var(--primary-strong); box-shadow: 0 10px 24px -12px color-mix(in oklab, var(--primary) 70%, transparent); }
.btn:hover .icon--arrow { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--ghost { --btn-bg: transparent; --btn-ink: var(--ink); --btn-line: var(--line-strong); }
.btn--ghost:hover { --btn-bg: var(--ink); --btn-ink: var(--bg); --btn-line: var(--ink); box-shadow: none; }
.btn--light { --btn-bg: #fff; --btn-ink: #111; }
.btn--light:hover { --btn-bg: #f1efe9; }
.btn--outline-light { --btn-bg: transparent; --btn-ink: #fff; --btn-line: rgba(255,255,255,.45); }
.btn--outline-light:hover { --btn-bg: #fff; --btn-ink: #111; box-shadow: none; }
.btn--sm { min-height: 40px; padding: 0.55em 1.1em; font-size: 0.9rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: 0.7; pointer-events: none; }
.btn .spinner { width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.45em; font-weight: 600; color: var(--primary-text);
  text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  padding-bottom: 2px; transition: background-size 0.35s var(--ease);
}
.link-arrow:hover { background-size: 100% 1.5px; }
.link-arrow .icon { transition: transform 0.3s var(--ease); }
.link-arrow:hover .icon { transform: translate(2px, -2px); }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}
.icon-btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- Top bar & announcement ---------- */
.announce {
  background: var(--primary); color: var(--on-primary); font-size: var(--fs-sm);
  text-align: center; padding: 0.55rem var(--gutter);
}
.announce a { font-weight: 600; margin-left: 0.5em; color: inherit; }
.topbar { border-bottom: 1px solid var(--line); font-size: var(--fs-xs); color: var(--muted); display: none; }
.topbar .container { display: flex; justify-content: space-between; gap: var(--space-5); padding-block: 0.5rem; }
.topbar ul { list-style: none; display: flex; gap: var(--space-5); }
.topbar a, .topbar li { text-decoration: none; display: inline-flex; gap: 0.4em; align-items: center; }
.topbar a:hover { color: var(--ink); }
@media (min-width: 900px) { .topbar { display: block; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 30px -22px rgba(0,0,0,.35); }
.header-inner { display: flex; align-items: center; gap: var(--space-5); height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); margin-right: auto; min-width: 0; }
.brand-mark {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center;
  border-radius: calc(var(--radius-sm) + 2px); background: var(--primary); color: var(--on-primary);
  font-family: var(--font-heading); font-weight: 600; font-size: 1.3rem; line-height: 1;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.18);
}
.brand-name { font-family: var(--font-heading); font-size: 1.22rem; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand img { height: 40px; width: auto; }
.brand .logo-dark { display: none; }
[data-mode="dark"] .brand .logo-dark { display: block; }
[data-mode="dark"] .brand .logo-light.has-dark { display: none; }
.nav { display: none; }
.nav ul { list-style: none; display: flex; gap: 0.25rem; }
.nav-link {
  position: relative; display: block; padding: 0.55rem 0.85rem; border-radius: var(--radius-pill);
  text-decoration: none; font-weight: 500; font-size: 0.96rem; color: var(--ink-2);
  transition: color 0.2s, background-color 0.2s;
}
.nav-link:hover { color: var(--ink); background: var(--primary-soft); }
.nav-link[aria-current="page"] { color: var(--primary-text); }
.nav-link[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%; background: var(--accent);
}
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.header-actions .btn { display: none; }
.menu-toggle { border: 1px solid var(--line-strong); }
@media (max-width: 479px) { .header-actions .mode-toggle { display: none; } .header-inner { gap: var(--space-3); } }
@media (min-width: 480px) { .drawer-mode { display: none; } }
@media (min-width: 1080px) {
  .nav { display: block; }
  .header-actions .btn { display: inline-flex; }
  .menu-toggle { display: none; }
}

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(8,10,11,.5); opacity: 0; transition: opacity 0.35s var(--ease); }
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
  background: var(--bg); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.45s var(--ease);
  overflow-y: auto; overscroll-behavior: contain;
}
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter); height: var(--header-h); border-bottom: 1px solid var(--line); }
.drawer-nav { list-style: none; padding: var(--space-4) var(--gutter); }
.drawer-nav a {
  display: flex; justify-content: space-between; align-items: center; padding: 0.95rem 0;
  border-bottom: 1px solid var(--line); text-decoration: none;
  font-family: var(--font-heading); font-size: 1.55rem; letter-spacing: -0.01em;
}
.drawer-nav a[aria-current="page"] { color: var(--primary-text); }
.drawer-foot { margin-top: auto; padding: var(--space-5) var(--gutter) var(--space-6); display: grid; gap: var(--space-4); }
.drawer-foot .contact-mini { font-size: var(--fs-sm); color: var(--muted); display: grid; gap: 0.35rem; }
.drawer-foot .contact-mini a { text-decoration: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(2.5rem, 1rem + 5vw, 6rem) clamp(3.5rem, 2rem + 5vw, 7rem); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 75%);
}
.hero-grid { position: relative; display: grid; gap: clamp(2.5rem, 2rem + 3vw, 4.5rem); align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.08fr 0.92fr; } }
.hero-title { margin-bottom: 1.5rem; max-width: 13ch; }
.hero-title em { position: relative; white-space: nowrap; }
.hero-title em::after {
  content: ""; position: absolute; left: 0.05em; right: 0.05em; bottom: 0.06em; height: 0.12em;
  background: var(--accent); opacity: 0.5; border-radius: 4px; z-index: -1;
  transform-origin: left; animation: underline 1.1s 0.5s var(--ease) both;
}
@keyframes underline { from { transform: scaleX(0); } }
.hero-lead { font-size: clamp(1.08rem, 1rem + 0.35vw, 1.25rem); color: var(--muted); max-width: 52ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-proof { display: flex; flex-wrap: wrap; gap: var(--space-6); margin-top: 2.75rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.hero-proof div { display: grid; gap: 0.1rem; }
.hero-proof strong { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 500; letter-spacing: -0.01em; }
.hero-proof span { font-size: var(--fs-sm); color: var(--muted); }
.hero-visual { position: relative; min-height: 340px; }
.hero-visual .media--main { --ratio: 4 / 5; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 86%; margin-left: auto; }
.hero-visual .media--small {
  --ratio: 4 / 3; position: absolute; left: 0; bottom: 9%; width: 46%;
  border-radius: var(--radius); border: 6px solid var(--bg); box-shadow: var(--shadow);
}
.hero-badge {
  position: absolute; right: -4px; top: 9%; max-width: 230px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.15rem; box-shadow: var(--shadow); display: grid; gap: 0.2rem;
  animation: float 6s ease-in-out infinite;
}
.hero-badge strong { font-family: var(--font-heading); font-size: 1.65rem; font-weight: 500; color: var(--primary-text); line-height: 1.1; }
.hero-badge span { font-size: var(--fs-sm); color: var(--muted); line-height: 1.4; }
@keyframes float { 50% { transform: translateY(-8px); } }
@media (max-width: 999px) {
  .hero-visual { max-width: 560px; }
  .hero-badge { right: 0; top: auto; bottom: -18px; }
}

/* Full-bleed hero variant */
.hero--fullbleed { color: #fff; min-height: min(88vh, 820px); display: flex; align-items: flex-end; padding-block: 8rem 4.5rem; }
.hero--fullbleed::before { display: none; }
.hero--fullbleed .hero-bg { position: absolute; inset: 0; border-radius: 0; aspect-ratio: auto; animation: none; }
.hero--fullbleed .hero-bg img { transform: scale(1.04); }
.hero--fullbleed .hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,10,12,.25) 0%, rgba(6,10,12,.35) 40%, rgba(6,10,12,.85) 100%); }
.hero--fullbleed .container { position: relative; }
.hero--fullbleed h1, .hero--fullbleed .eyebrow { color: #fff; }
.hero--fullbleed .hero-title { max-width: 16ch; }
.hero--fullbleed .hero-title em { color: #fff; }
.hero--fullbleed .hero-lead { color: rgba(255,255,255,.85); }
.hero--fullbleed .hero-proof { border-color: rgba(255,255,255,.22); }
.hero--fullbleed .hero-proof span { color: rgba(255,255,255,.75); }
.hero--fullbleed .btn--ghost { --btn-ink: #fff; --btn-line: rgba(255,255,255,.5); }
.hero--fullbleed .btn--ghost:hover { --btn-bg: #fff; --btn-ink: #111; }

/* ---------- Clients marquee ---------- */
.clients { padding-block: 2.5rem; border-block: 1px solid var(--line); }
.clients-title { text-align: center; font-size: var(--fs-sm); color: var(--muted); margin-bottom: 1.4rem; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 3.5rem; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.client-name { font-family: var(--font-heading); font-size: 1.35rem; color: var(--ink-2); opacity: 0.7; white-space: nowrap; display: inline-flex; align-items: center; gap: 0.6rem; }
.client-name:nth-child(3n+2) { font-family: var(--font-body); font-weight: 700; letter-spacing: -0.03em; }
.client-name:nth-child(3n) { font-style: italic; }
.client-name::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--primary); opacity: 0.6; transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(calc(-50% - 1.75rem)); } }

/* ---------- Intro ---------- */
.intro-grid { display: grid; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
@media (min-width: 960px) { .intro-grid { grid-template-columns: 1fr 1fr; } }
.intro-grid h2 { max-width: 18ch; }
.intro-media { position: relative; }
.intro-media .media { --ratio: 5 / 6; border-radius: var(--radius-lg); }
.intro-media .years {
  position: absolute; left: -12px; bottom: 28px; background: var(--primary); color: var(--on-primary);
  border-radius: var(--radius); padding: 1.1rem 1.35rem; box-shadow: var(--shadow);
}
.intro-media .years strong { display: block; font-family: var(--font-heading); font-size: 2.4rem; font-weight: 500; line-height: 1; }
.intro-media .years span { font-size: var(--fs-sm); opacity: 0.85; }
.checklist { list-style: none; display: grid; gap: 0.85rem; margin: 1.75rem 0 2rem; }
.checklist li { display: grid; grid-template-columns: 26px 1fr; gap: 0.7rem; align-items: start; }
.checklist .icon { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-text); stroke-width: 2.4; }

/* ---------- Cards (shared) ---------- */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--primary-line); box-shadow: var(--shadow); }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* whole card clickable */
.card-link { text-decoration: none; }
.card-link:focus-visible { outline: none; }
.card:has(.card-link:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }
.tag {
  display: inline-flex; align-items: center; gap: 0.35em; padding: 0.3em 0.75em; border-radius: var(--radius-pill);
  background: var(--primary-soft); color: var(--primary-text); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.02em;
}
.meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; color: var(--muted); font-size: var(--fs-sm); }
.meta span { display: inline-flex; align-items: center; gap: 0.35rem; }

/* Service card */
.service-card { padding: 2rem 1.75rem 1.75rem; display: flex; flex-direction: column; gap: 0.9rem; min-height: 100%; }
.service-card .top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.6rem; }
.service-card .icon-wrap {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary-text); transition: background-color 0.35s, color 0.35s, transform 0.5s var(--ease);
}
.service-card .icon-wrap .icon { width: 26px; height: 26px; }
.service-card:hover .icon-wrap { background: var(--primary); color: var(--on-primary); transform: rotate(-6deg); }
.service-card .num { font-family: var(--font-heading); font-size: 0.95rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.service-card h3 { margin: 0; font-size: 1.4rem; }
.service-card p { color: var(--muted); margin: 0; flex: 1; }
.service-card .link-arrow { margin-top: 0.75rem; }

/* Service list variant */
.service-list { border-top: 1px solid var(--line); }
.service-row {
  position: relative; display: grid; gap: 1rem 2rem; padding: 2rem 0; border-bottom: 1px solid var(--line);
  align-items: center; transition: padding 0.4s var(--ease);
}
@media (min-width: 900px) {
  .service-row { grid-template-columns: 70px 1.1fr 1.4fr 180px; }
  .service-row:hover { padding-inline: 1rem; }
}
.service-row .num { font-family: var(--font-heading); color: var(--muted); font-size: 1.1rem; }
.service-row h3 { margin: 0; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.service-row p { margin: 0; color: var(--muted); }
.service-row .media { --ratio: 3 / 2; border-radius: var(--radius-sm); }
.service-row:hover h3 { color: var(--primary-text); }
.service-row:hover .media img { transform: scale(1.06); }

/* Project card */
.project-grid { display: grid; gap: var(--space-5); }
@media (min-width: 760px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) {
  .project-grid { grid-template-columns: repeat(3, 1fr); }
  .project-grid--featured > :first-child { grid-column: span 2; grid-row: span 2; }
  .project-grid--featured > :first-child .media { --ratio: auto; height: 100%; min-height: 360px; }
  .project-grid--featured > :first-child h3 { font-size: 1.9rem; }
}
.project-card { display: flex; flex-direction: column; overflow: hidden; }
.project-card .media { --ratio: 16 / 11; border-radius: 0; flex: 1; }
.project-card:hover .media img { transform: scale(1.05); }
.project-card .body { padding: 1.4rem 1.5rem 1.6rem; display: grid; gap: 0.7rem; }
.project-card h3 { margin: 0; font-size: 1.3rem; line-height: 1.3; }
.project-card .client { color: var(--muted); font-size: var(--fs-sm); }

/* News card */
.news-card { display: flex; flex-direction: column; overflow: hidden; }
.news-card .media { --ratio: 16 / 10; border-radius: 0; }
.news-card:hover .media img { transform: scale(1.05); }
.news-card .body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: 0.75rem; flex: 1; }
.news-card h3 { margin: 0; font-size: 1.25rem; line-height: 1.32; }
.news-card p { color: var(--muted); margin: 0; flex: 1; }

/* Team card */
.team-card { padding: 0; overflow: hidden; text-align: left; display: flex; flex-direction: column; }
.team-card .avatar { border-radius: 0; }
.team-card .body { padding: 1.2rem 1.35rem 1.4rem; display: grid; gap: 0.2rem; }
.team-card h3 { font-size: 1.15rem; margin: 0; }
.team-card .role { color: var(--muted); font-size: var(--fs-sm); }
.team-card button.card-link { all: unset; position: static; cursor: pointer; font-weight: 600; color: var(--primary-text); font-size: var(--fs-sm); margin-top: 0.6rem; display: inline-flex; align-items: center; gap: 0.35em; }
.team-card button.card-link::after { content: ""; position: absolute; inset: 0; }
.avatar {
  aspect-ratio: 1 / 1; display: grid; place-items: center; position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 30% 25%, color-mix(in oklab, var(--accent) 45%, transparent), transparent 55%),
    linear-gradient(140deg, var(--primary), var(--primary-strong));
  color: #fff; font-family: var(--font-heading); font-size: clamp(2.2rem, 1.5rem + 2vw, 3.2rem); letter-spacing: 0.02em;
}
.avatar::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px); background-size: 14px 14px; mask-image: linear-gradient(to top, #000, transparent); -webkit-mask-image: linear-gradient(to top, #000, transparent); }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar--sm { width: 52px; height: 52px; border-radius: 50%; font-size: 1.15rem; flex: none; }
.avatar--sm::after { display: none; }

/* ---------- Stats ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 2rem 1.25rem 0 0; display: grid; gap: 0.4rem; }
.stat + .stat { padding-left: 1.25rem; border-left: 1px solid var(--line); }
@media (max-width: 899px) { .stat:nth-child(3) { border-left: 0; padding-left: 0; } .stat:nth-child(n+3) { margin-top: 1.25rem; } }
.stat-value { font-family: var(--font-heading); font-size: clamp(2.6rem, 1.8rem + 3vw, 4.4rem); line-height: 1; letter-spacing: -0.03em; font-weight: 400; font-variant-numeric: tabular-nums; }
.stat-value small { font-size: 0.55em; color: var(--accent); margin-left: 0.05em; }
.stat-label { color: var(--muted); }

/* ---------- Process ---------- */
.steps { list-style: none; display: grid; gap: var(--space-5); counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding-top: 2.4rem; }
.step::before { content: ""; position: absolute; left: 0; right: 0; top: 18px; height: 1px; background: var(--line-strong); }
.step:first-child::before { left: 18px; }
.step-num {
  position: absolute; top: 0; left: 0; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: var(--bg); border: 1px solid var(--primary-line);
  color: var(--primary-text); font-weight: 700; font-size: var(--fs-sm);
  transition: background-color 0.3s, color 0.3s;
}
.section--alt .step-num { background: var(--bg-alt); }
.step:hover .step-num { background: var(--primary); color: var(--on-primary); }
.step h3 { margin: 1.25rem 0 0.4rem; font-size: 1.35rem; }
.step p { color: var(--muted); margin: 0; }

/* ---------- Testimonials ---------- */
.testimonials { position: relative; }
.t-viewport { overflow: hidden; }
.t-track { display: flex; transition: transform 0.7s var(--ease); }
.t-slide { flex: 0 0 100%; padding-right: 2px; }
.t-quote { font-family: var(--font-heading); font-size: clamp(1.45rem, 1.05rem + 1.7vw, 2.35rem); line-height: 1.32; letter-spacing: -0.012em; margin: 0 0 2rem; max-width: 30ch; text-wrap: pretty; }
.t-quote::before { content: "\201C"; display: block; font-size: 4rem; line-height: 0.6; height: 0.45em; color: var(--accent); }
.t-person { display: flex; align-items: center; gap: 0.9rem; }
.t-person strong { display: block; }
.t-person span { color: var(--muted); font-size: var(--fs-sm); }
.t-controls { display: flex; align-items: center; gap: 0.6rem; margin-top: 2.5rem; }
.t-dots { display: flex; gap: 0.4rem; margin-right: auto; }
.t-dot { width: 28px; height: 4px; border-radius: 4px; background: var(--line-strong); border: 0; padding: 0; transition: background-color 0.3s, width 0.3s; }
.t-dot[aria-current="true"] { background: var(--primary-text); width: 44px; }
@media (min-width: 1000px) {
  .testimonials-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 4rem; align-items: start; }
}

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1.5rem; align-items: center;
  padding: 1.4rem 0; font-family: var(--font-heading); font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); font-weight: 500;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--primary-text); }
.faq-item .plus { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: transform 0.35s var(--ease), background-color 0.3s; }
.faq-item[open] .plus { transform: rotate(45deg); background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.faq-answer { padding: 0 3.5rem 1.6rem 0; color: var(--muted); max-width: 75ch; }
.faq-answer p { margin: 0; }
.faq-layout { display: grid; gap: 2.5rem; }
@media (min-width: 1000px) { .faq-layout { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 5rem; } .faq-layout .section-head { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; } }

/* ---------- Values / milestones ---------- */
.value-card { padding: 2rem 1.6rem; }
.value-card .icon-wrap { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--ink); margin-bottom: 1.4rem; }
.value-card h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.value-card p { margin: 0; color: var(--muted); }
.timeline { list-style: none; position: relative; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 90px 1fr; gap: 1.5rem; padding: 1.6rem 0; border-top: 1px solid var(--line); }
@media (min-width: 800px) { .timeline li { grid-template-columns: 180px 1fr 1.3fr; align-items: baseline; } }
.timeline .year { font-family: var(--font-heading); font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); color: var(--primary-text); line-height: 1; }
.timeline h3 { margin: 0; font-size: 1.3rem; }
.timeline p { margin: 0; color: var(--muted); grid-column: 2; }
@media (min-width: 800px) { .timeline p { grid-column: auto; } }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--primary); color: var(--on-primary);
  padding: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  display: grid; gap: 2rem; align-items: end;
}
.cta-band::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -220px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent) 55%, transparent), transparent 65%); opacity: 0.55;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0; opacity: 0.25;
  background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: linear-gradient(120deg, transparent 40%, #000); -webkit-mask-image: linear-gradient(120deg, transparent 40%, #000);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin: 0; max-width: 18ch; }
.cta-band h2 em { color: #fff; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 0.12em; }
.cta-band .eyebrow { color: rgba(255,255,255,.8); }
.cta-band p { color: rgba(255,255,255,.85); max-width: 52ch; margin: 1rem 0 0; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (min-width: 960px) { .cta-band { grid-template-columns: 1.5fr auto; } .cta-band .actions { justify-content: flex-end; } }

/* Contact strip */
.contact-strip { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: center; padding: 2rem clamp(1.5rem, 1rem + 2vw, 2.5rem); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.contact-strip h2 { font-size: var(--fs-xl); margin: 0 0 0.3rem; }
.contact-strip p { margin: 0; color: var(--muted); }

/* ---------- Page header (inner pages) ---------- */
.page-hero { position: relative; padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) clamp(2.5rem, 1.5rem + 3vw, 4rem); border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 60% 80% at 85% 0%, #000, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 60% 80% at 85% 0%, #000, transparent 70%);
}
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(2.3rem, 1.5rem + 3.6vw, 4.4rem); max-width: 17ch; margin-bottom: 1.1rem; }
.page-hero .lead { margin: 0; }
.page-hero-grid { display: grid; gap: 2.5rem; align-items: end; }
@media (min-width: 1000px) { .page-hero-grid.has-media { grid-template-columns: 1.3fr 1fr; } }
.page-hero .media { --ratio: 4 / 3; border-radius: var(--radius-lg); }
.breadcrumb { margin-bottom: 1.75rem; font-size: var(--fs-sm); color: var(--muted); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; opacity: 0.5; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink); }

/* ---------- Detail pages ---------- */
.detail-layout { display: grid; gap: 3rem; }
@media (min-width: 1000px) { .detail-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 4.5rem; } .detail-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); align-self: start; } }
.detail-cover { --ratio: 21 / 9; border-radius: var(--radius-lg); margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
@media (max-width: 700px) { .detail-cover { --ratio: 4 / 3; } }
.prose { font-size: 1.1rem; line-height: 1.75; color: var(--ink-2); max-width: 70ch; }
.prose h2 { font-size: var(--fs-xl); margin: 2.2rem 0 0.75rem; color: var(--ink); }
.prose h3 { margin: 1.8rem 0 0.6rem; }
.prose > p:first-child { font-size: 1.25rem; color: var(--ink); line-height: 1.6; }
.prose ul { padding-left: 1.2rem; margin-bottom: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.aside-card { padding: 1.6rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); margin-bottom: 1.25rem; }
.aside-card h2, .aside-card h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.aside-card--primary { background: var(--primary); color: var(--on-primary); border-color: transparent; }
.aside-card--primary h2, .aside-card--primary h3 { color: #fff; }
.aside-card--primary p { color: rgba(255,255,255,.85); }
.aside-links { list-style: none; display: grid; }
.aside-links a { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 0.75rem 0; border-top: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.aside-links a:hover, .aside-links a[aria-current] { color: var(--primary-text); }
.fact-list { display: grid; gap: 0; margin: 0; }
.fact-list div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; border-top: 1px solid var(--line); }
.fact-list dt { color: var(--muted); }
.fact-list dd { margin: 0; font-weight: 600; text-align: right; }
.feature-list { list-style: none; display: grid; gap: 0.8rem; margin: 1.25rem 0 2rem; padding: 0 !important; }
@media (min-width: 700px) { .feature-list--2 { grid-template-columns: 1fr 1fr; } }
.feature-list li { display: flex; gap: 0.7rem; align-items: flex-start; padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin: 0 !important; font-size: 1rem; }
.feature-list .icon { color: var(--primary-text); margin-top: 0.15em; stroke-width: 2.2; }
.result-grid { display: grid; gap: 1rem; margin: 1.5rem 0 2.5rem; }
@media (min-width: 640px) { .result-grid { grid-template-columns: repeat(3, 1fr); } }
.result { padding: 1.5rem; border-radius: var(--radius); background: var(--primary-soft); border: 1px solid var(--primary-line); }
.result strong { display: block; font-family: var(--font-heading); font-size: 2.1rem; font-weight: 500; line-height: 1.1; color: var(--primary-text); margin-bottom: 0.35rem; }
.result span { color: var(--ink-2); font-size: var(--fs-sm); }
.pull-quote { margin: 2.5rem 0; padding: 0 0 0 1.5rem; border-left: 3px solid var(--accent); }
.pull-quote p { font-family: var(--font-heading); font-size: 1.5rem; line-height: 1.4; color: var(--ink); margin-bottom: 0.6rem; }
.pull-quote cite { font-style: normal; color: var(--muted); font-size: var(--fs-sm); }
.pager { display: grid; gap: 1rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
@media (min-width: 700px) { .pager { grid-template-columns: 1fr 1fr; } }
.pager a { display: grid; gap: 0.3rem; padding: 1.25rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color 0.3s, background-color 0.3s; }
.pager a:hover { border-color: var(--primary-line); background: var(--primary-soft); }
.pager span { font-size: var(--fs-sm); color: var(--muted); }
.pager strong { font-family: var(--font-heading); font-weight: 500; font-size: 1.15rem; }
.pager .next { text-align: right; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.share > span { font-weight: 600; margin-right: 0.5rem; }
.article-head { max-width: 860px; }
.article-head h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.8rem); max-width: 22ch; }
.byline { display: flex; align-items: center; gap: 0.9rem; margin-top: 1.75rem; }
.byline strong { display: block; }

/* ---------- Toolbar: filters + search ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin-bottom: 2.25rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  border: 1px solid var(--line-strong); background: transparent; border-radius: var(--radius-pill);
  padding: 0.5rem 1rem; font-size: var(--fs-sm); font-weight: 500; min-height: 40px;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .count { opacity: 0.6; margin-left: 0.3em; font-variant-numeric: tabular-nums; }
.search-field { position: relative; flex: 1 1 260px; max-width: 360px; }
.search-field .icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-field input { width: 100%; min-height: 46px; padding: 0.6rem 1rem 0.6rem 2.8rem; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background: var(--surface); }
.search-field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.results-note { color: var(--muted); font-size: var(--fs-sm); margin: -1rem 0 1.5rem; }
.load-more-wrap { display: flex; justify-content: center; margin-top: 3rem; }

/* ---------- Empty / error states ---------- */
.state {
  text-align: center; padding: clamp(3rem, 2rem + 4vw, 5rem) 1.5rem; border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg); display: grid; justify-items: center; gap: 0.75rem; grid-column: 1 / -1;
}
.state .icon-wrap { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-text); margin-bottom: 0.5rem; }
.state .icon-wrap .icon { width: 28px; height: 28px; }
.state h2, .state h3 { margin: 0; font-size: var(--fs-lg); }
.state p { margin: 0 0 0.75rem; color: var(--muted); max-width: 46ch; }
.state--error .icon-wrap { background: var(--danger-soft); color: var(--danger); }

/* ---------- Gallery ---------- */
.masonry { columns: 1; column-gap: 1rem; }
@media (min-width: 600px) { .masonry { columns: 2; } }
@media (min-width: 1000px) { .masonry { columns: 3; } }
.gallery-item { break-inside: avoid; margin: 0 0 1rem; position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; }
.gallery-item .media { border-radius: var(--radius); }
.gallery-item:nth-child(3n+1) .media { --ratio: 4 / 5; }
.gallery-item:nth-child(3n+2) .media { --ratio: 4 / 3; }
.gallery-item:nth-child(3n) .media { --ratio: 1 / 1; }
.gallery-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1.1rem 1rem; color: #fff; font-weight: 500;
  background: linear-gradient(transparent, rgba(0,0,0,.7)); opacity: 0; transform: translateY(8px); transition: opacity 0.35s, transform 0.35s var(--ease);
}
.gallery-item:hover .gallery-cap, .gallery-item:focus-visible .gallery-cap { opacity: 1; transform: none; }
.gallery-item:hover img { transform: scale(1.04); }
@media (hover: none) { .gallery-cap { opacity: 1; transform: none; } }
.gallery-strip { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .gallery-strip { grid-template-columns: repeat(4, 1fr); } }
.gallery-strip .media { --ratio: 1 / 1; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(6,8,9,.94); display: grid; grid-template-rows: auto 1fr auto; color: #fff; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-bar { display: flex; justify-content: space-between; align-items: center; padding: 1rem var(--gutter); font-size: var(--fs-sm); color: rgba(255,255,255,.75); }
.lightbox-stage { position: relative; display: grid; place-items: center; padding: 0 var(--gutter); min-height: 0; }
.lightbox-stage img { max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); max-width: 100%; width: auto; height: auto; object-fit: contain; border-radius: var(--radius-sm); }
.lightbox-caption { text-align: center; padding: 1rem var(--gutter) 1.5rem; }
.lightbox .icon-btn { color: #fff; border-color: rgba(255,255,255,.25); }
.lightbox .icon-btn:hover { background: #fff; color: #111; }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.4); }
.lightbox-prev { left: var(--gutter); }
.lightbox-next { right: var(--gutter); }

/* ---------- Modal (team bio) ---------- */
.modal { border: 0; padding: 0; border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); width: min(720px, calc(100% - 2rem)); max-height: calc(100% - 2rem); box-shadow: var(--shadow-lg); }
.modal::backdrop { background: rgba(6,8,9,.6); backdrop-filter: blur(4px); }
.modal[open] { animation: pop 0.35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
.modal-inner { display: grid; }
@media (min-width: 640px) { .modal-inner { grid-template-columns: 240px 1fr; } }
.modal .avatar { aspect-ratio: auto; min-height: 220px; }
.modal-body { padding: 2rem; position: relative; }
.modal-body h2 { font-size: 1.7rem; margin-bottom: 0.2rem; padding-right: 2.5rem; }
.modal-close { position: absolute; top: 1rem; right: 1rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.15rem; }
.form-row { display: grid; gap: 1.15rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 600; font-size: var(--fs-sm); }
.field label .req { color: var(--danger); }
.field .hint { font-size: var(--fs-xs); color: var(--muted); }
.input {
  width: 100%; min-height: 50px; padding: 0.75rem 1rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
textarea.input { min-height: 140px; resize: vertical; }
select.input { 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='%23888' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; background-size: 18px; padding-right: 2.6rem; }
.input:hover { border-color: var(--muted); }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }
.field-error { color: var(--danger); font-size: var(--fs-sm); display: flex; gap: 0.35rem; align-items: center; }
.field-error:empty { display: none; }
.check { display: flex; gap: 0.7rem; align-items: flex-start; font-size: var(--fs-sm); color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: 0.1rem; accent-color: var(--primary); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { border-radius: var(--radius-sm); padding: 0.9rem 1rem; font-size: var(--fs-sm); display: flex; gap: 0.6rem; align-items: flex-start; }
.form-status:empty { display: none; }
.form-status--error { background: var(--danger-soft); color: var(--danger); }
.form-success { text-align: center; padding: 2.5rem 1rem; display: grid; justify-items: center; gap: 0.75rem; }
.form-success .icon-wrap { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); animation: pop 0.5s var(--ease); }
.form-success .icon-wrap .icon { width: 34px; height: 34px; stroke-width: 2.4; }
.form-success h3 { margin: 0.5rem 0 0; }
.form-success p { color: var(--muted); max-width: 44ch; margin: 0; }
.form-success .ref { font-family: ui-monospace, monospace; font-size: var(--fs-sm); background: var(--bg-alt); padding: 0.3rem 0.7rem; border-radius: 6px; }

/* Contact page */
.contact-layout { display: grid; gap: 2.5rem; }
@media (min-width: 1000px) { .contact-layout { grid-template-columns: 1fr 1.35fr; gap: 4rem; } }
.contact-cards { display: grid; gap: 1rem; }
.contact-card { display: grid; grid-template-columns: 48px 1fr; gap: 1rem; padding: 1.35rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.contact-card .icon-wrap { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-text); }
.contact-card h2 { font-size: 1.1rem; margin: 0 0 0.35rem; }
.contact-card p, .contact-card ul { margin: 0; color: var(--muted); list-style: none; font-size: 0.98rem; }
.contact-card a { text-decoration: none; color: var(--ink); font-weight: 500; }
.contact-card a:hover { color: var(--primary-text); text-decoration: underline; }
.contact-card .hours li { display: flex; justify-content: space-between; gap: 1rem; }
.form-card { padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.form-card h2 { font-size: var(--fs-xl); margin-bottom: 0.4rem; }
.map-box { position: relative; border-radius: var(--radius-lg); overflow: hidden; height: clamp(320px, 38vw, 480px); width: 100%; background: var(--bg-alt); border: 1px solid var(--line); }
.map-box iframe { width: 100%; height: 100%; border: 0; }
.map-placeholder { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 1.5rem;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 40px 40px; }
.map-placeholder > div { display: grid; justify-items: center; gap: 0.75rem; background: var(--surface); padding: 1.5rem 1.75rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.map-placeholder p { margin: 0; color: var(--muted); font-size: var(--fs-sm); max-width: 36ch; }

/* Legal */
.legal-layout { display: grid; gap: 3rem; }
@media (min-width: 1000px) { .legal-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 5rem; } .legal-toc { position: sticky; top: calc(var(--header-h) + 1.5rem); align-self: start; } }
.legal-toc ol { list-style: none; display: grid; gap: 0.15rem; border-left: 1px solid var(--line); }
.legal-toc a { display: block; padding: 0.4rem 1rem; text-decoration: none; color: var(--muted); font-size: var(--fs-sm); margin-left: -1px; border-left: 2px solid transparent; }
.legal-toc a:hover { color: var(--ink); border-left-color: var(--primary); }

/* ---------- Footer ---------- */
.site-footer { background: var(--inverse-bg); color: var(--inverse-ink); --ink: var(--inverse-ink); --muted: var(--inverse-muted); --line: var(--inverse-line); --primary-text: color-mix(in oklab, var(--primary) 45%, #fff); padding-top: clamp(3.5rem, 2rem + 4vw, 6rem); }
.footer-top { display: grid; gap: 3rem; padding-bottom: 3.5rem; border-bottom: 1px solid var(--line); }
@media (min-width: 1000px) { .footer-top { grid-template-columns: 1.3fr 2fr; gap: 5rem; } }
.site-footer .brand { color: var(--inverse-ink); margin: 0 0 1.25rem; }
.footer-about { color: var(--muted); max-width: 42ch; }
.footer-cols { display: grid; gap: 2rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .footer-cols { grid-template-columns: repeat(4, 1fr); } }
.footer-cols h2 { font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.1rem; }
.footer-cols ul { list-style: none; display: grid; gap: 0.6rem; }
.footer-cols a { text-decoration: none; color: var(--ink); opacity: 0.88; font-size: 0.97rem; }
.footer-cols a:hover { opacity: 1; color: var(--primary-text); text-decoration: underline; }
.footer-contact li { color: var(--muted); font-size: 0.95rem; }
.newsletter { margin-top: 2rem; max-width: 440px; }
.newsletter h2 { font-size: 1.2rem; margin-bottom: 0.3rem; color: var(--ink); }
.newsletter p { color: var(--muted); font-size: var(--fs-sm); }
.newsletter-row { display: flex; gap: 0.5rem; }
.newsletter .input { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: #fff; min-height: 48px; }
.newsletter .input::placeholder { color: rgba(255,255,255,.45); }
.newsletter .field-error, .newsletter .form-ok { margin-top: 0.5rem; }
.form-ok { color: #7ee2a8; font-size: var(--fs-sm); display: flex; gap: 0.4rem; align-items: center; }
.social-list { list-style: none; display: flex; gap: 0.5rem; margin-top: 1.5rem; }
.social-list a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); transition: background-color 0.25s, color 0.25s, border-color 0.25s; }
.social-list a:hover { background: var(--ink); color: var(--inverse-bg); border-color: var(--ink); }
.social-list .icon { width: 18px; height: 18px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; padding-block: 1.75rem 2rem; font-size: var(--fs-sm); color: var(--muted); }
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--ink); text-decoration: underline; }
.footer-wordmark { font-family: var(--font-heading); font-size: clamp(3rem, 1rem + 10vw, 10rem); line-height: 0.85; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1px var(--line); text-align: center; white-space: nowrap; overflow: hidden; padding-top: 1rem; user-select: none; }

/* ---------- Floating utilities ---------- */
.fab-stack { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: grid; gap: 0.6rem; justify-items: end; }
.fab { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; border: 0; box-shadow: var(--shadow); text-decoration: none; transition: transform 0.3s var(--ease), opacity 0.3s; }
.fab:hover { transform: translateY(-3px); }
.fab--whatsapp { background: #25d366; color: #fff; }
.fab--whatsapp .icon { width: 28px; height: 28px; }
.fab--top { width: 46px; height: 46px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); opacity: 0; pointer-events: none; transform: translateY(10px); }
.fab--top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.theme-panel { position: fixed; left: 18px; bottom: 18px; z-index: 60; }
.theme-panel > button { box-shadow: var(--shadow); background: var(--surface); border: 1px solid var(--line); width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); }
.theme-popover { position: absolute; bottom: 60px; left: 0; width: 250px; padding: 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.theme-popover h2 { font-family: var(--font-body); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin: 0 0 0.75rem; }
.swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.45rem; margin-bottom: 0.9rem; }
.swatch { aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line-strong); padding: 0; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }
.theme-popover p { font-size: var(--fs-xs); color: var(--muted); margin: 0.75rem 0 0; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding-block: clamp(4rem, 3rem + 6vw, 8rem); }
.notfound .big { font-family: var(--font-heading); font-size: clamp(6rem, 3rem + 14vw, 13rem); line-height: 0.9; letter-spacing: -0.05em; color: var(--primary-text); margin: 0; }
.notfound h1 { font-size: var(--fs-2xl); margin: 1rem auto; }
.notfound p { color: var(--muted); max-width: 48ch; margin: 0 auto 2rem; }
.notfound .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.notfound .quick { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 3rem; }

/* Header fit: long brand names + many menu items */
@media (min-width: 1080px) and (max-width: 1279px) {
  .header-actions .btn { display: none; }
  .nav-link { padding-inline: 0.65rem; }
}
@media (min-width: 1280px) { .brand { flex-shrink: 0; } }
