/* ==========================================================================
   Moein Software Group — Design System
   Palette derived from the brand mark: deep navy, signal blue, teal.
   ========================================================================== */

:root {
  --paper: #f6f3ed;
  --paper-2: #fbf9f4;
  --white: #ffffff;
  --ink: #0a1f38;
  --ink-soft: #33465e;
  --muted: #5d6d7f;
  --navy: #0a2540;
  --navy-800: #081d33;
  --navy-900: #051422;
  --blue: #1f63d6;
  --blue-600: #1a55bd;
  --teal: #12a594;
  --teal-400: #3fc9b6;
  --teal-200: #a8e6dc;
  --line: rgba(10, 31, 56, 0.12);
  --line-light: rgba(255, 255, 255, 0.14);
  --shadow-sm: 0 2px 10px -4px rgba(8, 29, 51, 0.14);
  --shadow-md: 0 18px 40px -24px rgba(8, 29, 51, 0.3);
  --shadow-lg: 0 40px 90px -40px rgba(8, 29, 51, 0.45);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --font-body: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
  --font-display: 'Estedad', 'Vazirmatn', Tahoma, sans-serif;
  --font-latin: 'Space Grotesk', 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
svg { display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 0.5em;
  color: var(--ink);
}
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: rgba(18, 165, 148, 0.25); }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed;
  top: -100px;
  right: 16px;
  z-index: 200;
  background: var(--navy);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 0 0 12px 12px;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

.icon { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, box-shadow 0.25s;
}
.btn .icon { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.btn:hover .icon { transform: translateX(-4px); }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 10px 30px -14px rgba(8, 29, 51, 0.6);
}
.btn-primary:hover { background: var(--blue); }

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--ink); background: rgba(10, 31, 56, 0.04); }

.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--teal); }

.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--teal-200); }

.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-sm { padding: 9px 18px; font-size: 14px; }

.icon-btn {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--ink);
  transition: background 0.2s, color 0.2s;
}
.icon-btn:hover { background: rgba(10, 31, 56, 0.06); }

/* ---------- Header ---------- */
.topbar {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12.5px;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
}
.topbar-note { display: flex; align-items: center; gap: 8px; margin: 0; }
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal-400);
  box-shadow: 0 0 0 0 rgba(63, 201, 182, 0.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(63, 201, 182, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(63, 201, 182, 0); }
  100% { box-shadow: 0 0 0 0 rgba(63, 201, 182, 0); }
}
.topbar-links { display: flex; gap: 22px; }
.topbar-links a { display: inline-flex; align-items: center; gap: 7px; transition: color 0.2s; }
.topbar-links a:hover { color: var(--teal-200); }
.topbar-links .icon { width: 15px; height: 15px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(246, 243, 237, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -24px rgba(8, 29, 51, 0.4);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 50px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-family: var(--font-display); font-size: 21px; font-weight: 800; }
.brand-text small {
  font-family: var(--font-latin);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.brand-light .brand-text strong { color: var(--white); }
.brand-light .brand-text small { color: rgba(255, 255, 255, 0.55); }

.main-nav ul { display: flex; gap: 30px; }
.main-nav a {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 6px 0;
  transition: color 0.2s;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--teal);
  transition: width 0.3s var(--ease);
}
.main-nav a:hover, .main-nav a.is-active { color: var(--ink); }
.main-nav a:hover::after, .main-nav a.is-active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.burger { display: none; }

/* Mobile nav */
.mobile-nav {
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  padding: 18px var(--gutter) 28px;
}
.mobile-nav ul li + li { border-top: 1px solid var(--line); }
.mobile-nav ul a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px;
  font-size: 16px;
  font-weight: 500;
}
.mobile-nav ul a .icon { width: 18px; height: 18px; color: var(--muted); }
.mobile-nav ul a.is-active { color: var(--teal); }
.mobile-nav-foot { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.mobile-nav-foot .btn { justify-content: center; }
.mobile-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }

