/* ==========================================================================
   Pragma Systems — main stylesheet

   1. Design tokens
   2. Reset & base
   3. Layout primitives
   4. Shared components (buttons, icons, eyebrow, cards…)
   5. Header & mobile menu
   6. Page sections
   7. Footer
   8. Overlays (lightbox, back-to-top, progress bar)
   9. Motion (reveal, keyframes, reduced motion)
   ========================================================================== */


/* ==========================================================================
   0. Fonts — self-hosted Noto Sans Georgian (variable 300–900, SIL OFL 1.1)
   ========================================================================== */
@font-face {
  font-family: "Noto Sans Georgian";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/noto-sans-georgian-georgian.woff2") format("woff2");
  unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+205A, U+2D00-2D2F, U+2E31;
}

@font-face {
  font-family: "Noto Sans Georgian";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/noto-sans-georgian-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Noto Sans Georgian";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/noto-sans-georgian-symbols.woff2") format("woff2");
  unicode-range: U+2726;
}


/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
  /* Brand */
  --color-primary: #1b3a5c;
  --color-navy: #10263e;
  --color-navy-deep: #0d1f33;
  --color-steel: #2b5378;
  /* Accent shades are tuned for WCAG AA (4.5:1) in their intended context */
  --color-accent: #bf5000;         /* fills behind white text (4.8:1) */
  --color-accent-dark: #9c3f00;    /* hover fills */
  --color-accent-ink: #b04800;     /* accent text on white / mist (≥5.1:1) */
  --color-accent-bright: #f28c3c;  /* accent text on navy (6.3:1) */
  --color-accent-light: #f4a25e;   /* decorative gradients only */

  /* Neutrals */
  --color-white: #fff;
  --color-ink: #222;
  --color-text: #334155;
  --color-text-muted: #3e4a56;
  --color-text-soft: #4a5568;
  --color-mist: #f5f6f8;
  --color-border: rgb(34 34 34 / 0.1);

  /* Feedback & third-party */
  --color-danger: #b91c1c;
  --color-danger-bg: #fef2f2;
  --color-facebook: #2563eb;
  --color-facebook-dark: #1d4ed8;

  /* Translucent white, used on dark backgrounds */
  --white-5: rgb(255 255 255 / 0.05);
  --white-10: rgb(255 255 255 / 0.1);
  --white-15: rgb(255 255 255 / 0.15);
  --white-20: rgb(255 255 255 / 0.2);
  --white-30: rgb(255 255 255 / 0.3);
  --white-60: rgb(255 255 255 / 0.6);
  --white-70: rgb(255 255 255 / 0.7);
  --white-80: rgb(255 255 255 / 0.8);
  --white-90: rgb(255 255 255 / 0.9);

  /* Typography */
  --font-sans: "Noto Sans Georgian", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-relaxed: 1.625;

  /* Radii */
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-card: 0 24px 50px -24px rgb(27 58 92 / 0.28);
  --shadow-pop: 0 32px 70px -28px rgb(16 38 62 / 0.45);
  --shadow-accent: 0 10px 15px -3px rgb(217 93 2 / 0.3), 0 4px 6px -4px rgb(217 93 2 / 0.3);
  --shadow-primary: 0 10px 15px -3px rgb(27 58 92 / 0.25), 0 4px 6px -4px rgb(27 58 92 / 0.25);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --header-height: 76px;
  --container-max: 80rem;
  --container-narrow: 64rem;
  --gutter: 1.25rem;

  /* Accent colour for text/icons — switched to the bright shade on dark surfaces */
  --accent-text: var(--color-accent-ink);
}

.hero,
.marquee,
.section--navy,
.stats,
.info-card,
.mobile-menu,
.site-footer,
.lightbox,
.site-header:not(.is-solid) {
  --accent-text: var(--color-accent-bright);
}

@media (min-width: 640px) {
  :root { --gutter: 2rem; }
}


/* ==========================================================================
   2. Reset & base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

html.is-scroll-locked {
  overflow: hidden;
  overscroll-behavior: none; /* no swipe-to-go-back while the menu or lightbox is open */
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--color-white);
  color: var(--color-ink);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

button:disabled {
  cursor: not-allowed;
}

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

ul,
ol {
  list-style: none;
  padding: 0;
}

h1, h2, h3, h4 {
  font-size: inherit;
  font-weight: inherit;
  overflow-wrap: break-word;
  text-wrap: balance; /* even line lengths in headings */
}

p {
  text-wrap: pretty; /* avoids a single orphaned word on the last line */
}

[hidden] {
  display: none !important;
}

[id] {
  scroll-margin-top: calc(var(--header-height) + 0.25rem);
}

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

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

/* Scrollbar */
html {
  scrollbar-color: var(--color-steel) var(--color-navy-deep);
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--color-navy-deep); }
::-webkit-scrollbar-thumb { background: var(--color-steel); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-accent); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: 700;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}


/* ==========================================================================
   3. Layout primitives
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.section {
  position: relative;
  padding-block: 6rem;
  background: var(--color-white);
}

.section--mist { background: var(--color-mist); }
.section--navy { background: var(--color-navy); }
.section--clip { overflow: hidden; }

.section__inner {
  position: relative;
}

@media (min-width: 1024px) {
  .section { padding-block: 8rem; }
}

.card-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}


/* ==========================================================================
   4. Shared components
   ========================================================================== */

