/* components.css — reusable UI patterns. References tokens.css vars only. */

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  font-family: var(--font-body);
  font-weight: 500; font-size: 15px; line-height: 1;
  padding: 13px 22px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition:
    background var(--motion-duration-xs),
    color var(--motion-duration-xs),
    border-color var(--motion-duration-xs),
    box-shadow var(--motion-duration-xs),
    transform 90ms;
  text-decoration: none; white-space: nowrap;
}
.btn:active { transform: scale(0.99); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-sm { font-size: 13px; padding: 9px 14px; }
.btn-lg { font-size: 16px; padding: 16px 28px; gap: 12px; }
.btn-lg svg { width: 18px; height: 18px; }

.btn-primary { background: var(--yellow-500); color: var(--ink-900); }
.btn-primary:hover { background: var(--yellow-600); }
.btn-primary:active { background: var(--yellow-700); }

.btn-outline-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,0.45); }
.btn-outline-dark:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.7); }

.btn-ghost { background: transparent; color: var(--navy-700); }
.btn-ghost:hover { background: var(--gray-100); }

/* ── Nav (fixed) ──────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex; align-items: center;
  background: transparent;
  transition: background var(--motion-duration-md) ease, border-color var(--motion-duration-md) ease, box-shadow var(--motion-duration-md) ease;
  border-bottom: 1px solid transparent;
}
.nav-inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-brand {
  /* Push every sibling (.nav-links + .nav-actions) to the opposite edge.
     Stays correct even when .nav-links is display:none on tablet/mobile. */
  margin-right: auto;
  display: inline-flex; align-items: center;
  text-decoration: none;
  color: #fff;
  transition: color var(--motion-duration-md);
}
.nav-brand .logo { display: block; height: 120px; width: auto; }
.nav-brand .logo-color { display: none; }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-link {
  position: relative;
  font-family: var(--font-body);
  font-weight: 500; font-size: 14.5px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color 180ms;
}
.nav-link::after {
  content: ""; position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--motion-duration-sm) var(--motion-ease-standard);
}
.nav-link:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 14px; }

.lang {
  display: inline-flex; align-items: center;
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.06em;
  overflow: hidden;
  transition: border-color var(--motion-duration-md);
}
.lang button {
  background: none; border: 0; cursor: pointer;
  padding: 8px 12px;
  min-width: 36px; min-height: 36px;
  font: inherit; letter-spacing: inherit;
  color: rgba(255,255,255,0.72);
  display: inline-flex; align-items: center; justify-content: center;
}
.lang button[aria-pressed="true"],
.lang button.on { background: var(--yellow-500); color: var(--ink-900); }

.nav.is-scrolled {
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border-subtle);
  box-shadow: var(--shadow-sm);
}
.nav.is-scrolled .nav-brand { color: var(--text-primary); }
.nav.is-scrolled .nav-link { color: var(--text-secondary); }
.nav.is-scrolled .nav-link:hover { color: var(--text-primary); }
.nav.is-scrolled .lang { border-color: var(--border-strong); }
.nav.is-scrolled .lang button { color: var(--text-tertiary); }
.nav.is-scrolled .lang button.on { color: var(--ink-900); }
.nav.is-scrolled .logo-white { display: none; }
.nav.is-scrolled .logo-color { display: block; }

.nav-burger {
  display: none;
  width: 44px; height: 44px;
  margin-left: 4px;
  background: none; border: 0; cursor: pointer;
  padding: 0;
  align-items: center; justify-content: center;
  color: #fff;
}
.nav-burger span {
  display: block; width: 22px; height: 1.5px;
  background: currentColor; position: relative;
}
.nav-burger span::before, .nav-burger span::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 1.5px;
  background: currentColor;
  transition: transform 200ms;
}
.nav-burger span::before { top: -7px; }
.nav-burger span::after  { top:  7px; }
.nav.is-scrolled .nav-burger { color: var(--text-primary); }

/* Tighten the nav row on small phones so logo + lang toggle + burger fit
   without crowding the brand or wrapping. */
@media (max-width: 480px) {
  .nav-inner { gap: 8px; padding: 0 var(--container-pad); }
  .nav-brand .logo { height: 48px; }
}

