/* ==========================================================================
   PUNARNAVA TRADING — V3 stylesheet
   Brand: navy #001443, blue #0049B0, teal #088B80, steel #7A8B9C, pale #F6F8FA
   Manrope for text, Instrument Serif italic as the editorial accent on
   emphasised words. Soft layered shadows, generous radii, a floating glass
   header and light brand-colour glows on the dark sections.
   ========================================================================== */

:root {
  --navy: #001443;
  --blue: #0049b0;
  --blue-dk: #003a8c;
  --teal: #088b80;
  --teal-dk: #066e65;
  --teal-lt: #5fd1c3;   /* teal for text on navy */
  --steel: #7a8b9c;
  --pale: #f6f8fa;
  --ink: #001443;
  --muted: #475b77;
  --on-navy: #c8d5ea;
  --line: #dce4ed;
  --gut: clamp(16px, 5vw, 56px);
  --hdr: 88px;           /* space the floating header takes at the top */
  --r: 20px;
  --r-lg: 28px;
  --serif: "Instrument Serif", Georgia, serif;
  --shadow-sm: 0 1px 2px #0014430a, 0 4px 12px -6px #00144314;
  --shadow: 0 1px 2px #0014430a, 0 12px 32px -14px #0014432e;
  --shadow-lg: 0 2px 4px #0014430d, 0 30px 60px -24px #00144347;
  --glow: radial-gradient(55% 70% at 100% 0%, #0049b073, transparent 70%), radial-gradient(45% 60% at 0% 100%, #088b8040, transparent 70%);
}

/* ---------- Base ---------- */
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: #fff; color: var(--ink);
  font: 500 16px/1.6 Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -.04em; font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 4.8vw, 4.2rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.7rem); }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.015em; }
