/* ==========================================================================
   পল্লীর আলো — site.css
   Editorial look: Anek Bangla headings · Hind Siliguri text · Manrope numerals.
   Mobile-first. Breakpoints: 768px (tablet) · 1024px (desktop) · 1200px (wide)
   Order: 1 Tokens · 2 Base · 3 Layout · 4 Buttons · 5 Header · 6 Hero
          7 Sections · 8 Footer · 9 Action bar · 10 Lightbox · 11 Motion
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --ink: #12291f;
  --ink-2: #1b3b2d;
  --ink-rgb: 18, 41, 31;
  --green: #267a35;
  --green-bright: #2e8b3d;
  --green-tint: rgba(38, 122, 53, 0.07);
  --sun: #f2a516;
  --sun-hover: #e0950c;
  --sun-text: #f6c45e;
  --paper: #f4f6f1;
  --white: #ffffff;
  --text: #1c211e;
  --muted: #56655b;
  --line: #dce3d9;
  --line-dark: rgba(255, 255, 255, 0.14);
  --wa: #188244;
  --wa-hover: #136b37;

  --head: "Anek Bangla", "Hind Siliguri", "Noto Sans Bengali", system-ui, sans-serif;
  --body: "Hind Siliguri", "Noto Sans Bengali", "Kohinoor Bangla", "Nirmala UI", system-ui, sans-serif;
  --nums: "Manrope", "Hind Siliguri", system-ui, sans-serif;

  --wrap: 1200px;
  --gutter: 20px;
  --header-h: 60px;
  --sec: 64px;
  --head-gap: 36px;
  --overlap: 18px;
  --radius: 14px;
  --radius-sm: 10px;
  --bar-h: 44px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast: 200ms;
  --t-mid: 280ms;
  --t-reveal: 380ms;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --header-h: 68px; --sec: 80px; --head-gap: 44px; --overlap: 48px; }
}

@media (min-width: 1024px) {
  :root { --gutter: 40px; --header-h: 76px; --sec: 104px; --head-gap: 56px; }
}

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

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

body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

[hidden] { display: none !important; }

h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.26; text-wrap: balance; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.num { font-family: var(--nums); font-feature-settings: "tnum" 1; }

:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }

.icon { width: 20px; height: 20px; flex: none; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

@media (min-width: 1024px) {
  body { font-size: 17px; }
}

/* 3. Layout ---------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left));
}

.section { padding-block: var(--sec); }
.section--paper { background: var(--paper); }

.sec-head { max-width: 760px; margin-bottom: var(--head-gap); }
.sec-head h2 { font-size: 26px; line-height: 1.28; }
.sec-head > p:not(.sec-label) { margin-top: 14px; max-width: 64ch; color: var(--muted); }
.sec-head--wide { max-width: 880px; }

.sec-label { margin-bottom: 10px; font-size: 14px; font-weight: 600; line-height: 1.4; letter-spacing: 0.02em; color: var(--green); }

@media (min-width: 768px) {
  .sec-head h2 { font-size: 34px; line-height: 1.24; }
}

@media (min-width: 1024px) {
  .sec-head h2 { font-size: clamp(36px, 3vw, 44px); line-height: 1.2; }
  .sec-head > p:not(.sec-label) { margin-top: 18px; font-size: 18px; }
}

/* 4. Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--body);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: 16px; }
.btn-primary { background: var(--sun); color: var(--ink); }
.btn-primary:hover { background: var(--sun-hover); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hover); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-2); }
.btn-outline { background: transparent; color: var(--ink); border-color: #b9c6b6; }
.btn-outline:hover { border-color: var(--ink); }

.actions { display: grid; gap: 12px; margin-top: 24px; }

@media (min-width: 480px) {
  .actions { display: flex; flex-wrap: wrap; }
}

/* 5. Header ---------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--t-mid) var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 2px 18px rgba(var(--ink-rgb), 0.08); }

.header-bar { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; margin-right: auto; }
.brand img { width: auto; height: 34px; }

.nav-desktop, .header-actions { display: none; }

.menu-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle .icon { width: 22px; height: 22px; }
.menu-toggle .icon-close,
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.nav-mobile {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 20px 32px rgba(var(--ink-rgb), 0.12);
}
.nav-mobile .wrap { padding-block: 4px 20px; }
.nav-mobile .wrap > a {
  display: flex;
  align-items: center;
  min-height: 50px;
  border-bottom: 1px solid var(--line);
  font-family: var(--head);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}
.nav-mobile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }

@media (min-width: 768px) {
  .brand img { height: 38px; }
}

@media (min-width: 1024px) {
  .brand img { height: 42px; }
  .menu-toggle, .nav-mobile { display: none; }
  .nav-desktop { display: flex; align-items: center; gap: 2px; }
  .nav-desktop a {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    color: var(--text);
    transition: color var(--t-fast) var(--ease);
  }
  .nav-desktop a:hover { color: var(--green); }
  .header-actions { display: flex; align-items: center; gap: 18px; }
  .header-tel { display: none; }
}

@media (min-width: 1200px) {
  .header-tel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    color: var(--ink);
  }
  .header-tel .icon { width: 18px; height: 18px; color: var(--green); }
}

/* 6. Hero ------------------------------------------------------------------
   The photo fills the hero at its own proportions (phone 1080×939, tablet and
   desktop 16:9) and the copy sits on the photo. On desktop the height is capped
   so the trust card is visible on the first screen.                        */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: calc(100vw * 939 / 1080);
  background: var(--ink);
  color: #fff;
}
.hero-media { position: absolute; inset: 0; z-index: -1; display: block; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(var(--ink-rgb), 0.3) 0%,
    rgba(var(--ink-rgb), 0.44) 22%,
    rgba(var(--ink-rgb), 0.68) 46%,
    rgba(var(--ink-rgb), 0.9) 72%,
    rgb(var(--ink-rgb)) 100%);
}

