
:root {
  --bg: #1a2e35;
  --ink: #f5efe6;
  --accent: #d4a03c;
  --muted: #8fa5a0;
  --card: #243d46;
  --border: #3d5a5f;
  --font-head: "Unbounded", Georgia, serif;
  --font-body: "Fira Sans", system-ui, sans-serif;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 180ms;
  --t-med: 320ms;
  --t-slow: 600ms;
  color-scheme: light dark;
}

/* Auto dark mode — only when user prefers dark AND site is not already dark */
@media (prefers-color-scheme: dark) {
  :root.auto-dark, body.theme-modern { color-scheme: dark; }
  :root:not(.theme-modern-root) {
    /* Soft inversion: keep accent, swap bg/ink and card/border */
    --bg: #15171a;
    --ink: #e8e8e8;
    --card: #1f2226;
    --border: #2a2e34;
    --muted: #9a9fa6;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; margin: 0 0 0.6em; }


/* Heading deco 3: oversized first letter */
.block h2::first-letter {
  color: var(--accent);
}

h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.9em; }
.lead { font-size: 1.15rem; color: var(--muted); margin-bottom: 1.5em; }

.site-header {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  position: sticky; top: 0; background: var(--bg); z-index: 10;
}
.header-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand {
  font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; color: var(--ink);
  transition: color var(--t-fast) var(--ease);
}
.brand:hover { color: var(--accent); text-decoration: none; }
.site-header nav { display: flex; gap: 28px; }
.site-header nav a {
  color: var(--ink); font-size: 0.95rem;
  position: relative;
  padding: 4px 0;
  transition: color var(--t-fast) var(--ease);
}
.site-header nav a:hover { color: var(--accent); text-decoration: none; }


/* Nav variant 0: underline slides in from left */
.site-header nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0; height: 2px;
  background: var(--accent);
  transition: right var(--t-med) var(--ease);
}
.site-header nav a:hover::after { right: 0; }

.hero {
  position: relative; padding: 80px 0; min-height: 460px;
  display: flex; align-items: center; overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.35;
}
.hero-inner { position: relative; max-width: 760px; margin: 0 auto; padding: 0 24px; text-align: center; }

.btn {
  display: inline-block; padding: 14px 28px;
  background: var(--accent); color: var(--bg);
  border-radius: var(--radius); font-weight: 600;
  transition: transform var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease),
              opacity var(--t-fast) var(--ease),
              letter-spacing var(--t-fast) var(--ease),
              background-color var(--t-fast) var(--ease);
  will-change: transform;
  position: relative;
  overflow: hidden;
}
.btn:active { transform: scale(0.98); transition-duration: 80ms; }


/* Button variant 3: shine sweep */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform var(--t-slow) var(--ease);
}
.btn:hover { text-decoration: none; opacity: 0.95; }
.btn:hover::before { transform: translateX(100%); }


.block {
  padding: 72px 0;
  /* Improves rendering performance — browser skips offscreen sections */
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}
.hero { content-visibility: visible; } /* hero is always above the fold */
.block.alt { background: var(--card); }
.block h2 { margin-bottom: 0.4em; }

.grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 2em; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--t-med) var(--ease),
              box-shadow var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease);
}


/* Card variant 1: border-accent only, no lift */
.card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.card-img {
  height: 180px;
  background-size: cover;
  background-position: center;
  background-color: var(--card);
  background-image: linear-gradient(135deg, var(--card) 0%, var(--border) 100%);
  transition: transform var(--t-slow) var(--ease);
}
.card:hover .card-img { transform: scale(1.04); }
.card-body { padding: 22px; }
.card-body h3 { margin-bottom: 0.4em; }
.more {
  font-weight: 600;
  display: inline-block;
  transition: transform var(--t-fast) var(--ease);
}
.more:hover { transform: translateX(4px); }

.features { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 2em; }
.feature-num { font-family: var(--font-head); font-size: 0.95rem; color: var(--accent); display: block; margin-bottom: 8px; letter-spacing: 0.05em; }
.feature h3 { margin-bottom: 0.5em; }

.cta-block { background: var(--card); }

.contact-grid { display: grid; gap: 48px; grid-template-columns: 1fr 1fr; }
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { display: grid; grid-template-columns: 100px 1fr; gap: 12px 16px; margin-top: 1.5em; }
.contact-list dt { font-weight: 600; color: var(--muted); }
.contact-list dd { margin: 0; }
.map { width: 100%; height: 360px; border: 1px solid var(--border); border-radius: 6px; }