/* ── Mobile menu ──────────────────────────────────────────────── */
.mobile-menu {
  position: fixed; inset: 0;
  background: var(--ink-900);
  z-index: 200;
  display: flex; flex-direction: column;
  padding: 28px var(--container-pad) 40px;
  transform: translateY(-100%);
  transition: transform var(--motion-duration-md) var(--motion-ease-standard);
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu-head {
  display: flex; justify-content: space-between; align-items: center;
  height: var(--nav-h);
  padding-top: 0;
}
.mobile-menu-head .nav-brand { color: #fff; }
.mm-close {
  width: 40px; height: 40px;
  background: none; border: 0; cursor: pointer; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.mobile-menu nav {
  display: flex; flex-direction: column; gap: 0;
  margin-top: 24px;
}
.mobile-menu nav a {
  font-family: var(--font-display);
  font-weight: 500; font-size: 22px;
  letter-spacing: -0.01em;
  color: #fff; text-decoration: none;
  padding: 14px 0;
  min-height: 44px;
  display: flex; align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-menu nav a:last-child { border-bottom: 0; }
.mobile-menu nav a.is-active { color: var(--yellow-500); }
.mobile-menu .mm-cta {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 24px;
  width: 100%;
  min-height: 52px;
  font-size: 16px;
}
.mobile-menu .mm-foot {
  margin-top: auto;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-top: 28px;
}

/* ── Footer ───────────────────────────────────────────────────── */
.footer {
  background: var(--ink-900);
  color: #fff;
  padding: 48px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 24px;
}
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; gap: 20px; } }
.footer-brand { display: flex; flex-direction: column; gap: 12px; max-width: 30ch; }
.footer-brand .mark { display: flex; align-items: center; }
.footer-brand .mark .logo { display: block; height: 56px; width: auto; }
.footer-legal {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 4px 14px;
}
.footer-legal a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 12.5px;
  display: inline-flex; align-items: center;
  min-height: 24px;
  transition: color var(--motion-duration-xs);
}
.footer-legal a:hover { color: var(--yellow-500); }
@media (hover: none) and (pointer: coarse) {
  .footer-legal a { min-height: 36px; }
}
.footer-col h4 {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.footer-col a {
  color: rgba(255,255,255,0.85); text-decoration: none; font-size: 13.5px;
  display: inline-flex; align-items: center;
  min-height: 30px;
  padding: 3px 0;
  transition: color var(--motion-duration-xs);
}
.footer-col a:hover { color: var(--yellow-500); }
@media (hover: none) and (pointer: coarse) {
  .footer-col a { min-height: 44px; padding: 6px 0; }
}
.social-row { display: flex; gap: 8px; }
.social-row a {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.75);
  transition: all var(--motion-duration-xs);
}
.social-row a:hover { color: var(--yellow-500); border-color: var(--yellow-500); }
@media (hover: none) and (pointer: coarse) {
  .social-row a { width: 44px; height: 44px; }
}
.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(215,172,42,0.35), transparent);
  margin: 0 0 12px;
}
.footer-bottom {
  display: flex; align-items: center;
  font-size: 12.5px;
  color: rgba(255,255,255,0.6);
}

/* ── Service cards ────────────────────────────────────────────── */
.svc-card {
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
  display: flex; flex-direction: column; gap: 18px;
  transition: box-shadow var(--motion-duration-md), border-color var(--motion-duration-md), transform var(--motion-duration-md);
}
@media (min-width: 768px) {
  .svc-card { padding: 36px 36px 32px; }
}
@media (max-width: 480px) {
  .svc-card { padding: 24px 20px; gap: 14px; }
}
.svc-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.svc-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: var(--yellow-50);
  color: var(--yellow-700);
  display: inline-flex; align-items: center; justify-content: center;
}
.svc-icon svg { width: 26px; height: 26px; }
.svc-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.2;
  color: var(--navy-700);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.svc-pills { display: grid; grid-template-columns: 1fr; gap: 10px; }