.hero-body { width: 100%; padding-block: 22px calc(var(--overlap) + 22px); }
.hero-copy { max-width: 680px; }

.hero-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 6px;
  font-size: clamp(12px, 3.2vw, 13px);
  font-weight: 600;
  line-height: 1.5;
  color: var(--sun-text);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}
.hero-eyebrow span { white-space: nowrap; }
.hero-eyebrow .sep { opacity: 0.7; }

.hero h1 {
  margin-top: 6px;
  font-size: clamp(33px, 9.4vw, 41px);
  font-weight: 700;
  line-height: 1.08;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.3);
}
.hero h1 .line { display: block; }

.hero-lead { margin-top: 8px; max-width: 34em; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, 0.92); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35); }

.hero .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hero .actions .btn { flex: 1 1 auto; min-height: 44px; gap: 7px; padding: 8px 12px; font-size: clamp(14.5px, 3.9vw, 16px); }
.hero .actions .icon { width: 18px; height: 18px; }
.hero .wa-long, .hero-meta { display: none; }

@media (max-width: 369px) {
  .hero .btn-primary .icon { display: none; }
}

@media (min-width: 768px) {
  .hero { min-height: 56.25vw; }
  .hero-media::after {
    background:
      linear-gradient(180deg, rgba(var(--ink-rgb), 0.2) 0, rgba(var(--ink-rgb), 0.5) 45%, rgba(var(--ink-rgb), 0.92) 100%),
      linear-gradient(90deg, rgba(var(--ink-rgb), 0.62) 0, rgba(var(--ink-rgb), 0.3) 55%, rgba(var(--ink-rgb), 0) 80%);
  }
  .hero-body { padding-block: 40px calc(var(--overlap) + 40px); }
  .hero-eyebrow { font-size: 14px; column-gap: 8px; }
  .hero-eyebrow::before { content: ""; width: 24px; height: 2px; margin-right: 4px; border-radius: 2px; background: var(--sun); }
  .hero h1 { margin-top: 12px; font-size: 54px; line-height: 1.06; }
  .hero-lead { margin-top: 14px; font-size: 17px; }
  .hero .actions { gap: 12px; margin-top: 24px; }
  .hero .actions .btn { flex: 0 0 auto; min-height: 50px; gap: 10px; padding: 10px 22px; font-size: 16.5px; }
  .hero .actions .icon { width: 20px; height: 20px; }
  .hero .wa-long { display: inline; }
  .hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; margin-top: 14px; font-size: 14.5px; }
  .hero-aud { color: rgba(255, 255, 255, 0.72); }
  .hero-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
    text-decoration-color: var(--sun);
  }
}

