/* ==========================================================================
   Innomatic — Innoseal International
   Palette:  ink #191512 · paper #F7F5F1 · steel #6E7581 · red #D51E1A
             kraft #C69254 (tape + paper motif) · white panels
   Type:     Archivo (variable width — expanded for display) · IBM Plex Mono (data)
   ========================================================================== */

/* ── reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, p, dl, dd, ul, ol, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, video { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; color: inherit; }

/* ── tokens ──────────────────────────────────────────────────────────────── */
:root {
  --ink:        #191512;
  --ink-2:      #2A2420;
  --paper:      #F7F5F1;
  --paper-2:    #EFEDE7;
  --white:      #FFFFFF;
  --text-2:     #4A443E;   /* supporting sentences on light */
  --steel:      #626874;   /* small labels on light — 4.9:1 */
  --steel-2:    #B9B7AF;   /* light-on-dark only */
  --hair:       #DAD7CF;
  --hair-dark:  #3A332E;
  --red:        #D51E1A;   /* fills and rules */
  --red-deep:   #9C1512;   /* red as text on light */
  --red-light:  #F07A76;   /* red as text on dark */
  --kraft:      #C69254;   /* tape motif fills */
  --kraft-ink:  #8A5A21;   /* kraft as text on light */
  --kraft-tint: #F3E9DA;

  --gut: clamp(1.25rem, 4vw, 3.5rem);
  --sec-y: clamp(4.5rem, 9vw, 8.5rem);

  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ── base ────────────────────────────────────────────────────────────────── */
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: 78rem; margin-inline: auto; padding-inline: var(--gut); }

/* anchors clear the sticky header */
:where([id]) { scroll-margin-top: 5.75rem; }

a { color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 0.75rem 1rem;
  font-family: var(--mono); font-size: 0.75rem;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ── type roles ──────────────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--mono); font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel);
  display: flex; align-items: center; gap: 0.75rem;
}
.eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--hair); max-width: 6rem; }
.eyebrow--light { color: var(--steel-2); }
.eyebrow--light::after { background: var(--hair-dark); }

/* Scales more slowly than the viewport: the two-column sections narrow at 60rem,
   and an expanded 700-weight heading runs out of room before the column does. */
.h2 {
  font-family: var(--sans); font-stretch: 120%; font-weight: 700;
  font-size: clamp(1.8rem, 1rem + 2.4vw, 3rem);
  line-height: 1.02; letter-spacing: -0.022em;
  margin-top: 1.1rem;
}
.lede { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.55; color: var(--ink-2); margin-top: 1.35rem; max-width: 46ch; }
.lede--light { color: #CFC9C2; }
.body { margin-top: 1.1rem; color: var(--text-2); max-width: 52ch; }

.link { color: var(--red-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.link:hover { color: var(--red); }
.link--light { color: #F0C9C4; }
.link--light:hover { color: var(--white); }

/* ── buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  padding: 0.9rem 1.35rem; border: 1px solid transparent; border-radius: 1px;
  cursor: pointer; transition: background-color .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-deep); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--hair); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--white { background: var(--white); color: var(--ink); }
.btn--white:hover { background: var(--kraft-tint); }
.btn--wide { width: 100%; padding-block: 1.05rem; }
.btn--sm { padding: 0.7rem 1.1rem; font-size: 0.6875rem; }
.btn:active { transform: translateY(1px); }

/* ── header ──────────────────────────────────────────────────────────────── */
.bar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 241, 0.9);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--hair);
}
.bar__in {
  width: 100%; max-width: 78rem; margin-inline: auto; padding-inline: var(--gut);
  height: 4.25rem; display: flex; align-items: center; gap: 1.5rem;
}
.bar__logo { display: block; flex: none; }
.bar__logo img { height: 1.6rem; width: auto; mix-blend-mode: multiply; }
/* The Innoseal mark is a transparent PNG, so it needs no blending to lose a white box. */
.bar__logo--seal img { height: 1.75rem; mix-blend-mode: normal; }
.bar__nav { display: none; gap: 1.6rem; margin-inline: auto; }
.bar__nav a {
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.12em;
  text-transform: uppercase; text-decoration: none; color: var(--steel);
  padding-block: 0.4rem; border-bottom: 1px solid transparent;
}
.bar__nav a:hover { color: var(--ink); border-bottom-color: var(--red); }
.bar__cta { margin-left: auto; padding: 0.7rem 1.05rem; }
@media (min-width: 62rem) {
  .bar__nav { display: flex; }
  .bar__cta { margin-left: 0; }
}

/* ── hero ────────────────────────────────────────────────────────────────── */
.hero { padding-top: clamp(2.75rem, 5vw, 5rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.hero__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: start; }
@media (min-width: 60rem) {
  .hero__grid { grid-template-columns: 1.18fr 0.82fr; gap: clamp(3rem, 5vw, 5rem); }
}

/* Sized so the two written lines stay two lines at every width —
   Archivo at 122% width is wide, and "One bag closed" sets the limit. */
.hero__h1 {
  font-family: var(--sans); font-stretch: 122%; font-weight: 700;
  font-size: clamp(2.3rem, 4.5vw, 4.25rem);
  line-height: 0.94; letter-spacing: -0.03em;
  margin-top: 1.25rem;
}
.hero__h1 em { font-style: normal; color: var(--red); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* media panel */
.panel { background: var(--white); border: 1px solid var(--hair); padding: 0.5rem; }
.panel__video { width: 100%; height: auto; background: var(--ink); }
.panel__img { width: 100%; height: auto; background: var(--ink); }
.panel--tall { max-width: 22rem; margin-inline: auto; }
.panel__cap {
  display: flex; justify-content: space-between; gap: 1rem;
  font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--steel); padding: 0.6rem 0.25rem 0.15rem;
}
.panel__cap-r { color: var(--red-deep); }

/* pallet: copy beside the stacked-pallet render */
.pallet__grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 60rem) { .pallet__grid { grid-template-columns: 1.15fr 0.85fr; } }

/* stat rail */
.rail {
  margin-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--hair);
  display: grid; grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 55rem) { .rail { grid-template-columns: repeat(4, 1fr); } }
