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

:root {
  /* Palette taken from the SGMS logo: black #040606 and orange #f78c1d */
  --ink: #040606;
  --ink-2: #161717;
  --ink-3: #2a2b2b;
  --paper: #f7f6f4;
  --card: #ffffff;
  --gold: #f78c1d;          /* logo orange — the accent */
  --gold-2: var(--gold);     /* same orange: no lighter tint anywhere */
  --accent-text: var(--gold); /* same orange for labels and numbers too */
  --text: #1a1a1a;
  --muted: #5f6163;
  --line: rgba(4, 6, 6, 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(44px, 6vw, 80px);
  --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; }
a, button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
/* text links answer the press itself, with no transition in the way */
.nav-links a:active, .link-arrow:active, .footer-grid a:active, .contact-item a:active, .logo:active { opacity: 0.55; }
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, .hero, .page-hero, .facts, .card--dark { --accent-text: var(--gold); }
.section--dark { background: var(--ink); color: #ededed; }
.section--tint { background: #efedea; }

/* ---------- Type ---------- */
/* tracking and leading tighten as the size grows; body text stays at 0 / 1.65 */
h1, h2, h3 {
  font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em;
  font-optical-sizing: auto; text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); line-height: 1.08; letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.12; }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.2; letter-spacing: -0.01em; }
em { font-style: italic; color: var(--accent-text); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
}
/* doubled class: must beat ".card p" and ".split-copy p", which set paragraph text to grey */
.eyebrow.eyebrow {
  color: var(--accent-text);
}
.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: #bdbfc1; }

.section-head { display: grid; gap: 18px; margin-bottom: clamp(28px, 3.5vw, 44px); 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, box-shadow 0.25s;
}
.btn svg { width: 16px; height: 16px; }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { box-shadow: 0 8px 22px rgba(247, 140, 29, 0.35); }
.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;
  /* light bar: the logo is black and orange on a transparent background */
  background: #fff; box-shadow: 0 1px 0 var(--line);
  transition: background-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(4, 6, 6, 0.06);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: inline-flex; align-items: center; }
.logo-img { height: 52px; width: auto; }
.site-footer .logo-img { height: 60px; margin-left: -6px; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a {
  --u: 0;
  position: relative; padding: 12px 0; font-size: 0.93rem; font-weight: 600; color: #45474a;
  transition: color 0.2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 6px; width: 100%; height: 1px;
  background: var(--gold); transform: scaleX(var(--u)); transform-origin: left;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
.nav-links a.is-active { --u: 1; }
.nav-actions { display: flex; flex: none; align-items: center; gap: 10px; }
/* between the phone menu and a full-width desktop the two buttons need the links to close up */
@media (min-width: 821px) and (max-width: 1040px) {
  .site-header .wrap { gap: 16px; }
  .nav { gap: 16px; }
  .nav-links { gap: 16px; }
  .nav-actions { gap: 8px; }
  .nav .btn { padding: 12px 14px; }
}
@media (min-width: 821px) and (max-width: 900px) {
  .nav, .nav-links { gap: 12px; }
}
.nav .btn { padding: 12px 20px; font-size: 0.88rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line);
  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: var(--ink);
}
.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;
  /* top padding is kept short so the headline, intro and both buttons fit a laptop screen */
  padding: calc(var(--header-h) + clamp(40px, 5vw, 64px)) 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(247, 140, 29, 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: 22px; justify-items: start; }
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); }
.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); }
/* Expertise deck: one card shows at a time, js/main.js swaps .is-active on click */
/* pan-y: the card takes sideways drags, the page keeps vertical scrolling */
.deck .sheet--main {
  cursor: grab; visibility: hidden; opacity: 0;
  touch-action: pan-y; -webkit-user-select: none; user-select: none;
}
.deck .sheet--main:active { cursor: grabbing; }
.deck .sheet--main.is-active { visibility: visible; opacity: 1; }
.sheet-foot { margin-top: auto; display: flex; justify-content: flex-end; }
.sheet-more { padding: 12px 20px; font-size: 0.88rem; }
.deck-nav {
  position: absolute; right: 36px; bottom: -6px; display: flex; align-items: center; gap: 10px;
  font-size: 0.78rem; color: #bdbfc1; z-index: 3;
}
.deck-dots { display: flex; }
.deck-dot { position: relative; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; }
/* the dot stays small; the area that takes the tap is 44px tall */
.deck-dot::after { content: ""; position: absolute; inset: -6px 0; }
.deck-dot:active::before { transform: scale(0.8); transition-duration: 0s; }
.deck-dot::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.32);
  transition: background-color 0.2s, transform 0.2s var(--ease-out);
}
.deck-dot[aria-current="true"]::before { background: var(--gold); transform: scale(1.35); }
.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 { display: block; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; text-wrap: balance; }
.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='%23f78c1d' 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;
}
.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; z-index: 3;
}
.float-card strong { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; }
.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(2rem, 4.4vw, 3.5rem); max-width: 20ch; }