/* Search overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(5, 20, 34, 0.6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 20px 20px;
}
.search-panel {
  width: 100%;
  max-width: 640px;
  background: var(--paper-2);
  border-radius: var(--radius-lg);
  padding: 10px 22px 22px;
  box-shadow: var(--shadow-lg);
}
.search-panel form { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.search-panel form > .icon { color: var(--muted); width: 22px; height: 22px; }
.search-panel input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 16px 0;
  font-size: 17px;
  outline: none;
}
.search-hint { margin: 14px 2px 0; color: var(--muted); font-size: 13px; }

.scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--teal), var(--blue));
  z-index: 150;
  transition: width 0.1s linear;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 8vw, 100px);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(10, 31, 56, 0.14) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 70% 60% at 75% 30%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 75% 30%, #000, transparent 75%);
  pointer-events: none;
}
.hero-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.ribbon-art {
  position: absolute;
  left: -140px;
  top: 40px;
  width: min(820px, 65vw);
  opacity: 0.85;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--teal);
  background: rgba(18, 165, 148, 0.09);
  border: 1px solid rgba(18, 165, 148, 0.18);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 22px;
}
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.hero-title {
  font-size: clamp(30px, 4.6vw, 56px);
  line-height: 1.38;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
  font-weight: 800;
}
.hero-title-accent {
  position: relative;
  color: var(--blue);
  white-space: nowrap;
}
.hero-title-accent::after {
  content: '';
  position: absolute;
  right: 0;
  left: 0;
  bottom: 4px;
  height: 10px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(18, 165, 148, 0.28), rgba(31, 99, 214, 0.12));
  z-index: -1;
}
.hero-lede {
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--ink-soft);
  max-width: 33em;
  margin-bottom: 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  color: var(--muted);
  font-size: 13.5px;
}
.hero-meta li { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta .icon { width: 16px; height: 16px; color: var(--teal); }

.hero-visual { position: relative; }
.hero-panel {
  position: relative;
  aspect-ratio: 1 / 0.92;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(18, 165, 148, 0.35), transparent 55%),
    radial-gradient(100% 100% at 10% 100%, rgba(31, 99, 214, 0.4), transparent 60%),
    linear-gradient(160deg, #0b2a4a 0%, #071b30 100%);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, #000, transparent 78%);
}
.hero-mark {
  width: 62%;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.35));
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.hero-orbit {
  position: absolute;
  width: 130%;
  aspect-ratio: 1;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  animation: spin 40s linear infinite;
}
.hero-orbit::before {
  content: '';
  position: absolute;
  top: -5px;
  right: 22%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal-400);
  box-shadow: 0 0 18px var(--teal-400);
}
@keyframes spin { to { transform: rotate(360deg); } }

.float-card {
  position: absolute;
  background: rgba(251, 249, 244, 0.92);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.float-card-a { right: -18px; top: 12%; }
.float-card-b { left: -14px; bottom: 10%; }
.float-label { font-size: 11.5px; color: var(--muted); }
.float-value { font-family: var(--font-latin); font-size: 24px; color: var(--ink); line-height: 1.3; }
.float-note { font-size: 11px; color: var(--teal); }

/* ---------- Ticker ---------- */
.ticker {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.6);
  overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, 0.06);
}
.ticker-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group { display: flex; align-items: center; padding: 15px 0; }
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding-inline: 26px;
  font-family: var(--font-latin);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ticker-item i { font-style: normal; color: var(--teal); font-size: 10px; }
@keyframes marquee { to { transform: translateX(50%); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 8.5vw, 112px); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.section-head-center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.section-head-center .section-lede { max-width: 44em; margin-bottom: 0; }
.section-title {
  font-size: clamp(24px, 3.2vw, 40px);
  line-height: 1.45;
  margin: 0;
  max-width: 22em;
}
.section-lede { color: var(--muted); font-size: 16.5px; max-width: 36em; margin: 0; }
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}
.link-more .icon { width: 17px; height: 17px; transition: transform 0.3s var(--ease); }
.link-more:hover { color: var(--teal); border-color: var(--teal); }
.link-more:hover .icon { transform: translateX(-4px); }