.svc-pill {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: baseline;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--gray-50);
  transition: border-color 200ms, background 200ms;
}
@media (max-width: 480px) {
  .svc-pill {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px 14px;
  }
}
.svc-pill:hover { border-color: var(--yellow-500); background: var(--yellow-50); }
.svc-pill .name {
  font-family: var(--font-display);
  font-weight: 600; font-size: 14px;
  color: var(--navy-700);
}
.svc-pill .desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* ── Project card ─────────────────────────────────────────────── */
.proj-card {
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column;
  transition: box-shadow var(--motion-duration-md), border-color var(--motion-duration-md), transform var(--motion-duration-md);
  width: 100%;
  text-decoration: none;
  color: inherit;
}
.proj-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.proj-img {
  aspect-ratio: 4/3;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.proj-img.bg-ink   { background: var(--ink-900); }
.proj-img.bg-navy  { background: var(--navy-700); }
.proj-img.bg-deep  { background: var(--ink-700); }
.proj-img > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.proj-img svg {
  width: 110px; height: 110px; opacity: 0.18;
  color: #fff;
  transition: transform 700ms var(--motion-ease-standard);
}
.proj-card:hover .proj-img svg { transform: scale(1.04); }
.proj-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.proj-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.proj-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px; line-height: 1.25; letter-spacing: -0.01em;
  color: var(--navy-700);
  margin: 0;
  text-wrap: balance;
}
.proj-loc { font-size: 14.5px; color: #3B4A55; margin: 0; }
.proj-link {
  margin-top: auto;
  padding: 12px 0 0;
  min-height: 44px;
  font-family: var(--font-body); font-weight: 500; font-size: 14px;
  color: var(--navy-700);
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap 180ms;
}
.proj-card:hover .proj-link { gap: 10px; }

/* ── Badges ──────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body); font-weight: 500;
  font-size: 12px; line-height: 1;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: var(--radius-pill); background: currentColor; opacity: 0.8; }
.badge.client-res { background: #E6EEF7; color: #003B72; }
.badge.client-com { background: var(--ink-50); color: var(--ink-700); }
.badge.client-ind { background: #FFF8E5; color: #6B5210; }
.badge.install {
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.02em;
}
.badge.install::before { display: none; }
.badge.install .dot { width: 6px; height: 6px; border-radius: var(--radius-pill); }
.badge.install.is-on  { background: #FFF8E5; color: #6B5210; border-color: #ECD58A; }
.badge.install.is-on  .dot { background: var(--yellow-500); }
.badge.install.is-off { background: #E6EEF7; color: #003B72; border-color: #BFD2E6; }
.badge.install.is-off .dot { background: var(--ink-700); }
.badge.install.is-hyb { background: var(--yellow-500); border-color: var(--yellow-500); color: var(--ink-900); }
.badge.install.is-hyb .dot { display: none; }
.badge.cap {
  background: var(--navy-700);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12.5px;
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  letter-spacing: -0.01em;
}
.badge.cap::before { background: var(--yellow-500); opacity: 1; }

/* ── Form fields (contacto) ───────────────────────────────────── */
.form-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; max-width: 64ch; }
.form-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.018em;
  color: var(--navy-700);
}
.form-head p { font-size: 15px; color: var(--text-secondary); margin: 0; }

form.contact-form {
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  gap: 22px;
}

.field { display: flex; flex-direction: column; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }

.label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-900);
  display: inline-flex; align-items: center; gap: 6px;
}
.label .req { color: #B0420C; font-size: 14px; }
.label .opt {
  color: var(--text-tertiary);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.helper {
  font-size: 13px;
  color: var(--text-helper);
  line-height: 1.5;
  margin: 2px 0 0;
}

.input, .select, .textarea {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.4;
  color: var(--text-primary);
  background: var(--surface-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  min-height: 48px;
  width: 100%;
  transition: border-color var(--motion-duration-xs), box-shadow var(--motion-duration-xs), background var(--motion-duration-xs);
}
.input::placeholder, .textarea::placeholder { color: var(--gray-400); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--gray-400); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--yellow-500);
  box-shadow: var(--shadow-focus);
}
.textarea { resize: vertical; min-height: 112px; }

.select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236F7070' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.dropzone {
  position: relative;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--gray-50);
  padding: 22px;
  display: flex; align-items: center; gap: 14px;
  cursor: pointer;
  transition: border-color 160ms, background 160ms;
  min-height: 84px;
}
.dropzone:hover { border-color: var(--yellow-500); background: var(--yellow-50); }
.dropzone.is-dragover {
  border-style: solid;
  border-color: var(--yellow-500);
  background: var(--yellow-50);
}
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dz-icon {
  width: 44px; height: 44px;
  flex: none;
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--yellow-700);
}
.dz-icon svg { width: 20px; height: 20px; }
.dz-text { display: flex; flex-direction: column; gap: 4px; }
.dz-title { font-family: var(--font-body); font-weight: 600; font-size: 15px; color: var(--text-primary); display: block; }
.dz-cta {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--yellow-700);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.dz-sub { font-size: 12.5px; color: var(--text-tertiary); }
.dz-file {
  display: none;
  align-items: center; gap: 8px;
  font-size: 13px;
  color: var(--text-primary);
}
.dropzone.has-file .dz-text { display: none; }
.dropzone.has-file .dz-file { display: inline-flex; }
.dz-file .clear {
  background: none; border: 0; padding: 4px;
  color: var(--text-tertiary); cursor: pointer;
  display: inline-flex;
}
.dz-file .clear:hover { color: var(--danger); }

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important; height: 1px !important;
  overflow: hidden !important;
}

