/* ==========================================================================
   Aikyam Solutions and Services — site styles
   Palette is derived from the Aikyam mark: sky → blue → navy → ink,
   on a warm ivory ground, with brass as the single accent.
   ========================================================================== */

:root {
  --ink: #13263e;
  --ink-deep: #0e1b2e;
  --navy: #173a66;
  --blue: #2f6fa5;
  --sky: #8fb8d3;
  --sky-soft: #dbe8f1;
  --sage: #8ba888;
  --brass: #8f5b1e;
  --brass-bright: #c8a165;
  --brass-soft: #f1e6d4;

  --bg: #f7f5ef;
  --bg-alt: #efebe1;
  --surface: #fffefb;
  --text: #2a3245;
  --muted: #586174;
  --line: rgba(19, 38, 62, 0.12);
  --line-strong: rgba(19, 38, 62, 0.22);

  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-sans: 'Jost', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --header-h: 72px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(19, 38, 62, 0.06), 0 2px 8px rgba(19, 38, 62, 0.05);
  --shadow: 0 2px 6px rgba(19, 38, 62, 0.05), 0 12px 32px rgba(19, 38, 62, 0.08);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,
picture,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: var(--navy);
  text-underline-offset: 3px;
}
p,
ul,
ol,
dl,
blockquote,
figure {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  font-variation-settings: 'SOFT' 0, 'WONK' 0;
}
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 3px;
}
::selection {
  background: var(--sky-soft);
  color: var(--ink);
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  transition: top 0.2s;
}
.skip-link:focus {
  top: 12px;
}

/* ---------- type scale ---------- */
.display-1 {
  font-size: clamp(2.5rem, 5.4vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.display-2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.08;
}
.display-3 {
  font-size: clamp(1.55rem, 2.4vw, 2.05rem);
  line-height: 1.15;
}
.display-1 em,
.display-2 em,
.display-3 em {
  font-style: italic;
  font-weight: 400;
  color: var(--blue);
}
.lede {
  font-size: clamp(1.125rem, 1.35vw, 1.25rem);
  line-height: 1.6;
  color: #394257;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1.5px;
  background: currentColor;
}
.eyebrow-light {
  color: var(--brass-bright);
}
.kicker {
  margin-bottom: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--navy);
}
.list-title {
  margin-bottom: 16px;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 26px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  font: 500 1rem/1.2 var(--font-sans);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn-sm {
  min-height: 40px;
  padding: 8px 18px;
  font-size: 0.9375rem;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover {
  background: var(--navy);
  box-shadow: 0 8px 20px rgba(19, 38, 62, 0.22);
}
.btn-accent {
  background: var(--brass-bright);
  color: var(--ink);
}
.btn-accent:hover {
  background: #d6b37c;
  box-shadow: 0 8px 20px rgba(143, 91, 30, 0.25);
}
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.4);
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
}
.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

.know-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.975rem;
  color: var(--brass);
  text-decoration: none;
}
.know-more span[aria-hidden] {
  transition: transform 0.25s var(--ease);
}
.know-more:hover {
  color: #6f430f;
}
.know-more:hover span[aria-hidden] {
  transform: translateX(4px);
}