/* ---------- Services ---------- */
.services-list { border-top: 1px solid var(--line); }
.service-row {
  display: grid;
  grid-template-columns: 64px 56px 1fr 48px;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  padding: clamp(18px, 2.6vw, 28px) clamp(12px, 2vw, 28px);
  border-bottom: 1px solid var(--line);
  transition: background 0.35s var(--ease), color 0.35s, padding 0.35s var(--ease);
}
.service-row:hover {
  background: var(--navy);
  color: var(--paper);
  padding-inline-start: clamp(20px, 3.5vw, 44px);
}
.service-num {
  font-family: var(--font-latin);
  font-size: 15px;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.service-row:hover .service-num { color: var(--teal-400); }
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(18, 165, 148, 0.1);
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, color 0.3s;
}
.service-icon .icon { width: 24px; height: 24px; }
.service-row:hover .service-icon { background: rgba(63, 201, 182, 0.16); color: var(--teal-400); }
.service-title {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.5;
}
.service-tagline { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.service-row:hover .service-tagline { color: rgba(246, 243, 237, 0.6); }
.service-arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  justify-self: end;
  transition: all 0.3s var(--ease);
}
.service-row:hover .service-arrow {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
  transform: rotate(-45deg);
}

/* ---------- Stats ---------- */
.stats-band {
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(18, 165, 148, 0.18), transparent 55%),
    var(--navy-900);
  color: var(--white);
  padding-block: clamp(48px, 6vw, 76px);
  position: relative;
  overflow: hidden;
}
.stats-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 90% 100% at 20% 0%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 90% 100% at 20% 0%, #000, transparent 70%);
}
.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat { text-align: center; }
.stat + .stat { border-inline-start: 1px solid rgba(255, 255, 255, 0.1); }
.stat-value {
  display: block;
  font-family: var(--font-latin);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--teal-400);
}
.stat-label { font-size: 14px; color: rgba(255, 255, 255, 0.66); }

/* ---------- Projects ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(18px, 2.6vw, 32px);
}
.project-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.project-card-wide { grid-column: span 2; }
.project-media { position: relative; overflow: hidden; aspect-ratio: 16 / 9.5; }
.project-card-wide .project-media { aspect-ratio: 16 / 7.2; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.project-card:hover .project-media img { transform: scale(1.04); }
.project-cat {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(251, 249, 244, 0.92);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
}
.project-info {
  position: relative;
  padding: 20px 26px 24px;
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 4px 16px;
}
.project-info h3 { font-size: clamp(18px, 2vw, 22px); margin: 0; }
.project-info p { grid-column: 1; margin: 0; color: var(--muted); font-size: 14px; }
.project-arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, color 0.3s;
}
.project-card:hover .project-arrow { background: var(--teal); color: var(--white); }

/* ---------- Split ---------- */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}
.split-media { position: relative; }
.split-img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.split-chip {
  position: absolute;
  left: -16px;
  bottom: 28px;
  background: var(--navy);
  color: var(--white);
  border-radius: 18px;
  padding: 14px 22px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: var(--shadow-md);
}
.split-chip-num { font-family: var(--font-latin); font-size: 20px; color: var(--teal-400); }
.split-chip-text { font-size: 12px; color: rgba(255, 255, 255, 0.7); }
.check-list { display: grid; gap: 12px; margin: 24px 0 30px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-soft); }
.check-list .icon { width: 20px; height: 20px; color: var(--teal); margin-top: 4px; }

