/* ============================================================
   Acrilicos Tortonese — Design System
   ============================================================ */

:root {
  /* Brand palette */
  --ink: #11181C;
  --ink-soft: #2A3540;
  --paper: #F7F9FA;
  --paper-warm: #f0f0f0;
  --brand: #154360;
  --brand-deep: #0E2F45;
  --brand-soft: #1F5B85;
  --accent: #60CE80;
  --accent-deep: #4BB36A;
  --accent-soft: #DFF5E5;

  /* Tints derived from palette */
  --surface: #FFFFFF;
  --line: rgba(17, 24, 28, 0.12);
  --line-soft: rgba(17, 24, 28, 0.06);
  --muted: #5A6770;
  --shadow-sm: 0 1px 2px rgba(17, 24, 28, 0.06), 0 1px 1px rgba(17, 24, 28, 0.04);
  --shadow-md: 0 8px 24px -8px rgba(17, 24, 28, 0.18), 0 2px 6px rgba(17, 24, 28, 0.06);
  --shadow-lg: 0 24px 60px -20px rgba(17, 24, 28, 0.32), 0 8px 20px -8px rgba(17, 24, 28, 0.12);

  /* Typography */
  --font-display: "Familjen Grotesk", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", "Familjen Grotesk", system-ui, sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* Layout */
  --container: 1240px;
  --container-narrow: 880px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --header-h: 76px;

  /* Motion */
  --ease-enter: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-move: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

/* ============================================================
   Base
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: inherit;
}

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

/* Headings */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5.2vw + 0.5rem, 4.8rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.85rem, 3.2vw + 0.5rem, 3.1rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.35rem, 1.4vw + 0.6rem, 1.85rem); }
h4 { font-size: clamp(1.1rem, 0.6vw + 0.9rem, 1.35rem); }

p { margin: 0 0 1em; text-wrap: pretty; }

/* ============================================================
   Layout helpers
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3vw, 2.5rem);
}

.container--narrow { max-width: var(--container-narrow); }

.section {
  padding: clamp(3.5rem, 8vw, 7rem) 0;
  position: relative;
}

.section--tight { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }

.section--ink { background: var(--ink); color: var(--paper); }
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }

.section--brand { background: var(--brand); color: var(--paper); }
.section--brand h1, .section--brand h2, .section--brand h3, .section--brand h4 { color: #fff; }

.section--accent { background: var(--accent); color: var(--ink); }

.section--warm { background: var(--paper-warm); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.section--ink .eyebrow,
.section--brand .eyebrow { color: var(--accent); }

.section--accent .eyebrow { color: var(--ink); }

.lead {
  font-size: clamp(1.05rem, 0.4vw + 0.95rem, 1.25rem);
  color: var(--ink-soft);
  max-width: 60ch;
}

.section--ink .lead, .section--brand .lead { color: rgba(255,255,255,0.82); }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.55rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 220ms var(--ease-enter),
    background-color 220ms var(--ease-enter),
    color 220ms var(--ease-enter),
    box-shadow 220ms var(--ease-enter),
    border-color 220ms var(--ease-enter);
  will-change: transform;
  border: 1.5px solid transparent;
  white-space: nowrap;
}

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

.btn--accent {
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 8px 22px -10px rgba(96, 206, 128, 0.6);
}
.btn--accent:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -12px rgba(96, 206, 128, 0.65);
}
.btn--accent:active { transform: translateY(0); }

.btn--brand {
  background: var(--brand);
  color: #fff;
}
.btn--brand:hover {
  background: var(--brand-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--ink {
  background: var(--ink);
  color: #fff;
}
.btn--ink:hover {
  background: var(--ink-soft);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.btn--ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.btn--ghost-light:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.btn--sm { padding: 0.65rem 1.05rem; font-size: 0.85rem; }
.btn--lg { padding: 1.15rem 1.95rem; font-size: 1rem; }

.btn .arrow {
  transition: transform 240ms var(--ease-enter);
}
.btn:hover .arrow { transform: translateX(4px); }

/* ============================================================
   Header / Navigation
   ============================================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 249, 250, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transition: background 220ms var(--ease-enter), border-color 220ms var(--ease-enter);
}

.header.is-scrolled {
  background: rgba(247, 249, 250, 0.96);
  border-bottom-color: var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand img {
  height: 42px;
  width: auto;
  transition: transform 360ms var(--ease-enter);
}
.brand:hover img { transform: rotate(-6deg) scale(1.05); }

.brand__name {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand__name strong {
  font-size: 1.05rem;
  color: var(--ink);
}
.brand__name span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.nav { display: flex; align-items: center; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__item { position: relative; }

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 0.9rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 8px;
  transition: color 200ms var(--ease-enter), background-color 200ms var(--ease-enter);
}

.nav__link:hover, .nav__link.is-active {
  color: var(--brand);
  background: rgba(21, 67, 96, 0.06);
}

.nav__link .chev {
  font-size: 0.65rem;
  opacity: 0.55;
  transition: transform 220ms var(--ease-enter);
}
.nav__item:hover .nav__link .chev,
.nav__item:focus-within .nav__link .chev { transform: rotate(180deg); }

/* Dropdown */
.nav__sub {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 220ms var(--ease-enter),
    transform 220ms var(--ease-enter),
    visibility 220ms var(--ease-enter);
  z-index: 5;
}

