:root {
  color-scheme: light;

  --brand:      #8e3049;
  --accent:     #a34460;
  --brand-deep: #71253a;

  --bg:            #faf7f2;
  --bg-elevated:   #f5eee9;
  --bg-elevated:   color-mix(in srgb, var(--brand) 4%, var(--bg));
  --surface-card:  #ffffff;
  --surface-hover: rgba(142, 48, 73, 0.045);

  --text:      #342028;
  --text-soft: #5d4750;
  --text-mute: #8a737b;

  --accent-solid: var(--brand);
  --accent-hover: var(--brand-deep);
  --accent-soft:  rgba(142, 48, 73, 0.35);
  --accent-faint: rgba(142, 48, 73, 0.1);
  --on-accent:    #fff8f6;

  --line:      rgba(52, 32, 40, 0.16);
  --line-soft: rgba(52, 32, 40, 0.09);

  --danger:  #b32638;
  --success: #2f7050;

  --shadow-sm: 0 2px 10px -3px rgba(74, 35, 46, 0.1), 0 1px 2px rgba(74, 35, 46, 0.05);
  --shadow-lg: 0 24px 48px -20px rgba(74, 35, 46, 0.28);

  --radius:   12px;
  --radius-s: 6px;

  --section-py: 8rem;
  --section-px: 2rem;
  --max-w: 1400px;
  --max-w-prose: 860px;
  --ease-quiet: cubic-bezier(.22, 1, .36, 1);
  --ease-precise: cubic-bezier(.4, 0, .2, 1);
  --ease-emphasis: cubic-bezier(.16, 1, .3, 1);
  --font-base: 'Vazirmatn', -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --logo-h: 100px;
  --header-height: calc(var(--logo-h) + 2rem + 1px);
}

main { transition: opacity 180ms var(--ease-precise); }
main.is-leaving { opacity: 0; }

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-base);
  background:
    radial-gradient(1100px 520px at 85% -180px, rgba(142, 48, 73, 0.045), transparent 70%),
    var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }
ul { list-style: none; }

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
::selection { background: var(--brand); color: var(--on-accent); }

.skip-link {
  position: fixed;
  top: 0.75rem; right: 1rem;
  z-index: 300;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  background: var(--brand);
  color: var(--on-accent);
  border-radius: var(--radius-s);
  box-shadow: var(--shadow-lg);
  transform: translateY(-200%);
  transition: transform 250ms var(--ease-precise);
}
.skip-link:focus { transform: none; }

html { scrollbar-width: thin; scrollbar-color: rgba(93, 71, 80, 0.4) var(--bg); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: rgba(93, 71, 80, 0.35);
  border-radius: 8px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--brand); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--section-px); width: 100%; }
.section { padding: var(--section-py) 0; position: relative; }

.hidden { display: none !important; }
body.lightbox-open { overflow: hidden; }

.loading-text {
  grid-column: 1 / -1;
  padding: 3rem 0;
  text-align: center;
  color: var(--text-mute);
  font-size: 0.95rem;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-quiet), transform .9s var(--ease-quiet);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

.hero [data-reveal] { transition-duration: 1.15s; }
.hero-content > [data-reveal]:nth-child(2) { transition-delay: 170ms; }
.hero-content > [data-reveal]:nth-child(3) { transition-delay: 340ms; }
.hero-content > [data-reveal]:nth-child(4) { transition-delay: 510ms; }
.hero .iso-badge { transition-delay: 800ms; }

.page-hero [data-reveal]:nth-child(2) { transition-delay: 120ms; }
.page-hero [data-reveal]:nth-child(3) { transition-delay: 240ms; }
.certs-header [data-reveal]:nth-child(2) { transition-delay: 100ms; }
.certs-header [data-reveal]:nth-child(3) { transition-delay: 200ms; }

.projects-grid > :nth-child(3n + 2),
.certs-grid    > :nth-child(4n + 2),
.gallery-grid  > :nth-child(3n + 2) { --reveal-delay: 90ms; }
.projects-grid > :nth-child(3n + 3),
.certs-grid    > :nth-child(4n + 3),
.gallery-grid  > :nth-child(3n + 3) { --reveal-delay: 180ms; }
.certs-grid    > :nth-child(4n + 4) { --reveal-delay: 270ms; }
.services-list > :nth-child(even) { --reveal-delay: 90ms; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 1.5rem;
}
.eyebrow::before {
  content: '';
  width: 7px; height: 7px;
  flex-shrink: 0;
  background: var(--brand);
  transform: rotate(45deg);
  margin-inline-end: 0.7rem;
}
.eyebrow::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 1px;
  margin-inline-start: 0.75rem;
  background: currentColor;
  transition: width 800ms var(--ease-quiet) 400ms;
}
.eyebrow.is-in::after { width: 2rem; }

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.section-lead { font-size: 1.125rem; color: var(--text-soft); max-width: var(--max-w-prose); margin-bottom: 1.5rem; }
.section-body { color: var(--text-soft); margin-bottom: 2rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: var(--radius-s);
  transition: background 350ms var(--ease-precise), color 350ms var(--ease-precise),
    border-color 350ms var(--ease-precise), box-shadow 350ms var(--ease-precise),
    translate 350ms var(--ease-precise);
}
.btn-primary {
  background: var(--brand);
  color: var(--on-accent);
  box-shadow: 0 12px 24px -12px rgba(142, 48, 73, 0.55);
}
.btn-primary:hover {
  background: var(--brand-deep);
  translate: 0 -2px;
  box-shadow: 0 18px 32px -14px rgba(142, 48, 73, 0.6);
}
.btn-ghost {
  border-color: rgba(52, 32, 40, 0.3);
  color: var(--text);
  background: rgba(255, 255, 255, 0.45);
}
.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--accent-faint);
  translate: 0 -2px;
}
.btn:active { translate: 0 0; }

