/* ============================================================
   PT. Prima Paper Indonesia — site styles
   Shared across every page. Imported with <link rel="stylesheet" href="styles.css">.
   ============================================================ */

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }

/* ---------- TOKENS ---------- */
:root {
  --cream: #efe6d3;
  --kraft: #d9c39a;
  --kraft-deep: #b89668;
  --bark: #4a3a23;
  --forest: #2f5d3a;
  --moss: #5a7a4a;
  --ink: #1a160e;
  --ph-bg: #e3d6b8;
  --ph-stripe: rgba(74,58,35,.10);
  --ph-border: rgba(74,58,35,.30);
  --ph-fg: rgba(74,58,35,.55);
  --ph-tag-bg: rgba(239,230,211,.92);
}
body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Public Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(184,150,104,.10), transparent 40%),
    radial-gradient(circle at 80% 85%, rgba(47,93,58,.06), transparent 50%);
}
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 56px; position: relative; z-index: 1; }
.mono { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow { color: var(--forest); font-weight: 500; }

/* ---------- PLACEHOLDERS (kraft-toned, monospace-labelled) ---------- */
.ph {
  position: relative;
  background-color: var(--ph-bg);
  background-image: repeating-linear-gradient(135deg, transparent 0 14px, var(--ph-stripe) 14px 15px);
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ph-fg); overflow: hidden;
}
.ph::before {
  content: ''; position: absolute; inset: 8px;
  border: 1px dashed var(--ph-border); pointer-events: none;
}
.ph span {
  background: var(--ph-tag-bg);
  padding: 4px 8px; position: relative; z-index: 1;
}
.ph .img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; z-index: 1;
}
.ph .img + span {
  /* Caption pills hidden across the whole site — photos display clean.
     To restore captions, change to: display: flex; */
  display: none;
}
.ph:hover .img + span { display: none; }
.ph .img-tint {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(135deg, rgba(74,58,35,.10), rgba(47,93,58,.06));
  mix-blend-mode: multiply;
}
[data-industry] { transition: opacity .2s ease, transform .25s ease; }
[data-industry].is-dimmed { opacity: .25; }

/* ---------- NAV ---------- */
nav.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(239,230,211,.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(74,58,35,.12);
}
nav.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-img { height: 46px; width: auto; display: block; }
.logo-text { font-family: 'Spectral', serif; font-size: 19px; font-weight: 500; letter-spacing: -.01em; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 14px; color: var(--bark);
  padding: 6px 0; position: relative;
  transition: color .15s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 100%; height: 1.5px; background: var(--forest);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav-links a:hover { color: var(--forest); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--forest); font-weight: 500; }
.nav-links a.active::after { transform: scaleX(1); }
.nav-cta {
  border: 1px solid var(--bark);
  padding: 10px 18px; border-radius: 999px;
  font-size: 13px;
  transition: background .2s, color .2s;
}
.nav-cta:hover { background: var(--bark); color: var(--cream); }

/* ---------- PAGE HEADER (used on non-home pages) ---------- */
.page-header { padding: 100px 0 64px; }
.page-header .eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--forest); }
.page-header h1 {
  font-family: 'Spectral', serif; font-weight: 300;
  font-size: clamp(48px, 6vw, 88px);
  line-height: 1.02; letter-spacing: -.02em;
  margin-top: 20px; max-width: 900px;
}
.page-header h1 em { font-style: italic; color: var(--forest); font-weight: 400; }
.page-header .lead { margin-top: 32px; font-size: 19px; color: var(--bark); max-width: 640px; line-height: 1.5; }
.page-header .breadcrumb {
  display: flex; gap: 12px; align-items: center;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .15em;
  text-transform: uppercase; color: var(--bark);
  margin-bottom: 36px;
}
.page-header .breadcrumb a { color: var(--bark); transition: color .15s; }
.page-header .breadcrumb a:hover { color: var(--forest); }
.page-header .breadcrumb .sep { opacity: .4; }

