/* ==========================================================
   SAKISPACK — Redesign v2
   Direction: white, modern, fresh. Dymapak/Bocpak energy.
   ========================================================== */

/* ---------- TOKENS ---------- */
:root {
  --white: #FFFFFF;
  --off: #F7F7F5;
  --mist: #EEEEEA;
  --line: #E6E6E1;
  --line-2: #D8D8D2;

  --ink: #0B0F14;
  --ink-2: #1C2027;
  --muted: #6B7280;
  --muted-2: #9CA3AF;

  /* Primary — evolved from the brand blue, brightened for modern */
  --navy: #0E2A47;
  --navy-deep: #0A2140;
  --indigo: #2B52E0;
  --indigo-soft: #EEF2FF;

  /* Accents */
  --gold: #C9A35A;
  --gold-soft: #F5EEDF;
  --sage: #B9C2A5;
  --sage-soft: #ECEFE1;
  --peach: #F2D4B2;

  --f-display: 'Inter Tight', 'Inter', system-ui, -apple-system, sans-serif;
  --f-sans:    'Inter', system-ui, -apple-system, sans-serif;
  --f-serif:   'Instrument Serif', 'Times New Roman', serif;
  --f-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1360px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 14px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

/* ---------- TYPE ---------- */
h1,h2,h3,h4 {
  font-family: var(--f-display);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.028em;
  margin: 0;
  text-wrap: balance;
  color: var(--ink);
}
p { margin: 0 0 1em; text-wrap: pretty; }

.display-xl { font-size: clamp(2.5rem, 6.5vw, 6.5rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.04; padding-bottom: .08em; }
.display-lg { font-size: clamp(2rem, 4.4vw, 4rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.08; padding-bottom: .08em; }
.display-md { font-size: clamp(1.6rem, 3vw, 2.7rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; padding-bottom: .06em; }
.display-sm { font-size: clamp(1.3rem, 1.9vw, 1.7rem); font-weight: 500; letter-spacing: -0.025em; line-height: 1.15; }

.serif { font-family: var(--f-serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em; line-height: 1; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--ink);
  opacity: .4;
}

.lede { font-size: clamp(1.05rem, 1.3vw, 1.25rem); line-height: 1.55; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--muted); }
.num { font-feature-settings: 'tnum'; font-variant-numeric: tabular-nums; }

.section-number {
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.04em;
}
.section-number::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  margin-right: 14px;
  vertical-align: middle;
}

/* ---------- LAYOUT ---------- */
.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); width: 100%; }
.section { padding-block: clamp(72px, 10vw, 160px); }
.section-tight { padding-block: clamp(48px, 6vw, 80px); }