/* ---------- header / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(19, 38, 62, 0.97);
  color: #fff;
  transition: box-shadow 0.3s;
}
@supports (backdrop-filter: blur(8px)) {
  .site-header {
    background: rgba(19, 38, 62, 0.9);
    backdrop-filter: saturate(140%) blur(12px);
  }
}
.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(8, 16, 30, 0.22);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}
.brand img {
  height: 40px;
  width: auto;
}
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  list-style: none;
}
.site-nav a:not(.btn) {
  display: block;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.975rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.site-nav a:not(.btn):hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.site-nav a:not(.btn)[aria-current='page'] {
  background: #fff;
  color: var(--ink);
}
.site-nav .nav-cta {
  margin-left: 12px;
}
.site-nav .btn[aria-current='page'] {
  box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px #fff;
}
.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle-bars {
  top: 21px;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: '';
  left: 0;
}
.nav-toggle-bars::before {
  top: -7px;
}
.nav-toggle-bars::after {
  top: 7px;
}
.nav-toggle[aria-expanded='true'] .nav-toggle-bars {
  background: transparent;
}
.nav-toggle[aria-expanded='true'] .nav-toggle-bars::before {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded='true'] .nav-toggle-bars::after {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    background: var(--ink);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 40px rgba(8, 16, 30, 0.35);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.25s, transform 0.25s var(--ease);
  }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px var(--gutter) 24px;
  }
  .site-nav a:not(.btn) {
    padding: 14px 16px;
    font-size: 1.0625rem;
  }
  .site-nav .nav-cta {
    margin: 12px 0 0;
  }
  .site-nav .nav-cta .btn {
    width: 100%;
    min-height: 50px;
  }
}

/* ---------- full-screen sections (home) ---------- */
@media (min-width: 901px) and (min-height: 640px) {
  html:has(.page-home) {
    scroll-snap-type: y proximity;
  }
  .page-home .screen,
  .page-home .cta-band {
    scroll-snap-align: start;
  }
}
.screen {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100svh - var(--header-h));
  padding-block: clamp(72px, 10vh, 120px);
  overflow: hidden;
  isolation: isolate;
}
.screen-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.screen-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Screen 1: hero */
.hero .screen-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(247, 245, 239, 0.97) 0%, rgba(247, 245, 239, 0.9) 32%, rgba(247, 245, 239, 0.35) 58%, rgba(247, 245, 239, 0) 75%),
    linear-gradient(0deg, rgba(247, 245, 239, 0.5), rgba(247, 245, 239, 0) 30%);
}
.hero .screen-bg img {
  object-position: 70% center;
}
.hero-inner > * {
  max-width: 640px;
}
.hero .display-1 {
  margin: 8px 0 24px;
}
.hero .lede {
  max-width: 540px;
}
.hero .eyebrow {
  margin-bottom: 6px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
}
.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--navy);
  animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(14px);
  }
}
@media (max-width: 760px) {
  .hero .screen-bg::after {
    background: linear-gradient(180deg, rgba(247, 245, 239, 0.93) 0%, rgba(247, 245, 239, 0.88) 60%, rgba(247, 245, 239, 0.7) 100%);
  }
  .scroll-cue {
    display: none;
  }
}

/* Screen 2: unity */
.unity .screen-bg img {
  object-position: center;
}
.unity-inner {
  display: flex;
  justify-content: flex-end;
}
.unity-card {
  max-width: 620px;
  padding: clamp(28px, 4vw, 48px);
  background: rgba(251, 250, 246, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.unity-card .display-2 {
  margin-bottom: 20px;
}
.unity-card > p + p {
  margin-top: 12px;
}
.unity-card [lang='sa'] {
  font-family: 'Noto Serif Devanagari', 'Nirmala UI', 'Mangal', serif;
  letter-spacing: 0.04em;
  text-transform: none;
}
.pull-quote {
  margin: 28px 0 20px;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--brass-bright);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-style: italic;
  line-height: 1.3;
  color: var(--ink);
}
.outcomes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
}
.outcomes li {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
}

/* Screen 3: where we help */
.help .screen-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(247, 245, 239, 0.55), rgba(247, 245, 239, 0.1) 60%);
}
@media (max-width: 760px) {
  .help .screen-bg::after {
    background: linear-gradient(180deg, rgba(247, 245, 239, 0.92) 0%, rgba(247, 245, 239, 0.75) 30%, rgba(247, 245, 239, 0.55) 100%);
  }
  .eyebrow {
    letter-spacing: 0.12em;
  }
}
.section-head {
  max-width: 680px;
  margin-bottom: clamp(32px, 5vh, 56px);
}
.section-head .display-2 {
  margin-bottom: 16px;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 0;
  list-style: none;
}
.service-card {
  display: flex;
  flex-direction: column;
  padding: 26px 26px 22px;
  background: rgba(255, 254, 251, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background-color 0.3s;
}
.service-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 254, 251, 0.96);
  box-shadow: var(--shadow);
}
.service-card h3 {
  margin: 10px 0 8px;
  font-size: 1.3rem;
}
.service-card p {
  flex: 1;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.99rem;
}
.service-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--brass);
}
.service-num-lg {
  display: block;
  margin-bottom: 12px;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--brass-bright);
}
@media (max-width: 1000px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- closing CTA band (screen 4 on home, last section elsewhere) ---------- */
.cta-band {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 560px;
  padding-block: clamp(80px, 12vh, 140px);
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}
.page-home .cta-band {
  min-height: calc(100svh - var(--header-h));
}
.cta-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
}
.cta-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14, 27, 46, 0.9) 0%, rgba(14, 27, 46, 0.72) 40%, rgba(14, 27, 46, 0.15) 80%);
}
.cta-inner > * {
  max-width: 640px;
}
.cta-band .display-2 {
  color: #fff;
  margin-bottom: 20px;
}
.cta-band .lede {
  color: rgba(255, 255, 255, 0.86);
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 36px;
}
.cta-link {
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}
.cta-link:hover {
  border-color: var(--brass-bright);
}
@media (max-width: 760px) {
  .cta-bg::after {
    background: linear-gradient(180deg, rgba(14, 27, 46, 0.88), rgba(14, 27, 46, 0.72));
  }
}