@media (min-width: 1024px) {
  .hero {
    align-items: center;
    min-height: max(560px, min(56.25vw, calc(100vh - var(--header-h) - 40px)));
    min-height: max(560px, min(56.25vw, calc(100svh - var(--header-h) - 40px)));
  }
  .hero-media img { object-position: 50% 55%; }
  .hero-media::after {
    background:
      linear-gradient(90deg,
        rgba(var(--ink-rgb), 0.9) 0,
        rgba(var(--ink-rgb), 0.84) calc(max(var(--gutter), (100% - var(--wrap)) / 2) + 380px),
        rgba(var(--ink-rgb), 0.52) calc(max(var(--gutter), (100% - var(--wrap)) / 2) + 720px),
        rgba(var(--ink-rgb), 0) calc(max(var(--gutter), (100% - var(--wrap)) / 2) + 1000px)),
      linear-gradient(0deg, rgba(var(--ink-rgb), 0.45) 0, rgba(var(--ink-rgb), 0) 30%);
  }
  .hero-body { padding-block: 64px calc(var(--overlap) + 64px); }
  .hero-eyebrow { font-size: 15px; }
  .hero h1 { margin-top: 16px; font-size: clamp(60px, 5.2vw, 80px); line-height: 1.04; }
  .hero-lead { margin-top: 18px; max-width: 31em; font-size: 18px; }
  .hero .actions { margin-top: 30px; }
  .hero .actions .btn { min-height: 54px; font-size: 17px; }
}

/* Phones held sideways: keep the whole hero on one screen */
@media (orientation: landscape) and (max-height: 520px) {
  :root { --overlap: 18px; }
  .hero {
    align-items: flex-end;
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100svh - var(--header-h));
  }
  .hero-media img { object-position: 50% 55%; }
  .hero-media::after {
    background:
      linear-gradient(180deg, rgba(var(--ink-rgb), 0.25) 0, rgba(var(--ink-rgb), 0.55) 45%, rgba(var(--ink-rgb), 0.92) 100%),
      linear-gradient(90deg, rgba(var(--ink-rgb), 0.6) 0, rgba(var(--ink-rgb), 0.2) 60%, rgba(var(--ink-rgb), 0) 85%);
  }
  .hero-body { padding-block: 16px calc(var(--overlap) + 16px); }
  .hero-eyebrow { font-size: 13px; }
  .hero h1 { margin-top: 6px; font-size: 36px; }
  .hero-lead { margin-top: 8px; max-width: 46em; font-size: 15px; }
  .hero .actions { gap: 10px; margin-top: 14px; }
  .hero .actions .btn { flex: 0 0 auto; min-height: 44px; padding: 8px 18px; font-size: 15.5px; }
  .hero .wa-long { display: inline; }
  .hero-meta { display: none; }
}

/* 7. Sections -------------------------------------------------------------- */

/* Trust card: overlaps the bottom edge of the hero */
.trust {
  position: relative;
  z-index: 2;
  margin-top: calc(-1 * var(--overlap));
  background: linear-gradient(180deg, transparent var(--overlap), var(--paper) var(--overlap));
}
.trust-list {
  display: grid;
  padding: 4px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(var(--ink-rgb), 0.12);
}
.trust-item { padding-block: 16px; }
.trust-item + .trust-item { border-top: 1px solid var(--line); }
.trust-item strong { display: block; font-family: var(--head); font-size: 19px; font-weight: 600; line-height: 1.35; }
.trust-item strong .num { color: var(--green-bright); font-weight: 800; }
.trust-item > span { display: block; margin-top: 2px; font-size: 14.5px; line-height: 1.5; color: var(--muted); }

@media (min-width: 768px) {
  .trust-list { grid-template-columns: repeat(3, 1fr); padding: 0 8px; }
  .trust-item { padding: 26px 24px; }
  .trust-item + .trust-item { border-top: 0; border-left: 1px solid var(--line); }
}

@media (min-width: 1024px) {
  .trust-item { padding: 30px 32px; }
  .trust-item strong { font-size: 22px; }
  .trust-item > span { font-size: 15.5px; }
}

/* Before choosing a system: question rows with an answer panel */
.q-row { display: grid; grid-template-columns: 44px 1fr; gap: 14px 8px; padding-block: 26px; border-top: 1px solid var(--line); }
.q-row:last-child { border-bottom: 1px solid var(--line); }
.q-num { padding-top: 4px; font-size: 15px; font-weight: 700; line-height: 1.4; color: var(--green); }
.q-q { font-size: 18.5px; line-height: 1.38; }
.q-a {
  grid-column: 1 / -1;
  padding: 16px 18px;
  background: var(--green-tint);
  border-left: 3px solid rgba(38, 122, 53, 0.5);
  border-radius: 0 12px 12px 0;
}
.q-label { font-size: 13px; font-weight: 600; color: var(--green); }
.q-lead { margin-top: 2px; font-size: 16px; font-weight: 600; line-height: 1.6; color: var(--text); }
.q-a > p:last-child { margin-top: 6px; font-size: 15.5px; line-height: 1.65; color: var(--muted); }