.nav__sub::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.nav__item:hover > .nav__sub,
.nav__item:focus-within > .nav__sub {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav__sub a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  transition: background 180ms var(--ease-enter), color 180ms var(--ease-enter);
}
.nav__sub a i { color: var(--brand); width: 16px; text-align: center; }
.nav__sub a:hover { background: var(--paper-warm); color: var(--brand); }
.nav__sub a.is-active {
  background: var(--accent-soft);
  color: var(--brand);
  font-weight: 600;
}

/* Nav CTA */
.nav__cta { margin-left: 0.75rem; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  transition: background 200ms var(--ease-enter);
}
.nav-toggle:hover { background: var(--paper-warm); }
.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  width: 20px;
}
.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 280ms var(--ease-drawer), opacity 200ms var(--ease-enter);
  transform-origin: center;
}
.nav-toggle.is-open .nav-toggle__bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle__bars span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.is-open .nav-toggle__bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: saturate(1.05) contrast(1.05);
  animation: heroZoom 18s var(--ease-move) forwards;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17,24,28,0.35) 0%, rgba(17,24,28,0.55) 50%, rgba(17,24,28,0.92) 100%),
    radial-gradient(ellipse at 70% 30%, rgba(21, 67, 96, 0.55) 0%, transparent 65%);
}

@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

.hero__inner {
  padding-top: clamp(3rem, 8vw, 6rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
  position: relative;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: end;
}

@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2rem; }
}

.hero__title {
  font-size: clamp(2.6rem, 6vw + 0.5rem, 5.4rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1.02;
}

.hero__title em {
  font-style: normal;
  color: var(--accent);
  position: relative;
  white-space: nowrap;
}

.hero__title em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.04em;
  height: 8px;
  background: var(--accent);
  opacity: 0.2;
  z-index: -1;
  border-radius: 2px;
}

.hero__lede {
  font-size: clamp(1.05rem, 0.6vw + 0.9rem, 1.25rem);
  color: rgba(255,255,255,0.78);
  max-width: 42ch;
  margin-top: 1.4rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero__meta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 1.5rem;
}

.hero__meta-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.86);
}
.hero__meta-item i {
  font-size: 1rem;
  color: var(--accent);
  margin-top: 3px;
}

.hero__badge {
  position: absolute;
  top: 32px;
  right: clamp(1.25rem, 3vw, 2.5rem);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1;
}
.hero__badge .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(96,206,128,0.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(96,206,128,0.6); }
  70% { box-shadow: 0 0 0 10px rgba(96,206,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(96,206,128,0); }
}

@media (max-width: 720px) {
  .hero__badge { display: none; }
}

/* ============================================================
   Ticker / Marquee
   ============================================================ */

.ticker {
  background: var(--brand);
  color: #fff;
  overflow: hidden;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.18);
}

.ticker__track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: ticker 38s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker__item { display: inline-flex; align-items: center; gap: 0.7rem; }
.ticker__item i { color: var(--accent); }

@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* ============================================================
   Service cards
   ============================================================ */

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.service {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform 320ms var(--ease-enter), box-shadow 320ms var(--ease-enter), border-color 320ms var(--ease-enter);
  overflow: hidden;
  min-height: 220px;
}