/* ---------- Process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 26px);
  counter-reset: step;
}
.process-card {
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 28px;
  transition: transform 0.35s var(--ease), border-color 0.3s, background 0.3s;
}
.process-card:hover { transform: translateY(-6px); border-color: var(--teal); background: var(--white); }
.process-num {
  display: block;
  font-family: var(--font-latin);
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(10, 31, 56, 0.22);
  margin-bottom: 18px;
}
.process-card:hover .process-num { -webkit-text-stroke-color: var(--teal); }
.process-card h3 { font-size: 18px; margin-bottom: 8px; }
.process-card p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- Testimonials ---------- */
.testimonials-section { background: var(--paper-2); border-block: 1px solid var(--line); }
.testimonial-slider { position: relative; }
.testimonial-track { position: relative; min-height: 260px; }
.testimonial {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0.5s;
}
.testimonial.is-active { opacity: 1; visibility: visible; transform: none; position: relative; }
.quote-mark { width: 44px; height: 44px; color: var(--teal); margin-bottom: 18px; }
.testimonial blockquote {
  margin: 0 0 26px;
  font-family: var(--font-display);
  font-size: clamp(19px, 2.3vw, 27px);
  line-height: 1.85;
  font-weight: 500;
  max-width: 48em;
}
.testimonial figcaption { display: flex; align-items: center; gap: 14px; }
.t-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--teal-200);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}
.t-meta { display: flex; flex-direction: column; line-height: 1.5; }
.t-meta strong { font-size: 15px; }
.t-meta small { color: var(--muted); font-size: 13px; }
.slider-dots { display: flex; gap: 8px; margin-top: 26px; }
.slider-dot {
  width: 26px;
  height: 4px;
  border-radius: 4px;
  background: var(--line);
  transition: background 0.3s, width 0.3s;
}
.slider-dot.is-active { background: var(--teal); width: 44px; }

/* ---------- Clients ---------- */
.clients-section { padding-block: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.clients-head p { text-align: center; color: var(--muted); font-size: 14px; margin: 0 0 26px; }
.clients-marquee { overflow: hidden; }
.clients-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.clients-track:hover { animation-play-state: paused; }
.clients-group { display: flex; align-items: center; }
.client-name {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.8vw, 21px);
  font-weight: 700;
  color: rgba(10, 31, 56, 0.35);
  padding-inline: clamp(20px, 3vw, 42px);
  white-space: nowrap;
  transition: color 0.3s;
}
.client-name:hover { color: var(--ink); }
.client-name + .client-name::before {
  content: '✦';
  color: var(--teal);
  margin-inline-end: clamp(20px, 3vw, 42px);
  font-size: 11px;
}

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 28px); }
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.post-media { aspect-ratio: 16 / 9.6; overflow: hidden; }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.post-card:hover .post-media img { transform: scale(1.05); }
.post-info { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-cat {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
  background: rgba(18, 165, 148, 0.09);
  border-radius: 999px;
  padding: 3px 12px;
}
.post-info h3 { font-size: 17.5px; line-height: 1.65; margin: 0; }
.post-meta { margin-top: auto; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12.5px; }
.dot-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq-intro .btn { margin-top: 8px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  margin-bottom: 12px;
  transition: border-color 0.3s, background 0.3s;
}
.faq-item[open] { border-color: rgba(18, 165, 148, 0.4); background: var(--white); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15.5px;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s;
}
.faq-icon .icon { width: 15px; height: 15px; }
.faq-item[open] .faq-icon { transform: rotate(90deg); background: var(--teal); border-color: var(--teal); color: var(--white); }
.faq-answer { padding: 0 22px 20px; color: var(--muted); font-size: 14.5px; }

/* ---------- CTA ---------- */
.cta-section { padding-block: clamp(40px, 6vw, 80px); }
.cta-panel {
  position: relative;
  background:
    radial-gradient(90% 140% at 0% 0%, rgba(18, 165, 148, 0.32), transparent 55%),
    linear-gradient(120deg, #0b2b4c, #061726);
  border-radius: var(--radius-xl);
  padding: clamp(36px, 6vw, 72px);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  overflow: hidden;
}
.cta-art { position: absolute; left: -40px; top: -40px; width: 60%; opacity: 0.8; pointer-events: none; }
.cta-copy { position: relative; max-width: 34em; }
.cta-copy h2 { font-size: clamp(24px, 3.2vw, 38px); color: var(--white); margin-bottom: 10px; }
.cta-copy p { margin: 0; color: rgba(255, 255, 255, 0.7); font-size: 15.5px; }
.cta-actions { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.cta-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--teal-200); font-family: var(--font-latin); font-size: 15px; }
.cta-phone .icon { width: 18px; height: 18px; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.62);
  padding-top: clamp(56px, 7vw, 96px);
  overflow: hidden;
}
.footer-ribbon { position: absolute; inset: auto 0 0 0; height: 220px; opacity: 0.8; pointer-events: none; }
.footer-ribbon svg { width: 100%; height: 100%; }
.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: clamp(26px, 4vw, 56px);
  padding-bottom: clamp(40px, 6vw, 68px);
}
.footer-about { margin: 20px 0 22px; font-size: 14px; line-height: 1.95; max-width: 26em; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.footer-socials a:hover { background: var(--teal); border-color: var(--teal); color: var(--white); }
.footer-col h3 {
  color: var(--white);
  font-size: 15.5px;
  margin-bottom: 18px;
  font-weight: 700;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font-size: 14px; transition: color 0.2s; }
.footer-col a:hover { color: var(--teal-200); }
.footer-contact p { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; margin-bottom: 12px; }
.footer-contact .icon { width: 17px; height: 17px; color: var(--teal-400); margin-top: 5px; }
.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--white);
  font-weight: 600;
  font-size: 14.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 3px;
}
.footer-cta .icon { width: 17px; height: 17px; transition: transform 0.3s var(--ease); }
.footer-cta:hover { color: var(--teal-400); }
.footer-cta:hover .icon { transform: translateX(-4px); }
.footer-bottom {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
}
.footer-bottom p { margin: 0; }
.footer-note { color: rgba(255, 255, 255, 0.4); }