.rail__cell { padding: 1.5rem 1.25rem 1.75rem 0; border-bottom: 1px solid var(--hair); }
@media (min-width: 55rem) { .rail__cell { border-bottom: 0; } }
.rail__cell + .rail__cell { border-left: 1px solid var(--hair); padding-left: 1.25rem; }
@media (max-width: 54.99rem) {
  .rail__cell:nth-child(odd) + .rail__cell { border-left: 1px solid var(--hair); }
  .rail__cell:nth-child(odd) { border-left: 0; padding-left: 0; }
}
.rail__k { font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); }
.rail__v {
  font-family: var(--mono); font-weight: 600; font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.4rem);
  line-height: 1.05; letter-spacing: -0.03em; margin-top: 0.45rem;
  display: flex; align-items: baseline; gap: 0.35rem; flex-wrap: wrap;
}
.rail__u { font-size: 0.6875rem; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel); }
.rail__d { font-size: 0.875rem; color: var(--text-2); margin-top: 0.5rem; max-width: 22ch; }

/* ── generic sections ────────────────────────────────────────────────────── */
.sec { padding-block: var(--sec-y); }
.sec--tint { background: var(--paper-2); }
.sec--kraft { background: var(--kraft-tint); }
.sec__head { max-width: 44rem; }
.sec__head--left { max-width: 34rem; }
.sec__lede { margin-top: 1.25rem; }
.sec__head .btn { margin-top: 2rem; }

/* ── dark section ────────────────────────────────────────────────────────── */
.dark { background: var(--ink); color: var(--paper); padding-block: var(--sec-y); }
.dark__grid { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 60rem) { .dark__grid { grid-template-columns: 1.15fr 0.85fr; } }
.dark .panel { background: var(--ink-2); border-color: var(--hair-dark); }
.dark .panel__cap { color: var(--steel-2); }
.dark .panel__cap-r { color: var(--red-light); }
.dark .btn--white { margin-top: 2.25rem; }

.ticks { margin-top: 1.75rem; display: grid; gap: 0.7rem; }
.ticks li { position: relative; padding-left: 1.6rem; font-size: 0.9375rem; color: #D8D2CB; }
/* The list was built for the dark closing block; this is the same list on paper. */
.ticks--ink li { color: var(--text-2); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 0.75rem; height: 1px; background: var(--red);
}

/* ── footage ─────────────────────────────────────────────────────────────── */
.films { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); margin-top: clamp(2.5rem, 5vw, 3.5rem); }
/* Two columns only when there is a second film to fill the narrow one. */
@media (min-width: 56rem) { .films:has(.film + .film) { grid-template-columns: 1.35fr 0.65fr; align-items: start; } }
.film { background: var(--white); border: 1px solid var(--hair); border-top: 3px solid var(--ink); padding: 0.5rem; }
.film__video { width: 100%; height: auto; background: var(--ink); display: block; }
/* These clips play silently. Chromium and WebKit let us take the volume control out of
   the native player entirely; site.js enforces the mute for everyone else. */
.film__video::-webkit-media-controls-mute-button,
.film__video::-webkit-media-controls-volume-slider,
.film__video::-webkit-media-controls-volume-control-container { display: none !important; }
/* The portrait film keeps its own height — capping it would letterbox the frame. */
.film--tall { max-width: 26rem; }
.film__cap { display: grid; gap: 0.3rem; padding: 0.85rem 0.35rem 0.35rem; }
.film__t { font-family: var(--sans); font-weight: 600; font-size: 0.9375rem; letter-spacing: -0.008em; }
.film__meta { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel); }