/* FAQ accordion */
.faq { margin-top: 2em; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  transition: border-color var(--t-fast) var(--ease);
}
.faq-item:hover { border-color: var(--accent); }
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  list-style: none;
  position: relative;
  padding-right: 32px;
  transition: color var(--t-fast) var(--ease);
}
.faq-item summary:hover { color: var(--accent); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0; top: 50%;
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform var(--t-med) var(--ease);
  transform: translateY(-50%) rotate(0deg);
  line-height: 1;
}
.faq-item[open] summary::after {
  content: '+';
  transform: translateY(-50%) rotate(45deg);
}
.faq-body {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.95rem;
  animation: faq-slide-in var(--t-med) var(--ease);
}
.faq-body p { margin: 0 0 0.8em; }
@keyframes faq-slide-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Contact form */
.contact-form {
  margin-top: 2em;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}
.contact-form input,
.contact-form textarea {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.15s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-form button[type="submit"] {
  align-self: flex-start;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}
.form-note { padding: 10px; background: var(--card); border-radius: 4px; }

/* Success modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg);
  color: var(--ink);
  padding: 40px 32px;
  border-radius: 8px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modal-pop 0.2s ease-out;
}
@keyframes modal-pop {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.modal-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
}
.modal h3 {
  margin: 0 0 12px;
  font-size: 1.5rem;
}
.modal p {
  margin: 0 0 24px;
  color: var(--muted);
}
.modal .btn {
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}

/* Timeline / milestones */
.timeline {
  margin-top: 2em;
  position: relative;
  padding-left: 24px;
  border-left: 2px solid var(--border);
}
.timeline-item {
  margin-bottom: 32px;
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
}
.timeline-year {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.timeline-content h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}
.timeline-content p {
  margin: 0;
  color: var(--muted);
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin-top: 2em;
}
.stat {
  text-align: center;
  padding: 24px;
  background: var(--card);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.stat-value {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Process / workflow */
.process {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 2em;
}
.process-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
}
.step-content h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}
.step-content p {
  margin: 0;
  color: var(--muted);
}

/* Team members */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-top: 2em;
}
.team-member {
  text-align: center;
}
.team-photo {
  width: 100%;
  aspect-ratio: 1;
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  margin: 0 auto 16px;
  max-width: 200px;
  background-color: var(--card);
}
.team-photo-placeholder {
  background-image: linear-gradient(135deg, var(--card) 0%, var(--border) 100%);
}
.team-member h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}
.team-role {
  font-size: 0.85rem;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.team-member p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

/* Contact split layout */
.contact-split {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  margin-top: 2em;
}
@media (max-width: 800px) {
  .contact-split { grid-template-columns: 1fr; }
}
.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px;
  transition: transform var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease),
              box-shadow var(--t-med) var(--ease);
}
.info-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
}
.info-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.info-card h4 {
  margin: 0 0 6px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 600;
}
.info-card p {
  margin: 0;
  font-size: 0.95rem;
}
.map-wrap-full {
  margin-top: 32px;
}
.map-wrap-full .map {
  width: 100%;
  height: 400px;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.prose .body-text { font-size: 1.05rem; }
.prose h2 { margin-top: 1.5em; }
.prose h3 { margin-top: 1.3em; }
.prose ul { margin: 0 0 1em 1.2em; }
.prose li { margin-bottom: 0.4em; }

.article-img { width: 100%; height: 360px; background-size: cover; background-position: center; margin: 24px 0 32px; border-radius: 6px; }
.article-meta { letter-spacing: 0.04em; text-transform: uppercase; }

.site-footer { border-top: 1px solid var(--border); padding: 56px 0 24px; margin-top: 64px; background: var(--card); }
.footer-grid { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 32px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 6px; }
.copyright { padding-top: 24px; border-top: 1px solid var(--border); }

/* ---------------- Section variants ---------------- */

/* Hero variant 1: split layout */
.hero-split {
  padding: 60px 0;
  background: var(--bg);
}
.hero-split-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 800px) { .hero-split-grid { grid-template-columns: 1fr; } }
.hero-split-text h1 {
  font-size: 3rem;
  margin: 0 0 16px;
  line-height: 1.1;
}
.hero-split-image {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
}