p { margin: 0; text-wrap: pretty; }
::selection { background: #5fd1c35c; }
a { color: inherit; }
p a { color: var(--blue); font-weight: 700; }
em { font-style: normal; color: var(--teal); }
/* Editorial accent: emphasised words in display type switch to a serif italic. */
h1 em, h2 em, .statement em, .aim em, .ftr__big em {
  font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; font-size: 1.1em; line-height: 1;
}
button { font: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

.wrap { width: min(1200px, 100% - 2 * var(--gut)); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section--tight { padding: clamp(44px, 6vw, 72px) 0; }
.section--pale { background: var(--pale); }
.section--navy { background: var(--glow), var(--navy); color: #fff; }
.section--navy p { color: var(--on-navy); }
.section--navy em { color: var(--teal-lt); }
.center { text-align: center; margin-top: 32px; }
.hint { font-size: 14px; color: var(--muted); }
.hint.center { margin: -8px 0 24px; }
.large { font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.45; font-weight: 600; color: var(--ink); }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 58ch; }
.head { max-width: 760px; margin-bottom: 40px; }
.head .lead, .head .hint { margin-top: 14px; }
.head--center { text-align: center; margin-inline: auto; }
.head--center .lead { margin-inline: auto; }
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.split .lead { margin-top: 16px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px; padding: 6px 14px 6px 10px;
  border: 1px solid #0049b026; border-radius: 999px; background: #0049b00d;
  font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--blue);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px #088b8026; }
.eyebrow--light { color: #fff; border-color: #ffffff2e; background: #ffffff12; backdrop-filter: blur(8px); }
.eyebrow--light::before { background: var(--teal-lt); box-shadow: 0 0 0 4px #5fd1c333; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 100; background: #fff; color: var(--navy); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- Icons ---------- */
.i { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(145deg, #eef4fd, #e1ebfa); color: var(--blue); flex-shrink: 0; box-shadow: inset 0 0 0 1px #0049b014; }
.ico--lg { width: 60px; height: 60px; border-radius: 18px; }
.ico--lg .i { width: 30px; height: 30px; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 15px; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn .i { width: 18px; height: 18px; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: inset 0 1px 0 #ffffff2e, 0 8px 18px -8px #0049b0b3; }
.btn--primary:hover { background: var(--blue-dk); box-shadow: inset 0 1px 0 #ffffff2e, 0 14px 26px -10px #0049b0cc; }
.btn--teal { background: var(--teal); color: #fff; box-shadow: inset 0 1px 0 #ffffff2e, 0 8px 18px -8px #088b80b3; }
.btn--teal:hover { background: var(--teal-dk); box-shadow: inset 0 1px 0 #ffffff2e, 0 14px 26px -10px #088b80cc; }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--light { background: #fff; color: var(--navy); box-shadow: 0 10px 24px -10px #00144399; }
.btn--light:hover { background: #e8effa; }
.btn--sm { min-height: 42px; padding: 9px 20px; font-size: 14px; }

.link {
  display: inline-flex; align-items: center; gap: 8px; padding: 0 0 3px; background: none; border: 0;
  border-bottom: 1.5px solid #bfd0e8; color: var(--blue); font-weight: 700; text-decoration: none; cursor: pointer;
}
.link::after { content: "→"; transition: transform .2s; }
.link:hover::after { transform: translateX(4px); }
.link--light, .section--navy .link { color: #fff; border-color: #ffffff60; }

.round {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: #fffffff0; backdrop-filter: blur(8px);
  color: var(--navy); font-size: 18px; font-weight: 700; cursor: pointer; transition: border-color .2s, color .2s;
}
.round:hover { border-color: var(--blue); color: var(--blue); }
.round:disabled { opacity: .35; cursor: default; }

/* ---------- Header ---------- */
/* The header floats as a glass pill over the first section, which reserves
   room for it with padding-top: var(--hdr). */
.hdr { position: sticky; top: 0; z-index: 50; height: var(--hdr); margin-bottom: calc(-1 * var(--hdr)); padding: 12px 0; pointer-events: none; }
.hdr__in {
  display: flex; align-items: center; gap: 16px; height: 100%; width: min(1320px, 100% - 2 * var(--gut)); margin-inline: auto; padding: 0 8px 0 20px;
  border: 1px solid #ffffffb3; border-radius: 999px; background: #ffffffd9; backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: 0 1px 2px #0014430d, 0 10px 30px -12px #00144347; pointer-events: auto; transition: box-shadow .3s, background .3s;
}
.hdr.is-scrolled .hdr__in { background: #fffffff0; box-shadow: 0 1px 2px #0014430f, 0 16px 40px -14px #00144359; }
.brand { flex-shrink: 0; width: 176px; }
.brand img { width: 100%; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { padding: 9px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .2s, color .2s; }
.nav a:hover { background: #eef3fb; color: var(--blue); }
.nav a[aria-current="page"] { background: var(--navy); color: #fff; box-shadow: inset 0 1px 0 #ffffff26; }
.hdr__cta .short { display: none; }
.menu { display: none; }

@media (max-width: 1140px) {
  .nav {
    position: absolute; top: calc(100% - 4px); left: var(--gut); right: var(--gut); display: none; flex-direction: column; gap: 4px;
    padding: 12px; border: 1px solid var(--line); border-radius: 24px; background: #fffffff5; backdrop-filter: blur(18px);
    box-shadow: var(--shadow-lg); max-height: calc(100dvh - var(--hdr) - 16px); overflow-y: auto; pointer-events: auto;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 16px; font-size: 16px; }
  .hdr__cta { margin-left: auto; }
  .menu {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px;
    border: 1px solid var(--line); background: #fff; color: var(--navy); font-weight: 700; font-size: 14px; cursor: pointer;
  }
  .menu .i { width: 20px; height: 20px; }
}
@media (max-width: 560px) {
  :root { --hdr: 72px; }
  .hdr { padding: 8px 0; }
  .hdr__in { gap: 8px; padding: 0 6px 0 14px; }
  .brand { width: 132px; }
  .hdr__cta { padding: 8px 14px; min-height: 40px; }
  .hdr__cta .full { display: none; }
  .hdr__cta .short { display: inline; }
  .menu span { display: none; }
  .menu { padding: 9px; }
}

/* ---------- Thread canvas (hero + intros) ---------- */
.thread-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: .6; }

/* ---------- Home hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; color: #fff;
  background: radial-gradient(50% 60% at 85% 10%, #0049b0a6, transparent 70%), radial-gradient(40% 55% at 10% 95%, #088b8059, transparent 70%), var(--navy); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background: linear-gradient(#ffffff0a 1px, transparent 1px) 0 0 / 64px 64px, linear-gradient(90deg, #ffffff0a 1px, transparent 1px) 0 0 / 64px 64px;
  -webkit-mask-image: radial-gradient(70% 70% at 30% 40%, #000, transparent); mask-image: radial-gradient(70% 70% at 30% 40%, #000, transparent); }
.hero__in { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 64px); align-items: center; padding: calc(var(--hdr) + clamp(28px, 5vw, 64px)) 0 clamp(48px, 6vw, 88px); }
.hero__title { font-size: clamp(3rem, 6.4vw, 6rem); line-height: 1; letter-spacing: -.05em; }
.hero__title span, .hero__title em { display: block; }
.hero__title em { color: var(--teal-lt); font-size: 1.12em; padding-bottom: .06em; }
.hero__sub { margin-top: 26px; max-width: 46ch; font-size: 1.125rem; color: var(--on-navy); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }
.hero__copy > * { animation: rise .8s both; }
.hero__copy > :nth-child(2) { animation-delay: .08s; }
.hero__copy > :nth-child(3) { animation-delay: .16s; }
.hero__copy > :nth-child(4) { animation-delay: .24s; }
.hero__media { margin: 0; position: relative; aspect-ratio: 4 / 4.6; max-height: 620px; border-radius: 220px 28px 28px 28px; overflow: hidden; outline: 1px solid #ffffff26; outline-offset: 10px; box-shadow: 0 40px 80px -30px #000000a6; animation: photo-in 1.1s both; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, #00144359); }

/* ---------- Inner page intro ---------- */
.intro { position: relative; isolation: isolate; overflow: hidden; color: #fff; padding: calc(var(--hdr) + clamp(20px, 3vw, 36px)) 0 clamp(32px, 4vw, 52px);
  background: radial-gradient(45% 90% at 95% 0%, #0049b08c, transparent 70%), radial-gradient(35% 80% at 0% 100%, #088b8040, transparent 70%), var(--navy); }
.intro::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .6;
  background: linear-gradient(#ffffff0a 1px, transparent 1px) 0 0 / 56px 56px, linear-gradient(90deg, #ffffff0a 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%, #000 70%, transparent); mask-image: linear-gradient(90deg, transparent, #000 40%, #000 70%, transparent); }
.intro .eyebrow { margin-bottom: 10px; }
.intro h1 { max-width: 28ch; font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
.intro h1 em { color: var(--teal-lt); }
.intro__sub { margin-top: 10px; max-width: 60ch; font-size: 1.05rem; color: var(--on-navy); }

/* ---------- Home: statement + audience picker ---------- */
.statement { font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.1; }
.picker__tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.door {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 26px; text-align: left;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; color: var(--ink); cursor: pointer; box-shadow: var(--shadow-sm);
  transition: background .25s, border-color .25s, box-shadow .25s, transform .25s;
}
.door:hover { border-color: #0049b04d; transform: translateY(-3px); box-shadow: var(--shadow); }
.door b { font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; }
.door small { font-size: 14px; color: var(--muted); }
.door[aria-selected="true"] { background: var(--glow), var(--navy); border-color: var(--navy); color: #fff; box-shadow: var(--shadow-lg); }
.door[aria-selected="true"] .ico { background: #ffffff24; color: #fff; }
.door[aria-selected="true"] small { color: #dbe6f7; }
.picker__panel {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  margin-top: 16px; padding: 24px 30px; border-radius: var(--r-lg); background: linear-gradient(120deg, #e9f6f4, #eef3fb); border: 1px solid #088b8026;
}
.picker__panel p { max-width: 56ch; font-size: 1.05rem; color: var(--ink); }
.picker__links { display: flex; flex-wrap: wrap; gap: 14px 28px; }
@media (max-width: 680px) {
  .picker__tabs { gap: 8px; }
  .door { padding: 14px 10px; align-items: center; text-align: center; }
  .door b { font-size: .95rem; }
  .door small { display: none; }
  .picker__panel { padding: 20px; }
}

/* ---------- Home: "Where does my fabric go?" + process strip ---------- */
.fabrics { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: -8px 0 40px; }
.strip { position: relative; --p: 0; --n: 6; }
.strip ol { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; margin: 0; padding: 0; list-style: none; }
.strip a { display: flex; flex-direction: column; align-items: center; gap: 12px; font-weight: 700; font-size: 15px; color: var(--muted); text-decoration: none; transition: color .4s; }
.strip__dot { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: #fff; border: 1px solid var(--line); color: var(--steel); box-shadow: var(--shadow-sm); transition: border-color .4s, color .4s, background .4s, transform .4s, box-shadow .4s; }
.strip__dot .i { width: 28px; height: 28px; }
.strip a:hover .strip__dot { border-color: var(--blue); }
.strip li.is-on a { color: var(--ink); }
.strip li.is-on .strip__dot { border-color: transparent; background: linear-gradient(145deg, #0aa597, var(--teal-dk)); color: #fff; transform: scale(1.05); box-shadow: 0 0 0 6px #088b801f, 0 12px 24px -10px #088b80b3; }
.strip li.pop .strip__dot { animation: pop .4s both; }
.strip__line { position: absolute; top: 33px; left: calc(100% / (2 * var(--n))); right: calc(100% / (2 * var(--n))); height: 2px; background: var(--line); }
.strip__line i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--teal), var(--blue)); transform: scaleX(var(--p)); transform-origin: left; }
.journey__out { max-width: 640px; margin: 36px auto 0; text-align: center; }
.journey__out p { font-size: 1.1rem; color: var(--ink); }
.journey__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin-top: 16px; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1.05); opacity: 1; } }
@media (max-width: 680px) {
  .fabrics { margin-bottom: 28px; gap: 8px; }
  .strip ol { gap: 4px; }
  .strip a { gap: 8px; font-size: 12px; }
  .strip__dot { width: 46px; height: 46px; }
  .strip__dot .i { width: 22px; height: 22px; }
  .strip__line { top: 22px; }
}

/* ---------- CTA band ---------- */
.band { padding: clamp(48px, 7vw, 88px) 0; background: #fff; }
.band__in {
  position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px;
  padding: clamp(32px, 5vw, 60px); border-radius: var(--r-lg); color: #fff; box-shadow: var(--shadow-lg);
  background: radial-gradient(60% 120% at 100% 0%, #088b80a6, transparent 70%), linear-gradient(120deg, var(--navy), var(--blue));
}
.band h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); max-width: 18ch; }

/* ---------- Tabs (segmented) ---------- */
.tabs-row { display: flex; justify-content: center; margin-bottom: 36px; }
.tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.tabs [role="tab"] { padding: 12px 24px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 700; font-size: 15px; cursor: pointer; transition: background .2s, color .2s; }
.tabs [role="tab"]:hover { color: var(--blue); }
.tabs [role="tab"][aria-selected="true"] { background: var(--navy); color: #fff; box-shadow: inset 0 1px 0 #ffffff26, 0 6px 14px -6px #00144399; }
[role="tabpanel"]:focus-visible { outline-offset: 8px; }

/* ---------- Recycle: categories ---------- */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 20px; align-items: stretch; }
@supports not (grid-template-rows: subgrid) { .cat { display: flex; flex-direction: column; } }
.cat { position: relative; display: grid; grid-template-rows: subgrid; grid-row: span 3; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .3s, transform .3s; }
.cat:nth-child(2) .ico { background: linear-gradient(145deg, #e8f6f4, #d9f0ed); color: var(--teal-dk); }
.cat__photo { grid-row: 1; display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.cat__head { grid-row: 2; }
.cat__list { grid-row: 3; }
.cat:nth-child(3) .ico { background: linear-gradient(145deg, #e9ecf4, #dde2ee); color: var(--navy); }
.cat:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.cat__head { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 26px 26px 20px; margin: 0; border-bottom: 1px dashed var(--line); }
.cat__head small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cat__title { margin: 4px 0; font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; }
.cat__line { font-size: 14px; font-weight: 500; color: var(--muted); }
.cat__list { flex: 1; display: grid; align-content: start; gap: 9px; margin: 0; padding: 18px 24px 24px; list-style: none; }
.cat__list li { position: relative; padding-left: 20px; font-size: 15px; }
.cat__list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.accept { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; margin-top: 32px; padding: 24px 30px; border-radius: var(--r-lg); background: linear-gradient(120deg, #e9f6f4, #eef3fb); border: 1px solid #088b8026; }
.accept p { max-width: 60ch; }

/* ---------- Recycle: stepper ---------- */
.stepper__nav { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.stepper__nav [role="tab"] {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--muted); box-shadow: var(--shadow-sm);
  font-weight: 700; font-size: 15px; text-align: left; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.stepper__nav [role="tab"] span { font-size: 12px; letter-spacing: .12em; color: var(--steel); }
.stepper__nav [role="tab"]:hover { border-color: var(--blue); color: var(--blue); }
.stepper__nav [role="tab"][aria-selected="true"] { background: var(--glow), var(--navy); border-color: var(--navy); color: #fff; box-shadow: var(--shadow); }
.stepper__nav [role="tab"][aria-selected="true"] span { color: var(--teal-lt); }
.stepper__track { height: 3px; margin: 14px 0 20px; border-radius: 3px; background: var(--line); }
.stepper__track span { display: block; width: 16.67%; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--teal), var(--blue)); transition: width .4s; }
.stepper__stage { touch-action: pan-y; }
.stage { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(20px, 3vw, 36px); border-radius: var(--r-lg); background: var(--pale); border: 1px solid var(--line); }
.stage + .stage { margin-top: 16px; }
.stage img { width: 100%; border-radius: 14px; }
.stage__n { font-family: var(--serif); font-style: italic; font-size: clamp(3.5rem, 7vw, 6rem); font-weight: 400; line-height: .9; color: #0049b033; letter-spacing: -.02em; }
.stage h3 { margin: 6px 0 12px; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.stage p { color: var(--muted); font-size: 1.05rem; max-width: 40ch; }
.stage .link { margin-top: 14px; }
.stepper__ctl { display: none; align-items: center; margin-top: 16px; }
.callout { margin: 0 auto 0 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--teal); font-size: clamp(1.05rem, 1.8vw, 1.35rem); font-weight: 800; letter-spacing: -.02em; }
/* With JS, the whole "How it works" view fits one screen below the header:
   the stage takes whatever height is left and the illustration scales to it. */
.js .stepper { display: flex; flex-direction: column; height: calc(100svh - var(--hdr) - 150px); min-height: 460px; max-height: 820px; }
.js .stepper__stage { flex: 1; min-height: 0; display: grid; }
.js .stage { min-height: 0; height: 100%; animation: rise .4s both; }
.js .stage + .stage { margin-top: 0; }
.js .stage img { width: 100%; height: 100%; max-height: 100%; min-height: 0; object-fit: contain; }
.js .stepper__ctl { display: flex; }
.js .stepper__stage { position: relative; }
.js .stepper__arrows { position: absolute; right: 16px; bottom: 16px; z-index: 1; display: flex; gap: 8px; }
.stepper__arrows { display: none; }
.stepper__arrows .round { box-shadow: 0 6px 16px #00144314; }
/* ---------- Materials ---------- */
.whoami { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; max-width: 900px; margin: 0 auto 40px; }
.whoami b { flex-basis: 100%; margin-bottom: 6px; text-align: center; font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 800; letter-spacing: -.02em; }
.whoami .chipbtn { padding: 11px 20px; font-size: 15.5px; }
.chipbtn {
  padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); box-shadow: var(--shadow-sm);
  font-weight: 600; font-size: 14px; cursor: pointer; transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.chipbtn:hover { border-color: var(--blue); color: var(--blue); }
.chipbtn[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: inset 0 1px 0 #ffffff26, 0 6px 14px -6px #00144399; }
.mgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mcard { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; box-shadow: var(--shadow-sm); transition: opacity .3s, box-shadow .3s, border-color .3s, transform .3s; }
.mcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.mcard__media {
  display: grid; place-items: center; aspect-ratio: 16 / 8; color: var(--blue); margin: 8px 8px 0; border-radius: 22px;
  background: radial-gradient(#cfdae8 1.2px, transparent 1.6px) 0 0 / 16px 16px, linear-gradient(150deg, #f4f7fb, #e9f0f8);
}
.mcard__media .i { width: 64px; height: 64px; stroke-width: 1.3; padding: 12px; box-sizing: content-box; border-radius: 22px; background: #fff; box-shadow: 0 8px 20px #0014430d; }
.mcard:nth-child(3n+2) .mcard__media { color: var(--teal); }
.mcard__media { position: relative; overflow: hidden; }
.mcard__media .i { pointer-events: none; }
.mcard__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.mcard:hover .mcard__photo { transform: scale(1.04); }
.mcard__media:has(.mcard__photo) .i { display: none; }
.mcard:nth-child(3n+3) .mcard__media { color: var(--navy); }
.mcard__body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 20px 22px 22px; }
.mcard__body > p:not(.for) { color: var(--muted); font-size: 15px; }
.mcard .for { font-size: 13px; color: var(--muted); }
.mcard .for b { color: var(--ink); }
.mcard .link { align-self: flex-start; margin-top: auto; padding-top: 6px; }
.mgrid[data-count="2"] { grid-template-columns: repeat(2, 1fr); }
.mgrid[data-count="2"] .mcard__media { aspect-ratio: auto; height: 200px; }
.mgrid[data-count="1"] { grid-template-columns: 1fr; }
.mgrid[data-count="1"] .mcard { flex-direction: row; }
.mgrid[data-count="1"] .mcard__media { flex: 0 0 40%; aspect-ratio: auto; min-height: 260px; margin: 8px 0 8px 8px; }
.mgrid[data-count="1"] .mcard__body { justify-content: center; padding: 32px 36px; }
.mgrid[data-count="1"] .mcard h3 { font-size: 1.5rem; }
.mcard.is-shown { animation: rise .4s both; }
.badge { display: inline-block; align-self: flex-start; padding: 5px 10px; border-radius: 999px; font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 1.3; }
.badge--dev { background: #e3eefc; color: var(--blue); }
.badge--pot { background: #e1f3f1; color: var(--teal-dk); }
.mfoot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.mfoot p { max-width: 58ch; color: var(--muted); font-size: 15px; }

/* ---------- Businesses: doors ---------- */
.doors-bar { padding-top: clamp(28px, 4vw, 44px); }
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 760px; margin: 0 auto; padding: 8px; border-radius: var(--r-lg); background: var(--pale); border: 1px solid var(--line); box-shadow: inset 0 1px 3px #0014430d; }
.doors [role="tab"] {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 0; border-radius: 14px;
  background: transparent; color: var(--muted); font-weight: 800; font-size: 16px; text-align: left; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s;
}
.doors [role="tab"] .ico { background: #fff; color: var(--steel); }
.doors [role="tab"][aria-selected="true"] { background: #fff; color: var(--navy); box-shadow: var(--shadow); }
.doors [role="tab"][aria-selected="true"] .ico { background: var(--teal); color: #fff; }
.orgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.org {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%; height: 100%; padding: 16px; border: 1px solid var(--line); border-radius: 18px;
  background: #fff; color: var(--ink); font-weight: 700; font-size: 15px; line-height: 1.3; text-align: left; cursor: pointer; box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.org:hover { border-color: #0049b04d; transform: translateY(-2px); box-shadow: var(--shadow); }
.org[aria-pressed="true"] { border-color: var(--teal); box-shadow: 0 0 0 2px var(--teal); }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: flow; }
.flow li { position: relative; padding: 26px; border: 1px solid #ffffff1f; border-radius: var(--r-lg); background: linear-gradient(160deg, #ffffff12, #ffffff05); backdrop-filter: blur(6px); counter-increment: flow; }
.flow li::before { content: "0" counter(flow); position: absolute; top: 24px; right: 24px; font-size: 12px; font-weight: 800; letter-spacing: .14em; color: var(--teal-lt); }
.flow li:not(:last-child)::after { content: "→"; position: absolute; top: 50%; right: -15px; z-index: 1; width: 22px; text-align: center; color: var(--teal-lt); font-weight: 800; transform: translateY(-50%); }
.flow .ico { background: #ffffff14; color: #fff; margin-bottom: 18px; }
.flow h3 { margin-bottom: 8px; }
.flow p { font-size: 15px; }
.feature { display: grid; grid-template-columns: auto 1fr auto; gap: 20px 28px; align-items: center; margin-top: 28px; padding: 30px; border-radius: var(--r-lg); background: linear-gradient(120deg, var(--teal-dk), #0aa597); box-shadow: 0 20px 40px -20px #088b80b3; }
.feature .ico { background: #ffffff26; color: #fff; }
.section--navy .feature p { color: #e2f4f2; margin-top: 6px; max-width: 60ch; }

/* ---------- Steps (3-up) ---------- */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: s3; }
.steps3 li { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-sm); counter-increment: s3; }
.steps3 li::before { content: "0" counter(s3); position: absolute; top: 18px; right: 24px; font-family: var(--serif); font-style: italic; font-size: 2.6rem; line-height: 1; color: #0049b026; }
.steps3 .ico { margin-bottom: 8px; }
.steps3 b { font-size: 1.1rem; letter-spacing: -.01em; }
.steps3 li > span:last-child { color: var(--muted); font-size: 15px; }

/* ---------- Forms (shared enquiry form + builder) ---------- */
.form, .builder { padding: clamp(20px, 3vw, 36px); border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-lg); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.fld { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.fld--full { grid-column: 1 / -1; }
.fld label { font-size: 14px; font-weight: 700; }
.fld label i, .fld.is-req label::after { color: var(--teal); font-style: normal; }
.fld.is-req label::after { content: " *"; }
input, select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #d3dce8; border-radius: 12px;
  background: #f8fafc; color: var(--ink); font: inherit; font-size: 15px; line-height: 1.4; transition: border-color .2s, background .2s, box-shadow .2s;
}
textarea { min-height: 100px; resize: vertical; }
input[type="file"] { padding: 10px; font-size: 14px; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px #0049b01f; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #b42318; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0; padding: 6px; border: 0; border-radius: 14px; background: var(--pale); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 12px; border-radius: 10px; text-align: center; font-weight: 700; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.seg input:checked + span { background: #fff; color: var(--navy); box-shadow: var(--shadow); }
.seg input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form__status { font-size: 13px; color: var(--muted); }
.form__status.is-done { padding: 14px 16px; border-radius: 12px; background: #e1f3f1; color: var(--teal-dk); font-weight: 600; font-size: 14px; }
.form__status a { color: inherit; }
.form__aside { display: grid; gap: 16px; justify-items: start; padding: 22px; border-radius: 14px; background: var(--pale); }

/* builder */
.builder-wrap { display: grid; grid-template-columns: 1.45fr .75fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.builder__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; margin-bottom: 12px; }
.builder__count { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.builder__nda { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.builder__nda .i { width: 16px; height: 16px; color: var(--teal); }
.builder__progress { height: 4px; margin-bottom: 28px; border-radius: 4px; background: var(--line); }
.builder__progress span { display: block; width: 20%; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--teal), var(--blue)); transition: width .4s; }
.bstep { min-width: 0; margin: 0; padding: 0; border: 0; }
.bstep legend { padding: 0; margin-bottom: 6px; font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 800; letter-spacing: -.025em; }
.js .bstep:not(.is-current) { display: none; }
.bstep.is-current { animation: rise .35s both; }
.bstep > .hint { margin-top: 12px; }
.bstep .fld + .fld { margin-top: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 4px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; min-height: 0; }
.chip > span {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; font-weight: 600; font-size: 15px; cursor: pointer; box-shadow: var(--shadow-sm); transition: background .2s, color .2s, border-color .2s;
}
.chip > span:hover { border-color: var(--blue); }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip input:checked + span .badge { background: #ffffff26; color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.chips--sm { margin: 8px 0 0; gap: 8px; }
.chips--sm .chip > span { padding: 8px 14px; font-size: 14px; }
.prefs { display: grid; gap: 18px; margin-top: 18px; }
.pref > b { font-size: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; margin-top: 18px; }
.grid2 .fld + .fld { margin-top: 0; }
.summary { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; margin: 18px 0 24px; padding: 20px; border-radius: 14px; background: var(--pale); }
.summary dt { font-size: 13px; font-weight: 700; color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.next { margin-bottom: 22px; padding-left: 18px; border-left: 4px solid var(--teal); }
.next p { margin-top: 4px; color: var(--muted); }
.builder__err { color: #b42318; font-size: 14px; font-weight: 700; }
.builder__err:empty, .builder .form__status:empty { display: none; }
.builder__err, .builder .form__status { margin-top: 16px; }
.builder__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.builder__nav [hidden] { display: none; }
.builder__nav [data-b-next] { margin-left: auto; }
.builder:not(.is-ready) .builder__nav { display: none; }
.builder-aside { display: grid; gap: 18px; }
.codev { display: grid; gap: 12px; justify-items: start; padding: 28px; border-radius: var(--r-lg); background: var(--glow), var(--navy); color: #fff; box-shadow: var(--shadow-lg); }
.codev .ico { background: #ffffff1a; color: var(--teal-lt); }
.codev p { color: var(--on-navy); font-size: 15px; }
.examples { padding: 24px; border: 1px dashed #b9c7d8; border-radius: var(--r-lg); background: #fff; }
.examples__tag { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); margin-bottom: 12px; }
.examples__list { display: grid; gap: 10px; }
.example {
  display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 14px; background: var(--pale); color: var(--ink); font-size: 14px; text-align: left; cursor: pointer; transition: border-color .2s, background .2s;
}
.example:hover { border-color: var(--blue); background: #fff; }
.example .ico { width: 40px; height: 40px; border-radius: 12px; background: #fff; }
.example .ico .i { width: 20px; height: 20px; }
.example b { display: block; font-size: 15px; }
.examples .hint { margin-top: 12px; font-size: 13px; }

/* ---------- Stock photos ---------- */
.side-photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); margin-top: 28px; box-shadow: var(--shadow); }
.wide-photo { display: block; width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--r-lg); margin-top: clamp(32px, 5vw, 56px); box-shadow: var(--shadow); }
@media (max-width: 640px) { .wide-photo { aspect-ratio: 4 / 3; } }

/* ---------- Community ---------- */
.audience { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* ---------- About & Impact ---------- */
.story { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.deva { display: block; font-family: "Noto Sans Devanagari", "Kohinoor Devanagari", "Mangal", Manrope, sans-serif; font-size: clamp(4rem, 9vw, 7.5rem); font-weight: 700; line-height: 1.15;
  background: linear-gradient(120deg, var(--blue), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.story__name p { margin-top: 10px; font-size: 1.05rem; color: var(--muted); }
.story__name b { color: var(--ink); }
.story__text p + p { margin-top: 18px; color: var(--muted); font-size: 1.05rem; }
.aim { max-width: 30ch; font-size: clamp(1.7rem, 3.4vw, 2.8rem); font-weight: 800; line-height: 1.2; letter-spacing: -.03em; color: #fff !important; }
.values__list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.val {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 10px; border: 1px solid var(--line);
  border-radius: var(--r-lg); background: #fff; color: var(--ink); font-weight: 700; font-size: 15px; cursor: pointer; box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s, transform .2s;
}
.val:hover { transform: translateY(-3px); border-color: var(--blue); }
.val[aria-selected="true"] { border-color: #0049b066; box-shadow: var(--shadow); }
.val[aria-selected="true"] .ico { background: var(--blue); color: #fff; }
.values__panel { margin-top: 16px; padding: 22px 24px; border-radius: var(--r-lg); background: linear-gradient(120deg, #e9f6f4, #eef3fb); text-align: center; font-size: 1.08rem; color: var(--ink); }
.js .values__panel:not([hidden]) { animation: rise .35s both; }
.commit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.commit article { position: relative; padding: 30px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-sm); }
.commit article:nth-child(2) .ico { background: linear-gradient(145deg, #e8f6f4, #d9f0ed); color: var(--teal-dk); }
.commit article:nth-child(3) .ico { background: linear-gradient(145deg, #e9ecf4, #dde2ee); color: var(--navy); }
.commit .ico { margin-bottom: 18px; }
.commit h3 { margin-bottom: 8px; }
.commit p { color: var(--muted); font-size: 15px; }
.ledger { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; }
.ledger__item { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 30px; border: 1px solid #ffffff1f; border-radius: var(--r-lg); background: linear-gradient(160deg, #ffffff12, #ffffff05); }
.ledger__num { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.ledger__soon { padding: 7px 13px; border: 1px solid #5fd1c366; border-radius: 999px; color: var(--teal-lt); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.ledger__label { font-weight: 700; font-size: 1.05rem; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.details { display: grid; gap: 22px; margin: 28px 0 0; padding: 0; list-style: none; }
.details li { display: flex; gap: 16px; align-items: flex-start; }
.details small { display: block; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.details a { color: var(--blue); font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.details a:hover { text-decoration: underline; }
.faq { max-width: 860px; }
.faq details { margin-bottom: 10px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: #0049b04d; box-shadow: var(--shadow); }
.faq summary { position: relative; padding: 18px 56px 18px 22px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #eef3fb; transform: translateY(-50%); font-size: 20px; font-weight: 500; color: var(--blue); transition: transform .3s, background .3s, color .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--navy); color: #fff; }
.faq details p { padding: 0 22px 20px; color: var(--muted); }

/* ---------- Footer ---------- */
.ftr { position: relative; overflow: hidden; border-top: 1px solid #ffffff1a; background: var(--glow), var(--navy); color: var(--on-navy); padding: clamp(56px, 7vw, 88px) 0 calc(28px + env(safe-area-inset-bottom, 0px)); font-size: 14px; }
.ftr__lead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; margin-bottom: clamp(36px, 4vw, 52px); padding-bottom: clamp(24px, 3vw, 36px); border-bottom: 1px solid #ffffff1f; }
.ftr__big { color: #fff; font-size: clamp(1.9rem, 4vw, 3.4rem); font-weight: 800; line-height: 1; letter-spacing: -.045em; }
.ftr__copy { margin-top: 24px; padding-top: 16px; border-top: 1px solid #ffffff1f; font-size: 13px; color: var(--on-navy); }
.ftr__big em { color: var(--teal-lt); }
.ftr__top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.ftr__brand img { width: 150px; }
.ftr__brand p { margin-top: 12px; max-width: 34ch; }
.ftr__brand .ftr__tagline { margin-top: 18px; color: var(--teal-lt); font-size: 12px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; }
.ftr__h { margin-bottom: 14px; color: #fff; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.ftr__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.ftr a { color: var(--on-navy); text-decoration: none; }
.ftr a:hover { color: #fff; text-decoration: underline; }
.ftr__contact { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ftr__contact a { overflow-wrap: anywhere; }


/* ---------- Enquiry pop-up ---------- */
.dlg { width: min(680px, calc(100% - 24px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--r-lg); background: #fff; color: var(--ink); box-shadow: 0 40px 100px -20px #00144399; }
.dlg::backdrop { background: #00144399; backdrop-filter: blur(6px); }
.dlg[open] { animation: rise .3s both; }
.dlg__head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px clamp(20px, 3vw, 32px); background: #fff; border-bottom: 1px solid var(--line); }
.dlg__head h2 { font-size: 1.4rem; }
.dlg__close { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: var(--pale); color: var(--navy); font-size: 22px; line-height: 1; cursor: pointer; }
.dlg__close:hover { border-color: var(--blue); color: var(--blue); }
.dlg .form { border: 0; border-radius: 0; box-shadow: none; }

/* ---------- Floating WhatsApp button + topic menu ---------- */
.wa-fab { position: fixed; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 45; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.wa-glyph { width: 30px; height: 30px; fill: currentColor; flex-shrink: 0; }
.wa-fab__btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wa-fab__btn {
  display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; padding: 0; border-radius: 50%;
  background: #25d366; color: #fff; font-weight: 800; font-size: 15px; text-decoration: none;
  box-shadow: inset 0 1px 0 #ffffff40, 0 14px 30px -10px #128c7ecc; transition: transform .25s, box-shadow .25s, background .25s;
}
.wa-fab__btn:hover { transform: translateY(-2px); background: #1ebe5b; box-shadow: inset 0 1px 0 #ffffff40, 0 18px 36px -10px #128c7ee6; }
.wa-fab__btn::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 #25d36680; animation: wa-ping 2.6s 1.5s infinite; pointer-events: none; }
.wa-fab__btn { position: relative; }
.wa-fab__btn.is-open::before { animation: none; }
@keyframes wa-ping { 0% { box-shadow: 0 0 0 0 #25d36673; } 70%, 100% { box-shadow: 0 0 0 16px #25d36600; } }
.wa-fab__menu {
  width: min(330px, calc(100vw - 32px)); padding: 10px; border: 1px solid var(--line); border-radius: 24px; background: #fffffff7;
  backdrop-filter: blur(16px); box-shadow: var(--shadow-lg); transform-origin: bottom right; animation: wa-in .25s both;
}
@keyframes wa-in { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
.wa-fab__head { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; padding: 14px; border-radius: 16px; background: linear-gradient(135deg, #128c7e, #25d366); color: #fff; }
.wa-fab__head .wa-glyph { width: 32px; height: 32px; }
.wa-fab__head b { display: block; font-size: 15px; }
.wa-fab__head span { display: block; font-size: 13px; color: #e8fff1; }
.wa-fab__menu ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.wa-fab__menu ul a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 14px; color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; transition: background .2s; }
.wa-fab__menu ul a:hover, .wa-fab__menu ul a:focus-visible { background: #eefbf3; }
.wa-fab__menu ul a::after { content: "→"; margin-left: auto; color: #128c7e; opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s; }
.wa-fab__menu ul a:hover::after, .wa-fab__menu ul a:focus-visible::after { opacity: 1; transform: none; }
.wa-fab__menu .ico { width: 38px; height: 38px; border-radius: 12px; background: #e9f9ef; color: #128c7e; box-shadow: none; }
.wa-fab__menu .ico .i { width: 20px; height: 20px; }
.wa-fab__call { display: block; margin-top: 6px; padding: 10px; border-top: 1px solid var(--line); text-align: center; font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: none; }
.wa-fab__call:hover { color: var(--blue); }

/* ---------- Reveal on scroll ---------- */
.js .rv { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.js .rv.in { opacity: 1; transform: none; }
/* Siblings in a grid reveal one after another. */
.js .rv:nth-child(2) { transition-delay: 70ms; }
.js .rv:nth-child(3) { transition-delay: 140ms; }
.js .rv:nth-child(4) { transition-delay: 210ms; }
.js .rv:nth-child(5) { transition-delay: 280ms; }
.js .rv:nth-child(6) { transition-delay: 350ms; }

/* ---------- Pointer spotlight on cards (set up by site.js) ---------- */
.spot::before {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), #0049b014, transparent 70%);
}
.spot:hover::before { opacity: 1; }
.spot > * { position: relative; z-index: 1; }
.door[aria-selected="true"].spot::before { background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), #ffffff1c, transparent 70%); }

/* ---------- Animations ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes line-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes photo-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }

/* Paused motion: skip animations entirely (pausing would freeze fade-ins on
   their first, invisible frame) and show reveal-on-scroll content at once. */
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation: none !important; }
.motion-paused .rv { opacity: 1; transform: none; transition: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__media { aspect-ratio: 16 / 11; max-height: 460px; border-radius: 120px 24px 24px 24px; outline-offset: 6px; }
  .split, .contact, .story, .builder-wrap { grid-template-columns: 1fr; }
  .cats, .commit, .steps3, .ledger { grid-template-columns: 1fr; }
  .cats { row-gap: 0; }
  .cat + .cat { margin-top: 20px; }
  .mgrid, .mgrid[data-count] { grid-template-columns: 1fr 1fr; }
  .mgrid[data-count="1"] { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow li:not(:last-child)::after { display: none; }
  .stepper__nav { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); }
  .stepper__nav::-webkit-scrollbar { display: none; }
  .stepper__nav [role="tab"] { flex: 0 0 auto; scroll-snap-align: start; }
  .stage { grid-template-columns: 1fr; gap: 16px; }
  .js .stage { grid-template-rows: minmax(0, 1fr) auto; }
  .js .stepper { height: calc(100svh - var(--hdr) - 130px); min-height: 440px; }
  .stage { padding: 16px 16px 72px; }
  .stage__n { display: none; }
  .stage h3 { margin: 0 0 6px; font-size: 1.35rem; }
  .stage p { font-size: 15px; }
  .stage .link { margin-top: 8px; }
  .stepper__arrows .round { width: 42px; height: 42px; }
  .callout { font-size: 1rem; }
  .values__list { grid-template-columns: repeat(3, 1fr); }
  .ftr__top { grid-template-columns: 1fr 1fr; }
  .ftr__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .mgrid, .mgrid[data-count], .flow, .form, .grid2 { grid-template-columns: 1fr; }
  .mgrid[data-count="1"] .mcard { flex-direction: column; }
  .mgrid[data-count="1"] .mcard__media { aspect-ratio: 16 / 8; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .mgrid[data-count="1"] .mcard__body { padding: 20px 22px 22px; }
  .doors [role="tab"] { flex-direction: column; text-align: center; gap: 8px; font-size: 14px; padding: 12px 8px; }
  .feature { grid-template-columns: 1fr; }
  .values__list { grid-template-columns: repeat(2, 1fr); }
  .values__list .val:last-child { grid-column: 1 / -1; }
  .ftr__top { grid-template-columns: 1fr; gap: 0; }
  .ftr__top > * { margin-bottom: 36px; }
  /* On phones the copyright drops to the very end of the footer. */
  .ftr__top > :nth-child(2) { display: contents; }
  .ftr__top > :nth-child(2) .ftr__h { margin-bottom: 14px; }
  .ftr__top > :nth-child(2) .ftr__nav { margin-bottom: 36px; }
  .ftr__copy { order: 9; margin: 0; }
  .summary { grid-template-columns: 1fr; gap: 2px; }
  .summary dd { margin-bottom: 10px; }
  .builder__nav .btn, .form__actions .btn { flex: 1; }
  .wa-fab { right: calc(14px + env(safe-area-inset-right, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .wa-fab__btn { width: 56px; height: 56px; }
  .wa-glyph { width: 28px; height: 28px; }
  .tabs [role="tab"] { padding: 11px 16px; font-size: 14px; }
}