/* ---------- HERO (home only) ---------- */
.hero { padding: 80px 0 100px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: end; }
.hero h1 {
  font-family: 'Spectral', serif; font-weight: 300;
  font-size: clamp(54px, 6vw, 96px);
  line-height: 1.02; letter-spacing: -.02em;
  color: var(--ink);
}
.hero h1 em { font-style: italic; color: var(--forest); font-weight: 400; }
.hero-sub { margin-top: 28px; font-size: 18px; color: var(--bark); max-width: 480px; line-height: 1.5; }
.hero-actions { display: flex; gap: 16px; margin-top: 36px; }
.btn-primary {
  background: var(--forest); color: var(--cream);
  padding: 14px 24px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 10px;
  transition: background .2s, transform .2s;
}
.btn-primary:hover { background: var(--ink); transform: translateY(-1px); }
.btn-primary svg { width: 14px; height: 14px; }
.btn-secondary {
  padding: 14px 24px; border-radius: 999px;
  font-size: 14px; border: 1px solid var(--bark); color: var(--bark);
  display: inline-flex; align-items: center; gap: 10px;
  transition: background .2s;
}
.btn-secondary:hover { background: rgba(74,58,35,.08); }

.hero-visual { aspect-ratio: 4 / 5; position: relative; }
.hero-visual .ph { position: absolute; inset: 0; border-radius: 4px; }
.hero-badge {
  position: absolute; top: -28px; right: -28px;
  width: 150px; height: 150px;
  border-radius: 50%; background: var(--kraft);
  display: grid; place-items: center; text-align: center;
  font-family: 'Spectral', serif; font-size: 12px; line-height: 1.35;
  color: var(--bark);
  padding: 18px;
  border: 1px solid var(--kraft-deep);
  animation: spin 50s linear infinite;
  z-index: 3;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-badge strong { display: block; font-size: 20px; font-weight: 500; color: var(--forest); letter-spacing: -.01em; }

.hero-meta {
  margin-top: 64px;
  border-top: 1px solid rgba(74,58,35,.18);
  padding-top: 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.hero-meta div .num { font-family: 'Spectral', serif; font-size: 32px; font-weight: 400; color: var(--forest); line-height: 1.1; }
.hero-meta div .lbl { font-size: 12px; color: var(--bark); margin-top: 4px; }

/* ---------- SECTION HEAD (reusable) ---------- */
.section-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 56px; gap: 64px; }
.section-head h2 {
  font-family: 'Spectral', serif; font-weight: 300;
  font-size: clamp(40px, 4vw, 60px); line-height: 1.05;
  letter-spacing: -.015em; max-width: 600px;
}
.section-head h2 em { font-style: italic; color: var(--forest); }
.section-head p { max-width: 360px; color: var(--bark); }

/* ---------- INDUSTRIES ---------- */
.industries { padding: 100px 0; border-top: 1px solid rgba(74,58,35,.12); }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter-tabs button {
  padding: 10px 18px; border-radius: 999px;
  border: 1px solid rgba(74,58,35,.25);
  font-size: 13px; color: var(--bark);
  transition: all .2s;
}
.filter-tabs button:hover { border-color: var(--forest); color: var(--forest); }
.filter-tabs button.active { background: var(--forest); color: var(--cream); border-color: var(--forest); }

.industry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.industry-card {
  background: rgba(217,195,154,.35);
  border: 1px solid rgba(74,58,35,.12);
  border-radius: 6px;
  padding: 28px;
  display: flex; flex-direction: column; gap: 18px;
  min-height: 380px;
  transition: background .2s, transform .25s, border-color .2s;
  cursor: pointer;
}
.industry-card:hover {
  background: rgba(217,195,154,.55);
  border-color: var(--forest);
  transform: translateY(-3px);
}
.industry-card .ph { aspect-ratio: 4/3; border-radius: 4px; }
.industry-card h3 { font-family: 'Spectral', serif; font-size: 24px; font-weight: 500; }
.industry-card p { font-size: 14px; color: var(--bark); line-height: 1.5; }
.industry-card .tag { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: var(--forest); }

/* ---------- PROCESS ---------- */
.process { padding: 100px 0; background: var(--bark); color: var(--cream); position: relative; overflow: hidden; }
.process::before {
  content: ''; position: absolute; inset: 0; opacity: .12; z-index: 0;
  background-image: url('https://images.unsplash.com/photo-1530989241543-5e1ddff4a169?auto=format&fit=crop&w=1800&q=70');
  background-size: cover; background-position: center;
  filter: grayscale(.5) sepia(.3);
}
.process .wrap { z-index: 1; position: relative; }
.process .section-head h2 { color: var(--cream); }
.process .section-head h2 em { color: #d4c79a; }
.process .section-head p { color: rgba(239,230,211,.7); }
.process .eyebrow { color: #d4c79a; }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(239,230,211,.15); border: 1px solid rgba(239,230,211,.15); border-radius: 6px; overflow: hidden; }
.process-step { background: var(--bark); padding: 32px 24px; min-height: 320px; display: flex; flex-direction: column; }
.process-step .step-img {
  position: relative; width: 100%; aspect-ratio: 4/3;
  margin-bottom: 20px; border-radius: 4px; overflow: hidden;
  background: rgba(239,230,211,.08);
}
.process-step .step-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.92) contrast(1.02);
}
.process-step .step-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(74,58,35,.55));
}
.process-step .num { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #d4c79a; letter-spacing: .15em; }
.process-step h4 { font-family: 'Spectral', serif; font-size: 22px; font-weight: 500; margin: 24px 0 10px; line-height: 1.15; }
.process-step p { font-size: 13px; color: rgba(239,230,211,.75); line-height: 1.55; }
.process-step .specs {
  margin-top: auto; padding-top: 20px; border-top: 1px solid rgba(239,230,211,.18);
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: #d4c79a; line-height: 1.7;
}

/* ---------- PRODUCTS ---------- */
.products { padding: 100px 0; border-top: 1px solid rgba(74,58,35,.12); }
.product-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid rgba(74,58,35,.18); }
.product-row {
  display: grid; grid-template-columns: 80px 1fr 200px 24px;
  align-items: center; gap: 24px;
  padding: 28px 12px;
  border-bottom: 1px solid rgba(74,58,35,.18);
  transition: background .2s, padding .2s;
}
.product-row:hover { background: rgba(217,195,154,.30); padding-left: 24px; }
.product-row .pnum { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--bark); }
.product-row .pname { font-family: 'Spectral', serif; font-size: 22px; font-weight: 500; }
.product-row .pname small { display: block; font-family: 'Public Sans', sans-serif; font-size: 12px; color: var(--bark); margin-top: 4px; font-weight: 400; }
.product-row .ptags { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--bark); letter-spacing: .1em; text-transform: uppercase; }
.product-row .arrow {
  width: 24px; height: 24px; display: grid; place-items: center;
  color: var(--bark); transition: transform .2s, color .2s;
}
.product-row:hover .arrow { transform: translateX(4px); color: var(--forest); }