.site-header {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 100;
  padding: 0.75rem 0;
  background: rgba(250, 247, 242, 0.82);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
  transition: background 400ms var(--ease-precise), padding 400ms var(--ease-precise),
    border-color 400ms var(--ease-precise), box-shadow 400ms var(--ease-precise);
}
.site-header.is-scrolled {
  background: rgba(250, 247, 242, 0.96);
  padding: 0.75rem 0;
  border-bottom-color: var(--line-soft);
  box-shadow: var(--shadow-sm);
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.logo-box { display: flex; align-items: center; justify-content: center; min-width: 0; }
.logo-box img { height: var(--logo-h); width: auto; max-width: 100%; object-fit: contain; }

.main-nav ul { display: flex; gap: 2.5rem; }
.nav-link {
  font-size: 0.9375rem;
  color: var(--text-soft);
  font-weight: 400;
  position: relative;
  padding: 0.5rem 0;
  transition: color 300ms var(--ease-precise);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 0; height: 2px;
  border-radius: 2px;
  background: var(--brand);
  transition: width 400ms var(--ease-quiet);
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--brand); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { width: 100%; }

.nav-cta {
  font-size: 0.875rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-s);
  background: var(--brand);
  color: var(--on-accent);
  box-shadow: 0 8px 18px -10px rgba(142, 48, 73, 0.55);
  transition: background 300ms var(--ease-precise), translate 300ms var(--ease-precise),
    box-shadow 300ms var(--ease-precise);
}
.nav-cta:hover {
  background: var(--brand-deep);
  translate: 0 -1px;
  box-shadow: 0 12px 22px -10px rgba(142, 48, 73, 0.6);
}

.nav-right { display: flex; align-items: center; gap: 1rem; }

.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 32px; padding: 4px; }
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 300ms var(--ease-precise), opacity 300ms var(--ease-precise);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero {
  position: relative;
  min-height: 100vh;
  min-height: calc(100svh - var(--header-height));
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 3.5rem) 0 6rem;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; background: var(--bg-elevated); }
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.js .hero-img {
  opacity: 0;
  transform: scale(1.12);
  filter: blur(14px) saturate(0.9);
  transition: transform 2200ms var(--ease-emphasis), opacity 2000ms var(--ease-quiet),
    filter 2000ms var(--ease-quiet);
}
.js .hero-img.is-loaded { transform: scale(1); opacity: 0.9; filter: blur(0) saturate(0.9); }

.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(250, 247, 242, 0) 32%),
    linear-gradient(to left, var(--bg) 0%, rgba(250, 247, 242, 0.68) 46%, rgba(250, 247, 242, 0.22) 100%);
}