.to-top {
  position: fixed;
  bottom: 26px;
  left: 26px;
  z-index: 80;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--teal); }

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative;
  padding-block: clamp(44px, 6vw, 76px) clamp(36px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 90% at 85% 0%, rgba(18, 165, 148, 0.1), transparent 60%);
  pointer-events: none;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 20px;
}
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb .sep { color: var(--line); }
.page-title { font-size: clamp(28px, 4vw, 46px); line-height: 1.4; margin-bottom: 14px; max-width: 24em; }
.page-lede { color: var(--muted); font-size: clamp(15px, 1.4vw, 17.5px); max-width: 40em; margin: 0; }

/* ---------- Services page ---------- */
.services-page-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 28px); }
.service-card {
  display: flex;
  flex-direction: column;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.3s, background 0.3s;
}
.service-card:hover { transform: translateY(-6px); background: var(--white); border-color: rgba(18, 165, 148, 0.35); box-shadow: var(--shadow-md); }
.service-card .service-icon { margin-bottom: 20px; }
.service-card h3 { font-size: 19px; margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.service-card .link-more { margin-top: auto; align-self: flex-start; border: 0; padding: 0; }

.service-detail-grid { display: grid; grid-template-columns: 1.6fr 0.9fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.prose { max-width: 46em; }
.prose > p, .prose li { color: var(--ink-soft); font-size: 16.5px; line-height: 2; }
.prose h2 { font-size: clamp(22px, 2.6vw, 30px); margin-top: 1.6em; }
.prose h3 { font-size: 20px; margin-top: 1.5em; }
.prose ul { margin: 0 0 1.2em; display: grid; gap: 10px; }
.prose ul li { position: relative; padding-inline-start: 26px; }
.prose ul li::before {
  content: '';
  position: absolute;
  right: 2px;
  top: 0.85em;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--teal);
  transform: rotate(45deg);
}
.prose blockquote {
  margin: 1.8em 0;
  padding: 20px 26px;
  background: var(--paper-2);
  border-inline-start: 3px solid var(--teal);
  border-radius: 12px;
  color: var(--ink-soft);
}
.prose img { border-radius: var(--radius); margin: 1.6em 0; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

.side-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.side-card h3 { color: var(--white); font-size: 19px; }
.side-card p { color: rgba(255, 255, 255, 0.65); font-size: 14px; }
.side-card .btn { width: 100%; justify-content: center; margin-top: 10px; }
.feature-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 26px; }
.feature-chip {
  font-size: 12.5px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 5px 14px;
  color: var(--ink-soft);
}
.other-services { margin-top: 28px; }
.other-services h4 { font-size: 14px; color: rgba(255, 255, 255, 0.5); margin-bottom: 12px; font-weight: 500; }
.other-services a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}
.other-services a:hover { color: var(--teal-400); }
.other-services .icon { width: 16px; height: 16px; }