.privacy-note {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.5;
  margin: 0;
  max-width: 56ch;
}

.submit-row {
  display: flex; align-items: center; gap: 18px;
  flex-wrap: wrap;
  margin-top: 4px;
}
@media (max-width: 480px) {
  .submit-row { flex-direction: column; align-items: stretch; }
  .submit-row .btn { width: 100%; }
}
.submit-alt { font-size: 13.5px; color: var(--text-secondary); }
.submit-alt a { color: var(--navy-700); font-weight: 500; text-decoration: none; }
.submit-alt a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── Side panel + steps ───────────────────────────────────────── */
.side-panel {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 32px);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 24px;
}
@media (max-width: 1024px) { .side-panel { position: static; } }

.sp-head { display: flex; flex-direction: column; gap: 6px; }
.sp-head h3 {
  font-family: var(--font-display);
  font-weight: 600; font-size: 22px;
  line-height: 1.2;
  color: var(--navy-700);
  letter-spacing: -0.01em;
}
.sp-head .lead { font-size: 13.5px; color: var(--text-secondary); margin: 0; line-height: 1.55; }

.steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 18px; }
.step {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  align-items: start;
}
.step-num {
  width: 32px; height: 32px;
  border-radius: var(--radius-pill);
  background: var(--yellow-500);
  color: var(--ink-900);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 600; font-size: 14px;
}
.step-body { display: flex; flex-direction: column; gap: 4px; padding-top: 4px; }
.step-title {
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  color: var(--navy-700); letter-spacing: -0.005em;
}
.step-desc { font-size: 13.5px; line-height: 1.55; color: var(--text-secondary); margin: 0; }

.sp-divider { height: 1px; background: var(--border-subtle); margin: 4px 0; }
.reassure { display: flex; flex-direction: column; gap: 6px; }
.reassure h4 {
  font-family: var(--font-display);
  font-weight: 600; font-size: 14.5px;
  color: var(--navy-700); letter-spacing: -0.005em;
}
.reassure p { font-size: 13.5px; line-height: 1.55; color: var(--text-secondary); margin: 0; }