@media (min-width: 1024px) {
  .q-row { grid-template-columns: 72px 5fr 7fr; gap: 32px; align-items: start; padding-block: 36px; }
  .q-num { padding-top: 6px; font-size: 16px; }
  .q-q { font-size: 22px; }
  .q-a { grid-column: auto; padding: 22px 26px; }
  .q-lead { font-size: 17.5px; }
  .q-a > p:last-child { font-size: 16.5px; }
}

/* Solutions by need: editorial rows */
.needs { display: grid; gap: 44px; }
.need { display: grid; gap: 18px; }
.need-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
.need h3 { font-size: 23px; }
.need-body > p { margin-top: 8px; color: var(--muted); }
.need-body > .need-kit { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; color: var(--text); }
.need-kit span { font-weight: 600; color: var(--green); }

.need-pair { display: grid; gap: 28px; }
.need--small .need-img img { object-position: 50% 30%; }
.need--note { display: block; padding: 26px 24px; background: var(--paper); border-radius: 16px; }
.need--note .icon { width: 40px; height: 40px; color: var(--green); }
.need--note h3 { margin-top: 14px; font-size: 22px; }
.need--note p { margin-top: 8px; color: var(--muted); }

@media (min-width: 768px) {
  .needs { gap: 72px; }
  .need { grid-template-columns: 7fr 5fr; gap: 48px; align-items: center; }
  .need--flip { grid-template-columns: 5fr 7fr; }
  .need--flip .need-img { order: 2; }
  .need-img img { aspect-ratio: 3 / 2; }
  .need h3 { font-size: 28px; }
  .need--wide { grid-template-columns: 1fr; gap: 28px; }
  .need--wide .need-img { width: 82%; }
  .need--wide .need-img img { aspect-ratio: 16 / 8; }
  .need--wide .need-body { display: grid; grid-template-columns: 4fr 8fr; column-gap: 40px; width: 82%; }
  .need--wide .need-body h3 { grid-row: 1 / span 2; }
  .need--wide .need-body > p { grid-column: 2; margin-top: 0; }
  .need--wide .need-body > .need-kit { margin-top: 14px; }
  .need-pair { grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
  .need--small { grid-template-columns: 2fr 3fr; gap: 24px; align-items: start; }
  .need--small .need-img img { aspect-ratio: 3 / 4; }
  .need--small h3 { font-size: 24px; }
  .need--note { padding: 32px; }
}

@media (min-width: 1024px) {
  .need { gap: 72px; }
  .need h3 { font-size: 32px; }
  .need-body > p { font-size: 17.5px; }
  .need--small h3, .need--note h3 { font-size: 26px; }
}

/* Complete system (dark) */
.system { background: var(--ink); color: #fff; }
.system .sec-head > p:not(.sec-label) { color: rgba(255, 255, 255, 0.76); }

.flow { display: grid; }
.flow-step { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding-bottom: 28px; }
.flow-step:last-child { padding-bottom: 0; }
.flow-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 25px;
  top: 56px;
  bottom: 4px;
  width: 1px;
  background: linear-gradient(180deg, var(--sun), rgba(242, 165, 22, 0.25));
}
.flow-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(242, 165, 22, 0.6);
  color: var(--sun-text);
}
.flow-icon .icon { width: 24px; height: 24px; }
.flow-step h3 { padding-top: 12px; font-size: 18px; line-height: 1.38; }
.flow-step p { margin-top: 4px; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, 0.72); }

.types { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line-dark); }
.types-title { font-size: 19px; color: var(--sun-text); }
.types-list { display: grid; gap: 22px; margin-top: 20px; }
.types-list strong { display: block; font-family: var(--head); font-size: 18px; font-weight: 600; }
.types-list p { margin-top: 4px; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, 0.72); }

