/* ============================================================
   RAGMAH (U) LTD - Civil Engineering & Building Contractors
   Design language: "Site Green"

   Dark-dominant, high-contrast blocks. Oversized display type.
   Full-bleed site photography. One accent: the Ragmah green.

   SHAPE LOCK  buttons = full pill / cards + media = 16px / inputs = 10px
   COLOR LOCK  green is the only accent, in both themes
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Dark is the primary look. Light mode below is a true inversion. */
  --bg:          #0B0E0D;
  --bg-2:        #111614;
  --bg-3:        #18201D;
  --panel:       #141A18;
  --panel-2:     #1B231F;
  --deep:        #070908;

  --ink:         #F2F4F1;
  --ink-2:       #B9C0BA;
  --ink-3:       #8A928C;

  --brand:       #2FBF57;
  --brand-hi:    #45D66D;
  --brand-deep:  #12752F;
  --brand-soft:  rgba(47, 191, 87, 0.12);
  --on-brand:    #06110A;

  --line:        rgba(242, 244, 241, 0.13);
  --line-2:      rgba(242, 244, 241, 0.07);

  --on-photo:    #FFFFFF;
  --on-photo-2:  rgba(255, 255, 255, 0.82);
  /* Photographic bands are dark in BOTH themes, so green used on top of
     them must stay bright. Never swap this for --brand in light mode. */
  --brand-photo: #45D66D;

  /* Shape lock */
  --r-card:   16px;
  --r-media:  16px;
  --r-input:  10px;
  --r-pill:   999px;

  --sans: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;

  --max:   1400px;
  --gut:   clamp(20px, 5vw, 68px);
  --nav-h: 72px;
  --sec-y: clamp(72px, 9vw, 140px);

  --ease:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-2: cubic-bezier(0.65, 0, 0.35, 1);

  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg:        #FFFFFF;
    --bg-2:      #F2F3F0;
    --bg-3:      #E7E9E4;
    --panel:     #F7F8F5;
    --panel-2:   #EDEFEA;
    --deep:      #0B0E0D;

    --ink:       #0D1211;
    --ink-2:     #414845;
    --ink-3:     #5F6763;

    --brand:      #0F6E2C;
    --brand-hi:   #148536;
    --brand-deep: #0B5622;
    --brand-soft: rgba(15, 110, 44, 0.09);
    --on-brand:   #FFFFFF;

    --line:      rgba(13, 18, 17, 0.15);
    --line-2:    rgba(13, 18, 17, 0.08);

    color-scheme: light;
  }
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(15.5px, 0.5vw + 14px, 17px);
  line-height: 1.6;
  font-variation-settings: "wdth" 100, "wght" 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.03em; line-height: 1.03; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--brand); color: var(--on-brand); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--brand); color: var(--on-brand);
  padding: 12px 22px; font-weight: 600; border-radius: var(--r-pill);
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- 3. TYPE ---------- */
.display {
  font-size: clamp(2.6rem, 7vw, 6.1rem);
  font-variation-settings: "wdth" 88, "wght" 700;
  letter-spacing: -0.042em;
  line-height: 0.95;
}
.h2 {
  font-size: clamp(2rem, 4.4vw, 3.85rem);
  font-variation-settings: "wdth" 90, "wght" 700;
  letter-spacing: -0.036em;
  line-height: 1;
}
.h3 {
  font-size: clamp(1.2rem, 1.6vw, 1.55rem);
  font-variation-settings: "wdth" 98, "wght" 660;
  letter-spacing: -0.02em;
  line-height: 1.16;
}
.lead {
  font-size: clamp(1.02rem, 0.95vw + 0.72rem, 1.3rem);
  line-height: 1.5; color: var(--ink-2); max-width: 52ch;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brand); font-weight: 500; margin: 0 0 20px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1.5px; background: var(--brand); flex: none;
}

.idx {
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.1em; color: var(--ink-3); font-weight: 500;
}

/* ---------- 4. LAYOUT ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: var(--sec-y); }
.band-2 { background: var(--bg-2); }

/* ---------- 5. HEADER ---------- */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  height: var(--nav-h); display: flex; align-items: center;
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.hdr.is-stuck {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--line-2);
}
@supports not (backdrop-filter: blur(1px)) { .hdr.is-stuck { background: var(--bg); } }