/* Hero variant 2: centered minimal */
.hero-centered {
  padding: 80px 0 60px;
  background: var(--bg);
  text-align: center;
}
.hero-centered h1 {
  font-size: 3.2rem;
  margin: 0 0 16px;
  line-height: 1.1;
}
.hero-centered .lead {
  max-width: 600px;
  margin: 0 auto 32px;
  font-size: 1.15rem;
}
.hero-centered-image {
  margin-top: 50px;
  width: 100%;
  aspect-ratio: 21/9;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
}

/* Services variant 1: numbered horizontal list */
.services-list { display: flex; flex-direction: column; gap: 24px; margin-top: 2em; }
.service-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}
.service-row:last-child { border-bottom: 1px solid var(--border); }
.service-num {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.service-content h3 { margin: 0 0 6px; font-size: 1.2rem; }
.service-content p { margin: 0; color: var(--muted); }

/* Services variant 2: alternating split */
.services-alt { display: flex; flex-direction: column; gap: 48px; margin-top: 2em; }
.service-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.service-split.flipped { grid-template-columns: 1fr 1fr; direction: rtl; }
.service-split.flipped > * { direction: ltr; }
@media (max-width: 720px) {
  .service-split, .service-split.flipped { grid-template-columns: 1fr; direction: ltr; }
}
.service-img {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
}
.service-img.placeholder {
  background-image: linear-gradient(135deg, var(--card), var(--border));
}
.service-text h3 { margin: 0 0 12px; font-size: 1.5rem; }
.service-text p { margin: 0; }

/* Features variant 1: icon circles */
.features-icons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 2em;
}
.feature-icon-card { text-align: center; }
.feature-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.feature-icon-card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.feature-icon-card p { margin: 0; color: var(--muted); }

/* Features variant 2: bordered left-accent */
.features-bordered {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 2em;
}
.feature-bordered {
  padding: 20px 24px;
  border-left: 4px solid var(--accent);
  background: var(--card);
}
.feature-bordered h3 { margin: 0 0 10px; font-size: 1.15rem; }
.feature-bordered p { margin: 0; color: var(--muted); }

/* About variant 1: split heading + body */
.about-split {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
}
@media (max-width: 700px) { .about-split { grid-template-columns: 1fr; gap: 16px; } }
.about-heading h2 { margin: 0; line-height: 1.1; }
.about-body-col .body-text { font-size: 1.05rem; }

/* About variant 2: with left accent bar */
.about-accent {
  border-left: 6px solid var(--accent);
  padding-left: 32px;
}

/* FAQ variant 1: grid layout, all open */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 2em;
}
.faq-card {
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.faq-card h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  color: var(--accent);
}
.faq-card .faq-body { color: var(--muted); font-size: 0.95rem; }

/* Editorial-specific touches */
.theme-editorial h1, .theme-editorial h2 { font-style: italic; }
.theme-editorial .hero { padding: 100px 0; }

/* Modern (dark) tweaks */
.theme-modern .btn { color: #0a0a0b; }
.theme-modern .card:hover { border-color: var(--accent); }

/* Minimal — extreme restraint */
.theme-minimal .hero-img { opacity: 0.25; filter: grayscale(100%); }
.theme-minimal .btn { background: var(--ink); }

/* ---------------- Page entry animations ---------------- */


/* Hero entry variant 3: blur reveal */
.hero h1, .hero-split-text h1, .hero-centered h1,
.hero .lead, .hero-split-text .lead, .hero-centered .lead,
.hero .btn, .hero-split-text .btn, .hero-centered .btn {
  animation: hero-blur-in 800ms var(--ease) backwards;
}
.hero h1, .hero-split-text h1, .hero-centered h1 { animation-delay: 100ms; }
.hero .lead, .hero-split-text .lead, .hero-centered .lead { animation-delay: 260ms; }
.hero .btn, .hero-split-text .btn, .hero-centered .btn { animation-delay: 420ms; }
.hero-split-image, .hero-centered-image {
  animation: hero-blur-in 900ms var(--ease) backwards;
  animation-delay: 200ms;
}
@keyframes hero-blur-in {
  from { opacity: 0; filter: blur(8px); }
  to   { opacity: 1; filter: blur(0); }
}


/* Scroll-driven section reveal (Chrome 115+, Edge 115+) */
@supports (animation-timeline: view()) {

  .block { animation: scroll-fade-up linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  .card, .feature, .feature-icon-card, .feature-bordered,
  .info-card, .team-member, .timeline-item, .process-step, .stat {
    animation: scroll-fade-up linear both; animation-timeline: view(); animation-range: entry 0% entry 50%;
  }
  @keyframes scroll-fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
  }

}

/* Footer links underline animation */
.footer-links li a {
  position: relative;
  transition: color var(--t-fast) var(--ease), padding-left var(--t-fast) var(--ease);
}
.footer-links li a:hover {
  color: var(--accent);
  padding-left: 6px;
  text-decoration: none;
}

/* Form fields focus animation */
.contact-form input,
.contact-form textarea {
  transition: border-color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease);
}
.contact-form input:focus,
.contact-form textarea:focus {
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.04);
}