.grid { display: grid; gap: var(--gutter); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.hairline { border: 0; height: 1px; background: var(--line); margin: 0; }

/* ---------- HEADER ---------- */
/* Floating centered pill nav — bar itself is transparent, only children have chrome */
.site-header {
  position: fixed;
  inset: 16px 0 auto 0;
  z-index: 100;
  padding: 0;
  pointer-events: none;
  transition: inset .3s var(--ease);
}
.site-header > * { pointer-events: auto; }
.site-header.scrolled { inset: 10px 0 auto 0; }
.site-header.on-hero { color: var(--ink); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding-inline: clamp(16px, 3vw, 32px);
  position: relative;
}
/* Center the nav absolutely so brand + cta flank it symmetrically */
.header-inner > .nav {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.brand {
  display: flex; align-items: center;
  background: rgba(255,255,255,.95);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 8px 24px -12px rgba(11,15,20,.25), 0 0 0 1px rgba(11,15,20,.06);
  color: var(--ink);
}
.brand-logo {
  height: 28px;
  width: auto;
  display: block;
}
.footer-logo {
  height: 52px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: .95;
}
.brand-word small {
  display: block;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  font-weight: 400;
  opacity: .6;
  text-transform: uppercase;
  margin-top: -2px;
}

.nav {
  display: flex; gap: 2px; align-items: center;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  padding: 6px;
  border-radius: 999px;
  box-shadow: 0 8px 24px -12px rgba(11,15,20,.25), 0 0 0 1px rgba(11,15,20,.06);
  color: var(--ink);
}
.nav a {
  font-size: 13.5px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--ink);
  transition: background .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.nav a:hover { background: var(--off); }
.nav a[aria-current="page"] {
  background: var(--navy);
  color: #fff;
}

.header-cta {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  padding: 6px 6px 6px 14px;
  border-radius: 999px;
  box-shadow: 0 8px 24px -12px rgba(11,15,20,.25), 0 0 0 1px rgba(11,15,20,.06);
  color: var(--ink);
}

.lang-switch {
  position: relative;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.lang-switch > button {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: inherit;
  border-radius: var(--radius-pill);
  opacity: .75;
  cursor: pointer;
}
.lang-switch > button:hover { opacity: 1; background: var(--off); }
.lang-menu {
  position: absolute;
  right: 0; top: calc(100% + 8px);
  background: #fff;
  color: var(--ink);
  min-width: 180px;
  padding: 8px;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,.12);
  border: 1px solid var(--line);
  display: none;
}
.lang-menu.open { display: block; }
.lang-menu a {
  display: flex; justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  letter-spacing: .12em;
}
.lang-menu a:hover { background: var(--off); }
.lang-menu a[aria-current="true"] { color: var(--indigo); }

.hamburger {
  display: none;
  width: 38px; height: 38px;
  border: 0;
  background: var(--navy);
  color: #fff;
  border-radius: 999px;
  place-items: center;
  cursor: pointer;
}
.hamburger span { display: block; width: 16px; height: 1.5px; background: currentColor; position: relative; }
.hamburger span::before, .hamburger span::after {
  content: ''; position: absolute; left: 0; width: 16px; height: 1.5px; background: currentColor;
}
.hamburger span::before { top: -5px; }
.hamburger span::after  { top:  5px; }

@media (max-width: 1100px) {
  .header-inner > .nav { display: none; }
  .hamburger { display: grid; }
  .header-cta .lang-switch, .header-cta .btn { display: none; }
  .header-cta { padding: 4px; }
}

/* mobile overlay */
.mobile-nav {
  position: fixed; inset: 0;
  background: #fff;
  color: var(--ink);
  z-index: 200;
  padding: 32px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
}
.mobile-nav.open { display: flex; }
.mobile-nav-links { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav-links a {
  font-family: var(--f-display);
  font-size: clamp(2rem, 7vw, 3.5rem);
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  letter-spacing: -0.02em;
}
.mobile-nav-close {
  align-self: flex-end;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  display: grid; place-items: center;
  font-size: 22px;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: var(--radius-pill);
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--navy); transform: translateY(-1px); }

.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: #D9B368; transform: translateY(-1px); box-shadow: 0 10px 30px -10px rgba(201,163,90,.6); }

.btn-ghost { border-color: currentColor; color: inherit; }
.btn-ghost:hover { background: rgba(255,255,255,.08); transform: translateY(-1px); }
.btn-outline { border-color: var(--line-2); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }

.arrow { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .arrow, a:hover .arrow { transform: translateX(4px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500; font-size: 14px;
  padding: 8px 0;
  position: relative;
}
.link-arrow::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor; opacity: .3;
}
.link-arrow:hover::after { opacity: 1; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  background: var(--navy-deep);
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,15,20,.2) 0%, rgba(11,15,20,.1) 40%, rgba(11,15,20,.75) 100%);
  z-index: -1;
}
.hero-inner {
  padding-block: 160px 64px;
  width: 100%;
}
.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,.2);
  margin-top: 48px;
}
@media (max-width: 700px) { .hero-meta { grid-template-columns: repeat(2, 1fr); } }
.hero-meta-item {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .18em;
  opacity: .85;
}
.hero-meta-item b {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(1.75rem, 2.8vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 4px;
  text-transform: none;
  font-style: normal;
}

/* page-header (non-hero pages) — white, not kraft */
.page-header {
  background: var(--white);
  padding-top: 140px;
  padding-bottom: clamp(60px, 9vw, 120px);
  position: relative;
  border-bottom: 1px solid var(--line);
}
.page-header-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--gutter);
  align-items: end;
}
@media (max-width: 900px) {
  .page-header-grid { grid-template-columns: 1fr; }
}

