/* Domera — brand colours from domera.sg; Source Serif 4 for headlines, Inter for text */
:root {
  --brown: #2E241E;
  --brown-2: #43362D;
  --paper: #F8F8F4;
  --sand: #DBD0C0;
  --sand-2: #EDE7DD;
  --ink: #2E241E;
  --muted: #6E6158;
  --line: rgba(46, 36, 30, .14);
  --line-light: rgba(248, 248, 244, .2);
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.1; letter-spacing: -.015em; }
p { margin: 0; }
em { font-style: italic; font-weight: 300; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--brown); color: var(--paper); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; }

/* Media */
.photo, .bg-video { object-fit: cover; width: 100%; height: 100%; }
.photo { filter: saturate(.9) sepia(.05); }
.bg-video { position: absolute; inset: 0; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; color: var(--paper);
  transition: background .35s var(--ease), color .35s var(--ease), box-shadow .35s, transform .4s var(--ease);
}
.site-header.solid { background: rgba(248, 248, 244, .96); backdrop-filter: blur(10px); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.site-header.hide { transform: translateY(-100%); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand svg { width: 28px; height: 28px; fill: currentColor; }
.brand span { font-weight: 600; letter-spacing: .26em; font-size: 14px; }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 14px; font-weight: 500; letter-spacing: .02em; position: relative; padding: 6px 0; }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav-links a:not(.btn):hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.menu-btn { display: none; background: none; border: 0; color: inherit; padding: 8px; cursor: pointer; }
.menu-btn svg { width: 26px; height: 26px; stroke: currentColor; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 0; font: 600 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid currentColor; transition: background .25s, color .25s, border-color .25s; cursor: pointer;
}
.btn-solid { background: var(--brown); color: var(--paper); border-color: var(--brown); }
.btn-solid:hover { background: var(--brown-2); border-color: var(--brown-2); }
.btn-light { background: var(--paper); color: var(--brown); border-color: var(--paper); }
.btn-light:hover { background: var(--sand); border-color: var(--sand); }
.btn-ghost:hover { background: var(--paper); color: var(--brown); border-color: var(--paper); }
.site-header .btn { padding: 12px 22px; }
.site-header:not(.solid) .btn { background: transparent; color: var(--paper); border-color: rgba(248,248,244,.6); }
.site-header:not(.solid) .btn:hover { background: var(--paper); color: var(--brown); }
.site-header.solid .btn { background: var(--brown); color: var(--paper); border-color: var(--brown); }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; padding-bottom: 4px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .35s var(--ease); }
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover { background-size: 0 1px; background-position: 100% 100%; }
.link-arrow:hover::after { transform: translateX(5px); }

.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.on-dark .eyebrow { color: var(--sand); }

/* ---------- Home hero (video slides) ---------- */
.hero { position: relative; height: 100svh; min-height: 640px; max-height: 960px; color: var(--paper); overflow: hidden; background: var(--brown); padding: 0; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.2s var(--ease), visibility 0s 1.2s; }
.slide.active { opacity: 1; visibility: visible; transition: opacity 1.2s var(--ease); }
.slide .bg-video { transform: scale(1.08); transition: transform 9s linear; }
.slide.active .bg-video { transform: scale(1); }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(46,36,30,.85) 0%, rgba(46,36,30,.5) 50%, rgba(46,36,30,.2) 100%); }
.slide-body { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; }
.slide-body .wrap { width: 100%; }
.slide h1 { font-size: clamp(44px, 7vw, 100px); max-width: 14ch; line-height: 1.02; }
.slide p { margin-top: 26px; max-width: 44ch; font-size: clamp(17px, 1.5vw, 19px); color: rgba(248,248,244,.85); }
.slide .actions { margin-top: 38px; display: flex; gap: 14px; flex-wrap: wrap; }
.slide .eyebrow { display: block; margin-bottom: 24px; color: var(--sand); }
.slide-body .wrap > * { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.slide.active .slide-body .wrap > * { opacity: 1; transform: none; }
.slide.active .slide-body .wrap > :nth-child(2) { transition-delay: .12s; }
.slide.active .slide-body .wrap > :nth-child(3) { transition-delay: .24s; }
.slide.active .slide-body .wrap > :nth-child(4) { transition-delay: .36s; }

.hero-controls { position: absolute; z-index: 3; left: 0; right: 0; bottom: 36px; }
.hero-controls .wrap { display: flex; align-items: flex-end; gap: 24px; }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; flex: 1; max-width: 760px; }
.tab { background: none; border: 0; color: rgba(248,248,244,.6); text-align: left; padding: 14px 0 0; font: 500 13px/1.3 var(--sans); letter-spacing: .04em; cursor: pointer; position: relative; }
.tab::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--line-light); }
.tab::after { content: ""; position: absolute; top: 0; left: 0; height: 2px; width: 0; background: var(--paper); }
.tab.active { color: var(--paper); }
.tab.active::after { animation: fill var(--dur, 8s) linear forwards; }
.hero.paused .tab.active::after { animation-play-state: paused; }
@keyframes fill { to { width: 100%; } }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-light); background: none; color: var(--paper); display: grid; place-items: center; cursor: pointer; flex: none; transition: border-color .2s, background .2s; }
.icon-btn:hover { border-color: var(--paper); }
.icon-btn svg { width: 16px; height: 16px; fill: currentColor; }
.scroll-cue { position: absolute; z-index: 3; right: var(--gutter); bottom: 110px; width: 1px; height: 64px; background: var(--line-light); overflow: hidden; }
.scroll-cue::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--paper); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