/* ---------- CUSTOM DESIGN ---------- */
.custom { padding: 100px 0; background: var(--cream); }
.custom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.custom h2 {
  font-family: 'Spectral', serif; font-weight: 300;
  font-size: clamp(40px, 4vw, 60px); line-height: 1.05; letter-spacing: -.015em;
}
.custom h2 em { font-style: italic; color: var(--forest); }
.custom-list { margin-top: 32px; }
.custom-list li {
  display: grid; grid-template-columns: 36px 1fr;
  gap: 16px; padding: 18px 0;
  border-bottom: 1px solid rgba(74,58,35,.15);
}
.custom-list .mark {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--forest); color: var(--cream);
  display: grid; place-items: center;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
}
.custom-list strong { font-family: 'Spectral', serif; font-size: 18px; font-weight: 500; display: block; margin-bottom: 4px; }
.custom-list p { font-size: 14px; color: var(--bark); }
.custom-visual { aspect-ratio: 5/6; position: relative; }
.custom-visual .ph { position: absolute; inset: 0; border-radius: 6px; }
.custom-visual .ph.b { inset: 60px -40px -40px 60px; --ph-bg: #c2a87a; }

/* Stacked variant: two images one above the other, centered, no overlap */
.custom-visual.stacked {
  aspect-ratio: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  justify-content: center;
}
.custom-visual.stacked .ph,
.custom-visual.stacked .ph.b {
  position: relative;
  inset: auto;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 4/3;
  border-radius: 6px;
}
.custom-visual.stacked .ph.b { --ph-bg: #c2a87a; }
.custom-visual.stacked .ph .img,
.custom-visual.stacked .ph.b .img { height: 100%; width: 100%; object-fit: cover; }

/* ---------- VISION & MISSION ---------- */
.vm { padding: 100px 0; background: rgba(217,195,154,.25); border-top: 1px solid rgba(74,58,35,.12); }
.vm-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start; }
.vm-grid h2 {
  font-family: 'Spectral', serif; font-weight: 300;
  font-size: clamp(40px, 4vw, 60px); line-height: 1.05; letter-spacing: -.015em;
}
.vm-grid h2 em { font-style: italic; color: var(--forest); }
.vm-grid .lead { margin-top: 24px; color: var(--bark); font-size: 17px; max-width: 380px; }
.vm-cards { display: flex; flex-direction: column; gap: 20px; }
.vm-card {
  background: var(--cream); border: 1px solid rgba(74,58,35,.18);
  border-radius: 6px; padding: 32px;
  display: grid; grid-template-columns: 120px 1fr; gap: 32px;
  align-items: start;
}
.vm-card .label { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--forest); }
.vm-card .label small { display: block; color: var(--bark); margin-top: 4px; font-weight: 400; letter-spacing: .12em; }
.vm-card h4 {
  font-family: 'Spectral', serif; font-weight: 400; font-size: 22px; line-height: 1.3;
  color: var(--ink); margin-bottom: 12px;
}
.vm-card h4 em { color: var(--forest); font-style: italic; }
.vm-card p { font-family: 'Spectral', serif; font-style: italic; font-size: 14px; color: var(--bark); line-height: 1.5; }