/* ---------- 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; letter-spacing: -0.02em; color: var(--gold-2); }
.fact span { font-size: 0.88rem; color: #bdbfc1; }

/* ---------- 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:has(a):hover { border-color: rgba(247, 140, 29, 0.6); }
.card p { color: var(--muted); font-size: 0.97rem; }
.card-num { font-family: var(--font-display); font-size: 0.95rem; color: var(--accent-text); }
.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: #bdbfc1; }
.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; letter-spacing: -0.02em; 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: #bdbfc1; 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='%23040606' 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; letter-spacing: -0.02em; color: var(--accent-text); }
.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; letter-spacing: -0.02em; color: var(--ink);
}
.marquee-track span::after { content: "✦"; font-style: normal; font-size: 0.5em; color: var(--gold); }

/* values strip closing the About page's core values section */
/* the negative margin cancels the section's bottom padding so the strip sits flush on the next section */
.marquee--values { margin-top: calc(var(--section) * 0.5); margin-bottom: calc(-1 * var(--section)); }

/* locations strip on the home page */
.locations { padding-block: clamp(48px, 6vw, 72px) clamp(40px, 5vw, 60px); }
.locations .eyebrow { margin-bottom: 18px; }
.marquee--dark { background: transparent; border-color: rgba(255, 255, 255, 0.14); }
.marquee--dark .marquee-track span { color: #fff; font-style: normal; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }

/* ---------- 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; letter-spacing: -0.02em; color: var(--gold-2); }
.timeline p { color: #bdbfc1; }

.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(--accent-text); }

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

/* ---------- Clients ---------- */
.client-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 40px; }
/* the logo files have a white background; multiply lets the section colour show through it */
.client { display: grid; place-items: center; min-height: 140px; padding: 16px; mix-blend-mode: multiply; }
.client img { width: auto; height: auto; max-width: min(100%, 280px); max-height: 80px; transition: transform 0.35s var(--ease-out); }
/* no (hover: hover) guard: touchscreen laptops report hover: none even with a mouse attached */
.client:hover img { transform: translateY(-4px) scale(1.08); }

/* ---------- 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(4, 6, 6, 0.22); box-shadow: 0 0 0 60px rgba(4, 6, 6, 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); background: transparent; 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(--accent-text); }
.phone-list { display: grid; gap: 4px; font-size: 1.05rem; }
.email-list { font-size: 0.98rem; }
/* email addresses never break mid-word; the footer's contact column sizes itself to fit them */
.email-list a, .footer-grid a[href^="mailto:"] { white-space: nowrap; }