/* ── steps ───────────────────────────────────────────────────────────────── */
.steps { display: grid; gap: 1px; margin-top: clamp(2.5rem, 5vw, 3.5rem); background: var(--hair); border: 1px solid var(--hair); }
@media (min-width: 52rem) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--paper); padding: 1.75rem 1.5rem 2rem; }
.step__n {
  font-family: var(--mono); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em;
  color: var(--red); display: block;
}
.step__h { font-family: var(--sans); font-stretch: 112%; font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; margin-top: 0.85rem; }
.step__p { color: var(--text-2); font-size: 0.9375rem; margin-top: 0.6rem; }

.pair { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: clamp(2.5rem, 5vw, 3.5rem); }
@media (min-width: 52rem) { .pair { grid-template-columns: 0.85fr 1.15fr; align-items: end; } }
.shot img { width: 100%; background: var(--white); border: 1px solid var(--hair); }
.shot__cap { font-family: var(--mono); font-size: 0.6875rem; line-height: 1.5; letter-spacing: 0.04em; color: var(--steel); margin-top: 0.75rem; max-width: 34ch; }
.shot__cta { margin-top: 1.1rem; }
/* A photograph that should sit in from the full column width — the Refill pack shot
   is two boxes against black, and it overwhelms the section at full bleed. */
.shot--mid { max-width: 52rem; margin: clamp(2.5rem, 5vw, 3.5rem) auto 0; }

/* ── cost calculator ─────────────────────────────────────────────────────── */
.calc { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.calc__inputs { display: grid; gap: 1.25rem; max-width: 34rem; }
@media (min-width: 40rem) { .calc__inputs { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.5rem; }
.field__l { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel); }
.field__i {
  background: var(--white); border: 1px solid var(--hair); border-radius: 1px;
  padding: 0.8rem 0.9rem; font-family: var(--mono); font-size: 1rem; width: 100%;
}
.field__i:focus { border-color: var(--ink); outline: 2px solid var(--red); outline-offset: 1px; }
.field__i--area { font-family: var(--sans); font-size: 0.9375rem; line-height: 1.5; resize: vertical; }

.calc__out {
  margin-top: 2rem; border-top: 2px solid var(--ink);
  display: grid; grid-template-columns: 1fr;
}
@media (min-width: 52rem) { .calc__out { grid-template-columns: repeat(3, 1fr); } }
.calc__cell { padding: 1.4rem 1.25rem 1.5rem 0; border-bottom: 1px solid rgba(25,21,18,.14); }
@media (min-width: 52rem) {
  .calc__cell { border-bottom: 0; }
  .calc__cell + .calc__cell { border-left: 1px solid rgba(25,21,18,.14); padding-left: 1.5rem; }
}
.calc__k { display: block; font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); }
.calc__v {
  display: block; font-family: var(--mono); font-weight: 600;
  font-size: clamp(1.6rem, 1.2rem + 1.3vw, 2.2rem); line-height: 1.1; letter-spacing: -0.03em;
  margin-top: 0.5rem;
}
.calc__hint {
  font-family: var(--mono); font-size: 0.75rem; line-height: 1.6; color: var(--red-deep);
  border-left: 2px solid var(--red); padding-left: 0.85rem;
  margin-top: 1.75rem; max-width: 56ch;
}
.calc__note { font-family: var(--mono); font-size: 0.6875rem; line-height: 1.7; color: var(--text-2); margin-top: 1.5rem; max-width: 60ch; }

/* ── spec sheet ──────────────────────────────────────────────────────────── */
.specs__grid { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
@media (min-width: 60rem) { .specs__grid { grid-template-columns: 0.95fr 1.05fr; } }
.spec { border-top: 2px solid var(--ink); }
.spec__row { display: grid; gap: 0.25rem; padding: 1.05rem 0; border-bottom: 1px solid var(--hair); }
@media (min-width: 40rem) { .spec__row { grid-template-columns: 13rem 1fr; gap: 1.5rem; align-items: baseline; } }
.spec__k { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel); }
.spec__v { font-size: 0.9375rem; }

/* ── cards ───────────────────────────────────────────────────────────────── */
.cards { display: grid; gap: 1.5rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
@media (min-width: 52rem) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--white); border: 1px solid var(--hair); display: flex; flex-direction: column; }
.card__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 28%; }
/* The bread-rolls photo is a wide 600x280 banner. A 4:3 window over the middle would
   cut both subjects in half, so it is anchored left, onto the bag and its closure. */