/* ---------- inner-page hero ---------- */
.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(62vh, 560px);
  padding-block: clamp(96px, 14vh, 150px) clamp(48px, 8vh, 80px);
  overflow: hidden;
  isolation: isolate;
}
.page-hero-tall {
  min-height: min(72vh, 660px);
}
.page-hero-dark {
  color: #fff;
}
.page-hero-dark .screen-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 27, 46, 0.3) 0%, rgba(14, 27, 46, 0.55) 50%, rgba(14, 27, 46, 0.9) 100%),
    linear-gradient(90deg, rgba(14, 27, 46, 0.6), rgba(14, 27, 46, 0) 70%);
}
.page-hero-dark h1 {
  color: #fff;
}
.page-hero-dark h1 em {
  color: var(--sky);
}
.page-hero-dark .lede {
  color: rgba(255, 255, 255, 0.88);
}
.page-hero-inner > * {
  max-width: 760px;
}
.page-hero-inner .display-1 {
  margin-bottom: 20px;
}

/* ---------- generic section ---------- */
.section {
  padding-block: clamp(72px, 11vw, 128px);
}

/* ---------- services page ---------- */
.service-index {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: rgba(247, 245, 239, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.service-index ol {
  display: flex;
  gap: 4px;
  padding: 10px 0;
  margin: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.service-index ol::-webkit-scrollbar {
  display: none;
}
.service-index a {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}
.service-index a span {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--brass);
}
.service-index a:hover {
  color: var(--ink);
  background: rgba(19, 38, 62, 0.06);
}
.service-index a.is-active {
  background: var(--ink);
  color: #fff;
}
.service-index a.is-active span {
  color: var(--brass-bright);
}
.service-detail {
  padding-block: clamp(64px, 9vw, 112px);
  scroll-margin-top: calc(var(--header-h) + 60px);
  border-bottom: 1px solid var(--line);
}
.service-detail:nth-child(even) {
  background: var(--bg-alt);
}
.service-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.service-detail-head .display-3 {
  margin-bottom: 16px;
}
.service-detail-head .lede {
  margin-bottom: 24px;
}
.service-detail-body {
  padding: clamp(24px, 3vw, 36px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.service-detail-body-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}
.check-list li {
  position: relative;
  padding-left: 32px;
  line-height: 1.5;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--sky-soft);
}
.check-list li::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 6px;
  width: 6px;
  height: 10px;
  border: solid var(--navy);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.roadmap {
  margin-top: clamp(40px, 6vw, 64px);
  padding: clamp(24px, 3vw, 40px);
  background: var(--ink);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.82);
}
.roadmap-title {
  margin-bottom: 28px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-bright);
}
.roadmap ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 0;
  list-style: none;
}
.roadmap li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.roadmap strong {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 400;
  line-height: 1;
  color: #fff;
}
.roadmap strong::after {
  content: ' days';
  font-family: var(--font-sans);
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  color: var(--sky);
}
.roadmap-step {
  font-weight: 600;
  color: #fff;
}
@media (max-width: 860px) {
  .service-detail-grid,
  .service-detail-body-split,
  .roadmap ol {
    grid-template-columns: 1fr;
  }
}