/* ---------- PRODUCT CARDS (Dymapak-style: floating product on flat color) ---------- */
.product-card {
  position: relative;
  background: var(--off);
  border-radius: var(--radius-lg);
  padding: 28px;
  aspect-ratio: 4/5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -20px rgba(11,15,20,.15);
}
.product-card img {
  margin: auto;
  max-height: 60%;
  object-fit: contain;
  transition: transform .6s var(--ease);
  filter: drop-shadow(0 20px 30px rgba(0,0,0,.08));
}
.product-card:hover img { transform: scale(1.06); }
.product-card-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
}
.product-card-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.product-card-bottom h3 { font-size: clamp(1.3rem, 1.7vw, 1.6rem); margin-bottom: 2px; font-weight: 500; }
.product-card-bottom p { font-size: 13px; color: var(--muted); margin: 0; }
.product-card .arrow-circle {
  width: 40px; height: 40px; min-width: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid; place-items: center;
  transition: all .4s var(--ease);
}
.product-card:hover .arrow-circle { background: var(--gold); color: var(--ink); }

/* color-tinted variants */
.product-card.tint-indigo { background: var(--indigo-soft); }
.product-card.tint-sage   { background: var(--sage-soft); }
.product-card.tint-gold   { background: var(--gold-soft); }
.product-card.tint-peach  { background: #FAE8D3; }
.product-card.tint-navy   { background: var(--navy); color: #fff; }
.product-card.tint-navy .product-card-top,
.product-card.tint-navy .product-card-bottom p { color: rgba(255,255,255,.6); }
.product-card.tint-navy .arrow-circle { background: #fff; color: var(--ink); }

/* ---------- FORMS ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field textarea, .field select {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: #fff;
  font-size: 15px;
  outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(11,15,20,.05);
}
.field textarea { resize: vertical; min-height: 120px; }
.checkbox {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
}
.checkbox input { margin-top: 4px; accent-color: var(--ink); }

/* ---------- NUMBERS BAND ---------- */
.numbers-band {
  background: var(--off);
  position: relative;
}
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
.numbers-grid > div {
  padding: 48px 32px;
  background: var(--white);
}
.numbers-grid .num {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.035em;
  margin-bottom: 12px;
}
.numbers-grid p {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--muted);
  margin: 0;
}
@media (max-width: 900px) {
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--navy);
  color: #fff;
  padding-top: 100px;
  padding-bottom: 32px;
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-grid h4 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 20px;
  font-weight: 500;
}
.footer-grid p, .footer-grid a { color: rgba(255,255,255,.75); font-size: 14px; line-height: 1.7; }
.footer-grid a:hover { color: var(--gold); }
.footer-brand .brand-word { color: #fff; font-size: 28px; }
.footer-brand .brand-word small { color: rgba(255,255,255,.4); }
.footer-links { display: flex; flex-direction: column; gap: 6px; }

.footer-certs {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  padding: 20px;
  background: rgba(255,255,255,.04);
  border-radius: var(--radius);
}
.footer-certs img { height: 38px; width: auto; filter: brightness(0) invert(1); opacity: .7; }
.footer-certs img:hover { opacity: 1; }

.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: all .3s var(--ease);
}
.socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.socials svg { width: 14px; height: 14px; fill: currentColor; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px;
  font-size: 12px;
  color: rgba(255,255,255,.4);
  gap: 20px;
  flex-wrap: wrap;
}
.footer-bottom-links { display: flex; gap: 24px; }

/* massive footer wordmark */
.footer-wordmark {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(5rem, 22vw, 22rem);
  line-height: .85;
  letter-spacing: -0.06em;
  color: rgba(255,255,255,.06);
  margin-top: 60px;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
}

/* ---------- CTA BAND ---------- */
.cta-band {
  background: var(--off);
  padding: clamp(60px, 8vw, 120px) 0;
  position: relative;
  overflow: hidden;
}
.cta-band-inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) { .cta-band-inner { grid-template-columns: 1fr; } }

/* ---------- UTILITY ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: all .8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: var(--off);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.chip-gold { background: var(--gold-soft); border-color: #E7D8B3; color: #7A5E1F; }
.chip-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-dot::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  display: inline-block;
}

.media-rounded { border-radius: var(--radius-lg); overflow: hidden; }

/* subtle fluting used sparingly */
.fluting-accent {
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0 5px,
    currentColor 5px 6px,
    transparent 6px 12px
  );
  opacity: .08;
}

/* pill-group tab filters */
.pill-group {
  display: inline-flex;
  padding: 4px;
  background: var(--off);
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  gap: 2px;
}
.pill-group a {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  color: var(--muted);
}
.pill-group a.active {
  background: var(--ink);
  color: #fff;
}

/* tag with dot */
.dot-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
}
.dot-tag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