/* ---------- Portfolio page ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter-chip {
  padding: 7px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-soft);
  background: transparent;
  transition: all 0.25s;
}
.filter-chip:hover { border-color: var(--ink); }
.filter-chip.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }

.project-detail-cover {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: clamp(28px, 4vw, 48px);
}
.project-detail-cover img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.project-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.project-meta-grid dt { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.project-meta-grid dd { margin: 0; font-weight: 600; font-size: 14.5px; }
.next-project {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  margin-top: 20px;
}
.next-project small { color: var(--muted); font-size: 12.5px; display: block; }
.next-project strong { font-family: var(--font-display); font-size: 20px; }
.next-project .icon { color: var(--teal); }

/* ---------- Blog page ---------- */
.blog-featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.blog-featured-media { min-height: 100%; }
.blog-featured-media img { width: 100%; height: 100%; object-fit: cover; }
.blog-featured-body { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.blog-featured-body h2 { font-size: clamp(20px, 2.6vw, 28px); margin: 0; line-height: 1.6; }
.blog-featured-body p { color: var(--muted); font-size: 14.5px; margin: 0; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span {
  min-width: 40px;
  height: 40px;
  padding-inline: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-latin);
  font-size: 14px;
}
.pagination a:hover { border-color: var(--ink); }
.pagination .is-current { background: var(--navy); border-color: var(--navy); color: var(--white); }

.article { max-width: 780px; margin-inline: auto; }
.article-cover {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: clamp(26px, 4vw, 40px);
}
.article-cover img { width: 100%; aspect-ratio: 16 / 8.4; object-fit: cover; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; color: var(--muted); font-size: 13px; margin-bottom: 28px; }
.article-meta .post-cat { align-self: auto; }
.article-body { font-size: 17px; }
.article-body h2 { font-size: clamp(22px, 2.8vw, 28px); margin-top: 1.8em; }
.article-body h3 { font-size: 20px; margin-top: 1.6em; }
.article-body p, .article-body li { line-height: 2.05; color: var(--ink-soft); }
.article-body ul { margin-bottom: 1.4em; }
.article-body ul li { position: relative; padding-inline-start: 26px; margin-bottom: 8px; }
.article-body ul li::before {
  content: '';
  position: absolute;
  right: 2px;
  top: 0.8em;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--teal);
  transform: rotate(45deg);
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 36px 0; }
.tag { font-size: 12.5px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; color: var(--ink-soft); }
.related-title { font-size: 22px; margin: 36px 0 20px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.35fr 0.85fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: span 2; }
.form-field label { font-size: 13.5px; font-weight: 500; color: var(--ink-soft); }
.form-field input, .form-field textarea, .form-field select {
  border: 1px solid var(--line);
  background: var(--paper-2);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14.5px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  width: 100%;
}
.form-field textarea { min-height: 150px; resize: vertical; }
.form-field select {
  appearance: none;
  -webkit-appearance: none;
  padding-inline-end: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1.5 7 7.5l6-6' stroke='%235d6d7f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 16px center;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(18, 165, 148, 0.12);
}
.field-error { color: #b33a2e; font-size: 12.5px; }
.form-note { color: var(--muted); font-size: 12.5px; margin: 14px 0 0; }
.honeypot { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; overflow: hidden; }
.alert { border-radius: 14px; padding: 14px 18px; font-size: 14px; margin-bottom: 22px; display: flex; gap: 10px; align-items: flex-start; }
.alert-success { background: rgba(18, 165, 148, 0.09); border: 1px solid rgba(18, 165, 148, 0.3); color: #0b6b5e; }
.alert-error { background: #fdf1ef; border: 1px solid #f2d2cc; color: #9b3327; }
.contact-info { display: grid; gap: 14px; }
.contact-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: border-color 0.25s, background 0.25s;
}
.contact-card:hover { border-color: rgba(18, 165, 148, 0.4); background: var(--white); }
.contact-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(18, 165, 148, 0.1);
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-card h3 { font-size: 14px; margin-bottom: 4px; color: var(--muted); font-weight: 500; }
.contact-card p, .contact-card a { margin: 0; font-size: 15px; font-weight: 500; }
.contact-card a:hover { color: var(--teal); }

/* ---------- About ---------- */
.about-story { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.2vw, 24px); }
.value-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.value-card span.value-idx { font-family: var(--font-latin); color: var(--teal); font-size: 13px; letter-spacing: 0.1em; }
.value-card h3 { font-size: 17px; margin: 10px 0 6px; }
.value-card p { margin: 0; font-size: 13.5px; color: var(--muted); }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.2vw, 24px); }
.team-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
  transition: transform 0.35s var(--ease), background 0.3s, border-color 0.3s;
}
.team-card:hover { transform: translateY(-5px); background: var(--white); border-color: rgba(18, 165, 148, 0.35); }
.team-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: linear-gradient(145deg, var(--navy), #11406b);
  color: var(--teal-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
}
.team-card img.team-avatar { object-fit: cover; background: var(--paper); }
.team-card h3 { font-size: 16.5px; margin-bottom: 2px; }
.team-role { color: var(--teal); font-size: 12.5px; font-weight: 600; display: block; margin-bottom: 8px; }
.team-bio { color: var(--muted); font-size: 13px; line-height: 1.8; margin: 0; }

/* ---------- Search results ---------- */
.search-page-form { display: flex; gap: 10px; max-width: 560px; margin-top: 22px; }
.search-page-form input {
  flex: 1;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 15px;
}
.result-list { display: grid; gap: 14px; margin-top: 36px; }
.result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.result-item:hover { border-color: var(--teal); transform: translateX(-4px); }
.result-item h3 { font-size: 16.5px; margin: 0 0 4px; }
.result-item p { margin: 0; color: var(--muted); font-size: 13.5px; }
.result-type { font-size: 11.5px; color: var(--teal); background: rgba(18, 165, 148, 0.09); border-radius: 999px; padding: 3px 12px; white-space: nowrap; }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding-block: clamp(64px, 10vw, 140px); }
.error-code {
  font-family: var(--font-latin);
  font-size: clamp(80px, 14vw, 150px);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(10, 31, 56, 0.18);
  margin-bottom: 10px;
}
.error-page h1 { font-size: clamp(22px, 3vw, 32px); }
.error-page p { color: var(--muted); max-width: 30em; margin: 0 auto 28px; }