/* ---------- ECO ---------- */
.eco { padding: 100px 0; background: var(--forest); color: var(--cream); position: relative; overflow: hidden; }
.eco::before {
  content: ''; position: absolute; inset: 0; opacity: .14; z-index: 0;
  background-image: url('https://images.unsplash.com/photo-1542601906990-b4d3fb778b09?auto=format&fit=crop&w=1800&q=70');
  background-size: cover; background-position: center;
  mix-blend-mode: screen;
}
.eco .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; position: relative; z-index: 1; }
.eco h2 {
  font-family: 'Spectral', serif; font-weight: 300;
  font-size: clamp(40px, 4.5vw, 64px); line-height: 1.05; letter-spacing: -.015em;
}
.eco h2 em { font-style: italic; color: #d4c79a; }
.eco p { color: rgba(239,230,211,.85); margin-top: 24px; max-width: 480px; font-size: 16px; }
.eco-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(239,230,211,.15); border: 1px solid rgba(239,230,211,.15); border-radius: 6px; overflow: hidden; }
.eco-stat { background: var(--forest); padding: 32px; }
.eco-stat .big { font-family: 'Spectral', serif; font-size: 48px; font-weight: 300; line-height: 1.05; color: #d4c79a; }
.eco-stat .big small { font-size: 14px; font-family: 'Public Sans', sans-serif; font-style: normal; color: rgba(239,230,211,.7); display: block; margin-top: 8px; letter-spacing: .02em; }

/* ---------- CONTACT ---------- */
.contact-cta { padding: 100px 0; background: var(--cream); border-top: 1px solid rgba(74,58,35,.12); }
.contact-cta .wrap { text-align: center; }
.contact-cta h2 {
  font-family: 'Spectral', serif; font-weight: 300;
  font-size: clamp(40px, 4.5vw, 64px); line-height: 1.05; letter-spacing: -.015em;
  max-width: 720px; margin: 0 auto;
}
.contact-cta h2 em { font-style: italic; color: var(--forest); }
.contact-cta .lead { margin: 24px auto 0; max-width: 560px; color: var(--bark); font-size: 17px; }
.contact-grid {
  margin-top: 64px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: rgba(74,58,35,.18); border: 1px solid rgba(74,58,35,.18); border-radius: 6px; overflow: hidden;
  text-align: left;
}
.contact-grid > div { background: var(--cream); padding: 32px; }
.contact-grid .label { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--forest); margin-bottom: 14px; }
.contact-grid .v { font-family: 'Spectral', serif; font-size: 18px; color: var(--ink); line-height: 1.4; }
.contact-grid .v a:hover { color: var(--forest); }