/* ── Project detail components ────────────────────────────────── */
.breadcrumb {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255,255,255,0.92);
}
.breadcrumb ol {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before {
  content: "/";
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  line-height: 1;
}
.breadcrumb a {
  color: inherit;
  text-decoration: none;
  transition: color var(--motion-duration-xs);
}
.breadcrumb a:hover { color: var(--yellow-500); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb [aria-current="page"] { color: #fff; font-weight: 500; }

.year-badge {
  font-family: var(--font-display);
  font-weight: 600; font-size: 12.5px;
  color: var(--ink-900);
  background: var(--yellow-500);
  padding: 5px 11px;
  border-radius: var(--radius-sm);
  letter-spacing: -0.005em;
}
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 500;
  font-size: 12px; color: rgba(255,255,255,0.85);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
}
.status-pill .dot {
  width: 7px; height: 7px; border-radius: var(--radius-pill);
  background: var(--yellow-500);
  box-shadow: 0 0 0 3px rgba(215,172,42,0.18);
}

.fact-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 500;
  font-size: 13px;
  color: #fff;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.fact-pill .label {
  color: rgba(255,255,255,0.60);
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.fact-pill svg { width: 14px; height: 14px; opacity: 0.85; }

/* metric pills (project hero/strip) */
.metric { display: flex; flex-direction: column; gap: 8px; }
.metric-icon {
  width: 36px; height: 36px;
  color: var(--yellow-700);
  display: inline-flex; align-items: center; justify-content: flex-start;
  margin-bottom: 4px;
}
.metric-icon svg { width: 28px; height: 28px; }
.metric-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.018em;
  color: var(--navy-700);
}
.metric-num .unit {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.62em;
  color: var(--gray-600);
  margin-left: 4px;
  letter-spacing: -0.005em;
}
.metric-rule {
  width: 28px; height: 2px;
  background: var(--yellow-500);
  border-radius: 2px;
  margin-top: 4px;
  margin-bottom: 2px;
}
.metric-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* story */
.story-num {
  font-family: var(--font-display);
  font-weight: 600; font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--yellow-600);
  text-transform: uppercase;
}
.story-num span.sep { color: var(--gray-400); margin: 0 6px; font-weight: 400; }
.story-h {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.2;
  color: var(--navy-700);
  letter-spacing: -0.012em;
}
.story-p {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-prose);
  color: var(--gray-800);
  margin: 0;
  max-width: var(--prose-max);
  text-wrap: pretty;
}

.story-card {
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 2.4vw, 32px);
  display: flex; flex-direction: column; gap: 14px;
  transition: box-shadow var(--motion-duration-md), border-color var(--motion-duration-md), transform var(--motion-duration-md);
}
.story-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.story-card .story-h { font-size: clamp(19px, 1.9vw, 22px); }
.story-card .story-p { max-width: none; }

/* chart card */
.chart-card {
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(20px, 3vw, 32px);
}
.chart-stat { display: flex; flex-direction: column; gap: 2px; }
.chart-stat .k {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--text-tertiary);
}
.chart-stat .v {
  font-family: var(--font-display); font-weight: 600;
  font-size: 17px; color: var(--navy-700);
  letter-spacing: -0.005em;
}

/* spec rows */
.spec-row {
  display: grid;
  grid-template-columns: minmax(160px, 38%) 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-subtle);
  align-items: baseline;
}
.spec-row:last-child { border-bottom: 0; }
@media (max-width: 768px) {
  .spec-row:last-child { border-bottom: 1px solid var(--border-subtle); }
  .specs > .spec-row:nth-last-child(1) { border-bottom: 0; }
}
.spec-k {
  font-family: var(--font-body); font-weight: 500;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-tertiary);
}
.spec-v {
  font-family: var(--font-display); font-weight: 500;
  font-size: 15.5px; color: var(--navy-700);
  letter-spacing: -0.005em;
}

/* gallery cell */
.gallery-cell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: zoom-in;
  background: var(--ink-900);
}
.gallery-cell.feat { grid-column: span 2; }
@media (max-width: 640px) { .gallery-cell.feat { grid-column: span 1; } }
.gallery-cell .ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  transition: transform 600ms var(--motion-ease-standard);
}
.gallery-cell .ph > img {
  width: 100%; height: 100%; object-fit: cover;
}
.gallery-cell.tone-ink   .ph { background: linear-gradient(135deg, var(--ink-900) 0%, var(--ink-700) 100%); }
.gallery-cell.tone-navy  .ph { background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-700) 100%); }
.gallery-cell.tone-warm  .ph { background: linear-gradient(135deg, var(--ink-600) 0%, var(--ink-500) 100%); }
.gallery-cell .ph svg { width: 110px; height: 110px; color: #fff; opacity: 0.10; }
.gallery-cell:hover .ph { transform: scale(1.04); }
.gallery-cell .alt-tag {
  position: absolute;
  left: 14px; bottom: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.65);
  background: rgba(0,0,0,0.30);
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  max-width: calc(100% - 28px);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* lightbox */
.gallery-cell:focus-visible { outline: 2px solid var(--yellow-500); outline-offset: 3px; }

.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  display: none;
  align-items: center; justify-content: center;
  padding: clamp(20px, 5vw, 64px);
}
.lightbox.is-open { display: flex; }
.lightbox-backdrop {
  position: absolute; inset: 0;
  background: rgba(9, 30, 39, 0.55);
  backdrop-filter: blur(10px) saturate(110%);
  -webkit-backdrop-filter: blur(10px) saturate(110%);
  cursor: zoom-out;
  opacity: 0;
  transition: opacity var(--motion-duration-md) var(--motion-ease-standard);
}
.lightbox.is-open .lightbox-backdrop { opacity: 1; }
.lightbox-stage {
  position: relative;
  max-width: min(1200px, 100%);
  max-height: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  cursor: zoom-out;
  transform: scale(0.98);
  opacity: 0;
  transition: transform var(--motion-duration-md) var(--motion-ease-standard),
              opacity var(--motion-duration-md) var(--motion-ease-standard);
}
.lightbox.is-open .lightbox-stage { transform: scale(1); opacity: 1; }
.lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  display: block;
}
.lightbox-caption {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.85);
  text-align: center;
  max-width: 720px;
}
.lightbox-close {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: #fff; border: 0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 22px; line-height: 1;
  transition: background var(--motion-duration-sm);
}
.lightbox-close:hover, .lightbox-close:focus-visible {
  background: rgba(255,255,255,0.22);
  outline: none;
}
body.lightbox-locked { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .lightbox-backdrop, .lightbox-stage { transition: none; }
}