@media (min-width: 768px) {
  .types-list { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

@media (min-width: 1024px) {
  .flow { grid-template-columns: repeat(5, 1fr); gap: 24px; }
  .flow-step { grid-template-columns: 1fr; gap: 20px; padding-bottom: 0; }
  .flow-step:not(:last-child)::before {
    left: 80px;
    right: -16px;
    top: 33px;
    bottom: auto;
    width: auto;
    height: 1px;
    background: linear-gradient(90deg, var(--sun), rgba(242, 165, 22, 0.3));
  }
  .flow-icon { width: 66px; height: 66px; }
  .flow-icon .icon { width: 28px; height: 28px; }
  .flow-step h3 { padding-top: 0; font-size: 20px; }
  .types { margin-top: 64px; padding-top: 40px; }
}

/* Process: numbered steps */
.steps { display: grid; }
.step { position: relative; display: grid; grid-template-columns: 52px 1fr; padding-bottom: 30px; }
.step:last-child { padding-bottom: 0; }
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 34px;
  bottom: 6px;
  width: 1px;
  background: var(--line);
}
.step-num { padding-top: 3px; font-size: 16px; font-weight: 700; line-height: 1.4; color: var(--green); }
.step h3 { font-size: 19px; line-height: 1.38; }
.step p { margin-top: 6px; color: var(--muted); }

@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 32px; }
  .step { grid-template-columns: 1fr; padding-bottom: 0; }
  .step:not(:last-child)::before { left: 40px; right: -24px; top: 13px; bottom: auto; width: auto; height: 1px; }
  .step-num { padding-top: 0; font-size: 17px; }
  .step h3 { margin-top: 18px; font-size: 20px; }
  .step p { font-size: 16px; }
}

/* Why */
.why-grid { display: grid; gap: 36px; }
.why-intro h2 { font-size: 26px; line-height: 1.28; }
.why-lead { margin-top: 14px; max-width: 52ch; color: var(--muted); }
.why-photo { margin-top: 28px; }
.why-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.why-photo figcaption { margin-top: 10px; font-size: 14.5px; color: var(--muted); }

.why-list li { display: grid; grid-template-columns: 52px 1fr; padding-block: 22px; border-top: 1px solid var(--line); }
.why-list li:last-child { border-bottom: 1px solid var(--line); }
.why-num { padding-top: 4px; font-size: 15px; font-weight: 700; line-height: 1.4; color: var(--green); }
.why-list h3 { font-size: 18.5px; line-height: 1.38; }
.why-list p { margin-top: 6px; color: var(--muted); }

@media (min-width: 768px) {
  .why-intro h2 { font-size: 34px; line-height: 1.24; }
  .why-photo img { aspect-ratio: 16 / 9; object-position: 50% 30%; }
}

@media (min-width: 1024px) {
  .why-grid { grid-template-columns: 5fr 7fr; gap: 88px; align-items: start; }
  .why-intro { position: sticky; top: calc(var(--header-h) + 32px); }
  .why-intro h2 { font-size: clamp(36px, 3vw, 44px); line-height: 1.2; }
  .why-photo img { aspect-ratio: 4 / 3; }
  .why-lead { margin-top: 18px; font-size: 18px; }
  .why-list li { grid-template-columns: 72px 1fr; padding-block: 28px; }
  .why-list li:first-child { padding-top: 0; border-top: 0; }
  .why-list h3 { font-size: 21px; }
}

/* Products & services */
.svc-layout { display: grid; gap: 32px; }
.svc-photo { position: relative; overflow: hidden; border-radius: 16px; }
.svc-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.svc-photo figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 18px 14px;
  font-size: 14.5px;
  color: #fff;
  background: linear-gradient(0deg, rgba(var(--ink-rgb), 0.82), rgba(var(--ink-rgb), 0));
}
.svc-list li { padding-block: 20px; border-top: 1px solid var(--line); }
.svc-list li:last-child { border-bottom: 1px solid var(--line); }
.svc-list h3 { font-size: 19px; line-height: 1.38; }
.svc-list p { margin-top: 6px; font-size: 15.5px; color: var(--muted); }

@media (min-width: 768px) {
  .svc-photo img { aspect-ratio: 16 / 9; }
  .svc-list li { display: grid; grid-template-columns: 5fr 7fr; gap: 28px; align-items: baseline; }
  .svc-list p { margin-top: 0; }
}

@media (min-width: 1024px) {
  .svc-layout { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .svc-photo { position: sticky; top: calc(var(--header-h) + 32px); }
  .svc-photo img { aspect-ratio: 4 / 5; }
  .svc-list li { padding-block: 24px; }
  .svc-list li:first-child { padding-top: 0; border-top: 0; }
  .svc-list h3 { font-size: 22px; }
  .svc-list p { font-size: 16px; }
}

/* Real work */
.feature { display: grid; gap: 28px; }
.case-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.case-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 14px; margin-top: 28px; }
.case-row .case:last-child { grid-column: 1 / -1; }
.case-img { overflow: hidden; border-radius: var(--radius); background: var(--line); }
.case-img img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.case--lead .case-img img { aspect-ratio: 4 / 3; }
.case-row .case:last-child .case-img img { aspect-ratio: 16 / 9; }
.case-meta { padding-top: 12px; }
.case-tag { font-size: 13.5px; font-weight: 600; line-height: 1.4; color: var(--green); }
.case h3 { margin-top: 4px; font-size: 16.5px; line-height: 1.35; }
.case--lead h3 { font-size: 22px; }
.case-meta > p:not(.case-tag) { margin-top: 4px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }

@media (min-width: 768px) {
  .feature { grid-template-columns: 7fr 5fr; gap: 28px; align-items: start; }
  .case-stack { grid-template-columns: 1fr; gap: 24px; }
  .case-stack .case-img img { aspect-ratio: 16 / 10; }
  .case-row { grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 44px; }
  .case-row .case:last-child { grid-column: auto; }
  .case-row .case-img img, .case-row .case:last-child .case-img img { aspect-ratio: 4 / 3; }
  .case h3 { font-size: 19px; }
  .case--lead h3 { font-size: 24px; }
  .case-meta > p:not(.case-tag) { font-size: 15.5px; }
}

/* Gallery */
.gallery-block { margin-top: 64px; padding-top: 44px; border-top: 1px solid var(--line); }
.gallery-head { display: grid; gap: 4px; margin-bottom: 18px; }
.gallery-title { font-size: 24px; }
.gallery-note { font-size: 15px; color: var(--muted); }

.chips {
  display: flex;
  gap: 8px;
  margin: 0 calc(-1 * var(--gutter)) 20px;
  padding: 2px var(--gutter);
  overflow-x: auto;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.chip:hover { border-color: var(--green); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 132px; grid-auto-flow: dense; gap: 10px; }
.gallery .g-tall { grid-row: span 2; }
.g-item {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: var(--line);
  cursor: zoom-in;
}
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 240ms var(--ease); }
.g-item:hover img { transform: scale(1.03); }
.g-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: block;
  padding: 28px 10px 8px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
  color: #fff;
  background: linear-gradient(0deg, rgba(var(--ink-rgb), 0.85), rgba(var(--ink-rgb), 0));
}
.g-cap > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gallery-more { display: flex; justify-content: center; margin-top: 28px; }

@media (min-width: 768px) {
  .gallery-head { grid-template-columns: auto 1fr; align-items: baseline; gap: 24px; }
  .gallery-note { text-align: right; }
  .chips { flex-wrap: wrap; margin-inline: 0; padding: 0; overflow: visible; }
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 172px; gap: 14px; }
  .g-cap { padding: 36px 14px 12px; font-size: 13.5px; }
}

@media (min-width: 1024px) {
  .gallery-block { margin-top: 88px; padding-top: 56px; }
  .gallery-title { font-size: 28px; }
  .gallery { grid-auto-rows: 236px; gap: 16px; }
  .g-cap { padding: 44px 16px 14px; font-size: 14.5px; }
}

/* Story */
.story-top { display: grid; gap: 28px; }
.year { display: block; font-size: 84px; font-weight: 800; line-height: 0.9; letter-spacing: -0.02em; color: var(--green-bright); }
.year-cap { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 15px; color: var(--muted); }
.year-cap::before { content: ""; width: 24px; height: 2px; border-radius: 2px; background: var(--sun); }
.story-text h2 { font-size: 26px; line-height: 1.28; }
.story-text > p:not(.sec-label) { margin-top: 14px; color: var(--muted); max-width: 62ch; }
.story-text > .story-lead { color: var(--text); }

.story-bottom { display: grid; gap: 36px; margin-top: 44px; }
.story-pics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.story-pics img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.story-pics figcaption { margin-top: 8px; font-size: 13.5px; color: var(--muted); }

.timeline li { position: relative; padding: 0 0 26px 36px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--green-bright);
  border-radius: 50%;
  background: #fff;
}
.timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 24px;
  bottom: 4px;
  width: 2px;
  background: var(--line);
}
.timeline li.is-now::before { background: var(--green-bright); }
.tl-year { display: block; font-size: 16px; font-weight: 700; line-height: 1.4; color: var(--green); }
.timeline .is-now .tl-year { font-family: var(--head); font-size: 18px; }
.timeline p { margin-top: 4px; color: var(--muted); }

@media (min-width: 768px) {
  .story-text h2 { font-size: 34px; line-height: 1.24; }
  .year { font-size: 112px; }
  .story-bottom { grid-template-columns: 7fr 5fr; gap: 40px; align-items: center; }
}