.service::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(96,206,128,0.07) 100%);
  opacity: 0;
  transition: opacity 320ms var(--ease-enter);
  pointer-events: none;
}

.service:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(21, 67, 96, 0.18);
}
.service:hover::before { opacity: 1; }

.service__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--brand);
  font-size: 1.25rem;
  transition: background 280ms var(--ease-enter), color 280ms var(--ease-enter);
}
.service:hover .service__icon {
  background: var(--brand);
  color: var(--accent);
}

.service__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.service__desc {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.service__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.01em;
  transition: gap 240ms var(--ease-enter), color 200ms var(--ease-enter);
}
.service__link:hover { gap: 0.75rem; color: var(--accent-deep); }

/* ============================================================
   Portfolio / Project tiles
   ============================================================ */

.portfolio {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

.tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ink);
  isolation: isolate;
  transition: transform 380ms var(--ease-enter), box-shadow 380ms var(--ease-enter);
  cursor: pointer;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-move), filter 500ms var(--ease-enter);
  filter: saturate(1.02);
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.tile:hover img {
  transform: scale(1.06);
}

.tile__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,24,28,0) 30%, rgba(17,24,28,0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.4rem;
  color: #fff;
}

.tile__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}

.tile__meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.tile__meta::before {
  content: "";
  width: 16px;
  height: 1px;
  background: currentColor;
}

.tile--lg { grid-column: span 8; aspect-ratio: 16/10; }
.tile--md { grid-column: span 4; aspect-ratio: 4/5; }
.tile--sm { grid-column: span 3; aspect-ratio: 1; }
.tile--wide { grid-column: span 6; aspect-ratio: 4/3; }
.tile--tall { grid-column: span 4; aspect-ratio: 4/5; }

@media (max-width: 880px) {
  .tile--lg, .tile--md, .tile--sm, .tile--wide, .tile--tall {
    grid-column: span 12;
    aspect-ratio: 4/3;
  }
}

.tile--featured::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--accent);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 280ms var(--ease-enter);
  pointer-events: none;
}
.tile--featured:hover::after { opacity: 0.6; }

/* ============================================================
   Gallery grid (used in inner pages)
   ============================================================ */

.gallery {
  columns: 3 280px;
  column-gap: 1rem;
}

.gallery__item {
  break-inside: avoid;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--ink);
  transition: transform 320ms var(--ease-enter);
}

.gallery__item:hover { transform: translateY(-3px); }

.gallery__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 600ms var(--ease-move);
}

.gallery__item:hover img { transform: scale(1.04); }

.gallery__item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.85rem 1rem;
  background: linear-gradient(0deg, rgba(17,24,28,0.85) 0%, transparent 100%);
  color: #fff;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 240ms var(--ease-enter), transform 240ms var(--ease-enter);
}

.gallery__item:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 720px) {
  .gallery { columns: 2 180px; column-gap: 0.75rem; }
}

/* ============================================================
   Section header
   ============================================================ */

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-head__title {
  font-size: clamp(1.85rem, 3vw + 0.5rem, 3.1rem);
}

.section-head__lead {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 50ch;
  margin: 0;
}

.section--ink .section-head__lead,
.section--brand .section-head__lead { color: rgba(255,255,255,0.78); }

@media (max-width: 720px) {
  .section-head { grid-template-columns: 1fr; gap: 1rem; }
}

/* ============================================================
   Stats strip
   ============================================================ */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
}

.stat {
  background: rgba(255,255,255,0.04);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: background 280ms var(--ease-enter);
}
.stat:hover { background: rgba(255,255,255,0.08); }

.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3vw, 3.2rem);
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat__num sup { font-size: 0.5em; color: var(--accent); margin-left: 0.1em; }
.stat__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

/* ============================================================
   Quote / callout
   ============================================================ */

.quote {
  position: relative;
  padding: clamp(2rem, 5vw, 3.5rem);
  background: var(--accent-soft);
  border-radius: var(--radius-xl);
  color: var(--ink);
}

.quote__mark {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 0.5;
  color: var(--accent-deep);
  margin-bottom: 1rem;
}

.quote__text {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.4vw + 0.7rem, 1.65rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: var(--ink);
  text-wrap: balance;
  margin: 0 0 1.5rem;
}