.hero-content { position: relative; z-index: 2; max-width: 760px; }
.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 2rem;
}
.hero-sub { font-size: 1.1875rem; color: var(--text-soft); max-width: 580px; margin-bottom: 3rem; line-height: 1.8; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.iso-badge {
  position: absolute;
  bottom: 6rem; left: 2rem;
  width: 110px; height: 110px;
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
  filter: drop-shadow(0 0 10px rgba(250, 247, 242, 0.9));
}
.iso-ring { position: absolute; inset: 0; animation: spin-cw 20s linear infinite; }
.iso-ring-text { font-size: 8.5px; letter-spacing: 0.15em; fill: var(--text); font-family: var(--font-base); transition: fill 300ms; }
.iso-center {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--brand);
  color: var(--brand);
  background: rgba(255, 255, 255, 0.65);
  transition: transform 400ms var(--ease-precise), border-color 400ms var(--ease-precise), color 400ms var(--ease-precise);
}
.iso-badge:hover .iso-center { transform: scale(1.1); border-color: var(--text); color: var(--text); }
.iso-badge:hover .iso-ring-text { fill: var(--brand); }
@keyframes spin-cw { from { transform: rotate(0); } to { transform: rotate(360deg); } }

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem; right: 2rem;
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  font-size: 0.75rem; color: var(--text-mute);
}
.scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, var(--brand), transparent); animation: scroll-pulse 2.5s ease-in-out infinite; }
@keyframes scroll-pulse {
  0%, 100% { transform: scaleY(0.3); transform-origin: top; opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

.page-hero {
  padding: calc(var(--header-height) + 2rem) 0 4rem;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 340px at 88% -20%, rgba(142, 48, 73, 0.08), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
}
.page-title { font-size: clamp(2rem, 5vw, 4rem); font-weight: 700; line-height: 1.1; margin-bottom: 1.5rem; }
.page-lead { font-size: 1.125rem; color: var(--text-soft); max-width: 700px; }

.about-section { background: var(--bg-elevated); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sticky-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.sticky-left { position: sticky; top: calc(var(--header-height) + 1.5rem); padding-block: 4rem; }
.sticky-right { display: flex; flex-direction: column; gap: 3rem; }

.about-image { width: 100%; overflow: hidden; background: var(--bg); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.about-image-tall { aspect-ratio: 3 / 4; }
.about-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease-quiet); }
.about-image:hover img { transform: scale(1.04); }

.about-text-block { padding: 2rem 0; }
.about-text-block h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 1rem; color: var(--text); }
.about-text-block p { color: var(--text-soft); }

.stats-row {
  display: flex; gap: 3rem;
  margin-top: 3rem; padding-top: 3rem;
  border-top: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
  background: linear-gradient(180deg, #a5486400 0%, #a54864 0%, #6f2237 100%);
  background: linear-gradient(180deg, #a54864 0%, #6f2237 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 0.8125rem; color: var(--text-mute); }

.partners-block { margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--line); }
.partners-title { font-size: 1.25rem; font-weight: 600; color: var(--text); margin-bottom: 2rem; }
.partners-grid { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.partner-card {
  flex: 1; min-width: 200px;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  text-align: center;
  background: var(--surface-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: translate 350ms var(--ease-precise), box-shadow 350ms var(--ease-precise);
}
.partner-card:hover { translate: 0 -4px; box-shadow: var(--shadow-lg); }
.partner-logo-box { width: 180px; min-height: 90px; display: flex; align-items: center; justify-content: center; overflow: visible; margin-bottom: 0.5rem; }
.partner-logo-box img { width: auto; height: 120px; max-width: 100%; object-fit: contain; }
.partner-name { font-size: 1rem; color: var(--text-soft); font-weight: 500; }

.certificates-section { background: var(--bg); border-bottom: 1px solid var(--line); }
.certs-header { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.certs-header .eyebrow { margin-bottom: 1rem; }
.certs-header .section-title { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 1.25rem; }
.certs-header .section-lead { font-size: 1.0625rem; margin: 0 auto; }

.certs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }

.cert-card {
  background: var(--surface-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition:
    opacity .8s var(--ease-quiet) var(--reveal-delay, 0ms),
    transform .8s var(--ease-quiet) var(--reveal-delay, 0ms),
    translate .45s var(--ease-precise),
    border-color .4s var(--ease-precise),
    box-shadow .45s var(--ease-precise);
}
.cert-card:hover { translate: 0 -6px; border-color: var(--accent-soft); box-shadow: var(--shadow-lg); }

.cert-image-box { aspect-ratio: 5 / 7; overflow: hidden; background: var(--bg-elevated); }
.cert-image-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease-quiet); }
.cert-card:hover .cert-image-box img { transform: scale(1.05); }

.cert-info { padding: 1.5rem; text-align: center; border-top: 1px solid var(--line-soft); }
.cert-title { font-size: 1.0625rem; font-weight: 600; color: var(--text); margin-bottom: 0.35rem; }
.cert-subtitle { font-size: 0.8125rem; color: var(--text-mute); letter-spacing: 0.03em; }

.services-section { background: var(--bg-elevated); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.services-list { border-top: 1px solid var(--line); }

.service-row {
  display: grid;
  grid-template-columns: 80px 1fr 200px;
  gap: 3rem;
  padding: 3rem 2rem 3rem 2.5rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition:
    opacity .8s var(--ease-quiet) var(--reveal-delay, 0ms),
    transform .8s var(--ease-quiet) var(--reveal-delay, 0ms),
    background-color .4s var(--ease-precise);
}
.service-row::before {
  content: ''; position: absolute; right: 0; top: 0;
  width: 2px; height: 0;
  background: var(--brand);
  transition: height 700ms var(--ease-quiet);
}
.service-row:hover::before { height: 100%; }
.service-row:hover { background-color: var(--surface-hover); }

.service-num { font-size: 0.9375rem; color: var(--brand); opacity: 0.55; letter-spacing: 0.1em; font-weight: 600; padding-top: 0.3rem; transition: opacity 400ms var(--ease-precise); }
.service-row:hover .service-num { opacity: 1; }
.service-body h3 { font-size: 1.625rem; font-weight: 600; margin-bottom: 0.75rem; transition: color 400ms var(--ease-precise); }
.service-row:hover .service-body h3 { color: var(--brand); }
.service-body p { color: var(--text-soft); max-width: 560px; opacity: 0.75; transition: opacity 400ms var(--ease-precise); }
.service-row:hover .service-body p { opacity: 1; }

.service-meta { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; }
.service-meta span {
  font-size: 0.75rem;
  color: var(--brand);
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(142, 48, 73, 0.25);
  background: rgba(142, 48, 73, 0.05);
  border-radius: 999px;
}

.projects-section { background: var(--bg-elevated); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

.project-card {
  background: var(--surface-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition:
    opacity .8s var(--ease-quiet) var(--reveal-delay, 0ms),
    transform .8s var(--ease-quiet) var(--reveal-delay, 0ms),
    translate .45s var(--ease-precise),
    border-color .4s var(--ease-precise),
    box-shadow .45s var(--ease-precise);
}
.project-card:hover { translate: 0 -6px; border-color: var(--accent-soft); box-shadow: var(--shadow-lg); }

.project-img-wrap { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-elevated); }
.project-img-wrap img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.75); transition: transform 1500ms var(--ease-quiet), filter 600ms var(--ease-quiet); }
.project-card:hover .project-img-wrap img { transform: scale(1.06); filter: saturate(1); }

.project-info { padding: 1.75rem; }
.project-tag { display: inline-block; font-size: 0.75rem; color: var(--brand); margin-bottom: 1rem; }
.project-info h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.75rem; transition: color 300ms var(--ease-precise); }
.project-card:hover .project-info h3 { color: var(--brand); }
.project-info p { color: var(--text-soft); font-size: 0.9375rem; line-height: 1.7; margin-bottom: 1.5rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.project-meta { display: flex; gap: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line-soft); font-size: 0.8125rem; color: var(--text-mute); }

.gallery-section { background: var(--bg-elevated); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gallery-grid { columns: 3; column-gap: 1.5rem; }
.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  break-inside: avoid;
  page-break-inside: avoid;
  margin-bottom: 1.5rem;
  overflow: hidden;
  background: var(--surface-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: box-shadow .4s var(--ease-precise);
}
.gallery-item:hover { box-shadow: var(--shadow-lg); }
.gallery-item img { width: 100%; height: auto; filter: saturate(0.8); transition: transform 1200ms var(--ease-quiet), filter 600ms var(--ease-quiet); }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.05); filter: saturate(1); }

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  background: rgba(28, 11, 16, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: lightbox-in 250ms var(--ease-quiet);
}
.lightbox[hidden] { display: none; }
@keyframes lightbox-in { from { opacity: 0; } to { opacity: 1; } }

.lightbox-figure {
  margin: 0;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  max-width: min(92vw, 1200px);
}
.lightbox-img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  box-shadow: 0 30px 70px -25px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 400ms var(--ease-quiet);
}
.lightbox-caption { color: rgba(250, 243, 238, 0.85); font-size: 0.875rem; min-height: 1.4em; }

.lightbox-btn {
  position: absolute;
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: #faf3ee;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 250ms var(--ease-precise), color 250ms var(--ease-precise),
    background-color 250ms var(--ease-precise);
}
.lightbox-btn:hover { border-color: rgba(255, 255, 255, 0.6); color: #fff; background: rgba(255, 255, 255, 0.14); }
.lightbox-close { top: 1.25rem; left: 1.25rem; }
.lightbox-prev { right: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { left: 1.25rem; top: 50%; transform: translateY(-50%); }

.contact-section { background: var(--bg-elevated); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 5rem; align-items: start; }

.contact-form { margin-top: 3rem; display: flex; flex-direction: column; gap: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-field { display: flex; flex-direction: column; gap: 0.5rem; }
.form-field label { font-size: 0.8125rem; color: var(--text-mute); }

.form-field :is(input, select, textarea) {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  color: var(--text);
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  caret-color: var(--brand);
  transition: border-color 300ms var(--ease-precise), box-shadow 300ms var(--ease-precise);
}
.form-field :is(input, select, textarea):focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--accent-faint);
}
.form-field select {
  appearance: none;
  -webkit-appearance: none;
  padding-inline-end: 1rem;
  padding-inline-start: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1.5 1.5L6 6l4.5-4.5' fill='none' stroke='%238e3049' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 0.95rem center;
}
.form-field select option { background: #fff; color: var(--text); }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--text-mute); }

.form-submit { align-self: flex-start; margin-top: 1rem; }
.form-status { margin-top: 1rem; font-size: 0.875rem; color: var(--success); }
.form-status.is-error { color: var(--danger); }

.contact-info {
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
  padding: 2.5rem;
  background: var(--surface-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.contact-info h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 2rem; }
.info-list { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2.5rem; }
.info-list li { display: flex; flex-direction: column; gap: 0.375rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line-soft); }
.info-list li:last-child { border-bottom: none; padding-bottom: 0; }
.info-label { font-size: 0.75rem; color: var(--text-mute); }
.info-value { color: var(--text-soft); font-size: 0.9375rem; line-height: 1.6; }

.map-embed { margin-top: 1rem; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--line-soft); border-radius: var(--radius); filter: grayscale(1) sepia(0.24) saturate(1.35) brightness(1.02) contrast(0.96); }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

.site-footer {
  background: #f4ebe6;
  background: color-mix(in srgb, var(--brand) 6%, var(--bg));
  border-top: 1px solid var(--line);
  padding-top: 6rem;
  position: relative;
}
.site-footer::before {
  content: ''; position: absolute; top: -1px; right: 0; left: 0; height: 1px;
  background: linear-gradient(to left, var(--accent-soft), transparent 65%);
}

.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 3rem; padding-bottom: 4rem; }
.footer-logo-box { display: flex; align-items: flex-start; justify-content: flex-start; margin-bottom: 1.5rem; }
.footer-logo-box img { height: 120px; width: auto; }
.footer-tagline { color: var(--text-soft); font-size: 0.9375rem; max-width: 280px; }

.footer-links h4, .footer-social h4 { font-size: 0.8125rem; color: var(--brand); margin-bottom: 1.5rem; font-weight: 500; }
.footer-links ul { display: flex; flex-direction: column; gap: 0.875rem; }
.footer-links a { font-size: 0.9375rem; color: var(--text-soft); transition: color 300ms var(--ease-precise), padding-inline-start 300ms var(--ease-precise); }
.footer-links a:hover { color: var(--brand); padding-inline-start: 0.5rem; }

.social-icons { display: flex; gap: 0.75rem; }
.social-link {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text-soft);
  background: var(--surface-card);
  transition: border-color 300ms var(--ease-precise), color 300ms var(--ease-precise),
    translate 300ms var(--ease-precise);
}
.social-link:hover { border-color: var(--brand); color: var(--brand); translate: 0 -2px; }