/* Ticker */
.ticker { background: var(--brown); color: var(--sand); padding: 22px 0; overflow: hidden; border-top: 1px solid var(--line-light); }
.ticker-track { display: flex; gap: 56px; width: max-content; animation: ticker 40s linear infinite; }
.ticker span { font-family: var(--serif); font-size: clamp(20px, 2.2vw, 28px); font-style: italic; font-weight: 300; white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; }
.ticker span::after { content: ""; width: 8px; height: 8px; background: var(--sand); display: inline-block; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Page hero (inner pages, video) ---------- */
.page-hero { position: relative; min-height: 580px; height: 78svh; max-height: 760px; color: var(--paper); display: flex; align-items: flex-end; padding: 0 0 88px; background: var(--brown); overflow: hidden; }
.page-hero .bg-video { animation: drift 24s ease-in-out infinite alternate; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(46,36,30,.9) 0%, rgba(46,36,30,.4) 55%, rgba(46,36,30,.6) 100%); }
.page-hero .wrap { position: relative; z-index: 2; width: 100%; }
.page-hero .eyebrow { color: var(--sand); }
.page-hero h1 { font-size: clamp(44px, 6.4vw, 88px); max-width: 15ch; margin-top: 20px; line-height: 1.03; }
.page-hero p { margin-top: 24px; max-width: 50ch; font-size: clamp(17px, 1.5vw, 19px); color: rgba(248,248,244,.85); }
.page-hero .wrap > * { animation: rise 1s var(--ease) both; }
.page-hero .wrap > :nth-child(2) { animation-delay: .12s; }
.page-hero .wrap > :nth-child(3) { animation-delay: .24s; }
.page-hero.short { min-height: 460px; height: 60svh; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.12) translate(-1.5%, -1%); } }

/* ---------- Sections ---------- */
section { padding: clamp(80px, 10vw, 136px) 0; }
.rule { border-top: 1px solid var(--line); }
.on-dark { background: var(--brown); color: var(--paper); }
.on-sand { background: var(--sand-2); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(44px, 5vw, 68px); flex-wrap: wrap; }
.section-head h2 { font-size: clamp(36px, 4.8vw, 64px); max-width: 16ch; margin-top: 16px; }
.section-head p { max-width: 42ch; color: var(--muted); }
.on-dark .section-head p { color: rgba(248,248,244,.72); }

/* Statement */
.statement { text-align: center; }
.statement h2 { font-size: clamp(30px, 4vw, 54px); max-width: 22ch; margin: 20px auto 0; line-height: 1.18; }
.statement p { max-width: 54ch; margin: 28px auto 0; color: var(--muted); font-size: 18px; }
.statement .link-arrow { margin-top: 38px; }

