/* foil.e-v.by
   System: Swiss Editorial × product packaging
   Type: Archivo (display) + IBM Plex Sans (text) + IBM Plex Mono (specs)
   Color: paper / forest green accent / magenta product marks only
   Rhythm: 8px grid — 8 / 16 / 24 / 32 / 48 / 64 / 96
*/

:root {
  --surface: #f4f4ef;
  --surface-2: #ffffff;
  --ink: #0c1a14;
  --ink-2: #4a5a52;
  --ink-3: #87948c;
  --line: #d5d9d3;
  --line-2: #b4beb7;
  --accent: #0d3b2e;
  --accent-ink: #ffffff;
  --accent-soft: #e3efe8;
  --mark: #e91e63;
  --display: "Archivo", "Helvetica Neue", sans-serif;
  --text: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav: 64px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--text);
  background: var(--surface);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: var(--accent-ink); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(var(--wrap), calc(100% - 40px)); margin-inline: auto; }

/* Legal strip */
.legal-strip {
  background: var(--ink);
  color: rgba(255,255,255,.78);
  font-size: .75rem;
  line-height: 1.4;
  padding: 9px 16px;
  text-align: center;
}
.legal-strip strong { color: #fff; font-weight: 600; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 40;
  height: var(--nav);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px, 3vw, 32px);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.brand {
  display: flex; align-items: baseline; gap: 10px;
  font-family: var(--display); font-weight: 700; letter-spacing: -.02em;
}
.brand small {
  font-family: var(--mono); font-size: .68rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: .875rem; font-weight: 500; color: var(--ink-2);
  padding: 8px 12px; border-radius: 4px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-links .cta {
  background: var(--accent) !important; color: var(--accent-ink) !important;
  margin-left: 6px;
}
.burger {
  display: none; width: 42px; height: 42px;
  border: 1px solid var(--line); border-radius: 4px; background: var(--surface-2);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer;
}
.burger span { width: 16px; height: 1.5px; background: var(--ink); display: block; }
.mobile {
  display: none; position: fixed; inset: var(--nav) 0 0; z-index: 30;
  background: var(--surface); padding: 20px; flex-direction: column; gap: 2px;
}
.mobile.open { display: flex; }
.mobile a {
  font-family: var(--display); font-size: 1.35rem; font-weight: 650;
  padding: 14px 4px; border-bottom: 1px solid var(--line);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 20px; border-radius: 4px;
  font-family: var(--text); font-size: .9375rem; font-weight: 600;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: var(--surface-2); }
.btn-light { background: #fff; color: var(--accent); }
.btn-light:hover { background: var(--accent-soft); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: end;
  padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 9vw, 104px);
}
.kicker {
  font-family: var(--mono); font-size: .7rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.75rem, 7vw, 5.25rem);
  font-weight: 700; letter-spacing: -.045em; line-height: .94;
  text-wrap: balance; margin-bottom: 20px;
}
.hero-lead {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem); color: var(--ink-2);
  max-width: 36ch; line-height: 1.5; margin-bottom: 28px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.hero-meta {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  border-top: 1px solid var(--line); max-width: 520px;
}
.hero-meta div { padding: 16px 14px 0 0; }
.hero-meta dt {
  font-family: var(--mono); font-size: .65rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px;
}
.hero-meta dd {
  font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: -.02em;
}
/* Hero trio — fanned product stack */
.hero-stage {
  position: relative;
  min-height: clamp(360px, 52vw, 520px);
  margin-bottom: 8px;
}
.hero-shot {
  position: absolute;
  width: min(58%, 280px);
  background: var(--surface-2);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(12, 26, 20, .12);
  overflow: hidden;
  animation: hero-float 7s var(--ease) infinite;
  transition: transform .45s var(--ease);
}
.hero-shot img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.hero-shot figcaption {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}
.hero-shot--a {
  left: 0; top: 8%;
  z-index: 1;
  transform: rotate(-7deg);
  animation-delay: 0s;
}
.hero-shot--b {
  left: 22%; top: 0;
  z-index: 3;
  width: min(62%, 300px);
  transform: rotate(1.5deg);
  animation-delay: -2.2s;
}
.hero-shot--c {
  right: 0; top: 14%;
  z-index: 2;
  transform: rotate(6deg);
  animation-delay: -4.4s;
}
.hero-stage-note {
  position: absolute;
  right: 4%;
  bottom: 2%;
  z-index: 4;
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
@keyframes hero-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}
.hero-stage:hover .hero-shot--a { transform: rotate(-9deg) translateY(-4px); }
.hero-stage:hover .hero-shot--b { transform: rotate(0deg) translateY(-8px); }
.hero-stage:hover .hero-shot--c { transform: rotate(8deg) translateY(-4px); }