.footer-bottom { border-top: 1px solid var(--line); padding: 1.5rem 0; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: 0.8125rem; color: var(--text-mute); }

.audio-player {
  position: fixed;
  bottom: 1.5rem; left: 1.5rem;
  z-index: 90;
  display: flex; align-items: center; gap: 0.75rem;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid var(--line);
  padding: 0.5rem 1rem 0.5rem 0.5rem;
  border-radius: 60px;
  box-shadow: var(--shadow-lg);
  transition: border-color 400ms var(--ease-precise);
}
.audio-player:hover { border-color: var(--accent-soft); }

.audio-toggle {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-accent);
  display: flex; align-items: center; justify-content: center;
  position: relative; flex-shrink: 0;
  transition: transform 300ms var(--ease-precise), background 300ms var(--ease-precise);
}
.audio-toggle:hover { transform: scale(1.08); background: var(--brand-deep); }
.audio-toggle::before {
  content: ''; position: absolute; inset: -4px;
  border: 1px solid var(--accent-soft); border-radius: 50%;
  opacity: 0;
  animation: audio-pulse 2.4s ease-in-out infinite;
}
.audio-toggle.is-playing::before { opacity: 1; }
@keyframes audio-pulse { 0% { transform: scale(0.95); opacity: 0.7; } 100% { transform: scale(1.3); opacity: 0; } }