/* ---------- Icons (inline SVG sprite) ---------- */
.icon {
  width: var(--icon-size, 1.25rem);
  height: var(--icon-size, 1.25rem);
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--xs { --icon-size: 0.75rem; }
.icon--sm { --icon-size: 0.875rem; }
.icon--md { --icon-size: 1rem; }
.icon--lg { --icon-size: 1.5rem; }
.icon--xl { --icon-size: 1.75rem; }

.icon--filled {
  fill: currentColor;
  stroke: none;
}

.sprite {
  display: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.625rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.25rem;
  white-space: nowrap;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease,
              translate 0.3s ease, scale 0.3s ease, box-shadow 0.3s ease;
  --icon-size: 1.125rem;
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: 0.9375rem;
}

.btn--block {
  width: 100%;
}

.btn--rect {
  border-radius: var(--radius-md);
}

.btn--lift:hover {
  translate: 0 -2px;
}

.btn--accent {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: var(--shadow-accent);
}

.btn--accent:hover {
  background: var(--color-accent-dark);
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-primary);
}

.btn--primary:hover {
  background: var(--color-navy);
}

.btn--ghost {
  border-color: var(--white-30);
  color: var(--color-white);
}

.btn--ghost:hover {
  border-color: var(--color-accent);
  background: var(--white-10);
}

.btn--outline {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  --icon-size: 1rem;
}

.btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn--facebook {
  background: var(--color-facebook);
  color: var(--color-white);
  font-weight: 800;
  box-shadow: 0 10px 15px -3px rgb(37 99 235 / 0.25), 0 4px 6px -4px rgb(37 99 235 / 0.25);
}

.btn--facebook:hover {
  background: var(--color-facebook-dark);
}

.btn--google {
  border-color: #dadce0;
  background: var(--color-white);
  color: var(--color-ink);
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.btn--google .icon {
  color: #4285f4;
}

.btn--google:hover {
  border-color: #c6c9cd;
  background: #f8f9fa;
}

.btn__arrow {
  transition: translate 0.3s ease;
}

.btn:hover .btn__arrow {
  translate: 0.25rem 0;
}

/* ---------- Section headings ---------- */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.section-head__main {
  max-width: 42rem;
}

@media (min-width: 1024px) {
  .section-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.section-intro {
  max-width: 42rem;
  margin-bottom: 3.5rem;
}

.section-intro--center {
  margin: 0 auto 3rem;
  text-align: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--accent-text);
  font-size: var(--text-xs);
  font-weight: 800;
  line-height: 1rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow::before,
.eyebrow--center::after {
  content: "";
  flex-shrink: 0;
  width: 2.25rem;
  height: 2px;
  background: currentColor;
}

.eyebrow--center {
  justify-content: center;
}

.section-title {
  color: var(--color-navy);
  font-size: 1.875rem;
  font-weight: 900;
  line-height: var(--leading-tight);
}

.section-title--light {
  color: var(--color-white);
}

@media (min-width: 640px) {
  .section-title { font-size: 2.25rem; }
}

@media (min-width: 1024px) {
  .section-title { font-size: 2.9rem; }
}

.section-lead {
  max-width: 28rem;
  color: var(--color-text);
  font-size: 0.9375rem;
  line-height: var(--leading-relaxed);
}

.section-lead--light {
  color: var(--white-80);
}

.section-lead--below {
  max-width: none;
  margin-top: 1rem;
}

.prose {
  color: var(--color-text);
  line-height: var(--leading-relaxed);
}

/* ---------- Tag / pill ---------- */
.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Pulsing status dot ---------- */
.pulse-dot {
  position: relative;
  flex-shrink: 0;
  width: 0.625rem;
  height: 0.625rem;
}

.pulse-dot--sm {
  width: 0.5rem;
  height: 0.5rem;
}

.pulse-dot::before,
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent-text);
}

.pulse-dot::before {
  opacity: 0.8;
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* ---------- Decorative backgrounds ---------- */
.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

.glow {
  position: absolute;
  background: radial-gradient(closest-side, rgb(217 93 2 / 0.2), rgb(217 93 2 / 0.06) 55%, transparent);
  pointer-events: none;
}

/* ---------- Brand lockup ---------- */
.brand {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.75rem;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-md);
  background: linear-gradient(to bottom right, var(--color-accent), var(--color-accent-dark));
  color: var(--color-white);
  font-size: var(--text-xl);
  font-weight: 900;
  transition: rotate 0.5s ease;
}

.brand:hover .brand__mark {
  rotate: 6deg;
}

.brand__text {
  line-height: var(--leading-tight);
}

.brand__name,
.brand__tagline {
  display: block;
  transition: color 0.4s ease;
}

.brand__name {
  color: var(--brand-name-color, var(--color-white));
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.025em;
}