.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(247, 140, 29, 0.18); }
.field-error { font-size: 0.82rem; font-weight: 600; color: #b42318; }
.field-error:empty { display: none; }
.field.is-invalid label { color: #b42318; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #b42318; }
.field.is-invalid :focus { box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.15); }
.form-note { font-size: 0.85rem; color: var(--muted); }
.form-note[data-state="success"] { color: #1a7f4b; font-weight: 600; }
.form-note[data-state="error"] { color: #b42318; font-weight: 600; }
/* honeypot for bots: off-screen rather than display:none, which some bots skip */
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn:disabled { opacity: 0.6; cursor: progress; }
.form .btn { justify-self: start; }

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

/* ---------- Footer ---------- */
.site-footer { background: #fff; color: var(--muted); border-top: 1px solid var(--line); padding-top: clamp(56px, 7vw, 88px); font-size: 0.93rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.6fr auto 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(--accent-text); margin-bottom: 18px; }
.footer-grid ul { display: grid; gap: 10px; }
/* offices: each address wraps over several lines, so they need a wider gap to read as two */
.footer-grid > div:last-child ul { row-gap: 22px; }
/* contact: phone numbers and email addresses read as two groups, spaced like the addresses */
.footer-grid li:has(> a[href^="tel:"]) + li:has(> a[href^="mailto:"]) { margin-top: 12px; }
.footer-grid a { transition: color 0.2s; }
.footer-grid a:hover { color: var(--ink); }
.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); font-size: 0.82rem;
}

.footer-credit { background: var(--gold); color: var(--ink); }
.footer-credit p { padding: 14px 0; font-size: 0.88rem; font-weight: 600; text-align: center; }
.footer-credit a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.footer-credit a:hover { text-decoration-thickness: 2px; }
.credit-sep { margin: 0 6px; opacity: 0.7; }

/* ---------- 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:has(a):hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(4, 6, 6, 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;
}
.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: #6e7072; }
.gsap .step:not(.is-reached)::after,
.gsap .timeline li:not(.is-reached)::before { background: #4a4c4e; transform: scale(0.7); }
.gsap .step.is-reached::after,
.gsap .timeline li.is-reached::before { box-shadow: 0 0 0 5px rgba(247, 140, 29, 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: #fff;
    visibility: hidden; opacity: 0;
  }
  .nav-open .nav { visibility: visible; opacity: 1; }
  .nav-links { flex-direction: column; gap: 6px; }
  .nav-links a { font-family: var(--font-display); font-size: 2.2rem; font-weight: 600; color: var(--ink); }
  .nav .btn { padding: 15px 26px; font-size: 0.95rem; }
  .nav-actions { flex-wrap: wrap; }
  .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: #fff; }
}

@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; }
  .client-grid { gap: 8px 20px; }
  .client { min-height: 96px; padding: 8px; }
  .client img { max-height: 54px; }
  .details div { grid-template-columns: 1fr; gap: 4px; }
  .service-row { grid-template-columns: 1fr; }
  .service-row .body { grid-column: auto; }
  .hero-art { min-height: 440px; }
  .sheet { inset: 10px 16px 30px 6px; }
  .float-card { left: 0; }
  .deck-nav { right: 20px; }
  .deck-hint { display: none; }
  .person { flex-direction: column; align-items: flex-start; }
  .logo-img { height: 42px; }
  /* compact footer: link lists run across the row instead of stacking */
  .site-footer { padding-top: 36px; font-size: 0.88rem; }
  .site-footer .logo-img { height: 44px; margin-left: -4px; }
  .footer-grid { gap: 22px; padding-bottom: 28px; }
  .footer-about { gap: 10px; max-width: none; }
  .footer-grid h4 { margin-bottom: 8px; }
  .footer-grid ul { display: flex; flex-wrap: wrap; gap: 6px 20px; }
  .footer-bottom { gap: 4px 12px; padding-block: 16px; }
  .footer-credit p { padding: 10px 0; font-size: 0.8rem; }
}

/* Reduced motion keeps the feedback and drops the travel: colours and opacity still
   ease, nothing slides, scales or lifts. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .client img, .deck-dot::before { transition-property: background-color; }
  .client:hover img,
  html:not(.gsap) .card:has(a):hover,
  html:not(.gsap) .btn:hover svg,
  html:not(.gsap) .link-arrow:hover svg { transform: none; }
  .card { transition: border-color 0.2s, box-shadow 0.2s; }
  /* deck cards and the phone menu cross-fade where they would otherwise slide */
  .deck .sheet--main { transition: opacity 0.2s ease, visibility 0s 0.2s; }
  .deck .sheet--main.is-active { transition: opacity 0.2s ease, visibility 0s; }
  .js .page-wipe { transform: scaleY(0); }
}
@media (prefers-reduced-motion: reduce) and (max-width: 820px) {
  .nav { transition: opacity 0.2s ease, visibility 0s 0.2s; }
  .nav-open .nav { transition: opacity 0.2s ease, visibility 0s; }
}

@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .site-header.is-scrolled { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --line: rgba(4, 6, 6, 0.45); --muted: #3d3f41; }
  .site-header, .site-header.is-scrolled { box-shadow: 0 1px 0 var(--ink); }
}