/* Pages that do not open on a photo need the bar filled from the start. */
body:not(.has-cinema) .hdr { background: var(--bg); border-bottom-color: var(--line-2); }

.hdr-in {
  width: 100%; max-width: var(--max); margin-inline: auto;
  padding-inline: var(--gut); display: flex; align-items: center; gap: 26px;
}

.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; flex: none; }
.brand img { width: 38px; height: 38px; object-fit: contain; border-radius: 8px; }
.brand b {
  display: block; font-size: 1.06rem; line-height: 1;
  font-variation-settings: "wdth" 86, "wght" 760; letter-spacing: -0.015em;
  color: var(--nav-fg, var(--ink));
}
.brand em {
  display: block; margin-top: 3px; font-style: normal; font-family: var(--mono);
  font-size: 0.57rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--nav-fg-2, var(--ink-3));
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  position: relative; font-size: 0.88rem; font-weight: 500; padding-block: 7px;
  color: var(--nav-fg-2, var(--ink-2)); white-space: nowrap;
  transition: color .25s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background: var(--brand); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.nav a:hover { color: var(--nav-fg, var(--ink)); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--nav-fg, var(--ink)); }

/* Over the cinematic hero the bar sits on photography until it sticks. */
.has-cinema .hdr:not(.is-stuck) { --nav-fg: #fff; --nav-fg-2: rgba(255,255,255,.78); }

.hdr-cta {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 20px; border-radius: var(--r-pill);
  background: var(--brand); color: var(--on-brand);
  font-family: var(--mono); font-size: 0.78rem; font-weight: 500; white-space: nowrap;
  transition: background .25s var(--ease), transform .18s var(--ease-2);
}
.hdr-cta:hover { background: var(--brand-hi); }
.hdr-cta:active { transform: translateY(1px); }

.burger {
  display: none; width: 44px; height: 44px; padding: 0; cursor: pointer;
  background: transparent; border: 1px solid var(--nav-line, var(--line));
  border-radius: var(--r-pill); position: relative;
}
.has-cinema .hdr:not(.is-stuck) .burger { --nav-line: rgba(255,255,255,.4); }
.burger i {
  position: absolute; left: 12px; width: 19px; height: 1.6px; border-radius: 2px;
  background: var(--nav-fg, var(--ink));
  transition: transform .35s var(--ease), opacity .2s linear;
}
.burger i:nth-child(1) { top: 16px; }
.burger i:nth-child(2) { top: 21px; }
.burger i:nth-child(3) { top: 26px; }
.burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.drawer {
  position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 89;
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: 10px var(--gut) 28px; display: grid;
  clip-path: inset(0 0 100% 0); transition: clip-path .5s var(--ease);
  pointer-events: none;
}
.drawer.is-open { clip-path: inset(0 0 0 0); pointer-events: auto; }
.drawer a {
  padding: 16px 0; border-bottom: 1px solid var(--line-2);
  font-size: 1.24rem; font-variation-settings: "wdth" 94, "wght" 620;
  letter-spacing: -0.02em; display: flex; justify-content: space-between; align-items: baseline;
}
.drawer a em { font-style: normal; font-family: var(--mono); font-size: 0.66rem; color: var(--ink-3); }
.drawer .drawer-call {
  margin-top: 22px; border: 0; border-radius: var(--r-pill);
  background: var(--brand); color: var(--on-brand);
  justify-content: center; padding: 16px; font-size: 0.98rem;
}

/* ---------- 6. BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px; border-radius: var(--r-pill);
  font-size: 0.92rem; font-weight: 600; white-space: nowrap;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .16s var(--ease-2), color .3s var(--ease), border-color .3s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn svg { flex: none; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform .45s var(--ease);
}

.btn-1 { background: var(--brand); color: var(--on-brand); }
.btn-1::before { background: var(--ink); }
.btn-1:hover { color: var(--bg); }

.btn-2 { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-2::before { background: var(--ink); }
.btn-2:hover { color: var(--bg); border-color: var(--ink); }

/* On photography */
.on-photo .btn-2, .btn-2.on-photo { color: #fff; border-color: rgba(255,255,255,.45); }
.on-photo .btn-2::before, .btn-2.on-photo::before { background: #fff; }
.on-photo .btn-2:hover, .btn-2.on-photo:hover { color: #0B0E0D; border-color: #fff; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.9rem; font-weight: 600;
  padding-bottom: 8px; border-bottom: 1px solid var(--line);
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.btn-ghost svg { transition: transform .4s var(--ease); }
.btn-ghost:hover { color: var(--brand); border-color: var(--brand); }
.btn-ghost:hover svg { transform: translateX(4px); }

/* Circular arrow badge (reference device) */
.badge-arrow {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--brand); color: var(--on-brand);
  transition: transform .45s var(--ease), background .3s var(--ease);
}
.badge-arrow svg { transition: transform .45s var(--ease); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 7. REVEAL ---------- */
.js .rv {
  opacity: 0; transform: translateY(26px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .rv.in { opacity: 1; transform: none; }

.rv-mask { display: block; overflow: hidden; padding-bottom: 0.09em; }
.js .rv-mask > span {
  display: block; transform: translateY(104%);
  transition: transform 1.05s var(--ease); transition-delay: var(--d, 0ms);
}
.js .in > .rv-mask > span, .js .rv-mask.in > span { transform: none; }


/* ---------- 8. CINEMATIC HERO ---------- */
.cinema {
  position: relative; min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden; isolation: isolate; background: var(--deep);
}
.cinema-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.12);
  animation: kenburns 22s var(--ease) forwards;
}
@keyframes kenburns { to { transform: scale(1); } }
.cinema::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(7,9,8,.95) 0%, rgba(7,9,8,.72) 34%, rgba(7,9,8,.34) 62%, rgba(7,9,8,.62) 100%);
}

.cinema-in {
  width: 100%; max-width: var(--max); margin-inline: auto;
  padding: calc(var(--nav-h) + 24px) var(--gut) clamp(26px, 3.4vw, 48px);
  color: #fff;
}
.cinema h1 {
  /* Capped against viewport HEIGHT as well as width, so a short laptop
     screen does not push the stat strip below the fold. */
  font-size: min(clamp(2.2rem, 6.9vw, 6rem), 13vh);
  font-variation-settings: "wdth" 86, "wght" 700;
  letter-spacing: -0.045em; line-height: 0.95; color: #fff;
  max-width: 17ch;
}
.cinema h1 .g { color: var(--brand-photo); font-style: normal; }
.cinema .lead { color: var(--on-photo-2); margin-top: clamp(16px, 2vh, 24px); max-width: 44ch; }
.cinema .eyebrow { color: #fff; margin-bottom: clamp(12px, 1.8vh, 20px); }
.cinema .eyebrow::before { background: var(--brand-photo); }
.cinema .actions { margin-top: clamp(22px, 3vh, 34px); }

/* Rotating seal, parked in the free upper-right corner above the copy */
.seal {
  position: absolute; right: var(--gut); top: calc(var(--nav-h) + clamp(20px, 4vh, 52px));
  width: clamp(88px, 8.5vw, 124px); aspect-ratio: 1; z-index: 2;
  display: grid; place-items: center;
}
.seal svg { width: 100%; height: 100%; animation: spin 26s linear infinite; }
.seal text { fill: #fff; font-family: var(--mono); font-size: 9.2px; letter-spacing: 0.22em; text-transform: uppercase; }
.seal-core {
  position: absolute; width: 46%; aspect-ratio: 1; border-radius: 50%;
  background: var(--brand); display: grid; place-items: center; color: var(--on-brand);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Stat strip across the bottom of the hero */
.cinema-stats {
  border-top: 1px solid rgba(255,255,255,.2);
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(24px, 3.4vh, 52px);
}
.cinema-stats > div { padding: clamp(14px, 1.8vh, 24px) 22px 0 0; }
.cinema-stats > div + div { border-left: 1px solid rgba(255,255,255,.2); padding-left: clamp(18px, 2.2vw, 30px); }
.cinema-stats b {
  display: block; color: #fff; line-height: 1;
  font-size: min(clamp(1.5rem, 2.7vw, 2.6rem), 5.2vh);
  font-variation-settings: "wdth" 84, "wght" 700; letter-spacing: -0.045em;
  font-feature-settings: "tnum";
}
/* Direct child only. A plain `.cinema-stats span` also matches the
   count-up span nested inside <b>, which shrinks the number to label size. */
.cinema-stats > div > span {
  display: block; margin-top: clamp(6px, 1vh, 10px);
  font-size: 0.78rem; color: var(--on-photo-2); line-height: 1.4;
}
.cinema-stats b span { font: inherit; color: inherit; letter-spacing: inherit; }

/* ---------- 9. PAGE HEADER (inner pages) ---------- */
.phead { padding: calc(var(--nav-h) + clamp(48px, 7vw, 96px)) 0 clamp(40px, 5vw, 66px); border-bottom: 1px solid var(--line-2); }
.phead-in { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: clamp(24px, 4vw, 60px); align-items: end; }
.phead h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.6rem);
  font-variation-settings: "wdth" 88, "wght" 700; letter-spacing: -0.04em; line-height: 0.98;
}
.phead p { color: var(--ink-2); max-width: 44ch; font-size: 1.04rem; }

/* ---------- 10. STAT CARDS ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat {
  background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r-card);
  padding: clamp(22px, 2.4vw, 32px);
  transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.stat:hover { border-color: var(--brand); transform: translateY(-4px); }
.stat b {
  display: block; line-height: 1; color: var(--ink);
  font-size: clamp(2.2rem, 3.6vw, 3.4rem);
  font-variation-settings: "wdth" 84, "wght" 700; letter-spacing: -0.05em;
  font-feature-settings: "tnum";
}
.stat strong { display: block; margin-top: 16px; font-size: 0.98rem; font-variation-settings: "wdth" 100, "wght" 640; }
.stat > span { display: block; margin-top: 7px; font-size: 0.85rem; color: var(--ink-3); line-height: 1.5; }
.stat b span { font: inherit; color: inherit; letter-spacing: inherit; }

/* ---------- 11. SECTOR RAIL ---------- */
.rail { position: relative; background: var(--bg-2); }
.rail-pin {
  position: sticky; top: 0; height: 100dvh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  gap: clamp(20px, 3.2vh, 44px); padding-block: clamp(20px, 4vh, 40px);
}
.rail-head {
  padding-inline: var(--gut); display: flex; align-items: flex-end;
  justify-content: space-between; gap: 32px; flex-wrap: wrap;
  max-width: var(--max); margin-inline: auto; width: 100%;
}
.rail-head h2 { max-width: 15ch; }
.rail-meter { display: flex; align-items: center; gap: 14px; }
.rail-meter i {
  display: block; width: clamp(90px, 15vw, 220px); height: 3px; border-radius: 3px;
  background: var(--line); position: relative; overflow: hidden;
}
.rail-meter i::after {
  content: ""; position: absolute; inset: 0; background: var(--brand); border-radius: 3px;
  transform: scaleX(var(--p, 0)); transform-origin: left;
}

.rail-track { display: flex; gap: 18px; padding-inline: var(--gut); will-change: transform; }
.rail.is-pinned .rail-track { transform: translate3d(calc(var(--p, 0) * -1 * var(--travel, 0px)), 0, 0); }

.sector {
  flex: 0 0 clamp(250px, 21vw, 320px);
  background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r-card);
  overflow: hidden; display: flex; flex-direction: column; min-height: 0;
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.sector:hover { border-color: var(--brand); background: var(--panel-2); }
.sector-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; flex: none; }
.sector-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.sector:hover .sector-img img { transform: scale(1.07); }
.sector-img .badge-arrow {
  position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px;
  transform: scale(0) rotate(-40deg);
}
.sector:hover .sector-img .badge-arrow { transform: scale(1) rotate(0deg); }
.sector-body { padding: 20px 20px 24px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.sector-body h3 { font-size: 1.12rem; font-variation-settings: "wdth" 98, "wght" 670; }
.sector-body p { font-size: 0.85rem; color: var(--ink-3); line-height: 1.5; }

/* Fallback rail */
.rail:not(.is-pinned) .rail-pin { position: static; height: auto; padding-block: var(--sec-y); }
.rail:not(.is-pinned) .rail-track { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 18px; }
.rail:not(.is-pinned) .sector { scroll-snap-align: start; }
.rail:not(.is-pinned) .rail-meter { display: none; }

/* ---------- 12. FEATURED (full-bleed photo) ---------- */
.feat {
  position: relative; min-height: 92vh; display: flex; align-items: flex-end;
  overflow: hidden; isolation: isolate; background: var(--deep);
}
.feat-bg {
  position: absolute; inset: -8% 0; z-index: -2; width: 100%; height: 116%;
  object-fit: cover; transform: translate3d(0, calc(var(--p, .5) * 8%), 0);
  will-change: transform;
}
.feat::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(7,9,8,.95) 4%, rgba(7,9,8,.7) 44%, rgba(7,9,8,.14) 100%);
}
.feat-in {
  width: 100%; max-width: var(--max); margin-inline: auto;
  padding: var(--gut) var(--gut) clamp(44px, 6vw, 78px);
  color: #fff; display: grid; grid-template-columns: 1.3fr 1fr;
  gap: clamp(24px, 4vw, 64px); align-items: end;
}
.feat-in h2 { color: #fff; max-width: 14ch; }
.feat-in p { color: var(--on-photo-2); max-width: 46ch; margin-top: 20px; }
.feat-in .eyebrow { color: #fff; }
.feat-in .eyebrow::before { background: var(--brand-photo); }
.feat-in .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); margin-top: 28px; }
.feat-in .btn-ghost:hover { color: var(--brand-photo); border-color: var(--brand-photo); }

.feat-meta { display: grid; gap: 0; }
.feat-meta div {
  display: flex; justify-content: space-between; gap: 20px; padding: 15px 0;
  border-top: 1px solid rgba(255,255,255,.22); font-size: 0.88rem;
}
.feat-meta div:last-child { border-bottom: 1px solid rgba(255,255,255,.22); }
.feat-meta dt {
  color: var(--on-photo-2); font-family: var(--mono);
  font-size: 0.68rem; letter-spacing: 0.13em; text-transform: uppercase;
}
.feat-meta dd { margin: 0; color: #fff; font-weight: 600; text-align: right; }

/* ---------- 13. GREEN FLOOD BAND ---------- */
.flood { background: var(--brand); color: var(--on-brand); padding-block: clamp(66px, 8vw, 128px); }
.flood h2 {
  color: var(--on-brand); max-width: 19ch;
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  font-variation-settings: "wdth" 88, "wght" 700; letter-spacing: -0.04em; line-height: 0.98;
}
.flood-in { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(28px, 5vw, 76px); align-items: end; }
.flood p { color: var(--on-brand); opacity: 0.88; max-width: 44ch; margin-top: 22px; font-size: 1.05rem; }
.flood .btn {
  background: var(--on-brand); color: var(--brand);
  margin-top: 32px;
}
.flood .btn::before { background: #fff; }
.flood .btn:hover { color: var(--brand-deep); }
.flood-list { display: grid; gap: 0; }
.flood-list div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 18px;
  padding: 15px 0; border-top: 1px solid rgba(6,17,10,.22);
  color: var(--on-brand);
}
.flood-list div:last-child { border-bottom: 1px solid rgba(6,17,10,.22); }
.flood-list b { font-size: 1.02rem; font-variation-settings: "wdth" 98, "wght" 650; }
.flood-list em {
  font-style: normal; font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.8;
}
@media (prefers-color-scheme: light) { .flood-list div { border-color: rgba(255,255,255,.3); } }

/* ---------- 14. METHOD LEDGER ---------- */
.method { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.method-head { position: sticky; top: calc(var(--nav-h) + 40px); }

.steps { position: relative; padding-left: 48px; }
.steps-line { position: absolute; left: 14px; top: 12px; bottom: 12px; width: 2px; background: var(--line); border-radius: 2px; }
.steps-line::after {
  content: ""; position: absolute; inset: 0; background: var(--brand); border-radius: 2px;
  transform: scaleY(var(--p, 0)); transform-origin: top;
}
.step { padding-block: clamp(22px, 3vw, 34px); border-bottom: 1px solid var(--line-2); position: relative; }
.step:last-child { border-bottom: 0; }
.step::before {
  content: ""; position: absolute; left: -40px; top: calc(clamp(22px, 3vw, 34px) + 8px);
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--line);
  transition: background .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.step.in::before { background: var(--brand); border-color: var(--brand); transform: scale(1.15); }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--ink-2); max-width: 56ch; font-size: 0.96rem; }

/* ---------- 15. BENTO ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tile {
  position: relative; overflow: hidden; isolation: isolate;
  border: 1px solid var(--line-2); border-radius: var(--r-card);
  background: var(--panel); min-height: 216px;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 24px;
  transition: border-color .4s var(--ease);
}
.tile:hover { border-color: var(--brand); }
.tile h3 { font-size: 1.06rem; font-variation-settings: "wdth" 98, "wght" 660; }
.tile p { font-size: 0.85rem; color: var(--ink-3); margin-top: 9px; line-height: 1.5; }
.tile .idx { margin-bottom: auto; }

.tile-img { grid-column: span 2; grid-row: span 2; min-height: 350px; border-color: transparent; }
.tile-img img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%;
  object-fit: cover; transition: transform 1s var(--ease);
}
.tile-img::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(7,9,8,.92) 4%, rgba(7,9,8,.45) 56%, rgba(7,9,8,.1) 100%);
}
.tile-img:hover img { transform: scale(1.06); }
.tile-img h3 { color: #fff; }
.tile-img p { color: var(--on-photo-2); }
.tile-img .idx { color: rgba(255,255,255,.8); }

.tile-fill { background: var(--brand); border-color: transparent; }
.tile-fill h3 { color: var(--on-brand); }
.tile-fill p { color: var(--on-brand); opacity: 0.9; }
.tile-fill .idx { color: var(--on-brand); opacity: 0.86; }

/* ---------- 16. SPLIT ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 76px); align-items: center; }
.split-media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--r-media); margin: 0; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media figcaption {
  position: absolute; left: 16px; bottom: 16px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 11px 18px; border-radius: var(--r-pill);
  font-family: var(--mono); font-size: 0.67rem; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--ink-2); max-width: calc(100% - 32px);
}

.chunks { display: grid; gap: 24px; margin-top: 32px; }
.chunk { border-top: 1px solid var(--line-2); padding-top: 18px; }
.chunk h3 { font-size: 1.04rem; font-variation-settings: "wdth" 100, "wght" 660; margin-bottom: 8px; }
.chunk p { font-size: 0.92rem; color: var(--ink-3); max-width: 52ch; }

/* ---------- 17. CTA ---------- */
.cta { background: var(--bg-2); border-top: 1px solid var(--line-2); padding-block: clamp(64px, 8vw, 124px); }
.cta h2 { max-width: 17ch; }
.cta p { color: var(--ink-2); max-width: 46ch; margin-top: 20px; }
.cta-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 72px); align-items: end; }
.cta .actions { margin-top: 34px; }
.cta-lines { display: grid; }
.cta-line {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 17px 0; border-top: 1px solid var(--line);
  transition: padding-left .4s var(--ease), color .3s var(--ease);
}
.cta-line:last-child { border-bottom: 1px solid var(--line); }
.cta-line:hover { padding-left: 12px; color: var(--brand); }
.cta-line b { font-size: clamp(1rem, 1.4vw, 1.28rem); font-variation-settings: "wdth" 94, "wght" 640; letter-spacing: -0.02em; }
.cta-line em {
  font-style: normal; font-family: var(--mono); font-size: 0.67rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3);
}