/* ---------- about page ---------- */
.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.vm-card {
  padding: clamp(28px, 4vw, 48px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.vm-card:first-child {
  background: var(--ink);
  border-color: var(--ink);
  color: rgba(255, 255, 255, 0.85);
}
.vm-card:first-child h2 {
  color: #fff;
}
.vm-card:first-child .lede {
  color: rgba(255, 255, 255, 0.88);
}
.vm-card:first-child .eyebrow {
  color: var(--brass-bright);
}
.vm-card .display-3 {
  margin-bottom: 18px;
}
.vm-card p + p {
  margin-top: 14px;
}
.philosophy {
  background: var(--bg-alt);
}
.philosophy-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 96px);
}
.philosophy-body p + p {
  margin-top: 16px;
}
.principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 32px;
  padding: 0;
  list-style: none;
}
.principles li {
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--brass-bright);
}
.principles strong {
  color: var(--ink);
  font-weight: 600;
}
.principles span {
  color: var(--muted);
  font-size: 0.95rem;
}
.founder {
  overflow-x: clip;
}
.founder-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.founder-photo {
  position: relative;
}
.founder-photo::before {
  content: '';
  position: absolute;
  inset: 18px -18px -18px 18px;
  z-index: -1;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--sky), var(--navy));
  opacity: 0.35;
}
.founder-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 45% center;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.founder-role {
  margin: 6px 0 22px;
  font-weight: 500;
  color: var(--brass);
}
.founder-body p + p {
  margin-top: 16px;
}
.founder-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 48px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.founder-stats dt {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--ink);
}
.founder-stats dd {
  max-width: 220px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}
@media (max-width: 860px) {
  .vm-grid,
  .philosophy-grid,
  .founder-grid,
  .principles {
    grid-template-columns: 1fr;
  }
  .founder-photo {
    max-width: 420px;
  }
}

/* ---------- enquire page ---------- */
.enquire {
  background:
    radial-gradient(1000px 500px at 100% 0%, rgba(143, 184, 211, 0.22), transparent 60%),
    radial-gradient(800px 500px at 0% 100%, rgba(139, 168, 136, 0.14), transparent 60%);
}
.enquire-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.enquire-intro {
  position: sticky;
  top: calc(var(--header-h) + 48px);
}
.enquire-intro .display-1 {
  margin-bottom: 24px;
}
.enquire-intro p + p {
  margin-top: 16px;
  color: var(--muted);
}
.enquire-panel {
  padding: clamp(24px, 4vw, 48px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.field {
  margin-bottom: 20px;
}
.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--ink);
}
.req {
  color: var(--brass);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #cfc9bb;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea {
  min-height: 150px;
  resize: vertical;
}
.field select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23586174' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #9a9fab;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 111, 165, 0.18);
}
.field [aria-invalid='true'] {
  border-color: #b3261e;
}
.field-error {
  margin-top: 6px;
  font-size: 0.875rem;
  color: #b3261e;
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 8px;
}
.form-note {
  font-size: 0.875rem;
  color: var(--muted);
}
.form-status {
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: #fbeaea;
  color: #8a1f17;
  font-size: 0.95rem;
}
.enquiry-success {
  padding: 16px 0 8px;
  outline: none;
}
.enquiry-success .display-3 {
  margin: 20px 0 12px;
}
.enquiry-success p {
  margin-bottom: 20px;
  color: var(--muted);
}
.success-mark {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--sky-soft);
}
.success-mark::after {
  content: '';
  position: absolute;
  left: 21px;
  top: 14px;
  width: 12px;
  height: 22px;
  border: solid var(--navy);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
.response-time {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.response-time .list-title {
  margin-bottom: 6px;
}
.response-time p {
  color: var(--text);
}
@media (max-width: 900px) {
  .enquire-grid {
    grid-template-columns: 1fr;
  }
  .enquire-intro {
    position: static;
  }
}
@media (max-width: 560px) {
  .field-row {
    grid-template-columns: 1fr;
  }
  .form-actions .btn {
    width: 100%;
  }
}

/* ---------- blog ---------- */
.blog-hero {
  padding-block: clamp(72px, 10vw, 120px) clamp(40px, 5vw, 64px);
  background:
    radial-gradient(900px 420px at 90% 0%, rgba(143, 184, 211, 0.25), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.blog-hero .display-1 {
  margin-bottom: 18px;
}
.blog-hero .lede {
  max-width: 640px;
}
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}
.blog-filters a {
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.925rem;
  font-weight: 500;
  text-decoration: none;
}
.blog-filters a:hover {
  border-color: var(--ink);
}
.blog-filters a[aria-current='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding: 0;
  list-style: none;
}
.post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.post-card-cover {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--sky-soft), var(--bg-alt));
  overflow: hidden;
}
.post-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-card-cover-empty {
  display: grid;
  place-items: center;
}
.post-card-cover-empty img {
  width: 64px;
  height: auto;
  opacity: 0.55;
}
.post-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}
.post-card h2 {
  margin: 10px 0 10px;
  font-size: 1.35rem;
  line-height: 1.25;
}
.post-card h2 a {
  color: inherit;
  text-decoration: none;
}
.post-card h2 a::after {
  content: '';
  position: absolute;
  inset: 0;
}
.post-card {
  position: relative;
}
.post-card p {
  flex: 1;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.975rem;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  font-size: 0.85rem;
  color: var(--muted);
}
.post-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brass-soft);
  color: #6f430f;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.blog-empty {
  max-width: 560px;
  margin: 0 auto;
  padding: 56px 32px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}