.quote__cite {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}
.quote__cite strong { color: var(--ink); font-weight: 600; }

/* ============================================================
   Materials list
   ============================================================ */

.materials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.materials li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: border-color 240ms var(--ease-enter), background 240ms var(--ease-enter);
}

.materials li:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.materials li i {
  color: var(--accent-deep);
  font-size: 1rem;
}

/* ============================================================
   Timeline / Process
   ============================================================ */

.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  position: relative;
}

.process__step {
  position: relative;
  padding: 1.75rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform 280ms var(--ease-enter), box-shadow 280ms var(--ease-enter);
}

.process__step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.process__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--accent-deep);
  margin-bottom: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.process__num::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent-deep);
}

.process__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.process__desc {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

/* ============================================================
   Forms
   ============================================================ */

.form {
  display: grid;
  gap: 1.1rem;
  max-width: 560px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.9rem 1rem;
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: border-color 220ms var(--ease-enter), box-shadow 220ms var(--ease-enter), background 220ms var(--ease-enter);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(21, 67, 96, 0.12);
}

.field textarea { min-height: 140px; resize: vertical; }

.field--checkbox {
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
}

.field--checkbox input { width: auto; }

/* ============================================================
   Contact split
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
}

@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: border-color 220ms var(--ease-enter), transform 220ms var(--ease-enter);
}

.contact-item:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

.contact-item__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.contact-item__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.contact-item__value {
  font-size: 1rem;
  color: var(--ink);
  font-weight: 500;
}

.contact-item a:hover { color: var(--brand); }

.map-frame {
  width: 100%;
  aspect-ratio: 16/11;
  border: 0;
  border-radius: var(--radius-lg);
  filter: saturate(1.05) contrast(1.04);
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.72);
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 880px) {
  .footer__top { grid-template-columns: 1fr; }
}

.footer__brand img { height: 56px; }

.footer__title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1.1rem;
}

.footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.footer__list a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.78);
  transition: color 200ms var(--ease-enter), gap 240ms var(--ease-enter);
}
.footer__list a::before {
  content: "\f0da";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--accent);
  font-size: 0.75rem;
  transition: transform 240ms var(--ease-enter);
}
.footer__list a:hover { color: #fff; gap: 0.7rem; }
.footer__list a:hover::before { transform: translateX(3px); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
}

.footer__legal { color: rgba(255,255,255,0.55); }

.footer__socials {
  display: inline-flex;
  gap: 0.5rem;
}

.footer__socials a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.78);
  transition: background 220ms var(--ease-enter), color 220ms var(--ease-enter), transform 220ms var(--ease-enter);
}
.footer__socials a:hover {
  background: var(--accent);
  color: var(--ink);
  transform: translateY(-2px);
}

.footer__credit a {
  color: var(--accent);
  font-weight: 600;
  transition: color 200ms var(--ease-enter);
}
.footer__credit a:hover { color: #fff; }

/* ============================================================
   Reveal animation (intersection observer)
   ============================================================ */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease-enter), transform 700ms var(--ease-enter);
  will-change: opacity, transform;
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-delay="1"] { transition-delay: 80ms; }
[data-reveal-delay="2"] { transition-delay: 160ms; }
[data-reveal-delay="3"] { transition-delay: 240ms; }
[data-reveal-delay="4"] { transition-delay: 320ms; }
[data-reveal-delay="5"] { transition-delay: 400ms; }
[data-reveal-delay="6"] { transition-delay: 480ms; }
[data-reveal-delay="7"] { transition-delay: 560ms; }
[data-reveal-delay="8"] { transition-delay: 640ms; }

[data-reveal="fade"] { transform: none; }
[data-reveal="scale"] { transform: scale(0.96); }
[data-reveal="scale"].is-revealed { transform: scale(1); }

[data-reveal="slide-left"] { transform: translateX(-24px); }
[data-reveal="slide-left"].is-revealed { transform: translateX(0); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero__bg img { animation: none !important; }
  .ticker__track { animation: none !important; }
  .hero__badge .pulse { animation: none !important; }
  * { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}

/* ============================================================
   Page intro (for inner pages)
   ============================================================ */

.page-hero {
  position: relative;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  background: var(--brand);
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 90% 10%, rgba(96,206,128,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 5% 95%, rgba(21,67,96,0.6) 0%, transparent 60%);
  z-index: -1;
}

.page-hero__crumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1rem;
}