/* Sections */
.section { padding: clamp(64px, 10vw, 112px) 0; }
.section-head { max-width: 620px; margin-bottom: clamp(32px, 5vw, 48px); }
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 700; letter-spacing: -.035em; line-height: 1.05;
  text-wrap: balance; margin-bottom: 14px;
}
.section-head p { color: var(--ink-2); font-size: 1.05rem; max-width: 48ch; }

/* Products — stacked editorial rows (not 3-col card grid) */
.product {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  padding: clamp(28px, 4vw, 40px) 0;
  border-top: 1px solid var(--line);
}
.product:last-child { border-bottom: 1px solid var(--line); }
.product-media {
  background: var(--surface-2); border: 1px solid var(--line); overflow: hidden;
}
.product-media img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.product-index {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .12em;
  color: var(--ink-3); margin-bottom: 12px;
}
.product h3 {
  font-family: var(--display); font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 12px;
}
.product-copy { color: var(--ink-2); font-size: .98rem; margin-bottom: 18px; max-width: 42ch; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.tag {
  font-family: var(--mono); font-size: .62rem; letter-spacing: .06em;
  text-transform: uppercase; padding: 5px 8px; border: 1px solid var(--line); color: var(--ink-2);
}
.tag.mark { background: var(--mark); border-color: var(--mark); color: #fff; }
.tag.green { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.specs {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px;
  border-top: 1px solid var(--line); padding-top: 16px;
}
.specs dt {
  font-family: var(--mono); font-size: .62rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-3);
}
.specs dd {
  font-family: var(--display); font-weight: 700; font-size: .98rem; margin-top: 4px;
}

/* Process */
.process {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; border: 1px solid var(--line); background: var(--line);
}
.process article {
  background: var(--surface-2); padding: 28px 24px;
}
.process .n {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; color: var(--ink-3);
  margin-bottom: 20px;
}
.process h3 {
  font-family: var(--display); font-size: 1.2rem; font-weight: 700;
  letter-spacing: -.02em; margin-bottom: 10px;
}
.process p { color: var(--ink-2); font-size: .92rem; }

/* Terms list */
.terms-list {
  display: grid; gap: 0; border-top: 1px solid var(--line);
}
.term {
  display: grid; grid-template-columns: 72px 1fr; gap: 20px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.term .n {
  font-family: var(--mono); font-size: .8rem; letter-spacing: .08em; color: var(--accent); padding-top: 4px;
}
.term h3 {
  font-family: var(--display); font-size: 1.15rem; font-weight: 700;
  letter-spacing: -.02em; margin-bottom: 6px;
}
.term p { color: var(--ink-2); font-size: .95rem; max-width: 56ch; }
.note { margin-top: 16px; color: var(--ink-3); font-size: .8rem; }

/* Audience marquee */
.audience {
  border-block: 1px solid var(--line);
  background: var(--surface-2);
  padding: 18px 0;
}
.audience-viewport {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.audience-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
  will-change: transform;
}
.audience:hover .audience-track { animation-play-state: paused; }
.audience-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 28px;
  padding-inline: 14px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(.95rem, 2.4vw, 1.15rem);
  letter-spacing: -.02em;
  color: var(--ink-2);
  white-space: nowrap;
}
.audience-group b { color: var(--ink); font-weight: 700; }
.audience-group .dot { color: var(--ink-3); font-weight: 400; }
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* Contact */
.contact {
  background: var(--accent); color: var(--accent-ink);
  padding: clamp(40px, 7vw, 72px);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 56px);
  align-items: center;
}
.contact .kicker { color: rgba(255,255,255,.55); }
.contact h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700; letter-spacing: -.035em; line-height: 1.05;
  margin: 0 0 14px; text-wrap: balance;
}
.contact .lead { color: rgba(255,255,255,.72); max-width: 40ch; margin-bottom: 24px; }
.channels { display: grid; gap: 8px; }
.channel {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 18px; border: 1px solid rgba(255,255,255,.18);
  transition: background .2s, border-color .2s;
}
.channel:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.35); }
.channel span {
  font-family: var(--mono); font-size: .62rem; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.5);
}
.channel strong {
  font-family: var(--display); font-size: clamp(.95rem, 2.8vw, 1.1rem);
  font-weight: 700; letter-spacing: -.02em;
  overflow-wrap: anywhere;
}