@media (min-width: 1024px) {
  .story-top { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
  .year { font-size: clamp(120px, 11vw, 156px); }
  .story-text h2 { font-size: clamp(36px, 3vw, 44px); line-height: 1.2; }
  .story-text > p:not(.sec-label) { font-size: 18px; }
  .story-bottom { gap: 72px; margin-top: 72px; }
  .story-pics { gap: 20px; }
}

/* FAQ */
.faq-grid { display: grid; gap: 24px; }
.faq-intro h2 { font-size: 26px; line-height: 1.28; }
.faq-intro > p:not(.sec-label) { margin-top: 14px; color: var(--muted); }
.faq-intro a { color: var(--green); font-weight: 700; white-space: nowrap; text-underline-offset: 4px; }

.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q { font-size: inherit; }
.faq-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 62px;
  padding: 16px 0;
  border: 0;
  background: none;
  font-family: var(--head);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
}
.faq-btn:hover { color: var(--green); }
.faq-btn .icon { color: var(--green); transition: transform var(--t-mid) var(--ease); }
.faq-btn[aria-expanded="true"] .icon { transform: rotate(180deg); }
.faq-panel { display: grid; grid-template-rows: 1fr; }
.faq-panel > div { overflow: hidden; }
.faq-panel p { padding-bottom: 20px; color: var(--muted); max-width: 64ch; }
.faq-panel a { color: var(--green); font-weight: 600; text-underline-offset: 3px; }

.is-enhanced .faq-panel { grid-template-rows: 0fr; transition: grid-template-rows var(--t-mid) var(--ease); }
.is-enhanced .faq-panel > div { visibility: hidden; transition: visibility 0s linear var(--t-mid); }
.is-enhanced .faq-item.is-open .faq-panel { grid-template-rows: 1fr; }
.is-enhanced .faq-item.is-open .faq-panel > div { visibility: visible; transition-delay: 0s; }

@media (min-width: 768px) {
  .faq-intro h2 { font-size: 34px; line-height: 1.24; }
}

@media (min-width: 1024px) {
  .faq-grid { grid-template-columns: 4fr 8fr; gap: 88px; align-items: start; }
  .faq-intro { position: sticky; top: calc(var(--header-h) + 32px); }
  .faq-intro h2 { font-size: clamp(36px, 3vw, 44px); line-height: 1.2; }
  .faq-btn { font-size: 20px; }
  .faq-item:first-child { border-top: 0; }
  .faq-item:first-child .faq-btn { padding-top: 0; }
}

/* Final CTA */
.cta { position: relative; isolation: isolate; overflow: hidden; padding-block: 80px; background: var(--ink); color: #fff; }
.cta-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(var(--ink-rgb), 0.94) 0, rgba(var(--ink-rgb), 0.86) 55%, rgba(var(--ink-rgb), 0.7) 100%);
}
.cta-inner { max-width: 680px; }
.cta h2 { font-size: 30px; font-weight: 700; line-height: 1.2; }
.cta-inner > p { margin-top: 16px; color: rgba(255, 255, 255, 0.86); }
.cta .actions { margin-top: 28px; }

@media (min-width: 1024px) {
  .cta { padding-block: 112px; }
  .cta h2 { font-size: clamp(46px, 4vw, 58px); line-height: 1.08; }
  .cta-inner > p { font-size: 19px; }
  .cta::before { background: linear-gradient(90deg, rgba(var(--ink-rgb), 0.94) 0, rgba(var(--ink-rgb), 0.82) 50%, rgba(var(--ink-rgb), 0.4) 100%); }
}

