/* ==========================================================
   PT. Yurindo Perdana — Stylesheet
   Palette: cream & sand, forest green, warm wood tone
   ========================================================== */

:root {
  --cream: #f6f1e7;
  --sand: #ece3d2;
  --sand-2: #e2d6bf;
  --paper: #fffdf8;
  --ink: #1c211d;
  --ink-2: #3d453f;
  --muted: #6d746c;
  --line: rgba(28, 33, 29, .12);

  --forest: #16261d;
  --forest-2: #20372a;
  --moss: #3f7a4c;
  --leaf: #8bc34a;
  --wood: #b5763b;
  --wood-2: #9a5f2a;
  --wood-light: #e8c79e;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 30px 60px -30px rgba(28, 33, 29, .35);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; font-family: var(--sans); color: var(--ink); background: var(--cream);
  line-height: 1.65; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3, p, dl, dd, figure, ol, ul { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.025em; line-height: 1.04; }
h3 { font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
em { font-style: italic; }

.container { width: min(1240px, 100% - 48px); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; white-space: nowrap;
  transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s, box-shadow .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.98); }
.btn svg { transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-sm { padding: 10px 18px; font-size: .88rem; }
.btn-wood { background: var(--wood); color: #fff; box-shadow: 0 12px 30px -12px rgba(181, 118, 59, .8); }
.btn-wood:hover { background: var(--wood-2); }
.btn-glass { color: #fff; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255, 255, 255, .2); }
.btn-light { background: var(--cream); color: var(--forest); }
.btn-light:hover { background: #fff; }
.btn-dark { background: var(--forest); color: #fff; }
.btn-dark:hover { background: var(--forest-2); }
.btn-outline { border-color: var(--line); background: transparent; }
.btn-outline:hover { border-color: var(--ink); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--wood-2);
}
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.eyebrow.light { color: var(--wood-light); }

/* ---------- Navbar (floating pill) ---------- */
.nav { position: fixed; top: 16px; left: 0; right: 0; z-index: 50; pointer-events: none; }
.nav-shell {
  pointer-events: auto; width: min(1240px, 100% - 32px); margin-inline: auto;
  display: flex; align-items: center; gap: 24px; padding: 10px 10px 10px 18px;
  border-radius: 999px; color: #fff;
  background: rgba(22, 38, 29, .28); border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: background .4s, box-shadow .4s, border-color .4s;
}
.nav.scrolled .nav-shell { background: rgba(22, 38, 29, .88); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5); border-color: rgba(255, 255, 255, .08); }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; line-height: 1; }
.brand img { width: 40px; height: 40px; object-fit: contain; background: var(--cream); border-radius: 50%; padding: 4px; }
.brand span { display: flex; flex-direction: column; gap: 3px; letter-spacing: -.01em; }
.brand small { font-weight: 500; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }

.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 9px 16px; border-radius: 999px; font-size: .92rem; font-weight: 500; opacity: .85; transition: background .25s, opacity .25s; }
.nav-links a:hover, .nav-links a.active { opacity: 1; background: rgba(255, 255, 255, .12); }

.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .12); place-items: center; gap: 6px; flex-direction: column; justify-content: center; align-items: center; }
.menu-btn span { width: 18px; height: 1.8px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.9px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.9px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 140px 0 40px; color: #fff; overflow: hidden; background: var(--forest);
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: heroZoom 14s var(--ease) forwards; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 24, 18, .55) 0%, rgba(14, 24, 18, .15) 35%, rgba(14, 24, 18, .85) 100%),
    linear-gradient(90deg, rgba(14, 24, 18, .7) 0%, transparent 70%);
}
.hero-inner { position: relative; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 500; opacity: .9; margin-bottom: 26px; }
.leaf { width: 10px; height: 10px; border-radius: 0 50%; background: var(--leaf); box-shadow: 0 0 0 5px rgba(139, 195, 74, .2); }
.hero h1 { font-size: clamp(2.6rem, 8.4vw, 7.4rem); max-width: 14ch; }
.hero h1 em { color: var(--wood-light); font-weight: 400; }
.hero-sub { margin-top: 28px; max-width: 560px; font-size: clamp(1.02rem, 1.4vw, 1.16rem); color: rgba(255, 255, 255, .82); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-badge {
  position: relative; margin-top: 56px; margin-left: auto; width: fit-content;
  display: flex; align-items: center; gap: 16px; padding: 12px 22px 12px 12px; border-radius: 20px;
  background: rgba(255, 253, 248, .94); color: var(--ink); box-shadow: var(--shadow);
}
.hero-badge img { width: 72px; height: auto; border-radius: 12px; background: #fff; padding: 6px; }
.hero-badge strong { display: block; font-size: 1rem; }
.hero-badge span { font-size: .85rem; color: var(--muted); }

@keyframes heroZoom { to { transform: scale(1); } }

/* ---------- Stats ---------- */
.stats { background: var(--forest); color: #fff; padding: 8px 0 72px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255, 255, 255, .14); }
.stat { padding: 36px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, .14); }
.stat strong { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1; letter-spacing: -.02em; }
.stat > span { display: block; margin-top: 10px; font-size: .9rem; color: rgba(255, 255, 255, .65); }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section-sand { background: var(--sand); }
.section h2 { font-size: clamp(2.3rem, 5vw, 4.2rem); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px 64px; margin-bottom: 56px; flex-wrap: wrap; }
.section-head > p { max-width: 420px; color: var(--muted); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.about-copy h2 { margin-bottom: 30px; }
.about-copy > p { color: var(--ink-2); font-size: 1.04rem; }
.about-copy > p + p { margin-top: 16px; }
.facts { margin-top: 40px; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.facts div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts div:nth-child(odd) { padding-right: 16px; }
.facts dt { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin-top: 4px; font-weight: 600; }

.journey { position: sticky; top: 110px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 260px 260px; gap: 16px; }
.j-card { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--sand); }
.j-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.j-card:hover img { transform: scale(1.05); }
.j1 { grid-column: 1 / -1; }
.j-card figcaption {
  position: absolute; left: 14px; bottom: 14px; display: flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 8px; border-radius: 999px; background: rgba(255, 253, 248, .92);
  backdrop-filter: blur(8px); font-weight: 600; font-size: .9rem;
}
.j-card figcaption span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--forest); color: #fff; font-size: .72rem; }

/* ---------- Products ---------- */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product {
  display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-media { aspect-ratio: 4 / 3.4; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.product:hover .product-media img { transform: scale(1.06); }
.product-body { padding: 22px 22px 26px; }
.tag { display: inline-block; margin-bottom: 12px; padding: 4px 12px; border-radius: 999px; background: var(--sand); font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--wood-2); }
.product h3 { font-size: 1.2rem; margin-bottom: 8px; }
.product p { font-size: .94rem; color: var(--muted); }
.product-cta { padding: 26px; background: var(--forest); color: #fff; border-color: transparent; justify-content: flex-start; }
.product-cta .tag { align-self: flex-start; background: rgba(255, 255, 255, .1); color: var(--wood-light); }
.product-cta h3 { font-family: var(--serif); font-weight: 500; font-size: 1.9rem; line-height: 1.1; margin: 8px 0 14px; }
.product-cta p { color: rgba(255, 255, 255, .7); }
.link-arrow { margin-top: auto; padding-top: 28px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--wood-light); }
.link-arrow svg { transition: transform .3s var(--ease); }
.product-cta:hover .link-arrow svg { transform: translate(3px, -3px); }

/* ---------- Process ----------
   Default (mobile / no JS): vertical timeline.
   .is-pinned (desktop, set by JS): section sticks to the screen and
   the cards slide sideways as the visitor scrolls down. */
.process { position: relative; padding: clamp(80px, 11vw, 140px) 0; }
.process h2 { font-size: clamp(2.3rem, 5vw, 4.2rem); }
.process-head { margin-bottom: 48px; }

.process-meter { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 6px 18px; min-width: 260px; }
.meter-count { font-family: var(--serif); font-size: 1.1rem; color: var(--muted); }
.meter-count b { font-size: 2.6rem; font-weight: 500; color: var(--ink); letter-spacing: -.02em; }
.meter-stage { justify-self: end; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--moss); transition: opacity .3s; }
.meter-bar { grid-column: 1 / -1; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.meter-bar i { display: block; height: 100%; width: 12.5%; background: linear-gradient(90deg, var(--moss), var(--wood)); border-radius: inherit; transition: width .15s linear; }

.steps {
  list-style: none; padding: 0; width: min(1240px, 100% - 48px); margin-inline: auto;
  display: grid; gap: 20px; counter-reset: step;
}
.step {
  position: relative; display: grid; grid-template-columns: 42% 1fr; overflow: hidden;
  border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line);
  transition: opacity .7s var(--ease), transform .7s var(--ease), box-shadow .5s var(--ease), border-color .5s;
}
.step-media { overflow: hidden; }
.step img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transform: scale(1.12); transition: transform .2s linear; }
.step > div { position: relative; padding: 22px 22px 26px; align-self: center; }
.step .line { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--moss); }
.step .num { display: block; font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--wood-light); margin: 6px 0 4px; transition: color .5s; }
.step h3 { margin: 6px 0 8px; font-size: 1.15rem; }
.step p { font-size: .93rem; color: var(--muted); }
.step.active { border-color: rgba(181, 118, 59, .45); box-shadow: var(--shadow); }
.step.active .num { color: var(--wood); }

