/* ==========================================================================
   SGMS Online Solutions Pvt. Ltd. — shared stylesheet
   ========================================================================== */

:root {
  --ink: #0b1a2b;
  --ink-2: #12283f;
  --ink-3: #1b3654;
  --paper: #f6f3ec;
  --card: #fffdf8;
  --gold: #c8973e;
  --gold-2: #e6bd6e;
  --text: #1c2733;
  --muted: #5d6875;
  --line: rgba(11, 26, 43, 0.12);
  --line-light: rgba(255, 255, 255, 0.14);

  --font-display: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(72px, 10vw, 136px);
  --radius: 18px;
  --header-h: 76px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--dark { background: var(--ink); color: #e9eef4; }
.section--tint { background: #efeadf; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.2; letter-spacing: -0.01em; }
em { font-style: italic; color: var(--gold); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 58ch; }
.section--dark .lead, .hero .lead, .page-hero .lead { color: #b3c0cf; }

.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 760px; }
.section-head--split {
  max-width: none; grid-template-columns: 1.1fr 0.9fr; align-items: end; gap: 32px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 0.95rem; line-height: 1; cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.btn svg { width: 16px; height: 16px; }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-2); }
.btn--ghost { border-color: var(--line-light); color: #fff; }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-3); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--gold); padding-bottom: 4px;
}
.link-arrow svg { width: 16px; height: 16px; }
.section--dark .link-arrow { color: #fff; }

/* ---------- Page transition ---------- */
.page-wipe {
  position: fixed; inset: 0; z-index: 999; background: var(--ink);
  transform: scaleY(0); transform-origin: top; pointer-events: none;
}
.js .page-wipe { transform: scaleY(1); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled {
  background: rgba(11, 26, 43, 0.86);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 var(--line-light);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
/* the logo's lettering is black, so it needs a white plate to stay readable on the dark header */
.logo-img { height: 48px; width: auto; border-radius: 10px; background: #fff; }
.site-footer .logo-img { height: 56px; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a {
  --u: 0;
  position: relative; padding: 6px 0; font-size: 0.93rem; font-weight: 600; color: #cfd9e4;
  transition: color 0.2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: var(--gold); transform: scaleX(var(--u)); transform-origin: left;
}
.nav-links a:hover, .nav-links a.is-active { color: #fff; }
.nav-links a.is-active { --u: 1; }
.nav .btn { padding: 12px 20px; font-size: 0.88rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line-light);
  border-radius: 50%; background: transparent; cursor: pointer; position: relative; z-index: 102;
}
.nav-toggle span {
  position: absolute; left: 13px; width: 16px; height: 1.5px; background: #fff;
}
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 24px; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; background: var(--ink); color: #fff; overflow: hidden;
  padding: calc(var(--header-h) + clamp(48px, 8vw, 96px)) 0 clamp(64px, 9vw, 120px);
}
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-light) 1px, transparent 1px);
  background-size: 72px 72px; opacity: 0.35;
  -webkit-mask-image: radial-gradient(ellipse at 75% 30%, #000 0%, transparent 65%);
  mask-image: radial-gradient(ellipse at 75% 30%, #000 0%, transparent 65%);
}
.hero-glow {
  position: absolute; width: 620px; height: 620px; right: -160px; top: -120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 151, 62, 0.28), transparent 65%); pointer-events: none;
}
.hero .wrap {
  position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero-copy { display: grid; gap: 26px; justify-items: start; }
.hero h1 .line, .page-hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.1em; }
.hero h1 .line > span, .page-hero h1 .line > span { display: block; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }

.hero-art { position: relative; min-height: 440px; }
.sheet {
  position: absolute; inset: 20px 30px 30px 20px; border-radius: 20px;
  background: var(--card); color: var(--text); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
}
.sheet--back { background: var(--ink-3); transform: rotate(6deg) translate(18px, 6px); box-shadow: none; }
.sheet--main { padding: 30px; display: flex; flex-direction: column; gap: 22px; transform: rotate(-2deg); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px dashed var(--line); }
.sheet-head small { display: block; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.sheet-head strong { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.chip {
  flex: none; padding: 7px 13px; border-radius: 999px; background: #e5f1e6; color: #24693a;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
}
.sheet-list { display: grid; gap: 14px; }
.sheet-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 0.95rem; }
.sheet-list li::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ink)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e6bd6e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E")
    center / 13px no-repeat;
}
.stamp {
  margin-top: auto; align-self: flex-end; padding: 10px 16px; border: 2px solid var(--gold); border-radius: 10px;
  color: var(--gold); font-weight: 800; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  transform: rotate(-8deg);
}
.float-card {
  position: absolute; left: -14px; bottom: 0; padding: 16px 20px; border-radius: 16px;
  background: var(--gold); color: var(--ink); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  display: grid; line-height: 1.2;
}
.float-card strong { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; }
.float-card span { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; background: var(--ink); color: #fff; overflow: hidden;
  padding: calc(var(--header-h) + clamp(56px, 8vw, 104px)) 0 clamp(56px, 8vw, 96px);
}
.page-hero .wrap { position: relative; display: grid; gap: 22px; justify-items: start; }
.page-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); max-width: 16ch; }