/* Team photo gentle zoom on hover */
.team-photo {
  transition: transform var(--t-slow) var(--ease);
}
.team-member:hover .team-photo {
  transform: scale(1.04);
}

/* Process step number gentle pulse on hover */
.process-step {
  transition: transform var(--t-med) var(--ease);
}
.process-step:hover .step-num {
  transform: scale(1.08);
  transition: transform var(--t-fast) var(--ease);
}
.step-num {
  transition: transform var(--t-fast) var(--ease);
}

/* Stats subtle bump on hover */
.stat {
  transition: transform var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease);
}
.stat:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

/* Respect users who prefer no motion — disable all transitions/animations */
/* ---------------- Mobile responsive ---------------- */

/* Hide hamburger toggle by default — show only on mobile */
.nav-toggle { display: none; }
.nav-toggle-btn { display: none; cursor: pointer; padding: 8px; }
.nav-toggle-btn span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform var(--t-fast) var(--ease),
              opacity var(--t-fast) var(--ease);
}

@media (max-width: 900px) {
  /* Show hamburger, hide menu by default */
  .nav-toggle-btn {
    display: inline-block;
    z-index: 100;
  }
  .site-header nav {
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    padding: 80px 24px 40px;
    transform: translateX(100%);
    transition: transform var(--t-med) var(--ease);
    z-index: 99;
  }
  .site-header nav a {
    font-size: 1.3rem;
    font-family: var(--font-head);
  }
  .nav-toggle:checked ~ nav {
    transform: translateX(0);
  }
  /* Animate hamburger into X */
  .nav-toggle:checked ~ .nav-toggle-btn span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle:checked ~ .nav-toggle-btn span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle:checked ~ .nav-toggle-btn span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  /* Prevent body scroll when menu open */
  body:has(.nav-toggle:checked) { overflow: hidden; }
}

/* Hero on small screens — tighten padding and font */
@media (max-width: 700px) {
  .hero { padding: 56px 0; min-height: 360px; }
  .hero h1 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .hero .lead { font-size: 1rem; }
  .hero-split { padding: 40px 0; }
  .hero-centered { padding: 50px 0 40px; }
  .hero-centered h1 { font-size: 2.2rem; }

  /* Sections — tighter padding */
  .block { padding: 48px 0; }

  /* Contact list — stack key/value */
  .contact-list { grid-template-columns: 1fr; gap: 4px 0; }
  .contact-list dt { margin-top: 12px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }

  /* Timeline — smaller padding */
  .timeline { padding-left: 20px; }
  .timeline-item::before { left: -28px; width: 12px; height: 12px; }
  .timeline-year { font-size: 0.8rem; }

  /* Process — smaller numbers */
  .process-step { gap: 16px; }
  .step-num { width: 40px; height: 40px; font-size: 1rem; }

  /* Stats — full-width */
  .stats-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; }
  .stat { padding: 16px; }
  .stat-value { font-size: 2rem; }

  /* Service row variant 1 — narrower number column */
  .service-row { grid-template-columns: 60px 1fr; gap: 16px; padding: 18px 0; }
  .service-num { font-size: 2rem; }

  /* Footer — stack neatly */
  .site-footer { padding: 40px 0 20px; margin-top: 40px; }

  /* Article body — smaller */
  .article-img { height: 240px; }
  .body-text { font-size: 1rem; }

  /* Map */
  .map-wrap-full .map, .map { height: 280px; }
}

/* ============== NEW PREMIUM COMPONENTS ============== */