/* Pinned horizontal mode */
.process.is-pinned { padding: 0; }
.process.is-pinned .process-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; padding-top: 70px;
}
.process.is-pinned .steps {
  display: flex; width: max-content; margin: 0; gap: 24px;
  padding-inline: max(24px, (100vw - 1240px) / 2); will-change: transform;
}
.process.is-pinned .step { flex: none; width: clamp(300px, 27vw, 390px); display: block; }
.process.is-pinned .step img { height: auto; }
.process.is-pinned .step .num { position: absolute; top: -52px; right: 18px; font-size: 3.6rem; color: #fff; text-shadow: 0 6px 24px rgba(0, 0, 0, .4); margin: 0; }
.process.is-pinned .step.active .num { color: #fff; }
.process.is-pinned .step:not(.lit) { opacity: .25; transform: translateY(40px) scale(.94); }
.process.is-pinned .step.active { transform: translateY(-10px); }

/* Timeline mode: reveal one by one */
.process.js-ready:not(.is-pinned) .step:not(.lit) { opacity: 0; transform: translateY(30px); }

/* ---------- Sustainability ---------- */
.green-band { background: var(--forest); color: #fff; padding: clamp(80px, 10vw, 130px) 0; position: relative; overflow: hidden; }
.green-band::before {
  content: ""; position: absolute; width: 700px; height: 700px; right: -200px; top: -250px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 195, 74, .16), transparent 65%);
}
.green-inner { position: relative; display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.green-band h2 { font-size: clamp(2.3rem, 5vw, 4.2rem); }
.lead { margin-top: 22px; font-size: 1.08rem; color: rgba(255, 255, 255, .75); max-width: 460px; }
.pillars { list-style: none; padding: 0; display: grid; gap: 16px; }
.pillars li {
  display: grid; grid-template-columns: auto 1fr; column-gap: 18px; padding: 24px;
  border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
  transition: background .3s;
}
.pillars li:hover { background: rgba(255, 255, 255, .09); }
.p-icon { grid-row: span 2; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(139, 195, 74, .15); color: var(--leaf); }
.pillars h3 { font-size: 1.1rem; }
.pillars p { color: rgba(255, 255, 255, .68); font-size: .95rem; }

/* ---------- Certificates ---------- */
.certs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cert {
  display: grid; grid-template-columns: 200px 1fr; gap: 28px; padding: 28px;
  border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line);
}
.cert-doc {
  position: relative; align-self: start; overflow: hidden; border-radius: 6px; background: #fff;
  box-shadow: 0 2px 4px rgba(28, 33, 29, .08), 0 18px 36px -18px rgba(28, 33, 29, .45);
  transform: rotate(-2deg); transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.cert-doc img { width: 100%; aspect-ratio: 1 / 1.38; object-fit: cover; object-position: top; }
.cert-doc::after {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s;
  background: rgba(22, 38, 29, .35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / 30px no-repeat;
}
.cert-doc:hover, .cert-doc:focus-visible { transform: rotate(0) translateY(-4px); }
.cert-doc:hover::after, .cert-doc:focus-visible::after { opacity: 1; }
.cert-emblem {
  align-self: start; display: grid; place-items: center; aspect-ratio: 1 / 1.38; border-radius: 6px;
  background: var(--sand); border: 1px solid var(--line);
}
.cert-emblem img { width: 62%; }
.cert h3 { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; line-height: 1.15; margin-bottom: 10px; }
.cert-body { display: flex; flex-direction: column; align-items: flex-start; }
.cert-body > p.cert-by { margin-bottom: 10px; color: var(--ink-2); font-size: .9rem; }
.cert-by strong { color: var(--ink); font-weight: 700; }
.cert-body dl { align-self: stretch; }
.cert-btn { margin-top: 20px; }
.cert-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.cert-body > p.cert-hint { margin-top: 10px; font-size: .8rem; }
.cert-body > p { color: var(--muted); font-size: .95rem; }
.cert dl { margin-top: 18px; border-top: 1px solid var(--line); }
.cert dl div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.cert dt { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.cert dd { font-weight: 600; }

/* ---------- Gallery (bento) ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 16px; }
.g-item { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--sand); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .4s; }
.g-item::after {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s;
  background: rgba(22, 38, 29, .35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / 30px no-repeat;
}
.g-item:hover img { transform: scale(1.06); }
.g-item:hover::after, .g-item:focus-visible::after { opacity: 1; }
.g-wide { grid-column: span 2; }
.g-tall { grid-row: span 2; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 20px; }
.c-card { display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.c-primary { background: var(--forest); color: #fff; border-color: transparent; }
.c-primary .btn-outline { border-color: rgba(255, 255, 255, .25); }
.c-primary .btn-outline:hover { border-color: #fff; }
.c-role { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--wood-2); }
.c-primary .c-role { color: var(--wood-light); }
.c-card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.9rem; margin: 10px 0 18px; }
.c-line { display: block; padding: 8px 0; font-weight: 500; border-bottom: 1px solid var(--line); word-break: break-word; transition: color .2s; }
.c-primary .c-line { border-color: rgba(255, 255, 255, .14); }
.c-line:hover { color: var(--wood); }
.c-primary .c-line:hover { color: var(--wood-light); }
.c-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 28px; }
.c-map { padding: 0; overflow: hidden; }
.c-map iframe { width: 100%; flex: 1; min-height: 240px; border: 0; filter: grayscale(.4) sepia(.15); }
.c-addr { padding: 20px 24px 24px; }
.c-addr p { margin-top: 6px; color: var(--ink-2); font-size: .95rem; }

/* ---------- Footer ---------- */
.footer { background: var(--forest); color: #fff; padding: 100px 0 32px; overflow: hidden; }
.footer-big { font-family: var(--serif); font-size: clamp(3rem, 10vw, 9rem); line-height: .95; letter-spacing: -.035em; }
.footer-big em { color: var(--wood-light); }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 64px; padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, .14); }
.footer-links { display: flex; gap: 6px; flex-wrap: wrap; }
.footer-links a { padding: 8px 14px; border-radius: 999px; font-size: .92rem; color: rgba(255, 255, 255, .75); transition: background .2s, color .2s; }
.footer-links a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 28px; font-size: .85rem; color: rgba(255, 255, 255, .5); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 64px 72px;
  background: rgba(10, 16, 12, .92); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  width: auto; height: auto; object-fit: contain; border-radius: 14px;
  /* Fit inside the screen minus the lightbox padding */
  max-width: calc(100vw - 144px); max-height: calc(100vh - 128px); max-height: calc(100dvh - 128px); transform: scale(.96); transition: transform .4s var(--ease); }
.lightbox.open img { transform: none; }
.lb-close, .lb-nav { position: absolute; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .1); transition: background .2s; }
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, .22); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lightbox.single .lb-nav { display: none; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

:focus-visible { outline: 2px solid var(--wood); outline-offset: 3px; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1080px) {
  .products { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr 1fr; }
  .c-map { grid-column: 1 / -1; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .certs { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav-cta { display: none; }
  .menu-btn { display: flex; margin-left: auto; }
  .nav-links {
    position: absolute; top: calc(100% + 8px); left: 16px; right: 16px;
    flex-direction: column; gap: 2px; padding: 10px; border-radius: 24px;
    background: rgba(22, 38, 29, .96); backdrop-filter: blur(18px);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s, transform .3s var(--ease), visibility .3s;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 14px 18px; font-size: 1.05rem; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat { padding-bottom: 8px; }

  .about, .green-inner { grid-template-columns: 1fr; }
  .journey { position: static; grid-template-rows: 220px 200px; }
}

@media (max-width: 600px) {
  .container { width: calc(100% - 32px); }
  .hero { padding-bottom: 28px; }
  .hero-cta .btn { flex: 1; }
  .hero-badge { margin-left: 0; margin-top: 40px; }
  .section-head { margin-bottom: 36px; }
  .products, .contact { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .facts div:nth-child(odd) { padding-right: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; gap: 10px; }
  .g-wide { grid-column: span 2; }
  .cert { grid-template-columns: 1fr; gap: 24px; padding: 22px; }
  .cert-doc, .cert-emblem { width: min(220px, 70%); justify-self: center; }
  .cert dl div { grid-template-columns: 96px 1fr; }
  .steps { width: calc(100% - 32px); gap: 16px; }
  .step { grid-template-columns: 1fr; }
  .process-meter { display: none; }
  .lightbox { padding: 64px 12px 80px; }
  .lightbox img { max-width: calc(100vw - 24px); max-height: calc(100vh - 144px); max-height: calc(100dvh - 144px); }
  .lb-prev, .lb-next { top: auto; bottom: 16px; }
  .lb-prev { left: calc(50% - 56px); }
  .lb-next { right: calc(50% - 56px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero-bg { transform: none; }
}