/* ─── Suppliers marquee ───────────────────────────────────────────
   Pure-CSS infinite logo carousel. The track contains TWO copies of
   the logo list (rendered server-side); the keyframe slides exactly
   -50% (one copy width) for a seamless loop. Pause-on-hover and
   prefers-reduced-motion are both honored.
*/
.suppliers-marquee {
  margin-top: clamp(24px, 4vw, 40px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.suppliers-marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: clamp(40px, 6vw, 80px);
  animation: suppliers-marquee-scroll 60s linear infinite;
}

.suppliers-marquee:hover .suppliers-marquee__track,
.suppliers-marquee:focus-within .suppliers-marquee__track {
  animation-play-state: paused;
}

.supplier-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  min-width: 120px;
}

.supplier-logo img {
  max-height: 48px;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter var(--motion-duration-md) var(--motion-ease-standard),
              opacity var(--motion-duration-md) var(--motion-ease-standard);
}

.supplier-logo:hover img {
  filter: grayscale(0);
  opacity: 1;
}

.supplier-logo__name {
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

@keyframes suppliers-marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .suppliers-marquee {
    -webkit-mask-image: none;
            mask-image: none;
  }
  .suppliers-marquee__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
  .suppliers-marquee__track .supplier-logo[aria-hidden="true"] { display: none; }
}

/* ── FAQ accordion ────────────────────────────────────────────────
   Native <details>/<summary> cards in a 1-col-mobile / 2-col-desktop grid.
   Section background flips between bg-default / bg-warm in the template,
   so the card surface stays --surface-raised either way (white on warm,
   white-on-white with a hairline border on default). */
.faqs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: clamp(28px, 4vw, 44px);
}

.faq-card {
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  color: var(--text-primary);
  overflow: hidden;
  transition:
    transform   var(--motion-duration-sm) var(--motion-ease-standard),
    box-shadow  var(--motion-duration-sm) var(--motion-ease-standard),
    border-color var(--motion-duration-sm) var(--motion-ease-standard);
}
.faq-card:hover,
.faq-card:focus-within {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.faq-card[open] {
  border-color: var(--yellow-500);
  box-shadow:
    inset 3px 0 0 0 var(--yellow-500),
    var(--shadow-md);
}

.faq-card__question {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-primary);
}
.faq-card__question::-webkit-details-marker { display: none; }
.faq-card__question::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-secondary);
  transition: color var(--motion-duration-sm) var(--motion-ease-standard);
}
.faq-card[open] > .faq-card__question::after {
  content: "−";
  color: var(--yellow-600);
}
.faq-card__question:focus-visible {
  outline: 2px solid var(--yellow-500);
  outline-offset: -4px;
  border-radius: var(--radius-lg);
}

.faq-card__answer {
  padding: 0 24px 22px;
  color: var(--text-secondary);
}
.faq-card__answer p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: var(--lh-body);
}

@media (min-width: 64rem) {
  .faqs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
}