/* ---------- CONTACT FORM ---------- */
.contact-form {
  margin: 56px auto 0; max-width: 720px;
  background: var(--cream); border: 1px solid rgba(74,58,35,.20);
  border-radius: 8px; padding: 40px;
  text-align: left;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 8px 24px rgba(74,58,35,.06);
}
.contact-form h3 { font-family: 'Spectral', serif; font-weight: 400; font-size: 26px; margin-bottom: 24px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.contact-form .row.single { grid-template-columns: 1fr; }
.contact-form label { display: block; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: var(--bark); margin-bottom: 6px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 12px 14px;
  background: rgba(217,195,154,.20);
  border: 1px solid rgba(74,58,35,.20); border-radius: 4px;
  font: inherit; color: var(--ink);
  transition: border-color .15s, background .15s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--forest); background: var(--cream);
}
.contact-form textarea { resize: vertical; min-height: 120px; font-family: 'Public Sans', sans-serif; }
.contact-form .form-actions { margin-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.contact-form .form-actions small { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--bark); letter-spacing: .08em; }

/* ---------- FOOTER ---------- */
footer { background: var(--ink); color: rgba(239,230,211,.7); padding: 80px 0 40px; }
footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
footer h5 { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: #d4c79a; margin-bottom: 20px; }
footer .col-brand h3 { font-family: 'Spectral', serif; font-size: 28px; font-weight: 400; color: var(--cream); margin-bottom: 12px; line-height: 1.2; }
footer .col-brand p { font-size: 14px; max-width: 320px; }
footer ul li { padding: 6px 0; font-size: 14px; }
footer ul li a:hover { color: var(--cream); }
.footer-logo-card {
  display: inline-block; background: var(--cream);
  padding: 10px 14px; border-radius: 6px; margin-bottom: 20px;
}
.footer-logo-card img { height: 52px; width: auto; display: block; }
.footer-bottom {
  border-top: 1px solid rgba(239,230,211,.12);
  margin-top: 56px; padding-top: 24px;
  display: flex; justify-content: space-between; font-size: 12px;
}

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.2,.6,.2,1), transform .9s cubic-bezier(.2,.6,.2,1);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-stagger > * {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.2,.6,.2,1), transform .7s cubic-bezier(.2,.6,.2,1);
}
.reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 90ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 180ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 270ms; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 360ms; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 450ms; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
}
.counter { display: inline-block; min-width: 1.4ch; font-variant-numeric: tabular-nums; }

/* ---------- HERO-PAGE CTA CARDS ---------- */
/* ---------- HERO TAGLINE ---------- */
.hero-tagline {
  margin-top: 22px;
  font-family: 'Spectral', serif;
  font-style: italic;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.4;
  color: var(--bark);
  letter-spacing: -.005em;
  max-width: 540px;
  border-top: 1px solid rgba(74,58,35,.20);
  padding-top: 20px;
}
.hero-tagline b {
  font-family: 'Spectral', serif;
  font-style: italic;
  font-weight: 600;
  color: var(--forest);
  /* Subtle highlight so the eye picks up PRIMA from the bold letters */
  background: linear-gradient(180deg, transparent 60%, rgba(47,93,58,.14) 60%);
  padding: 0 2px;
}