/* Contact: 2 × 2 with dividers */
.contact .sec-head { margin-bottom: 28px; }
.contact-grid { display: grid; }
.c-block { padding-block: 24px; border-top: 1px solid var(--line); }
.contact-grid .c-block:last-child { border-bottom: 1px solid var(--line); }
.c-block h3 { display: flex; align-items: center; gap: 8px; font-family: var(--body); font-size: 15px; font-weight: 500; color: var(--muted); }
.c-block h3 .icon { width: 18px; height: 18px; color: var(--green); }
.c-main { display: block; margin-top: 8px; font-family: var(--head); font-size: 22px; font-weight: 700; line-height: 1.35; color: var(--ink); text-decoration: none; }
.c-phone { font-family: var(--nums); font-size: 25px; font-weight: 700; letter-spacing: 0.01em; }
.c-block > p:not(.c-main) { margin-top: 4px; font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.c-block > .c-en { font-size: 14px; }
.c-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 6px;
  font-weight: 600;
  color: var(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
  .contact-grid .c-block { padding: 30px 32px 30px 0; }
  .contact-grid .c-block:nth-child(even) { padding: 30px 0 30px 32px; border-left: 1px solid var(--line); }
  .contact-grid .c-block:last-child { border-bottom: 0; }
}

/* 8. Footer (dark) --------------------------------------------------------- */
.site-footer {
  padding-block: 56px calc(28px + var(--bar-h) + env(safe-area-inset-bottom));
  background: var(--ink);
  color: rgba(255, 255, 255, 0.76);
  font-size: 15.5px;
}
.footer-grid { display: grid; gap: 36px; }
.footer-logo { display: inline-flex; padding: 10px 14px; background: #fff; border-radius: 14px; }
.footer-logo img { width: auto; height: 40px; }
.footer-tag { margin-top: 18px; max-width: 40ch; }
.footer-addr { margin-top: 8px; font-size: 14.5px; color: rgba(255, 255, 255, 0.6); }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.footer-nav a { display: flex; align-items: center; min-height: 44px; color: rgba(255, 255, 255, 0.86); text-decoration: none; }
.footer-nav a:hover { color: #fff; }
.footer-phone { display: inline-flex; align-items: center; min-height: 44px; font-size: 22px; font-weight: 700; color: #fff; text-decoration: none; }
.footer-contact p { font-size: 14.5px; color: rgba(255, 255, 255, 0.6); }
.footer-fb { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 6px; font-weight: 600; color: #fff; text-decoration: none; }
.footer-fb .icon { width: 18px; height: 18px; color: var(--sun-text); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}
.footer-bottom a { color: #fff; font-family: var(--nums); font-weight: 700; text-decoration: none; }

@media (min-width: 768px) {
  .site-footer { padding-bottom: 32px; }
}

@media (min-width: 768px) and (max-height: 520px) and (pointer: coarse) {
  .site-footer { padding-bottom: calc(28px + var(--bar-h) + env(safe-area-inset-bottom)); }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 5fr 4fr 3fr; gap: 64px; }
}

/* 9. Phone action bar (phones only, slim and flush) ------------------------ */
.action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--ink);
  box-shadow: 0 -4px 18px rgba(var(--ink-rgb), 0.16);
  transition: transform var(--t-mid) var(--ease), visibility 0s linear 0s;
}
.action-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: calc(var(--bar-h) + env(safe-area-inset-bottom));
  padding: 0 12px env(safe-area-inset-bottom);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}
.action-bar .icon { width: 18px; height: 18px; }
.ab-call { background: var(--ink); color: #fff; }
.ab-wa { background: var(--wa); color: #fff; }
.is-enhanced .action-bar:not(.is-visible) {
  transform: translateY(110%);
  visibility: hidden;
  transition: transform var(--t-mid) var(--ease), visibility 0s linear var(--t-mid);
}

@media (min-width: 768px) {
  .action-bar { display: none; }
}

@media (min-width: 768px) and (max-height: 520px) and (pointer: coarse) {
  .action-bar { display: grid; }
}

/* 10. Lightbox ------------------------------------------------------------- */
.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(8, 22, 16, 0.97);
  color: #fff;
}
.lightbox::backdrop { background: rgba(8, 22, 16, 0.97); }
.lb-inner { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; }
.lb-top { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 20px; }
.lb-count { font-family: var(--nums); font-size: 15px; color: rgba(255, 255, 255, 0.8); }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding-inline: 8px; }
.lb-stage img { width: auto; max-width: 100%; height: auto; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lb-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.22); }
.lb-btn .icon { width: 24px; height: 24px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lb-cap { padding: 12px 20px 24px; text-align: center; font-size: 15.5px; color: rgba(255, 255, 255, 0.88); }

/* 11. Motion --------------------------------------------------------------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.hero-eyebrow, .hero h1 .line, .hero-lead, .hero .actions, .hero-meta {
  animation: rise var(--a-dur, 420ms) var(--ease) var(--a-delay, 0ms) both;
}
.hero-eyebrow { --a-delay: 60ms; }
.hero h1 .line { --a-dur: 520ms; --a-delay: 140ms; }
.hero h1 .line + .line { --a-delay: 260ms; }
.hero-lead { --a-delay: 380ms; }
.hero .actions, .hero-meta { --a-delay: 460ms; }

.is-enhanced [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--t-reveal) var(--ease), transform var(--t-reveal) var(--ease);
}
.is-enhanced [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-eyebrow, .hero h1 .line, .hero-lead, .hero .actions, .hero-meta { animation: none; }
  .is-enhanced [data-reveal] { opacity: 1; transform: none; transition: none; }
  .faq-btn .icon, .is-enhanced .faq-panel, .g-item img { transition: none; }
  .is-enhanced .action-bar, .is-enhanced .action-bar:not(.is-visible) { transition: none; }
}