.brand__tagline {
  color: var(--brand-tagline-color, var(--white-80));
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ---------- Language switch ---------- */
.lang-switch {
  display: flex;
  align-items: center;
  padding: 0.25rem;
  border: 1px solid var(--lang-border, var(--white-30));
  border-radius: var(--radius-full);
  transition: border-color 0.4s ease;
}

.lang-switch__btn {
  position: relative;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  color: var(--lang-color, rgb(255 255 255 / 0.78));
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1rem;
  letter-spacing: 0.025em;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Expands the hit area to 44×44 without changing the visual size */
.lang-switch__btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  min-width: 44px;
  min-height: 44px;
  transform: translate(-50%, -50%);
}

.lang-switch__btn.is-active {
  background: var(--color-accent);
  color: var(--color-white);
}

.lang-switch--lg .lang-switch__btn {
  padding: 0.375rem 0.875rem;
  font-size: var(--text-xs);
}


/* ==========================================================================
   5. Header & mobile menu
   ========================================================================== */
.site-header {
  /* Colors flip when the header turns solid on scroll */
  --header-fg: rgb(255 255 255 / 0.92);
  --brand-name-color: var(--color-white);
  --brand-tagline-color: rgb(255 255 255 / 0.72);
  --lang-border: var(--white-30);
  --lang-color: rgb(255 255 255 / 0.78);

  position: fixed;
  inset: 0 0 auto;
  z-index: 70;
  min-height: var(--header-height);
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.site-header.is-solid {
  --header-fg: var(--color-ink);
  --brand-name-color: var(--color-navy);
  --brand-tagline-color: var(--color-text-soft);
  --lang-border: rgb(27 58 92 / 0.25);
  --lang-color: var(--color-text-soft);

  background: rgb(255 255 255 / 0.96);
  box-shadow: 0 10px 30px -12px rgb(16 38 62 / 0.25);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: max(var(--container-max), 85%);
  height: var(--header-height);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand__mark--glow {
  box-shadow: var(--shadow-accent);
}

/* ---------- Desktop nav ---------- */
.site-nav,
.header-actions {
  display: none;
}

.site-nav {
  align-items: center;
  gap: 1.5rem;
  font-size: 13.5px;
  font-weight: 600;
}

.site-nav__link {
  position: relative;
  color: var(--header-fg);
  transition: color 0.3s ease;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.35s var(--ease-out);
}

.site-nav__link:hover,
.site-nav__link.is-active {
  color: var(--accent-text);
}

.site-nav__link:hover::after,
.site-nav__link.is-active::after {
  width: 100%;
}

.header-actions {
  align-items: center;
  gap: 1.25rem;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--header-fg);
  font-size: 13px;
  font-weight: 700;
  transition: color 0.3s ease;
  --icon-size: 1rem;
}

.site-header.is-solid .header-phone {
  color: var(--color-primary);
}

.header-phone:hover {
  color: var(--accent-text);
}

@media (min-width: 1024px) {
  .site-nav,
  .header-actions {
    display: flex;
  }
}

@media (min-width: 1280px) {
  .site-nav { gap: 2rem; }
}

/* ---------- Burger ---------- */
.burger {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--lang-border);
  border-radius: var(--radius-md);
  color: var(--color-white);
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, border-radius 0.3s ease;
}

.site-header.is-solid .burger {
  color: var(--color-primary);
}

.burger[aria-expanded="true"] {
  border-radius: 50%;
  background: var(--white-15);
  color: var(--color-white);
}

.burger__close,
.burger[aria-expanded="true"] .burger__open {
  display: none;
}

.burger[aria-expanded="true"] .burger__close {
  display: block;
}

@media (min-width: 1024px) {
  .burger { display: none; }
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  /* Always dark, regardless of header state */
  --lang-border: var(--white-30);
  --lang-color: rgb(255 255 255 / 0.78);

  position: fixed;
  inset: 0 0 auto auto;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  padding: 6.25rem 2rem 2.5rem;
  overflow-y: auto;
  background: var(--color-navy);
  box-shadow: -10px 0 30px rgb(0 0 0 / 0.4);
  visibility: hidden;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out), visibility 0.4s;
}

.mobile-menu.is-open {
  visibility: visible;
  transform: translateX(0);
}

@media (min-width: 640px) {
  .mobile-menu { max-width: 320px; }
}

@media (min-width: 1024px) {
  .mobile-menu { display: none; }
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
  border-bottom: 1px solid var(--white-10);
  color: var(--color-white);
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 2rem;
  --icon-size: 1.5rem;
}

.mobile-menu__link .icon {
  color: var(--accent-text);
}

.mobile-menu__link:hover {
  color: var(--accent-text);
}

.mobile-menu__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.25rem;
}

.mobile-menu__phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-white);
  font-weight: 700;
  --icon-size: 1.125rem;
}

.mobile-menu__phone .icon {
  color: var(--accent-text);
}

/* Staggered entrance (delay set per item via --delay) */
.mobile-menu__link,
.mobile-menu__footer {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.35s ease, transform 0.35s ease, color 0.3s ease;
  transition-delay: var(--delay, 0s), var(--delay, 0s), 0s;
}

.mobile-menu.is-open .mobile-menu__link,
.mobile-menu.is-open .mobile-menu__footer {
  opacity: 1;
  transform: translateY(0);
}


/* ==========================================================================
   6. Page sections
   ========================================================================== */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--color-navy);
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media picture {
  display: contents;
}

.hero__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--color-navy), transparent 50%, rgb(16 38 62 / 0.4)),
    linear-gradient(to right, var(--color-navy), rgb(16 38 62 / 0.85), rgb(27 58 92 / 0.55));
}

.hero__glow {
  right: -10rem;
  bottom: -10rem;
  width: 560px;
  height: 560px;
}

.hero__aside {
  position: absolute;
  top: 50%;
  right: 1.5rem;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transform: translateY(-50%);
  user-select: none;
}

.hero__aside-line {
  width: 1px;
  height: 6rem;
  background: var(--white-20);
}