/* Legal */
.legal { padding: clamp(56px, 8vw, 88px) 0; }
.legal-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px;
  border-top: 1px solid var(--line); padding-top: 28px;
}
.legal-grid h3 {
  font-family: var(--display); font-size: 1rem; font-weight: 700;
  letter-spacing: -.02em; margin-bottom: 8px;
}
.legal-grid p, .legal-grid li { color: var(--ink-2); font-size: .875rem; line-height: 1.55; }
.legal-grid ul { list-style: none; display: grid; gap: 4px; }
.legal-grid li::before { content: "— "; color: var(--ink-3); }

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 24px clamp(16px, 3vw, 32px);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: .8rem; color: var(--ink-2);
}
.footer a:hover { color: var(--ink); }

.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.reveal.on { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 28px 0 48px;
    gap: 28px;
    align-items: start;
  }
  .hero h1 {
    font-size: clamp(2.1rem, 11vw, 2.85rem);
    line-height: .98;
  }
  .hero-lead { font-size: 1rem; margin-bottom: 20px; }
  .hero-actions { margin-bottom: 20px; }
  .hero-meta {
    max-width: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }
  .hero-meta div { padding: 14px 8px 0 0; }
  .hero-meta dd { font-size: .92rem; }

  /* Mobile: clean 3-up strip — no fan / absolute / rotation */
  .hero-stage {
    position: relative;
    order: 0;
    min-height: 0;
    max-width: none;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 0;
  }
  .hero-shot {
    position: static;
    width: 100% !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    animation: none !important;
    box-shadow: none;
  }
  .hero-stage:hover .hero-shot--a,
  .hero-stage:hover .hero-shot--b,
  .hero-stage:hover .hero-shot--c {
    transform: none !important;
  }
  .hero-shot figcaption {
    font-size: .52rem;
    letter-spacing: .04em;
    padding: 8px 6px;
    line-height: 1.25;
  }
  .hero-stage-note { display: none; }

  .section { padding: 48px 0; }
  .section-head { margin-bottom: 24px; }
  .section-head h2 { font-size: clamp(1.55rem, 7vw, 2rem); }

  .product {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 0;
  }
  .product-media { max-width: none; }
  .product-media img { aspect-ratio: 4/5; max-height: 320px; width: 100%; object-fit: cover; }
  .specs { grid-template-columns: 1fr 1fr; }

  .process { grid-template-columns: 1fr; }
  .process article { padding: 20px 18px; }

  .contact {
    grid-template-columns: 1fr;
    padding: 28px 20px;
    gap: 20px;
  }
  .contact h2 { font-size: clamp(1.6rem, 7vw, 2.1rem); }
  .channel { padding: 14px 14px; min-height: 44px; }

  .legal { padding: 40px 0; }
  .legal-grid { grid-template-columns: 1fr; gap: 22px; }

  .audience { padding: 14px 0; }
  .audience-group { gap: 20px; font-size: .95rem; }
  .audience-track { animation-duration: 18s; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .wrap { width: min(var(--wrap), calc(100% - 28px)); }
  .legal-strip { font-size: .68rem; padding: 8px 12px; text-align: left; }
  .hero-actions { display: grid; }
  .btn { width: 100%; }
  .term { grid-template-columns: 40px 1fr; gap: 10px; padding: 18px 0; }
  .term h3 { font-size: 1.05rem; }
  .hero-meta dd { font-size: .85rem; }
  .hero-meta dt { font-size: .58rem; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-shot { animation: none !important; }
  .audience-track {
    animation: marquee 60s linear infinite !important;
  }
}