/* ---------- Facts ---------- */
.facts { background: var(--ink-2); color: #fff; border-top: 1px solid var(--line-light); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 38px 28px; border-left: 1px solid var(--line-light); display: grid; gap: 6px; }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact strong { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 600; line-height: 1; color: var(--gold-2); }
.fact span { font-size: 0.88rem; color: #b3c0cf; }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.card {
  position: relative; display: flex; flex-direction: column; gap: 16px; padding: 34px 30px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 0.35s;
}
.card:hover { border-color: rgba(200, 151, 62, 0.6); }
.card p { color: var(--muted); font-size: 0.97rem; }
.card-num { font-family: var(--font-display); font-size: 0.95rem; color: var(--gold); }
.icon {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px;
  background: var(--ink); color: var(--gold-2);
}
.icon svg { width: 26px; height: 26px; }
.card .link-arrow { margin-top: auto; align-self: flex-start; font-size: 0.9rem; }

.card--dark { background: var(--ink-2); border-color: var(--line-light); color: #fff; }
.card--dark p { color: #b3c0cf; }
.card--dark .icon { background: rgba(255, 255, 255, 0.07); }
.badge {
  align-self: flex-start; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--gold);
  color: var(--gold-2); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
}

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.step { position: relative; padding: 30px 26px 0 0; border-top: 1px solid var(--line-light); display: grid; gap: 12px; align-content: start; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-display); font-size: 2.4rem; line-height: 1; color: var(--gold-2);
}
.step::after { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.step p { color: #b3c0cf; font-size: 0.95rem; }

/* ---------- Split / feature rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.split-copy { display: grid; gap: 20px; justify-items: start; }
.split-copy p { color: var(--muted); }

.ticks { display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; font-weight: 600; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.35em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1a2b' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E")
    center / 11px no-repeat;
}

.service-row {
  display: grid; grid-template-columns: 90px 1fr 1fr; gap: clamp(20px, 4vw, 56px);
  padding-block: clamp(36px, 5vw, 60px); border-top: 1px solid var(--line); align-items: start;
}
.service-row[id] { scroll-margin-top: var(--header-h); }
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-row .num { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--gold); }
.service-row .title { display: grid; gap: 14px; justify-items: start; }
.service-row .body { display: grid; gap: 18px; }
.service-row .body > p { color: var(--muted); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding-block: 28px; border-block: 1px solid var(--line); background: var(--card); }
.marquee-track { display: flex; width: max-content; }
.marquee-track span {
  display: inline-flex; align-items: center; gap: 40px; padding-right: 40px; white-space: nowrap;
  font-family: var(--font-display); font-size: clamp(1.6rem, 3.4vw, 2.6rem); font-style: italic; color: var(--ink);
}
.marquee-track span::after { content: "✦"; font-style: normal; font-size: 0.5em; color: var(--gold); }

/* ---------- About ---------- */
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.vm .card { padding: clamp(32px, 4vw, 52px); gap: 20px; }
.vm blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.25; letter-spacing: -0.01em; }

.values { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.value { padding: 26px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); display: grid; gap: 10px; align-content: start; }
.value b { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
.value p { font-size: 0.9rem; color: var(--muted); }
.value .card-num { font-size: 0.85rem; }

.timeline { display: grid; gap: 0; border-left: 1px solid var(--line-light); margin-left: 6px; }
.timeline li { position: relative; padding: 0 0 40px 34px; display: grid; gap: 8px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 8px; width: 11px; height: 11px; border-radius: 50%; background: var(--gold); }
.timeline strong { font-family: var(--font-display); font-size: 2rem; font-weight: 600; line-height: 1; color: var(--gold-2); }
.timeline p { color: #b3c0cf; }

.person { flex-direction: row; align-items: center; gap: 22px; }
.avatar {
  flex: none; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%;
  background: var(--ink); color: var(--gold-2); font-family: var(--font-display); font-size: 1.5rem;
}
.person small { display: block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }

.details { border-top: 1px solid var(--line); }
.details div { display: grid; grid-template-columns: 240px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.details dt { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.details dd { margin: 0; font-weight: 600; }

/* ---------- CTA band ---------- */
.cta { background: var(--gold); color: var(--ink); }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding-block: clamp(48px, 7vw, 84px); }
.cta { position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; right: -90px; top: 50%; width: 440px; height: 440px; border-radius: 50%;
  border: 1px solid rgba(11, 26, 43, 0.22); box-shadow: 0 0 0 60px rgba(11, 26, 43, 0.05);
  transform: translateY(-50%) scale(var(--ring, 1)); pointer-events: none;
}
.cta .wrap { position: relative; }
.cta h2 { max-width: 18ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn--outline-dark { border-color: var(--ink); color: var(--ink); }
.btn--outline-dark:hover { background: var(--ink); color: #fff; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-list { display: grid; gap: 28px; }
.contact-item { display: grid; grid-template-columns: 54px 1fr; gap: 18px; align-items: start; }
.contact-item h3 { font-family: var(--font-body); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.contact-item a { font-weight: 700; transition: color 0.2s; }
.contact-item a:hover { color: var(--gold); }
.phone-list { display: grid; gap: 4px; font-size: 1.05rem; }

.form { display: grid; gap: 18px; padding: clamp(26px, 4vw, 44px); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); transition: color 0.2s; }
.field:focus-within label { color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(200, 151, 62, 0.18); }
.form-note { font-size: 0.85rem; color: var(--muted); }
.form .btn { justify-self: start; }

.office address { font-style: normal; color: var(--muted); }
.office .badge { color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b3c0cf; padding-top: clamp(56px, 7vw, 88px); font-size: 0.93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.7fr 1fr 1.2fr; gap: 40px; padding-bottom: 52px; }
.footer-grid h4 { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.footer-grid ul { display: grid; gap: 10px; }
.footer-grid a { transition: color 0.2s; }
.footer-grid a:hover { color: #fff; }
.footer-about { display: grid; gap: 18px; justify-items: start; max-width: 34ch; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-block: 24px; border-top: 1px solid var(--line-light); font-size: 0.82rem;
}

/* ---------- Motion ----------
   All movement is driven by GSAP (js/main.js). The rules below only apply
   when GSAP is not running (script blocked, or reduced motion requested). */
html:not(.gsap) .btn:hover svg,
html:not(.gsap) .link-arrow:hover svg { transform: translateX(4px); }
html:not(.gsap) .btn:active { opacity: 0.8; }
html:not(.gsap) .nav-links a:hover { --u: 1; }
html:not(.gsap) .card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(11, 26, 43, 0.1); }
html:not(.gsap).nav-open .nav-toggle span:nth-child(1) { top: 20.5px; transform: rotate(45deg); }
html:not(.gsap).nav-open .nav-toggle span:nth-child(2) { top: 20.5px; transform: rotate(-45deg); }

/* Elements created by js/main.js */
.scroll-progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 200; background: var(--gold);
  transform: scaleX(0); transform-origin: left; pointer-events: none;
}
.cursor-ring {
  position: fixed; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; z-index: 998;
  border: 1px solid var(--gold); border-radius: 50%; pointer-events: none; opacity: 0; visibility: hidden;
}
.steps, .timeline { position: relative; }
.line-progress { position: absolute; pointer-events: none; }
.line-progress span { display: block; width: 100%; height: 100%; background: var(--gold); }
.steps > .line-progress { left: 0; top: -1px; width: 100%; height: 1px; }
.steps > .line-progress span { transform-origin: left; }
.timeline > .line-progress { left: -1px; top: 0; width: 1px; height: 100%; padding: 0; }
.timeline > .line-progress::before { content: none; }
.timeline > .line-progress span { transform-origin: top; }

/* SplitText line masks: leave room for descenders */
h2 > [class$="line-mask"],
blockquote > [class$="line-mask"] { padding-bottom: 0.12em; margin-bottom: -0.12em; }

/* States toggled by js/main.js */
.gsap .eyebrow::before { transform: scaleX(0); transform-origin: left; transition: transform 0.7s var(--ease-out) 0.15s; }
.gsap .eyebrow.is-in::before { transform: scaleX(1); }

.gsap .step::before { transition: color 0.3s; }
.gsap .step::after,
.gsap .timeline li::before { transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease-out); }
.gsap .step:not(.is-reached)::before { color: #5d7088; }
.gsap .step:not(.is-reached)::after,
.gsap .timeline li:not(.is-reached)::before { background: #3a5069; transform: scale(0.7); }
.gsap .step.is-reached::after,
.gsap .timeline li.is-reached::before { box-shadow: 0 0 0 5px rgba(200, 151, 62, 0.22); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero .wrap, .split, .contact-grid, .section-head--split { grid-template-columns: 1fr; }
  .hero-art { min-height: 420px; max-width: 460px; width: 100%; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps > .line-progress { display: none; }
  .values { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-row { grid-template-columns: 60px 1fr; }
  .service-row .body { grid-column: 2; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 101; flex-direction: column; justify-content: center; align-items: flex-start;
    gap: 36px; padding: 0 var(--gutter); background: var(--ink);
    visibility: hidden; opacity: 0;
  }
  .nav-open .nav { visibility: visible; opacity: 1; }
  .nav-links { flex-direction: column; gap: 18px; }
  .nav-links a { font-family: var(--font-display); font-size: 2.2rem; font-weight: 600; color: #fff; }
  .nav .btn { padding: 15px 26px; font-size: 0.95rem; }
  .nav-open { overflow: hidden; }
  /* backdrop-filter would make the header the containing block for the fixed nav */
  .nav-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--ink); }
}

@media (max-width: 680px) {
  body { font-size: 1rem; }
  .grid-3, .grid-2, .vm, .form-row, .steps, .footer-grid { grid-template-columns: 1fr; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .fact { padding: 28px 20px; }
  .fact:nth-child(odd) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--line-light); }
  .values { grid-template-columns: 1fr 1fr; }
  .details div { grid-template-columns: 1fr; gap: 4px; }
  .service-row { grid-template-columns: 1fr; }
  .service-row .body { grid-column: auto; }
  .hero-art { min-height: 400px; }
  .sheet { inset: 10px 16px 30px 6px; }
  .float-card { left: 0; }
  .person { flex-direction: column; align-items: flex-start; }
  .logo-img { height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  .js .page-wipe { transform: scaleY(0); }
}

@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .site-header.is-scrolled { background: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .site-header.is-scrolled { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); }
}