.hero__aside-text {
  color: var(--white-60);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

@media (min-width: 1280px) {
  .hero__aside { display: flex; }
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-block: 8rem 6rem;
}

/* Leave room for the scroll hint below the chips */
@media (min-width: 640px) {
  .hero__content { padding-bottom: 8rem; }
}

.hero__body {
  max-width: 48rem;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--white-20);
  border-radius: var(--radius-full);
  background: var(--white-10);
  color: var(--color-white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hero__title {
  color: var(--color-white);
  font-size: clamp(1.75rem, 7.6vw, 2.55rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

@media (min-width: 640px) {
  .hero__title { font-size: 3.75rem; }
}

@media (min-width: 1024px) {
  .hero__title { font-size: 4.4rem; }
}

.hero__line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.hero__word {
  display: block;
}

.hero__word--accent {
  color: var(--accent-text);
}

.hero__lead {
  max-width: 36rem;
  margin-top: 1.75rem;
  color: var(--white-90);
  font-size: var(--text-base);
  font-weight: 300;
  line-height: var(--leading-relaxed);
}

@media (min-width: 640px) {
  .hero__lead { font-size: var(--text-lg); }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 3rem;
}

.chip {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--white-20);
  border-radius: var(--radius-full);
  background: var(--white-10);
  color: var(--color-white);
  font-size: var(--text-xs);
  font-weight: 600;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  --icon-size: 1rem;
}

.chip .icon {
  color: var(--accent-text);
}

.hero__scroll {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  z-index: 1;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  translate: -50% 0;
  color: var(--white-70);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

@media (min-width: 640px) {
  .hero__scroll { display: flex; }
}

.hero__scroll-line {
  position: relative;
  width: 1px;
  height: 56px;
  overflow: hidden;
  background: rgb(255 255 255 / 0.25);
}

.hero__scroll-line::after {
  content: "";
  position: absolute;
  top: -40%;
  left: 0;
  width: 100%;
  height: 40%;
  background: var(--color-accent);
  animation: hint-drop 1.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.hero__fade {
  position: absolute;
  inset: auto 0 0;
  height: 6rem;
  background: linear-gradient(to top, var(--color-navy), transparent);
  pointer-events: none;
}

/* ---------- Partners marquee ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding-block: 1.25rem;
  border-block: 1px solid var(--white-20);
  background: var(--color-primary);
  color: var(--white-80);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__list {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-right: 2.5rem;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee__item {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.marquee__item::after {
  content: "✦";
  color: var(--accent-text);
  font-size: var(--text-lg);
}

/* ---------- Service explorer (tabs + detail panel) ---------- */
.services {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .services {
    grid-template-columns: minmax(19rem, 24rem) minmax(0, 1fr);
    align-items: start;
    gap: 2rem;
  }
}

/* Tabs only make sense with JavaScript; without it every panel is listed */
.services__tabs {
  display: none;
}

.js .services__tabs {
  display: flex;
  gap: 0.5rem;
  margin-inline: calc(-1 * var(--gutter));
  padding: 0.25rem var(--gutter) 0.5rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.js .services__tabs::-webkit-scrollbar {
  display: none;
}

@media (min-width: 1024px) {
  .js .services__tabs {
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
    flex-direction: column;
    gap: 0.25rem;
    margin: 0;
    padding: 0.5rem;
    overflow: visible;
    border-radius: var(--radius-xl);
    background: var(--color-mist);
  }
}

.services__tab {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1rem 0.625rem 0.625rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-white);
  color: var(--color-navy);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  white-space: nowrap;
  scroll-snap-align: start;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.services__tab-num {
  display: none;
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
}

.services__tab-icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgb(27 58 92 / 0.1);
  color: var(--color-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
  --icon-size: 1.125rem;
}

.services__tab-label {
  flex: 1;
}

.services__tab:hover {
  border-color: rgb(27 58 92 / 0.35);
}

.services__tab[aria-selected="true"] {
  border-color: var(--color-navy);
  background: var(--color-navy);
  color: var(--color-white);
}

.services__tab[aria-selected="true"] .services__tab-icon {
  background: var(--color-accent);
  color: var(--color-white);
}

@media (min-width: 1024px) {
  .services__tab {
    gap: 1rem;
    padding: 0.875rem 1.25rem 0.875rem 1rem;
    border-color: transparent;
    border-radius: var(--radius-lg);
    background: transparent;
    font-size: 0.9375rem;
    white-space: normal;
  }

  .services__tab-num {
    display: inline;
  }

  .services__tab-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius-md);
    --icon-size: 1.375rem;
  }

  .services__tab:hover {
    border-color: transparent;
    background: rgb(255 255 255 / 0.7);
  }

  /* Active: white card with an accent bar, pointing at the panel */
  .services__tab[aria-selected="true"] {
    border-color: transparent;
    background: var(--color-white);
    color: var(--color-navy);
    box-shadow: var(--shadow-card);
  }

  .services__tab[aria-selected="true"]::before {
    content: "";
    position: absolute;
    top: 0.875rem;
    bottom: 0.875rem;
    left: 0;
    width: 3px;
    border-radius: 3px;
    background: var(--color-accent);
  }

  .services__tab[aria-selected="true"] .services__tab-num {
    color: var(--color-accent-ink);
  }
}

/* Detail panel */
.services__panels {
  display: grid;
  gap: 1.25rem;
}

.services__panel {
  --accent-text: var(--color-accent-bright);

  position: relative;
  overflow: hidden;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-xl);
  background-color: var(--color-navy);
  background-image:
    radial-gradient(circle at 100% 100%, rgb(217 93 2 / 0.22), transparent 45%),
    linear-gradient(rgb(255 255 255 / 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.045) 1px, transparent 1px);
  background-size: auto, 56px 56px, 56px 56px;
  color: var(--color-white);
  box-shadow: var(--shadow-pop);
}

@media (min-width: 640px) {
  .services__panel { padding: 2.5rem; }
}

@media (min-width: 1024px) {
  .services__panel {
    min-height: 100%;
    padding: 3rem;
  }
}

.js .services__panel:not(.is-active) {
  display: none;
}

.js .services__panel.is-active {
  animation: panel-in 0.45s var(--ease-out);
}

.services__panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.services__panel-icon {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius-lg);
  background: rgb(217 93 2 / 0.18);
  color: var(--accent-text);
  --icon-size: 2rem;
}

.services__panel-count {
  color: var(--white-60);
  font-size: var(--text-sm);
  font-weight: 800;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}

.services__panel-title {
  margin-top: 1.5rem;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 900;
  line-height: var(--leading-tight);
}

.services__panel-text {
  max-width: 40rem;
  margin-top: 1rem;
  color: var(--white-80);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}

.services__features-title {
  margin-top: 2rem;
  color: var(--accent-text);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.services__features {
  display: grid;
  gap: 0.75rem 1.5rem;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .services__features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.services__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  color: var(--white-90);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5;
  --icon-size: 1.25rem;
}

.services__features .icon {
  margin-top: 0.05rem;
  color: var(--accent-text);
}

.services__cta {
  margin-top: 2.5rem;
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(12px); }
}

/* ---------- About ---------- */
.about {
  display: grid;
  align-items: center;
  gap: 3.5rem;
}

.about__text { order: 2; }
.about__media { order: 1; position: relative; }

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

  .about__text { order: 1; }
  .about__media { order: 2; }
}

.about__title {
  margin-bottom: 1.75rem;
}

@media (min-width: 1024px) {
  .about__title { font-size: 2.7rem; }
}

.about__text .prose + .prose {
  margin-top: 1.25rem;
}

.checklist {
  display: grid;
  gap: 1rem 1.5rem;
  margin-block: 2rem 2.5rem;
}

@media (min-width: 640px) {
  .checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.checklist__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--color-navy);
  font-size: var(--text-sm);
  font-weight: 700;
}