.audio-icon-pause { display: none; }
.audio-toggle.is-playing .audio-icon-play { display: none; }
.audio-toggle.is-playing .audio-icon-pause { display: block; }
.audio-label { font-size: 0.8125rem; color: var(--text-soft); white-space: nowrap; }

@media (max-width: 1024px) {
  :root {
    --section-py: 6rem;
    --logo-h: 64px;
  }

  .main-nav { display: none; }
  .nav-toggle { display: flex; width: 44px; height: 44px; padding: 10px; justify-content: center; }
  .nav-cta { display: none; }

  .main-nav.is-open {
    display: block;
    position: absolute;
    top: 100%; right: 0; left: 0;
    background: rgba(250, 247, 242, 0.98);
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem var(--section-px) 1.5rem;
    max-height: calc(100vh - var(--header-height));
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    animation: nav-drop 350ms var(--ease-quiet);
  }
  .main-nav.is-open ul { flex-direction: column; gap: 0; }
  .main-nav.is-open .nav-link {
    display: block;
    font-size: 1.05rem;
    padding: 0.95rem 0.25rem;
    border-bottom: 1px solid var(--line-soft);
  }
  .main-nav.is-open .nav-link::after { display: none; }
  .main-nav.is-open li:last-child .nav-link { border-bottom: none; }
  @keyframes nav-drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

  .sticky-pair { grid-template-columns: 1fr; gap: 3rem; }
  .sticky-left { position: static; padding-block: 0; }

  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-info { position: static; }
  .contact-form { margin-top: 1.5rem; }

  .projects-grid, .certs-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .gallery-grid { columns: 2; }

  .service-row { grid-template-columns: 60px 1fr; gap: 1.5rem; }
  .service-meta { display: none; }

  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-logo-box img { height: 88px; }

  .iso-badge { display: none; }

  .eyebrow { font-size: 1.1rem; }
}

@media (max-width: 640px) {
  :root {
    --section-py: 4.5rem;
    --section-px: 1.25rem;
    --logo-h: 52px;
    --header-height: calc(var(--logo-h) + 2rem + 1px);
    font-size: 15px;
  }

  .site-header { padding: 0.75rem 0; }
  .site-header.is-scrolled { padding: 0.75rem 0; }
  .nav-inner { gap: 1rem; }

  .eyebrow { font-size: 0.95rem; margin-bottom: 1rem; }
  .page-lead, .section-lead { font-size: 1.0375rem; }

  .hero { padding: calc(var(--header-height) + 2.5rem) 0 4rem; }
  .hero-overlay {
    background:
      linear-gradient(to top, var(--bg) 0%, rgba(250, 247, 242, 0) 38%),
      linear-gradient(180deg, rgba(250, 247, 242, 0.5), rgba(250, 247, 242, 0.8));
  }
  .hero-title { font-size: clamp(2.25rem, 10vw, 2.75rem); margin-bottom: 1.5rem; }
  .hero-sub { font-size: 1.0625rem; margin-bottom: 2.25rem; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .hero-actions .btn { width: 100%; }
  .hero-scroll-hint { display: none; }

  .page-hero { padding: calc(var(--header-height) + 0.75rem) 0 3rem; }

  .service-row { grid-template-columns: 44px 1fr; gap: 1rem; padding: 2rem 0.25rem; }
  .service-body h3 { font-size: 1.3rem; }
  .about-text-block h3, .contact-info h3 { font-size: 1.25rem; }
  .contact-info { padding: 1.75rem; }

  .partners-block { margin-top: 3rem; padding-top: 2rem; }
  .partner-card { min-width: 100%; padding: 1.5rem 1rem; }
  .partner-logo-box { width: 100%; }
  .partner-logo-box img { height: 84px; }

  .stats-row { flex-wrap: wrap; gap: 1.5rem 2rem; }
  .stat-num { font-size: 1.9rem; }

  .form-field :is(input, select, textarea) { font-size: 16px; }
  .form-row { grid-template-columns: 1fr; gap: 1rem; }
  .form-submit { align-self: stretch; }
  .map-embed { aspect-ratio: 4 / 3; }

  .projects-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .certs-header { margin-bottom: 2rem; }
  .cert-info { padding: 1rem 0.75rem; }
  .cert-title { font-size: 0.9375rem; }
  .cert-subtitle { font-size: 0.75rem; }
  .gallery-grid { columns: 2; column-gap: 1rem; }
  .gallery-item { margin-bottom: 1rem; }

  .about-image, .about-image-tall { aspect-ratio: 4 / 3; }

  .project-meta { flex-wrap: wrap; gap: 0.5rem 1.25rem; }
  .info-value { overflow-wrap: anywhere; }

  .site-footer { padding-top: 4rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2.25rem 1.5rem; }
  .footer-brand { grid-column: 1 / -1; display: flex; align-items: center; gap: 1.25rem; }
  .footer-logo-box { margin-bottom: 0; flex-shrink: 0; }
  .footer-logo-box img { height: 52px; }
  .footer-tagline { font-size: 0.85rem; }
  .footer-social { grid-column: 1 / -1; display: flex; align-items: center; gap: 1rem; }
  .footer-social h4 { margin-bottom: 0; }
  .footer-bottom { padding-bottom: 4.25rem; }
  .footer-bottom .container { flex-direction: column; gap: 0.5rem; text-align: center; }

  .lightbox { padding: 1rem; }
  .lightbox-img { max-height: 72vh; }
  .lightbox-btn { width: 52px; height: 52px; }
  .lightbox-prev { top: auto; bottom: 1.25rem; right: 1rem; transform: none; }
  .lightbox-next { top: auto; bottom: 1.25rem; left: 1rem; transform: none; }

  .audio-label { display: none; }
  .audio-player {
    padding: 0.5rem;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    left: calc(1rem + env(safe-area-inset-left, 0px));
  }
}

@media (max-width: 400px) {
  :root { --logo-h: 44px; }
}

@media (hover: none) {
  .project-img-wrap img,
  .gallery-item img { filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .hero-img { opacity: 0.9; transform: none; filter: saturate(0.9); }
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.intro-copy .eyebrow { display: inline-block; margin-bottom: 1rem; }
.intro-copy .section-title { max-width: 34rem; margin-bottom: 1.25rem; }
.intro-copy .section-body { max-width: 38rem; }
.intro-copy .section-body + .section-body { margin-top: 1rem; }

.text-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
  font-weight: 600;
  color: var(--brand);
  transition: color 300ms var(--ease-precise);
}
.text-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  right: 0;
  height: 1px;
  width: 100%;
  background: currentColor;
  opacity: 0.35;
  transform: scaleX(0.35);
  transform-origin: right;
  transition: transform 400ms var(--ease-quiet);
}
.text-link:hover { color: var(--accent); }
.text-link:hover::after { transform: scaleX(1); }
.text-link svg { transition: transform 400ms var(--ease-quiet); }
.text-link:hover svg { transform: translateX(-4px); }

.intro-facts { display: grid; gap: 1.1rem; }

.fact-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--surface-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.35rem 1.6rem;
  transition: transform 400ms var(--ease-quiet), border-color 400ms var(--ease-precise);
}
.fact-card:hover { transform: translateY(-3px); border-color: var(--accent-soft); }