.card__img--bag { object-position: 26% center; }
.card__body { padding: 1.4rem 1.35rem 1.6rem; }
.card__h { font-family: var(--sans); font-stretch: 112%; font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em; }
.card__p { color: var(--text-2); font-size: 0.9375rem; margin-top: 0.55rem; }

/* ── footprint ───────────────────────────────────────────────────────────── */
.foot__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: start; }
@media (min-width: 60rem) { .foot__grid { grid-template-columns: 1.1fr 0.9fr; } }
.badges { display: grid; gap: 1px; background: var(--hair); border: 1px solid var(--hair); }
.badge { background: var(--paper); padding: 1.1rem 1.25rem; display: grid; gap: 0.3rem; }
@media (min-width: 34rem) { .badge { grid-template-columns: 7rem 1fr; gap: 1.25rem; align-items: baseline; } }
.badge__k { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--kraft-ink); }
.badge__v { font-size: 0.9375rem; }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq__grid { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
@media (min-width: 60rem) { .faq__grid { grid-template-columns: 0.75fr 1.25fr; } }
.acc { border-top: 2px solid var(--ink); }
.acc__item { border-bottom: 1px solid var(--hair); }
.acc__q {
  list-style: none; cursor: pointer; padding: 1.15rem 2.75rem 1.15rem 0; position: relative;
  font-family: var(--sans); font-stretch: 108%; font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.008em;
}
.acc__q::-webkit-details-marker { display: none; }
.acc__q::after {
  content: ""; position: absolute; right: 0.35rem; top: calc(1.15rem + 0.8em);
  width: 0.75rem; height: 2px; background: var(--red);
}
.acc__q::before {
  content: ""; position: absolute; right: 0.6875rem; top: calc(1.15rem + 0.8em - 0.375rem);
  width: 2px; height: 0.75rem; background: var(--red);
  transition: transform .18s ease, opacity .18s ease;
}
.acc__item[open] .acc__q::before { transform: scaleY(0); opacity: 0; }
.acc__q:hover { color: var(--red-deep); }
.acc__a { padding: 0 2.75rem 1.4rem 0; }
.acc__a p { color: var(--text-2); font-size: 0.9375rem; line-height: 1.65; max-width: 62ch; }

/* ── our why ─────────────────────────────────────────────────────────────── */
/* "Our why" is a single measured column — it lost its photograph and reads better
   as a typographic block than with a product shot dropped in as filler. */
.why__solo { max-width: 44rem; }
.sig { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--kraft-ink); margin-top: 2rem; }

/* ── demo ────────────────────────────────────────────────────────────────── */
.demo { background: var(--ink); color: var(--paper); padding-block: var(--sec-y); }
.demo__grid { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
@media (min-width: 60rem) { .demo__grid { grid-template-columns: 1fr 1fr; } }
/* The sealer page's order block carries no form, so it stays one column rather than
   leaving half the row empty. */
@media (min-width: 60rem) { .demo__grid--order { grid-template-columns: minmax(0, 44rem); } }
.demo__direct { font-family: var(--mono); font-size: 0.75rem; color: var(--steel-2); margin-top: 2rem; }
.form { background: var(--ink-2); border: 1px solid var(--hair-dark); padding: clamp(1.35rem, 3vw, 2rem); display: grid; gap: 1.25rem; }
.form__row { display: grid; gap: 1.25rem; }
@media (min-width: 34rem) { .form__row { grid-template-columns: 1fr 1fr; } }
.form .field__l { color: var(--steel-2); }
.form .field__i { background: #14100E; border-color: var(--hair-dark); color: var(--paper); }
.form .field__i::placeholder { color: #6A625B; }
.form .field__i:focus { border-color: var(--red); }
.form__note { font-family: var(--mono); font-size: 0.6875rem; line-height: 1.6; color: var(--steel-2); }
.form__note.is-ok { color: #9BD3A2; }
.form__note.is-err { color: #F09A96; }

/* ── footer ──────────────────────────────────────────────────────────────── */
.ftr { background: var(--paper-2); border-top: 1px solid var(--hair); padding-top: clamp(3rem, 6vw, 4.5rem); }
.ftr__grid { display: grid; gap: 2.5rem; }
@media (min-width: 46rem) { .ftr__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.ftr__logo { height: 2.1rem; width: auto; mix-blend-mode: multiply; }
.ftr__h { font-family: var(--mono); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); }
.ftr__p { font-size: 0.9375rem; color: var(--ink-2); margin-top: 0.7rem; }
.ftr__brand .ftr__p { margin-top: 1.1rem; max-width: 28ch; }
.ftr__base {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: clamp(2.5rem, 5vw, 4rem); padding-block: 1.35rem;
  border-top: 1px solid var(--hair);
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel);
}
.ftr__base-r { color: var(--kraft-ink); }

/* ── motion ──────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