.checklist__item .icon {
  margin-top: 0.125rem;
  color: var(--accent-text);
}

.about__photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3.4;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-pop);
}

.about__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(16 38 62 / 0.3), transparent);
}

.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__inset {
  position: absolute;
  bottom: -2rem;
  left: -2rem;
  display: none;
  width: 14rem;
  overflow: hidden;
  border: 6px solid var(--color-mist);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
}

.about__inset img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (min-width: 640px) {
  .about__inset { display: block; }
}

.about__badge {
  position: absolute;
  top: -1.5rem;
  right: -0.75rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: var(--shadow-pop);
}

@media (min-width: 640px) {
  .about__badge { right: -1.5rem; }
}

.about__badge-value {
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1;
}

.about__badge-plus {
  font-size: var(--text-2xl);
  vertical-align: top;
}

.about__badge-label {
  margin-top: 0.375rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.about__ring {
  position: absolute;
  right: 2rem;
  bottom: -2.5rem;
  display: none;
  width: 6rem;
  height: 6rem;
  color: rgb(27 58 92 / 0.25);
  animation: spin 22s linear infinite;
}

@media (min-width: 1024px) {
  .about__ring { display: block; }
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 6rem;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--color-navy);
}

/* Divider lines work for any number of items: each cell draws its right and
   bottom edge, and the container clips the ones on the outer border */
.stats__item {
  padding: 2rem;
  text-align: center;
  box-shadow: 1px 0 0 var(--white-10), 0 1px 0 var(--white-10);
}

@media (min-width: 1024px) {
  .stats {
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    margin-top: 7rem;
  }

  .stats__item {
    padding: 2.5rem;
  }
}

.stats__value {
  color: var(--accent-text);
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 2.5rem;
}

@media (min-width: 1024px) {
  .stats__value { font-size: 3rem; line-height: 1; }
}

.stats__label {
  margin-top: 0.625rem;
  color: var(--white-80);
  font-size: var(--text-sm);
  font-weight: 600;
}

/* ---------- Projects ---------- */
.section--projects {
  padding-bottom: 8rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.filter-btn {
  min-height: 2.75rem;
  padding: 0.625rem 1.5rem;
  border: 1px solid rgb(34 34 34 / 0.15);
  border-radius: var(--radius-full);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 700;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.filter-btn:hover {
  border-color: var(--color-primary);
}

.filter-btn.is-active {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-white);
}

.project-grid {
  transition: opacity 0.3s ease;
}

.project-grid.is-fading {
  opacity: 0;
}

.project-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.project-card__btn {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  text-align: left;
}

.project-card__btn:focus-visible {
  outline-offset: -3px;
}

.project-card__btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(16 38 62 / 0.95), rgb(16 38 62 / 0.4), transparent);
  opacity: 0.8;
  transition: opacity 0.45s ease;
}

.project-card__plus {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.45s var(--ease-spring), transform 0.45s var(--ease-spring);
}

.project-card__plus-circle {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --icon-size: 1.5rem;
}

.project-card__info {
  position: absolute;
  inset: auto 0 0;
  display: block;
  padding: 1.5rem;
  transform: translateY(16px);
  transition: transform 0.5s var(--ease-out);
}