.fact-num {
  flex: none;
  min-width: 4rem;
  text-align: center;
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1;
  color: var(--brand);
}
.fact-label { color: var(--text-soft); font-size: 0.95rem; line-height: 1.6; }

.about-head { max-width: 42rem; margin-bottom: 3rem; }
.about-head .eyebrow { display: inline-block; margin-bottom: 1rem; }
.about-section .section-body + .section-body { margin-top: 1rem; }

.policy-section {
  background: var(--bg-elevated);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.policy-head { max-width: 45rem; margin: 0 auto 3.5rem; text-align: center; }
.policy-head .eyebrow { display: inline-block; margin-bottom: 1rem; }
.policy-head .section-title { margin-bottom: 1rem; }

.policy-doc {
  max-width: var(--max-w-prose);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

.policy-card {
  background: var(--surface-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.6rem, 4vw, 2.5rem);
}

.policy-card-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
}
.policy-card-title::before {
  content: "";
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--brand);
}
.policy-card-lead { margin: 0.75rem 0 1rem; color: var(--text-soft); }

.policy-list { list-style: none; }
.policy-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.85rem 0;
  border-bottom: 1px dashed var(--line-soft);
}
.policy-list li:first-child { padding-top: 0; }
.policy-list li:last-child { padding-bottom: 0; border-bottom: none; }

.policy-num {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  margin-top: 0.2rem;
  border-radius: 50%;
  background: var(--accent-faint);
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 700;
}
.policy-text { color: var(--text-soft); line-height: 1.8; }

.features-head { max-width: 45rem; margin: 0 auto 3.25rem; text-align: center; }
.features-head .eyebrow { display: inline-block; margin-bottom: 1rem; }

.features-list {
  max-width: 51rem;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: var(--surface-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.3rem 1.5rem;
  transition: transform 400ms var(--ease-quiet), border-color 400ms var(--ease-precise);
}
.feature-item:hover { transform: translateY(-3px); border-color: var(--accent-soft); }

.feature-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  background: var(--accent-faint);
  color: var(--brand);
}
.feature-item p { color: var(--text-soft); line-height: 1.8; }
.feature-item strong { color: var(--text); font-weight: 600; }

.diff-section {
  background: var(--bg-elevated);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.diff-header { max-width: 45rem; margin: 0 auto 3.25rem; text-align: center; }
.diff-header .eyebrow { display: inline-block; margin-bottom: 1rem; }

.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.diff-card {
  background: var(--surface-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 2.25rem 1.75rem 2rem;
  text-align: center;
  transition: transform 500ms var(--ease-quiet), box-shadow 500ms var(--ease-quiet), border-color 500ms var(--ease-precise);
}
.diff-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-soft);
}

.diff-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-faint);
  color: var(--brand);
}
.diff-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.6rem; }
.diff-card p { color: var(--text-soft); font-size: 0.95rem; line-height: 1.8; }

.sp-head { max-width: 45rem; margin: 0 auto 3.25rem; text-align: center; }
.sp-head .eyebrow { display: inline-block; margin-bottom: 1rem; }

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

.sp-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.75rem 1.5rem;
  transition: transform 500ms var(--ease-quiet), box-shadow 500ms var(--ease-quiet), border-color 500ms var(--ease-precise);
}
.sp-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-soft);
}

.sp-icon {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--accent-faint);
  color: var(--brand);
  margin-bottom: 1.1rem;
}
.sp-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.sp-card p { color: var(--text-soft); font-size: 0.9rem; line-height: 1.75; flex-grow: 1; }

.sp-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand);
  transition: color 300ms var(--ease-precise);
}
.sp-card:hover .sp-more { color: var(--accent); }
.sp-more svg { transition: transform 400ms var(--ease-quiet); }
.sp-card:hover .sp-more svg { transform: translateX(-3px); }