.blog-empty img {
  width: 56px;
  margin: 0 auto 20px;
}
.blog-empty h2 {
  margin-bottom: 10px;
  font-size: 1.5rem;
}
.blog-empty p {
  color: var(--muted);
}
@media (max-width: 1000px) {
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .post-grid {
    grid-template-columns: 1fr;
  }
}

.post-header {
  padding-block: clamp(64px, 9vw, 104px) 40px;
}
.post-header-inner,
.prose,
.post-footer {
  max-width: 760px;
  margin-inline: auto;
}
.post-back {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 28px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}
.post-back:hover {
  color: var(--ink);
}
.post-header h1 {
  margin: 16px 0 18px;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  line-height: 1.08;
}
.post-header .lede {
  margin-bottom: 24px;
}
.post-cover {
  max-width: 1040px;
  margin: 0 auto 48px;
}
.post-cover img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.prose {
  padding-bottom: 72px;
  font-size: 1.125rem;
  line-height: 1.75;
  color: #2a3245;
}
.prose > * + * {
  margin-top: 1.1em;
}
.prose h2 {
  margin-top: 1.9em;
  font-size: 1.85rem;
}
.prose h3 {
  margin-top: 1.6em;
  font-size: 1.4rem;
}
.prose ul,
.prose ol {
  padding-left: 1.4em;
}
.prose li + li {
  margin-top: 0.4em;
}
.prose blockquote {
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--brass-bright);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--ink);
}
.prose img {
  height: auto;
  margin-inline: auto;
  border-radius: var(--radius-sm);
}
.prose pre {
  padding: 18px 20px;
  overflow-x: auto;
  background: var(--ink);
  color: #e8eef5;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}
.prose a {
  color: var(--blue);
}
.prose .ql-align-center {
  text-align: center;
}
.prose .ql-align-right {
  text-align: right;
}
.prose .ql-align-justify {
  text-align: justify;
}
.post-footer {
  padding: 32px 0 80px;
  border-top: 1px solid var(--line);
}

/* ---------- 404 ---------- */
.not-found {
  display: grid;
  place-items: center;
  min-height: calc(80vh - var(--header-h));
  text-align: center;
}
.not-found img {
  width: 88px;
  margin: 0 auto 28px;
}
.not-found .display-2 {
  margin-bottom: 14px;
}
.not-found p {
  margin-bottom: 28px;
  color: var(--muted);
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink-deep);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-block: 72px 48px;
}
.footer-brand img {
  height: 44px;
  width: auto;
  margin-bottom: 20px;
}
.footer-brand p {
  max-width: 360px;
}
.footer-title {
  margin-bottom: 16px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-bright);
}
.footer-col ul {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}
.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-base {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block: 24px 32px;
  font-size: 0.875rem;
}
.footer-base::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}
.footer-motto {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--sky);
}
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- reveal on scroll (only when JS is running) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