/* Cookie consent banner */
.cookie-consent {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 460px;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  padding: 20px 22px;
  z-index: 9999;
  font-size: 14px;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 400ms var(--ease), opacity 400ms var(--ease);
}
.cookie-consent--visible { transform: translateY(0); opacity: 1; }
.cookie-consent--leaving { transform: translateY(120%); opacity: 0; }
.cookie-consent__header {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-family: var(--font-head); font-size: 1rem;
  margin-bottom: 8px;
}
.cookie-consent__body p { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.cookie-consent__toggles { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; padding-top: 8px; border-top: 1px solid var(--border); }
.cookie-toggle {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; gap: 12px;
}
.cookie-toggle strong { display: block; font-size: 13px; font-weight: 600; }
.cookie-toggle small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.cookie-toggle input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }
.cookie-consent__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-btn {
  flex: 1 1 auto;
  padding: 9px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
  font-family: var(--font-body);
}
.cookie-btn:hover { background: var(--card); border-color: var(--accent); }
.cookie-btn--primary { background: var(--accent); color: var(--bg); border-color: var(--accent); flex: 1 1 100%; font-weight: 600; }
.cookie-btn--primary:hover { opacity: 0.9; background: var(--accent); }
.cookie-btn--ghost { background: transparent; }
@media (max-width: 500px) {
  .cookie-consent { left: 12px; right: 12px; bottom: 12px; padding: 16px 18px; }
}

/* Sticky-on-scroll header */
.site-header {
  transition: background var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.site-header--scrolled {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  backdrop-filter: blur(8px);
}

/* Eyebrow tag (small uppercase label above headings) */
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  padding: 4px 12px;
  border: 1px solid currentColor;
  border-radius: 9999px;
  background: transparent;
}

/* Marquee strip — horizontal scrolling keywords between sections */
.marquee-strip {
  background: var(--ink);
  color: var(--bg);
  padding: 16px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-strip--accent { background: var(--accent); color: var(--bg); }
.marquee-content {
  display: inline-block;
  animation: marquee 30s linear infinite;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.marquee-content span { padding: 0 24px; opacity: 0.7; }
.marquee-content span.dot { padding: 0; opacity: 0.4; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-content { animation: none; }
}

/* Dual CTA section (two big columns with divider) */
.dual-cta {
  background: var(--card);
}
.dual-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 40px;
  margin-top: 2em;
}
.dual-cta-divider {
  background: var(--border);
  width: 1px;
}
.dual-cta-col h3 { font-size: 1.6rem; margin: 8px 0 12px; }
.dual-cta-col p { margin-bottom: 20px; color: var(--muted); }
@media (max-width: 800px) {
  .dual-cta-grid { grid-template-columns: 1fr; }
  .dual-cta-divider { width: 100%; height: 1px; }
}

/* Media-card overlay (small floating card on top of an image) */
.media-with-overlay {
  position: relative;
  display: inline-block;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
}
.media-overlay-card {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: var(--bg);
  padding: 12px 16px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.media-overlay-card-icon {
  width: 36px; height: 36px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}

/* Bento-grid services layout (asymmetric 12-column) */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  margin-top: 2em;
}
.bento-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  padding: 32px;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.bento-card--large { grid-column: span 7; min-height: 380px; }
.bento-card--tall { grid-column: span 5; background: var(--accent); color: var(--bg); }
.bento-card--tall p { color: rgba(255,255,255,0.85); }
.bento-card--small { grid-column: span 4; }
.bento-card--dark { grid-column: span 4; background: var(--ink); color: var(--bg); }
.bento-card--dark p { color: rgba(255,255,255,0.7); }
.bento-card--wide { grid-column: span 8; }
.bento-card--accent-bg { grid-column: span 4; background: var(--accent); color: var(--bg); }
.bento-card--accent-bg p { color: rgba(255,255,255,0.85); }
.bento-card-icon {
  width: 44px; height: 44px;
  background: rgba(0,0,0,0.06);
  color: inherit;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.bento-card--tall .bento-card-icon, .bento-card--dark .bento-card-icon, .bento-card--accent-bg .bento-card-icon {
  background: rgba(255,255,255,0.15);
}
.bento-card-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.bento-card-img + .bento-card-content {
  position: relative;
  z-index: 1;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
  color: white;
  margin: -32px;
  padding: 32px;
  border-radius: 16px;
  height: calc(100% + 64px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.bento-card-img + .bento-card-content p { color: rgba(255,255,255,0.9); }
.bento-card h3 { margin: 0 0 8px; font-size: 1.25rem; }
.bento-card p { margin: 0 0 16px; flex: 1; }
.bento-card-link {
  color: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--t-fast) var(--ease);
}
.bento-card-link:hover { gap: 10px; text-decoration: none; }
@media (max-width: 800px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-card--large, .bento-card--tall, .bento-card--small, .bento-card--wide, .bento-card--dark, .bento-card--accent-bg { grid-column: span 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