.fields-section {
  background: var(--bg-elevated);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.fields-head { max-width: 45rem; margin: 0 auto 3.25rem; text-align: center; }
.fields-head .eyebrow { display: inline-block; margin-bottom: 1rem; }

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

.field-tile {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  background: var(--surface-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem 1.4rem;
  transition: transform 400ms var(--ease-quiet), border-color 400ms var(--ease-precise);
}
.field-tile:hover { transform: translateY(-4px); border-color: var(--accent-soft); }

.field-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 9px;
  background: var(--accent-faint);
  color: var(--brand);
}
.field-tile h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.35rem; }
.field-tile p { color: var(--text-soft); font-size: 0.9rem; line-height: 1.7; }

.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--brand);
  color: var(--on-accent);
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}
.cta-band::before {
  content: "";
  position: absolute;
  top: -45%;
  left: -12%;
  width: 55vw;
  height: 55vw;
  max-width: 640px;
  max-height: 640px;
  border-radius: 50%;
  border: 1px solid rgba(255, 248, 246, 0.16);
  pointer-events: none;
}
.cta-band::after {
  content: "";
  position: absolute;
  bottom: -60%;
  right: -18%;
  width: 48vw;
  height: 48vw;
  max-width: 520px;
  max-height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 248, 246, 0.09), transparent 70%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
}
.cta-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.5;
  color: var(--on-accent);
  margin-bottom: 1rem;
}
.cta-text {
  color: rgba(255, 248, 246, 0.82);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}
.cta-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--on-accent);
  color: var(--brand);
  font-weight: 700;
  padding: 0.9rem 2.25rem;
  border-radius: var(--radius-s);
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.35);
  transition: transform 400ms var(--ease-quiet), box-shadow 400ms var(--ease-quiet);
}
.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -14px rgba(0, 0, 0, 0.4);
}

.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--on-accent);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.9rem 1.5rem;
  border: 1px solid rgba(255, 248, 246, 0.35);
  border-radius: var(--radius-s);
  transition: background 300ms var(--ease-precise), border-color 300ms var(--ease-precise);
}
.cta-phone:hover {
  background: rgba(255, 248, 246, 0.1);
  border-color: rgba(255, 248, 246, 0.6);
}

.timeline-head { max-width: 45rem; margin: 0 auto 3.5rem; text-align: center; }
.timeline-head .eyebrow { display: inline-block; margin-bottom: 1rem; }

.timeline {
  position: relative;
  max-width: 44rem;
  margin: 0 auto;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 1rem;
  bottom: 1rem;
  right: 0.78rem;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-soft), var(--line-soft) 85%);
}

.tl-item {
  position: relative;
  padding: 0 3.25rem 2.75rem 0;
}
.tl-item:last-child { padding-bottom: 0.5rem; }
.tl-item::before {
  content: "";
  position: absolute;
  top: 0.35rem;
  right: 0.22rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--brand);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--accent-soft);
}

.tl-year {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 0.4rem;
}
.tl-item h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.45rem; }
.tl-item p { color: var(--text-soft); line-height: 1.8; max-width: 34rem; }