/* Services grid */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.svc { padding: 40px 36px 44px 0; border-bottom: 1px solid var(--line); position: relative; transition: background .3s; }
.svc + .svc { padding-left: 36px; border-left: 1px solid var(--line); }
.svc:nth-child(3n+1) { padding-left: 0; border-left: 0; }
.svc::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--ink); transition: width .5s var(--ease); }
.svc:hover::before { width: 100%; }
.svc .num { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .14em; }
.svc h3 { font-size: 26px; margin: 18px 0 12px; }
.svc p { color: var(--muted); font-size: 15.5px; }


/* Service detail list (services page) */
.svc-list { border-top: 1px solid var(--line); }
.svc-row { display: grid; grid-template-columns: 90px 1fr 1.2fr; gap: 32px; padding: 44px 0; border-bottom: 1px solid var(--line); align-items: start; position: relative; }
.svc-row::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--ink); transition: width .7s var(--ease); }
.svc-row:hover::before { width: 100%; }
.svc-row .num { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .14em; padding-top: 10px; }
.svc-row h3 { font-size: clamp(28px, 2.8vw, 38px); }
.svc-row p { color: var(--muted); }
.svc-row .ticks { margin-top: 16px; }

/* Image boxes: curtain reveal + slow Ken Burns */
.img { position: relative; overflow: hidden; background: var(--sand); }
.reveal .img, .reveal.img { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease); }
.reveal.in .img, .reveal.in.img { clip-path: inset(0 0 0 0); }
.kb img, .kb video { animation: kb 22s ease-in-out infinite alternate; transform-origin: 60% 40%; }
@keyframes kb { from { transform: scale(1); } to { transform: scale(1.12) translate(-1%, -1.5%); } }

/* Industry cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { display: flex; flex-direction: column; }
.card .img { aspect-ratio: 4 / 5; }
.card .img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(46,36,30,.35), transparent 50%); opacity: 0; transition: opacity .4s; }
.card:hover .img::after { opacity: 1; }
.card .eyebrow { margin-top: 24px; }
.card h3 { font-size: 30px; margin: 10px 0 12px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card .link-arrow { margin-top: 20px; align-self: flex-start; }

/* Split feature */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split.flip > :first-child { order: 2; }
.split figure { margin: 0; }
.split .img { aspect-ratio: 5 / 4; }
.split h2 { font-size: clamp(34px, 4vw, 54px); margin: 16px 0 22px; }
.split p { color: var(--muted); }
.split p + p { margin-top: 14px; }
.on-dark .split p { color: rgba(248,248,244,.76); }
.split .link-arrow, .split .btn { margin-top: 32px; }

.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.ticks li { padding-left: 26px; position: relative; font-size: 15.5px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .66em; width: 9px; height: 9px; background: var(--sand); }
.on-sand .ticks li::before { background: var(--brown); }
.ticks.two { grid-template-columns: 1fr 1fr; column-gap: 28px; }

/* Engagement rail */
.rail-wrap { position: relative; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 56px) / 3); gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
.rail::-webkit-scrollbar { display: none; }
.eng { scroll-snap-align: start; background: var(--paper); display: flex; flex-direction: column; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.eng:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(46,36,30,.12); }
.eng .img { aspect-ratio: 16 / 10; }
.eng .img img { transition: transform 1s var(--ease); }
.eng:hover .img img { transform: scale(1.06); }
.eng .body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.eng .eyebrow { font-size: 11px; }
.eng h3 { font-size: 23px; margin: 12px 0 12px; line-height: 1.2; }
.eng p { color: var(--muted); font-size: 15px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 22px; }
.tags span { font-size: 11px; font-weight: 600; letter-spacing: .06em; padding: 6px 11px; background: var(--sand-2); }
.rail-nav { display: flex; gap: 10px; }
.rail-nav .icon-btn { border-color: var(--line); color: var(--ink); }
.rail-nav .icon-btn:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }

/* Corridors & markets */
.corridors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.corridor { border-top: 1px solid var(--line-light); padding-top: 28px; }
.corridor .route { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--sand); }
.corridor h3 { font-size: 28px; margin: 16px 0 12px; }
.corridor p { color: rgba(248,248,244,.72); font-size: 15.5px; }
.markets { margin-top: clamp(56px, 7vw, 88px); display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; }
.market { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--brown-2); }
.market img, .market video { transition: transform 1.2s var(--ease); }
.market:hover img, .market:hover video { transform: scale(1.06); }
.market::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(46,36,30,.9), rgba(46,36,30,0) 60%); }
.market div { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 20px; }
.market strong { display: block; font-family: var(--serif); font-size: 24px; font-weight: 400; }
.market span { font-size: 12px; letter-spacing: .06em; color: var(--sand); }

/* Steps (case study) */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); counter-reset: s; }
.step { padding: 30px 26px 0 0; border-top: 1px solid var(--sand); position: relative; }
.step + .step { padding-left: 26px; border-left: 1px solid var(--line-light); }
.step::before { counter-increment: s; content: "0" counter(s); font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--sand); }
.step h3 { font-size: 23px; margin: 14px 0 10px; }
.step p { color: rgba(248,248,244,.72); font-size: 15px; }

/* India map */
.map-box { position: relative; aspect-ratio: 1000 / 1118; max-width: 520px; margin-left: auto; width: 100%; }
.map-box svg { width: 100%; height: 100%; overflow: visible; }
.map-land { fill: rgba(219,208,192,.07); stroke: var(--sand); stroke-width: 1.4; stroke-dasharray: 9000; stroke-dashoffset: 9000; transition: stroke-dashoffset 4s var(--ease), fill 1.5s 2.5s; }
.in .map-land { stroke-dashoffset: 0; fill: rgba(219,208,192,.12); }
.spoke { stroke: var(--sand); stroke-width: 1.2; stroke-dasharray: 4 5; opacity: 0; transition: opacity .8s; }
.in .spoke { opacity: .55; animation: march 1.6s linear infinite; }
@keyframes march { to { stroke-dashoffset: -18; } }
.hub { fill: var(--paper); }
.hub-ring { fill: none; stroke: var(--paper); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: pulse 2.6s var(--ease) infinite; }
.spoke-dot { fill: var(--sand); }
.hub, .hub-ring, .spoke-dot, .city-label { opacity: 0; transition: opacity .6s; }
.in .hub, .in .spoke-dot, .in .city-label { opacity: 1; }
.in .hub-ring { opacity: 1; }
.city-label { font: 600 28px var(--sans); fill: rgba(248,248,244,.8); letter-spacing: .04em; }
@keyframes pulse { from { transform: scale(.6); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }
.map-legend { display: flex; gap: 24px; margin-top: 18px; font-size: 13px; color: rgba(248,248,244,.7); justify-content: flex-end; }
.map-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }

/* Facts */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.fact { padding: 32px 28px 0 0; }
.fact + .fact { padding-left: 28px; border-left: 1px solid var(--line); }
.fact strong { display: block; font-family: var(--serif); font-size: clamp(24px, 2.4vw, 32px); font-weight: 400; }
.fact span { display: block; margin-top: 8px; color: var(--muted); font-size: 14.5px; }

/* Leadership */
.quote { font-family: var(--serif); font-size: clamp(28px, 3.2vw, 42px); font-weight: 300; line-height: 1.25; }
.on-dark .split .quote { color: var(--paper); }

/* Scope note */
.scope-note { margin-top: 48px; padding: 22px 26px; border-left: 2px solid var(--brown); background: var(--sand-2); font-size: 15px; color: var(--muted); }