.project-card__info .tag {
  margin-bottom: 0.625rem;
}

.project-card__title {
  display: block;
  color: var(--color-white);
  font-size: var(--text-lg);
  font-weight: 800;
  line-height: var(--leading-snug);
}

.project-card__meta {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.25rem;
  color: var(--white-80);
  font-size: var(--text-xs);
  font-weight: 600;
  --icon-size: 0.875rem;
}

.project-card__btn:is(:hover, :focus-visible) img { transform: scale(1.08); }
.project-card__btn:is(:hover, :focus-visible) .project-card__overlay { opacity: 1; }
.project-card__btn:is(:hover, :focus-visible) .project-card__info { transform: translateY(0); }
.project-card__btn:is(:hover, :focus-visible) .project-card__plus { opacity: 1; transform: scale(1); }

/* ---------- Why us ---------- */
.why__glow {
  top: -8rem;
  left: -8rem;
  width: 480px;
  height: 480px;
}

.feature-card {
  position: relative;
  overflow: hidden;
  padding: 2rem;
  border: 1px solid var(--white-10);
  border-radius: var(--radius-lg);
  background: var(--white-5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background-color 0.5s ease, translate 0.5s ease;
}

.feature-card:hover {
  translate: 0 -0.5rem;
  background: rgb(255 255 255 / 0.08);
}

.feature-card::after {
  content: attr(data-num);
  content: attr(data-num) / "";
  position: absolute;
  top: -0.75rem;
  right: 1rem;
  color: var(--white-10);
  font-size: 4.4rem;
  font-weight: 900;
  line-height: 1;
  user-select: none;
}

.feature-card__icon,
.feature-card__title,
.feature-card__text {
  position: relative;
  z-index: 1;
}

.feature-card__icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-md);
  background: rgb(217 93 2 / 0.15);
  color: var(--accent-text);
  transition: transform 0.5s ease;
  --icon-size: 1.75rem;
}

.feature-card:hover .feature-card__icon {
  transform: rotate(6deg) scale(1.1);
}

.feature-card__title {
  margin-bottom: 0.75rem;
  color: var(--color-white);
  font-size: 17px;
  font-weight: 800;
}

.feature-card__text {
  color: var(--white-80);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.emergency {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 3.5rem;
  padding: 2rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(to right, var(--color-accent), var(--color-accent-dark));
  box-shadow: var(--shadow-pop);
}

@media (min-width: 1024px) {
  .emergency {
    flex-direction: row;
    align-items: center;
    padding: 2.5rem;
  }
}

.emergency__body {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.emergency__icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-lg);
  background: var(--white-15);
  color: var(--color-white);
  --icon-size: 1.75rem;
}

.emergency__title {
  color: var(--color-white);
  font-size: var(--text-xl);
  font-weight: 900;
}

@media (min-width: 1024px) {
  .emergency__title { font-size: var(--text-2xl); }
}

.emergency__text {
  margin-top: 0.25rem;
  color: var(--white-90);
  font-size: var(--text-sm);
}

.emergency__call {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-full);
  background: var(--color-white);
  color: var(--color-accent-dark);
  font-size: var(--text-lg);
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  transition: scale 0.3s ease;
}

.emergency__call:hover {
  scale: 1.03;
}

/* ---------- Reviews ---------- */
.reviews {
  text-align: center;
}

.reviews__badge {
  display: grid;
  place-items: center;
  width: 5rem;
  height: 5rem;
  margin: 0 auto 2rem;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  color: var(--color-primary);
  box-shadow: var(--shadow-pop);
  --icon-size: 2.5rem;
}

.reviews__title {
  margin-bottom: 1.5rem;
}

.reviews__text {
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  color: var(--color-text);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
}

.reviews__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.reviews__actions .btn {
  width: 100%;
  padding-block: 1.125rem;
}

@media (min-width: 640px) {
  .reviews__actions { flex-direction: row; }
  .reviews__actions .btn { width: auto; }
}

/* ---------- Contact ---------- */
.contact {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .contact {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3rem;
  }

  .contact__main { grid-column: span 3; }
  .contact__aside { grid-column: span 2; }
}

.form-card {
  position: relative;
  overflow: hidden;
  padding: 1.75rem;
  border: 1px solid rgb(34 34 34 / 0.06);
  border-radius: var(--radius-xl);
  background: var(--color-mist);
}

@media (min-width: 640px) {
  .form-card { padding: 2.5rem; }
}

.form {
  display: grid;
  gap: 1.5rem 1.25rem;
}

@media (min-width: 640px) {
  .form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form__field--full { grid-column: 1 / -1; }
}

.form__label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--color-navy);
  font-size: 13px;
  font-weight: 700;
}