/* ---------- 18. FOOTER ---------- */
.ftr { background: var(--bg); border-top: 1px solid var(--line); padding-block: clamp(48px, 6vw, 84px) 30px; }
.ftr-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.ftr h4 {
  font-family: var(--mono); font-size: 0.67rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3); font-weight: 500; margin-bottom: 18px;
}
.ftr li { margin-bottom: 11px; }
.ftr li a, .ftr address a { font-size: 0.91rem; color: var(--ink-2); transition: color .25s var(--ease); }
.ftr li a:hover, .ftr address a:hover { color: var(--brand); }
.ftr address { font-style: normal; font-size: 0.91rem; color: var(--ink-2); line-height: 1.8; }
.ftr .brand { margin-right: 0; margin-bottom: 16px; }
.ftr-note { font-size: 0.88rem; color: var(--ink-3); max-width: 34ch; }
.ftr-base {
  margin-top: clamp(36px, 5vw, 62px); padding-top: 24px; border-top: 1px solid var(--line-2);
  display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between;
  font-family: var(--mono); font-size: 0.69rem; letter-spacing: 0.06em; color: var(--ink-3);
}

/* ---------- 19. DIVISIONS (services) ---------- */
.division {
  display: grid; grid-template-columns: 0.36fr 0.64fr; gap: clamp(22px, 4vw, 64px);
  padding-block: clamp(40px, 5vw, 76px); border-top: 1px solid var(--line-2); align-items: start;
}
.division:last-of-type { border-bottom: 1px solid var(--line-2); }
.division-head { position: sticky; top: calc(var(--nav-h) + 28px); }
.division-head .idx { display: block; margin-bottom: 12px; }
.division-head h2 {
  font-size: clamp(1.6rem, 2.7vw, 2.4rem);
  font-variation-settings: "wdth" 90, "wght" 700; letter-spacing: -0.035em; margin-bottom: 14px;
}
.division-head p { font-size: 0.93rem; color: var(--ink-3); max-width: 34ch; }
.division-head img { margin-top: 22px; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; border-radius: var(--r-media); }