/* ---------- PRIMA ACRONYM SECTION ---------- */
.tagline-section {
  padding: 100px 0;
  border-top: 1px solid rgba(74,58,35,.12);
  background: var(--cream);
  position: relative;
}
.tagline-section .section-head { margin-bottom: 32px; }
.tagline-grid {
  margin-top: 16px;
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid rgba(74,58,35,.20);
  border-bottom: 1px solid rgba(74,58,35,.20);
}
.tg-cell {
  padding: 56px 20px 48px;
  text-align: center;
  border-right: 1px solid rgba(74,58,35,.18);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  transition: background .3s ease;
  position: relative;
}
.tg-cell:last-child { border-right: 0; }
.tg-cell:hover { background: rgba(217,195,154,.30); }
.tg-cell:hover .tg-letter {
  color: var(--forest);
  transform: translateY(-6px);
}
.tg-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: .25em;
  color: var(--bark);
}
.tg-letter {
  font-family: 'Spectral', serif;
  font-weight: 300;
  font-size: clamp(96px, 11vw, 160px);
  line-height: .9;
  color: var(--ink);
  transition: color .4s ease, transform .4s ease;
  margin: 4px 0;
}
.tg-word {
  font-family: 'Spectral', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 1.8vw, 26px);
  color: var(--forest);
  letter-spacing: -.005em;
}
.tg-note {
  font-size: 13px;
  color: var(--bark);
  line-height: 1.5;
  max-width: 180px;
  margin-top: 4px;
}
.tagline-bottom {
  margin-top: 48px;
  text-align: center;
  font-family: 'Spectral', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 2vw, 28px);
  color: var(--forest);
  letter-spacing: -.005em;
  line-height: 1.4;
}
.tagline-bottom .ornament {
  display: inline-block;
  width: 32px; height: 1px;
  background: var(--forest);
  vertical-align: middle;
  margin: 0 16px;
  opacity: .5;
}