/* CTA band (video background) */
.cta-band { position: relative; text-align: center; overflow: hidden; padding: clamp(110px, 14vw, 180px) 0; }
.cta-band .bg-video { opacity: .35; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(46,36,30,.35), rgba(46,36,30,.9) 75%); z-index: 1; }
.cta-band .wrap { position: relative; z-index: 2; }
.cta-band h2 { font-size: clamp(44px, 6.4vw, 92px); }
.cta-band p { margin: 22px auto 0; max-width: 46ch; color: rgba(248,248,244,.78); font-size: 18px; }
.cta-band .btn { margin-top: 42px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(40px, 7vw, 112px); }
.contact-info h2 { font-size: clamp(34px, 3.8vw, 50px); margin: 16px 0 22px; }
.contact-info p { color: var(--muted); }
.info-block { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.info-block .eyebrow { display: block; margin-bottom: 10px; }
.info-block address { font-style: normal; font-size: 18px; line-height: 1.55; }
.info-block a { border-bottom: 1px solid currentColor; font-size: 18px; }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
label { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
input, select, textarea {
  font: 400 17px/1.5 var(--sans); color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 10px 0; border-radius: 0; transition: border-color .2s; width: 100%;
}
select { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232E241E' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 4px center; padding-right: 24px; }
textarea { resize: vertical; min-height: 120px; }
input:focus, select:focus, textarea:focus { outline: none; border-bottom-color: var(--ink); }
.check { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 400; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brown); flex: none; }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.form-note { font-size: 14px; color: var(--muted); }
.form-done { display: none; grid-column: 1 / -1; padding: 22px 24px; background: var(--sand-2); border-left: 2px solid var(--brown); }
form.sent .form-done { display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brown); color: var(--paper); padding: 88px 0 36px; }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 64px; border-bottom: 1px solid var(--line-light); }
.foot-brand svg { width: 44px; height: 44px; fill: var(--paper); }
.foot-brand .word { margin-top: 20px; font-weight: 600; letter-spacing: .24em; font-size: 14px; }
.foot-brand .tag { margin-top: 6px; font-size: 11px; letter-spacing: .24em; color: var(--sand); text-transform: uppercase; }
.site-footer h4 { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--sand); margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer li a, .site-footer address, .site-footer .mail { font-size: 15px; color: rgba(248,248,244,.8); font-style: normal; }
.site-footer li a:hover, .site-footer .mail:hover { color: var(--paper); }
.site-footer .mail { display: inline-block; margin-top: 14px; border-bottom: 1px solid currentColor; }
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 28px; font-size: 13px; color: rgba(248,248,244,.55); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > :nth-child(2) { transition-delay: .1s; }
.stagger.in > :nth-child(3) { transition-delay: .2s; }
.stagger.in > :nth-child(4) { transition-delay: .3s; }
.stagger.in > :nth-child(5) { transition-delay: .4s; }
.stagger.in > :nth-child(6) { transition-delay: .5s; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .step:nth-child(4) { padding-left: 0; border-left: 0; }
  .markets { grid-template-columns: repeat(3, 1fr); }
  .rail { grid-auto-columns: calc((100% - 28px) / 2); }
  .foot-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .menu-btn { display: block; }
  .nav-links {
    position: fixed; inset: 84px 0 auto 0; flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); color: var(--ink); padding: 8px var(--gutter) 28px;
    box-shadow: 0 12px 24px rgba(46,36,30,.12); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border: 0; padding-top: 20px; }
  .nav-links a:not(.btn) { display: block; padding: 16px 0; font-size: 17px; }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links .btn { background: var(--brown) !important; color: var(--paper) !important; border-color: var(--brown) !important; }
  .site-header.menu-open { background: var(--paper); color: var(--ink); }
  .svc-grid, .cards, .corridors { grid-template-columns: 1fr; }
  .svc, .svc + .svc { padding: 32px 0; border-left: 0; }
  .cards { gap: 48px; }
  .card .img { aspect-ratio: 4 / 3; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .svc-row { grid-template-columns: 1fr; gap: 12px; padding: 36px 0; }
  .split.flip > :first-child { order: 0; }
  .map-box { margin: 0 auto; }
  .map-legend { justify-content: center; }
  .facts { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .tabs { gap: 12px; }
  .tab { font-size: 11.5px; }
  .scroll-cue { display: none; }
}
@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding-left: 0; border-left: 0; padding-right: 0; }
  .markets { grid-template-columns: 1fr 1fr; }
  .market:last-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .rail { grid-auto-columns: 86%; gap: 16px; }
  form { grid-template-columns: 1fr; }
  .ticks.two { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr; }
  .hero-controls .icon-btn { display: none; }
  .slide::after { background: linear-gradient(0deg, rgba(46,36,30,.9) 10%, rgba(46,36,30,.45) 100%); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal, .stagger > * { opacity: 1; transform: none; }
  .reveal .img { clip-path: none; }
  .map-land { stroke-dashoffset: 0; }
}