.scopes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.scope {
  background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r-card);
  padding: 20px; transition: border-color .3s var(--ease), background .3s var(--ease);
}
.scope:hover { border-color: var(--brand); background: var(--panel-2); }
.scope b { display: block; font-size: 0.97rem; font-variation-settings: "wdth" 100, "wght" 650; margin-bottom: 6px; }
.scope span { font-size: 0.84rem; color: var(--ink-3); line-height: 1.5; display: block; }

/* ---------- 20. PROJECT GRID ---------- */
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pcard {
  position: relative; overflow: hidden; border-radius: var(--r-card);
  background: var(--panel); border: 1px solid var(--line-2);
  transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.pcard:hover { border-color: var(--brand); transform: translateY(-5px); }
.pcard-img { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.pcard:hover .pcard-img img { transform: scale(1.07); }
.pcard-img .badge-arrow {
  position: absolute; right: 16px; bottom: 16px;
  transform: scale(0) rotate(-40deg);
}
.pcard:hover .pcard-img .badge-arrow { transform: scale(1) rotate(0deg); }
.pcard-body { padding: 22px; }
.pcard-body h3 { font-size: 1.06rem; font-variation-settings: "wdth" 98, "wght" 660; margin-bottom: 9px; }
.pcard-body p { font-size: 0.86rem; color: var(--ink-3); line-height: 1.5; }
.pcard-body .idx { display: block; margin-bottom: 11px; }
.pcard.wide { grid-column: span 2; }
.pcard.wide .pcard-img { aspect-ratio: 16 / 9; }

/* ---------- 21. TIMELINE ---------- */
.tl-item {
  display: grid; grid-template-columns: 190px 1fr; gap: clamp(18px, 3vw, 48px);
  padding-block: clamp(24px, 3vw, 38px); border-top: 1px solid var(--line-2); align-items: start;
}
.tl-item:last-child { border-bottom: 1px solid var(--line-2); }
.tl-item b {
  font-family: var(--mono); font-size: 0.79rem; letter-spacing: 0.1em;
  color: var(--brand); font-weight: 500; padding-top: 4px;
}
.tl-item h3 { margin-bottom: 8px; font-size: 1.16rem; }
.tl-item p { color: var(--ink-2); font-size: 0.95rem; max-width: 62ch; }

/* ---------- 22. CONTACT ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 0.85fr; gap: clamp(32px, 5vw, 76px); align-items: start; }

.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.84rem; font-weight: 600; color: var(--ink); }
.field .hint { font-size: 0.77rem; color: var(--ink-3); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 0.95rem; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r-input); padding: 14px 16px; width: 100%;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.field textarea { resize: vertical; min-height: 138px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); background: var(--bg-2);
}
.field.two { grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.field .err { font-size: 0.79rem; color: #FF8A80; display: none; }
@media (prefers-color-scheme: light) { .field .err { color: #B3261E; } }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #FF8A80; }
@media (prefers-color-scheme: light) { .field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #B3261E; } }
.field.invalid .err { display: block; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note {
  border: 1px solid var(--brand); background: var(--brand-soft);
  border-radius: var(--r-card); padding: 17px 20px; font-size: 0.92rem; color: var(--ink); display: none;
}
.form-note.show { display: block; }
.form-note a { color: var(--brand); font-weight: 600; }
.form-note.is-error { border-color: #FF8A80; background: rgba(255,138,128,.1); }
@media (prefers-color-scheme: light) { .form-note.is-error { border-color: #B3261E; background: rgba(179,38,30,.07); } }

.contact-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(24px, 3vw, 36px); }
.contact-card h2 { font-size: 1.4rem; font-variation-settings: "wdth" 94, "wght" 680; letter-spacing: -0.025em; }
.contact-rows { margin-top: 24px; }
.contact-row { padding: 16px 0; display: grid; gap: 5px; border-top: 1px solid var(--line-2); }
.contact-row:first-child { border-top: 0; padding-top: 0; }
.contact-row span {
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3);
}
.contact-row a, .contact-row p { font-size: 1.04rem; font-variation-settings: "wdth" 98, "wght" 600; letter-spacing: -0.01em; }
.contact-row a { transition: color .25s var(--ease); }
.contact-row a:hover { color: var(--brand); }

/* ---------- 23. RESPONSIVE ---------- */
@media (max-width: 1180px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile-img { grid-column: span 2; grid-row: span 1; min-height: 300px; }
  .pgrid { grid-template-columns: repeat(2, 1fr); }
  .pcard.wide { grid-column: span 2; }
  .cinema-stats { grid-template-columns: repeat(2, 1fr); }
  .cinema-stats > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .cinema-stats > div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.2); }
}