.page-hero__crumbs a:hover { color: var(--accent); }
.page-hero__crumbs i { font-size: 0.55rem; opacity: 0.7; }

.page-hero__title {
  font-size: clamp(2rem, 4.5vw + 0.5rem, 4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  color: #fff;
  max-width: 18ch;
  text-wrap: balance;
}

.page-hero__lead {
  margin-top: 1rem;
  color: rgba(255,255,255,0.82);
  font-size: 1.05rem;
  max-width: 56ch;
}

.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.16);
}

.page-hero__meta-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.78);
}
.page-hero__meta-item i { color: var(--accent); }

/* ============================================================
   CTA banner
   ============================================================ */

.cta-banner {
  position: relative;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 3.5rem);
  overflow: hidden;
  isolation: isolate;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(96,206,128,0.22) 0%, transparent 55%);
  z-index: -1;
}

.cta-banner__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 720px) {
  .cta-banner__grid { grid-template-columns: 1fr; }
}

.cta-banner h3 {
  color: #fff;
  font-size: clamp(1.6rem, 2.5vw + 0.5rem, 2.4rem);
  letter-spacing: -0.025em;
  margin-bottom: 0.4rem;
}

.cta-banner p {
  color: rgba(255,255,255,0.78);
  margin: 0;
  max-width: 50ch;
}

/* ============================================================
   Utilities
   ============================================================ */

.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.stack > * + * { margin-top: 1rem; }

.skip-link {
  position: absolute;
  top: -40px;
  left: 12px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  z-index: 100;
  transition: top 220ms var(--ease-enter);
}
.skip-link:focus { top: 12px; }

.divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: clamp(2rem, 5vw, 3rem) 0;
}

.no-scroll { overflow: hidden; }

/* ============================================================
   Mobile nav panel
   ============================================================ */

.mobile-nav { display: none; }

@media (max-width: 960px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }

  .mobile-nav {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 49;
    background: var(--paper);
    padding: calc(var(--header-h) + 1.5rem) 1.5rem 2rem;
    transform: translateX(100%);
    transition: transform 360ms var(--ease-drawer);
    overflow-y: auto;
    flex-direction: column;
    gap: 0.25rem;
  }

  .mobile-nav.is-open { transform: translateX(0); }

  .mobile-nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    transition: padding-left 240ms var(--ease-enter), color 200ms var(--ease-enter);
  }

  .mobile-nav__link:hover {
    padding-left: 8px;
    color: var(--brand);
  }

  .mobile-nav__link i { font-size: 0.9rem; color: var(--muted); }

  .mobile-nav__group {
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.5rem;
  }

  .mobile-nav__group-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--ink);
    width: 100%;
    text-align: left;
    cursor: pointer;
  }

  .mobile-nav__group-title i {
    font-size: 0.9rem;
    color: var(--brand);
    transition: transform 280ms var(--ease-enter);
  }

  .mobile-nav__group.is-open .mobile-nav__group-title i {
    transform: rotate(180deg);
  }

  .mobile-nav__sub {
    list-style: none;
    margin: 0;
    padding: 0 0 0.5rem;
    display: none;
  }

  .mobile-nav__group.is-open .mobile-nav__sub {
    display: block;
    animation: slideDown 320ms var(--ease-enter);
  }

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

  .mobile-nav__sub a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 0 0.65rem 0.5rem;
    font-size: 1rem;
    color: var(--ink-soft);
  }

  .mobile-nav__sub a i {
    color: var(--brand);
    font-size: 0.85rem;
    width: 18px;
    text-align: center;
  }

  .mobile-nav__sub a:hover { color: var(--brand); }

  .mobile-nav__sub a.is-active {
    color: var(--brand);
    font-weight: 600;
    padding-left: 1rem;
  }

  .mobile-nav__cta {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .mobile-nav__contact {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    background: var(--brand);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
  }

  .mobile-nav__contact a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: #fff;
    font-size: 0.95rem;
  }

  .mobile-nav__contact i { color: var(--accent); width: 18px; text-align: center; }
}

/* ============================================================
   Reduced motion extra guards
   ============================================================ */