/* ---------- Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .burger { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; margin-inline: auto; width: 100%; }
  .float-card-a { right: 0; }
  .float-card-b { left: 0; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-contact { grid-column: span 3; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .services-page-grid { grid-template-columns: repeat(2, 1fr); }
  .service-detail-grid { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .about-story { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .topbar-note { display: none; }
  .topbar-inner { justify-content: center; } /* keep contact info visible */
  .header-cta { display: none; }
  .split-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card-wide { grid-column: auto; }
  .project-card-wide .project-media { aspect-ratio: 16 / 9.5; }
  .post-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .stat + .stat { border: 0; }
  .cta-panel { flex-direction: column; align-items: flex-start; }
  .cta-actions { width: 100%; align-items: stretch; }
  .cta-actions .btn { justify-content: center; }
  .blog-featured { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .project-meta-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-contact { grid-column: span 2; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-art .ribbon-art { opacity: 0.4; }
  .section-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .service-row { grid-template-columns: 40px 1fr 40px; }
  .service-icon { display: none; }
  .service-num { font-size: 12.5px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .services-page-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-contact { grid-column: auto; }
  .float-card-b { display: none; }
  .hero-title-accent { white-space: normal; }
  .topbar-links { gap: 14px; font-size: 11.5px; }
  .topbar-links a:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