.form__control {
  display: block;
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid rgb(34 34 34 / 0.12);
  border-radius: var(--radius-md);
  background-color: var(--color-white);
  color: var(--color-ink);
  font-size: var(--text-sm);
  line-height: 1.25rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.form__control::placeholder {
  color: rgb(34 34 34 / 0.35);
}

.form__control:focus,
.form__control:focus-visible {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgb(217 93 2 / 0.14);
}

.form__control[aria-invalid="true"] {
  border-color: var(--color-danger);
  background-color: var(--color-danger-bg);
}

.form__control--ltr {
  direction: ltr;
  text-align: left;
}

.form__control--select {
  padding-right: 2.75rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%231B3A5C' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.form__control--textarea {
  resize: vertical;
}

.form__error {
  margin-top: 0.375rem;
  color: var(--color-danger);
  font-size: var(--text-xs);
  font-weight: 600;
}

.form__error:empty {
  display: none;
}

.form__submit {
  padding-block: 1.125rem;
  font-weight: 800;
}

.form__submit:disabled {
  opacity: 0.8;
  translate: none;
}

.form__submit .spinner,
.form__submit.is-loading .form__submit-icon {
  display: none;
}

.form__submit.is-loading .spinner {
  display: block;
}

.form__status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgb(220 38 38 / 0.25);
  border-radius: var(--radius-md);
  background: var(--color-danger-bg);
  color: var(--color-danger);
  font-size: var(--text-sm);
  font-weight: 600;
  text-align: center;
}

.form__status:empty {
  display: none;
}

.form__turnstile:not(:empty) {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.form__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__note {
  margin-top: 0.875rem;
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  text-align: center;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgb(255 255 255 / 0.35);
  border-top-color: var(--color-white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.form-success {
  padding-block: 3.5rem;
  text-align: center;
}

.form-success__icon {
  display: grid;
  place-items: center;
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1.75rem;
  border-radius: 50%;
  background: rgb(217 93 2 / 0.12);
  color: var(--accent-text);
  --icon-size: 2.75rem;
}

.form-success__title {
  margin-bottom: 0.75rem;
  color: var(--color-navy);
  font-size: var(--text-2xl);
  font-weight: 900;
}

.form-success__title:focus {
  outline: none;
}

.form-success__text {
  max-width: 24rem;
  margin: 0 auto 2rem;
  color: var(--color-text);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.form-success .btn {
  padding: 0.75rem 1.75rem;
  font-size: var(--text-sm);
}

/* Contact info card */
.info-card {
  position: relative;
  overflow: hidden;
  padding: 1.75rem;
  border-radius: var(--radius-xl);
  background: var(--color-navy);
  color: var(--color-white);
}

@media (min-width: 640px) {
  .info-card { padding: 2.25rem; }
}

.info-card__glow {
  top: -5rem;
  right: -5rem;
  width: 16rem;
  height: 16rem;
}

.info-card__title {
  position: relative;
  margin-bottom: 2rem;
  font-size: var(--text-xl);
  font-weight: 900;
}

.info-list {
  position: relative;
  display: grid;
  gap: 1.5rem;
}

.info-list__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.info-list__icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-md);
  background: var(--white-10);
  color: var(--accent-text);
}

.info-list__label {
  margin-bottom: 0.25rem;
  color: var(--white-80);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.info-list__value {
  font-size: var(--text-sm);
  font-style: normal;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.info-list__value--lg {
  font-size: 0.9375rem;
}

a.info-list__value {
  transition: color 0.3s ease;
}

a.info-list__value:hover {
  color: var(--accent-text);
}

.info-list__status {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.25rem;
  color: var(--accent-text);
  font-size: var(--text-xs);
  font-weight: 700;
}

.info-card__map {
  position: relative;
  width: 100%;
  height: 14rem;
  margin-top: 2.25rem;
  border: 0;
  border-radius: var(--radius-lg);
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.5s ease;
}

.info-card__map:hover {
  filter: none;
}

.info-card__map-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  margin-top: 0.75rem;
  color: var(--accent-text);
  font-size: var(--text-sm);
  font-weight: 700;
}

.info-card__map-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* ==========================================================================
   7. Footer
   ========================================================================== */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--color-navy);
  color: var(--color-white);
}

.site-footer .grid-lines {
  opacity: 0.5;
}

.site-footer__inner {
  position: relative;
  padding-block: 4rem 2rem;
}

@media (min-width: 1024px) {
  .site-footer__inner { padding-top: 5rem; }
}

.site-footer__top {
  display: grid;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--white-10);
}

@media (min-width: 768px) {
  .site-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .site-footer__top {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.5rem;
  }
}

.site-footer .brand {
  margin-bottom: 1.5rem;
}

.site-footer__about {
  max-width: 20rem;
  margin-bottom: 1.75rem;
  color: var(--white-80);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social__link {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--white-20);
  border-radius: 50%;
  color: var(--color-white);
  transition: background-color 0.3s ease, border-color 0.3s ease;
  --icon-size: 17px;
}

.social__link:hover {
  border-color: var(--color-accent);
  background: var(--color-accent);
}

.site-footer__heading {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1.5rem;
  font-size: 15px;
  font-weight: 800;
}

.site-footer__heading::before {
  content: "";
  width: 1.25rem;
  height: 2px;
  background: var(--color-accent);
}

.site-footer__links {
  display: grid;
  gap: 0.875rem;
  font-size: var(--text-sm);
}

.site-footer__links a {
  color: var(--white-80);
  transition: color 0.3s ease;
}

.site-footer__links a:hover {
  color: var(--accent-text);
}

.site-footer__contact {
  display: grid;
  gap: 1rem;
  font-size: var(--text-sm);
}

.site-footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  --icon-size: 1rem;
}

.site-footer__contact .icon {
  margin-top: 0.1875rem;
  color: var(--accent-text);
}

.site-footer__contact a {
  font-weight: 600;
  overflow-wrap: anywhere;
  transition: color 0.3s ease;
}

.site-footer__contact a:hover {
  color: var(--accent-text);
}

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.75rem;
  color: var(--white-70);
  font-size: var(--text-xs);
}

@media (min-width: 640px) {
  .site-footer__bottom { flex-direction: row; }
}