@media (max-width: 1023px) {
  .nav, .hdr-cta { display: none; }
  .burger { display: block; }
  body:not(.has-cinema) .hdr, .hdr { background: var(--bg); border-bottom-color: var(--line-2); }
  .has-cinema .hdr { background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(14px); }
  .has-cinema .hdr:not(.is-stuck) { --nav-fg: var(--ink); --nav-fg-2: var(--ink-2); }
  .has-cinema .hdr:not(.is-stuck) .burger { --nav-line: var(--line); }
  .cinema { min-height: 0; padding-top: var(--nav-h); }
  .cinema-in { padding-top: clamp(56px, 12vw, 90px); padding-bottom: 34px; }
  .seal { display: none; }
  .method, .split, .contact-grid, .cta-grid, .phead-in, .division, .flood-in { grid-template-columns: 1fr; }
  .method-head, .division-head { position: static; }
  .split-media { aspect-ratio: 16 / 10; }
  .division-head img { display: none; }
  .feat-in { grid-template-columns: 1fr; }
  .feat { min-height: 78vh; }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 719px) {
  .stats, .bento, .pgrid, .scopes { grid-template-columns: 1fr; }
  .cinema-stats { grid-template-columns: 1fr 1fr; }
  .tile-img, .pcard.wide { grid-column: span 1; }
  .field.two { grid-template-columns: 1fr; }
  .tl-item { grid-template-columns: 1fr; gap: 10px; }
  .ftr-grid { grid-template-columns: 1fr; gap: 32px; }
  .steps { padding-left: 34px; }
  .step::before { left: -32px; }
  .actions .btn { flex: 1 1 auto; }
}

/* ---------- 24. REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .rv, .js .rv-mask > span { opacity: 1 !important; transform: none !important; }
  .cinema-bg { animation: none; transform: none; }
  .feat-bg { transform: none; }
  .seal svg { animation: none; }
  .rail.is-pinned .rail-track { transform: none; }
}