.vision-section {
  background: var(--bg-elevated);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.vision-inner {
  max-width: 44rem;
  margin: 0 auto;
  text-align: center;
  padding-top: 1.25rem;
}
.vision-inner::before {
  content: "";
  display: block;
  width: 3.5rem;
  height: 2px;
  background: var(--brand);
  opacity: 0.6;
  margin: 0 auto 2rem;
}
.vision-inner .eyebrow { display: inline-block; margin-bottom: 1.25rem; }

.vision-quote {
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  font-weight: 700;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.vision-text { color: var(--text-soft); line-height: 1.9; }

.process-head { max-width: 45rem; margin: 0 auto 3.25rem; text-align: center; }
.process-head .eyebrow { display: inline-block; margin-bottom: 1rem; }

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

.step-card {
  background: var(--surface-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.75rem 1.5rem;
  transition: transform 500ms var(--ease-quiet), box-shadow 500ms var(--ease-quiet), border-color 500ms var(--ease-precise);
}
.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-soft);
}

.step-num {
  display: block;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(142, 48, 73, 0.18);
  margin-bottom: 1rem;
}
.step-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.step-card p { color: var(--text-soft); font-size: 0.9rem; line-height: 1.75; }

.intro-facts   > :nth-child(2) { --reveal-delay: 120ms; }
.intro-facts   > :nth-child(3) { --reveal-delay: 240ms; }
.policy-doc    > :nth-child(2) { --reveal-delay: 160ms; }
.features-list > :nth-child(2) { --reveal-delay: 80ms; }
.features-list > :nth-child(3) { --reveal-delay: 160ms; }
.features-list > :nth-child(4) { --reveal-delay: 240ms; }
.features-list > :nth-child(5) { --reveal-delay: 320ms; }
.diff-grid     > :nth-child(2) { --reveal-delay: 130ms; }
.diff-grid     > :nth-child(3) { --reveal-delay: 260ms; }
.sp-grid       > :nth-child(2) { --reveal-delay: 100ms; }
.sp-grid       > :nth-child(3) { --reveal-delay: 200ms; }
.sp-grid       > :nth-child(4) { --reveal-delay: 300ms; }
.fields-grid   > :nth-child(2) { --reveal-delay: 80ms; }
.fields-grid   > :nth-child(3) { --reveal-delay: 160ms; }
.fields-grid   > :nth-child(4) { --reveal-delay: 240ms; }
.fields-grid   > :nth-child(5) { --reveal-delay: 320ms; }
.fields-grid   > :nth-child(6) { --reveal-delay: 400ms; }
.process-grid  > :nth-child(2) { --reveal-delay: 100ms; }
.process-grid  > :nth-child(3) { --reveal-delay: 200ms; }
.process-grid  > :nth-child(4) { --reveal-delay: 300ms; }
.timeline      > :nth-child(2) { --reveal-delay: 100ms; }
.timeline      > :nth-child(3) { --reveal-delay: 200ms; }
.timeline      > :nth-child(4) { --reveal-delay: 300ms; }
.cta-inner     > :nth-child(2) { --reveal-delay: 130ms; }
.cta-inner     > :nth-child(3) { --reveal-delay: 260ms; }

@media (max-width: 960px) {
  .intro-grid { grid-template-columns: 1fr; gap: 3rem; }
  .intro-copy .section-title,
  .intro-copy .section-body { max-width: 100%; }
  .intro-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fact-card { flex-direction: column; text-align: center; gap: 0.75rem; padding: 1.25rem 1rem; }
  .fact-num { min-width: 0; }
  .sp-grid { grid-template-columns: repeat(2, 1fr); }
  .fields-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .diff-grid { grid-template-columns: 1fr; max-width: 30rem; margin-left: auto; margin-right: auto; }
  .policy-head, .features-head, .diff-header,
  .sp-head, .fields-head, .process-head, .timeline-head { margin-bottom: 2.5rem; }
  .about-head { margin-bottom: 2.25rem; }
}

@media (max-width: 640px) {
  .intro-facts { grid-template-columns: 1fr; }
  .fact-card { flex-direction: row; text-align: right; gap: 1.25rem; }
  .fact-num { min-width: 4rem; }
  .sp-grid { grid-template-columns: 1fr; }
  .fields-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .policy-card { padding: 1.4rem 1.15rem; }
  .feature-item { padding: 1.1rem 1.15rem; gap: 1rem; }
  .field-tile { padding: 1.25rem 1.15rem; gap: 1rem; }
  .sp-card { padding: 1.5rem 1.25rem; }
  .step-card { padding: 1.5rem 1.25rem; }
  .diff-card { padding: 1.75rem 1.25rem 1.5rem; }
  .tl-item { padding-left: 0; }
}

.project-list { border-top: 1px solid var(--line); }

.project-row {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr 46px;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  padding: 1.9rem 1.25rem;
  border-bottom: 1px solid var(--line);
  text-align: start;
  cursor: pointer;
}
.project-row::before {
  content: '';
  position: absolute;
  right: 0; top: 0;
  width: 2px; height: 0;
  background: var(--brand);
  transition: height 700ms var(--ease-quiet);
}
.project-row:hover:not([disabled]),
.project-row:focus-visible:not([disabled]) { background-color: var(--surface-hover); }
.project-row:hover:not([disabled])::before,
.project-row:focus-visible:not([disabled])::before { height: 100%; }

.project-row-num {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--brand);
  opacity: 0.55;
  transition: opacity 400ms var(--ease-precise);
}
.project-row:hover:not([disabled]) .project-row-num { opacity: 1; }

.project-row-main { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.project-row-title {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
  transition: color 300ms var(--ease-precise);
}
.project-row:hover:not([disabled]) .project-row-title { color: var(--brand); }
.project-row-meta { font-size: 0.8125rem; color: var(--text-mute); }
.project-row-year {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--brand);
}
.project-row-year + .project-row-count::before {
  content: '·';
  margin-inline: 0.45rem;
  color: var(--text-mute);
  font-weight: 400;
}

.project-row-arrow {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text-soft);
  transition: border-color 300ms var(--ease-precise), color 300ms var(--ease-precise),
    background-color 300ms var(--ease-precise);
}
.project-row-arrow svg { transition: transform 400ms var(--ease-quiet); }
.project-row:hover:not([disabled]) .project-row-arrow {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--accent-faint);
}
.project-row:hover:not([disabled]) .project-row-arrow svg { transform: translateX(-4px); }

.project-row[disabled] { cursor: default; }
.project-row[disabled] .project-row-arrow { display: none; }

.js .project-row[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-quiet) var(--reveal-delay, 0ms),
              transform .9s var(--ease-quiet) var(--reveal-delay, 0ms),
              background-color .4s var(--ease-precise);
}
.js .project-row[data-reveal].is-in { opacity: 1; transform: none; }

.js .gallery-item[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-quiet) var(--reveal-delay, 0ms),
              transform .9s var(--ease-quiet) var(--reveal-delay, 0ms),
              box-shadow .4s var(--ease-precise);
}
.js .gallery-item[data-reveal].is-in { opacity: 1; transform: none; }

.project-list > :nth-child(even) { --reveal-delay: 90ms; }

.lightbox-btn:disabled { opacity: 0.3; cursor: default; }

@media (max-width: 640px) {
  .project-row { grid-template-columns: 40px 1fr; padding: 1.4rem 0.25rem; gap: 1rem; }
  .project-row-arrow { display: none; }
  .project-row-title { font-size: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  .js .project-row[data-reveal],
  .js .gallery-item[data-reveal] { opacity: 1; transform: none; }
}

.lightbox-prev { right: auto; left: 1.25rem; }
.lightbox-next { left: auto; right: 1.25rem; }

@media (max-width: 640px) {
  .lightbox-prev { right: auto; left: 1rem; }
  .lightbox-next { left: auto; right: 1rem; }
}

.honors-section {
  background: var(--bg-elevated);
}

.honors-section .certs-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}
.honors-section .cert-card {
  flex: 0 1 calc(25% - 1.6rem); 
}

.honors-section .cert-info {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5rem;
  padding: 1.25rem 1.35rem;
}
.honors-section .cert-title {
  overflow-wrap: anywhere;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .honors-section .certs-grid { gap: 1.25rem; }
  .honors-section .cert-card { flex-basis: calc(50% - 0.8rem); }  /* 2 per row, odd one centers */
}