.site-footer__made {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.site-footer__made .icon {
  color: var(--accent-text);
}


/* ==========================================================================
   8. Overlays
   ========================================================================== */

/* ---------- Scroll progress ---------- */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-pop);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 0.4s ease, transform 0.4s ease, background-color 0.3s ease;
}

.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.to-top:hover {
  background: var(--color-accent);
}

/* ---------- Lightbox (native <dialog>) ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  padding: 1rem;
  border: 0;
  background: transparent;
  opacity: 0;
  overscroll-behavior: contain;
  touch-action: pan-y pinch-zoom; /* horizontal swipes change the photo, never the page */
  transition: opacity 0.4s ease, overlay 0.4s allow-discrete, display 0.4s allow-discrete;
}

.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.lightbox::backdrop {
  background: rgb(16 38 62 / 0.95);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

@starting-style {
  .lightbox[open] { opacity: 0; }
}

@media (min-width: 640px) {
  .lightbox { padding: 2rem; }
}

.lightbox__figure {
  position: relative;
  width: 100%;
  max-width: 56rem;
}

.lightbox__frame {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgb(0 0 0 / 0.3);
  box-shadow: var(--shadow-pop);
}

.lightbox__img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  opacity: 0.5;
  transform: scale(0.94);
  transition: transform 0.5s var(--ease-out), opacity 0.5s ease;
}

.lightbox[open] .lightbox__img {
  opacity: 1;
  transform: scale(1);
}

@starting-style {
  .lightbox[open] .lightbox__img {
    opacity: 0.5;
    transform: scale(0.94);
  }
}

.lightbox__caption {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.lightbox__caption .tag {
  margin-bottom: 0.5rem;
}

.lightbox__title {
  color: var(--color-white);
  font-size: var(--text-lg);
  font-weight: 800;
}

@media (min-width: 640px) {
  .lightbox__title { font-size: var(--text-xl); }
}

.lightbox__desc {
  max-width: 40rem;
  margin-top: 0.375rem;
  color: var(--white-80);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.lightbox__desc:empty {
  display: none;
}

.lightbox__count {
  flex-shrink: 0;
  color: var(--color-white);
  font-size: var(--text-sm);
  font-weight: 700;
}

.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--white-20);
  color: var(--color-white);
  transition: background-color 0.3s ease;
}

.lightbox__btn:hover {
  background: var(--color-accent);
}

.lightbox__btn--close {
  top: 1.25rem;
  right: 1.25rem;
}

.lightbox__btn--prev,
.lightbox__btn--next {
  top: 50%;
  translate: 0 -50%;
}

.lightbox__btn--prev { left: 0.75rem; }
.lightbox__btn--next { right: 0.75rem; }

@media (min-width: 640px) {
  .lightbox__btn--prev { left: 1.5rem; }
  .lightbox__btn--next { right: 1.5rem; }
}

/* ---------- 404 page ---------- */
.not-found {
  --accent-text: var(--color-accent-bright);

  background: var(--color-navy);
  color: var(--color-white);
}

.not-found__main {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 3rem var(--gutter);
  overflow: hidden;
}

.not-found__glow {
  right: -10rem;
  bottom: -10rem;
  width: 560px;
  height: 560px;
}

.not-found__content {
  position: relative;
  max-width: 36rem;
  text-align: center;
}

.not-found__brand {
  justify-content: center;
  margin-bottom: 2.5rem;
}

.not-found__code {
  color: var(--accent-text);
  font-size: clamp(5rem, 22vw, 9rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
}

.not-found__title {
  margin-top: 1rem;
  font-size: clamp(1.6rem, 6vw, 2.25rem);
  font-weight: 900;
  line-height: var(--leading-tight);
}

.not-found__text {
  margin-top: 1rem;
  color: var(--white-80);
  line-height: var(--leading-relaxed);
}

.not-found__text--en {
  margin-top: 0.5rem;
  color: var(--white-70);
  font-size: var(--text-sm);
}

.not-found__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}


/* ==========================================================================
   9. Motion
   ========================================================================== */

/* Entrance animations only apply when JS is running (html.js is set in <head>),
   so content stays visible if scripts fail. */
.js .reveal {
  opacity: 0;
}

.js .reveal.is-visible {
  animation: reveal-up 0.85s var(--ease-out) var(--delay, 0s) both;
}

/* The hero entrance is pure CSS and starts at first paint — it never waits for
   JavaScript, so it can't delay First/Largest Contentful Paint. */
.hero-fade {
  animation: hero-fade-up 0.8s var(--ease-out) var(--delay, 0s) both;
}

.hero__word {
  animation: hero-word-up 1s var(--ease-out-expo) both;
}

.hero__line:nth-child(2) .hero__word { animation-delay: 0.1s; }
.hero__line:nth-child(3) .hero__word { animation-delay: 0.2s; }

@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(26px); }
}

@keyframes hero-word-up {
  from { transform: translateY(115%); }
}

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(34px); }
  to { opacity: 1; transform: none; }
}

@keyframes ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}

@keyframes hint-drop {
  0% { top: -40%; }
  60%, 100% { top: 110%; }
}

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

@keyframes spin {
  to { transform: rotate(360deg); }
}

@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;
  }

  .marquee__track,
  .about__ring,
  .pulse-dot::before,
  .hero__scroll-line::after {
    animation: none !important;
  }

  .js .reveal,
  .hero-fade,
  .hero__word {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