/* ---------- HOME-PAGE CTA CARDS ---------- */
.home-cta-strip { padding: 100px 0; background: rgba(217,195,154,.22); border-top: 1px solid rgba(74,58,35,.12); }
.home-cta-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.cta-card {
  background: var(--cream); border: 1px solid rgba(74,58,35,.18);
  border-radius: 8px; padding: 40px;
  display: flex; flex-direction: column; gap: 16px;
  transition: transform .25s, border-color .2s;
}
.cta-card:hover { transform: translateY(-2px); border-color: var(--forest); }
.cta-card.dark { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.cta-card.dark h3, .cta-card.dark p { color: var(--cream); }
.cta-card .eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .15em; text-transform: uppercase; }
.cta-card.dark .eyebrow { color: #d4c79a; }
.cta-card h3 { font-family: 'Spectral', serif; font-size: 32px; font-weight: 400; line-height: 1.1; letter-spacing: -.01em; }
.cta-card h3 em { font-style: italic; color: var(--forest); }
.cta-card.dark h3 em { color: #d4c79a; }
.cta-card p { color: var(--bark); font-size: 15px; line-height: 1.55; max-width: 460px; }
.cta-card.dark p { color: rgba(239,230,211,.82); }
.cta-card .cta-arrow {
  margin-top: auto; padding-top: 16px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--forest);
  display: inline-flex; align-items: center; gap: 10px;
  transition: gap .2s;
}
.cta-card:hover .cta-arrow { gap: 16px; }
.cta-card.dark .cta-arrow { color: #d4c79a; }

/* ---------- HOME-PAGE INDUSTRIES PREVIEW (5 cards in a row) ---------- */
.industries-preview { padding: 100px 0; border-top: 1px solid rgba(74,58,35,.12); }
.industries-pv-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.industries-pv-card {
  background: rgba(217,195,154,.30);
  border: 1px solid rgba(74,58,35,.12);
  border-radius: 6px; padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 260px;
  transition: background .2s, transform .25s, border-color .2s;
}
.industries-pv-card:hover { background: rgba(217,195,154,.55); border-color: var(--forest); transform: translateY(-3px); }
.industries-pv-card .ph { aspect-ratio: 1/1; border-radius: 4px; }
.industries-pv-card h4 { font-family: 'Spectral', serif; font-size: 18px; font-weight: 500; line-height: 1.2; }
.industries-pv-card .tag { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--forest); }

/* ---------- CONFIGURATOR (configure page) ---------- */
.configurator { padding: 64px 0 100px; }
.cfg-layout { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; margin-top: 32px; }
.cfg-controls { display: flex; flex-direction: column; gap: 28px; }
.cfg-step { border-top: 1px solid rgba(74,58,35,.20); padding-top: 22px; }
.cfg-step-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; }
.cfg-step-num { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .18em; color: var(--forest); }
.cfg-step h4 { font-family: 'Spectral', serif; font-size: 22px; font-weight: 500; }
.cfg-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cfg-options.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cfg-options button {
  background: rgba(239,230,211,.55); border: 1px solid rgba(74,58,35,.18);
  border-radius: 6px; padding: 14px 16px;
  text-align: left; font-family: 'Public Sans', sans-serif; font-size: 14px; font-weight: 500;
  color: var(--ink); cursor: pointer; line-height: 1.25;
  transition: background .18s, border-color .18s, color .18s, transform .15s;
}
.cfg-options button small {
  display: block; font-size: 11px; color: var(--bark); margin-top: 4px;
  font-weight: 400; letter-spacing: .02em;
}
.cfg-options button:hover { border-color: var(--forest); background: rgba(217,195,154,.45); transform: translateY(-1px); }
.cfg-options button.active { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.cfg-options button.active small { color: rgba(239,230,211,.78); }

.cfg-result {
  position: sticky; top: 96px;
  background: var(--cream); border: 1px solid rgba(74,58,35,.18); border-radius: 8px;
  padding: 28px; display: flex; flex-direction: column; gap: 22px;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 8px 24px rgba(74,58,35,.06);
}
.cfg-preview {
  aspect-ratio: 5/3;
  background: rgba(217,195,154,.45);
  border-radius: 6px; position: relative; overflow: hidden;
  display: grid; place-items: center; padding: 32px;
  --flute-stroke: 1.5px; --print-fill: #d9c39a;
}
.cfg-preview svg { width: 100%; height: 100%; color: var(--bark); }
.cfg-preview .pf { fill: var(--print-fill); transition: fill .35s ease; }
.cfg-preview .ps { stroke: currentColor; stroke-width: var(--flute-stroke); fill: none; transition: stroke-width .35s ease; }
.cfg-preview .pd { stroke: currentColor; stroke-width: 1; stroke-dasharray: 5 4; fill: none; opacity: .55; }
.cfg-preview .stripe { fill: var(--forest); opacity: .85; }
.cfg-preview-tag {
  position: absolute; top: 14px; left: 14px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .15em; text-transform: uppercase;
  color: var(--bark); background: rgba(239,230,211,.92); padding: 4px 10px; border-radius: 999px;
}
.cfg-preview-code {
  position: absolute; bottom: 14px; right: 14px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .14em;
  color: var(--forest); background: rgba(239,230,211,.92); padding: 5px 10px; border-radius: 4px;
}
.cfg-summary { display: flex; flex-direction: column; }
.cfg-summary-line {
  display: grid; grid-template-columns: 110px 1fr; gap: 12px;
  padding: 12px 0; border-top: 1px solid rgba(74,58,35,.12);
}
.cfg-summary-line:first-child { border-top: 0; padding-top: 0; }
.cfg-summary-line span { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: var(--bark); padding-top: 3px; }
.cfg-summary-line strong { font-family: 'Spectral', serif; font-size: 16px; font-weight: 500; color: var(--ink); line-height: 1.4; }
.cfg-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(74,58,35,.18); border-bottom: 1px solid rgba(74,58,35,.18);
}
.cfg-stat { padding: 18px 8px; text-align: center; border-right: 1px solid rgba(74,58,35,.12); }
.cfg-stat:last-child { border-right: 0; }
.cfg-stat-v { font-family: 'Spectral', serif; font-size: 22px; font-weight: 500; color: var(--forest); line-height: 1; }
.cfg-stat-k { font-size: 10px; color: var(--bark); margin-top: 6px; letter-spacing: .04em; line-height: 1.3; }
.cfg-cta {
  background: var(--forest); color: var(--cream);
  padding: 16px 24px; border-radius: 999px;
  font-size: 14px; font-weight: 500; text-align: center;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: background .2s, transform .2s;
}
.cfg-cta:hover { background: var(--ink); transform: translateY(-1px); }
.cfg-disclaimer { font-size: 11px; color: var(--bark); text-align: center; line-height: 1.45; }
