/* ============================================================
   Lines One — hand-built, dependency-free stylesheet
   Font: Hanken Grotesk (SIL OFL). No third-party calls.
   ============================================================ */

:root {
  --paper: #ffffff;
  --ink: #14140f;
  --ink-soft: #5c5c54;
  --line: #e6e3da;
  --stone: #efece4;          /* light section */
  --dark: #161512;           /* dark sections */
  --dark-2: #211f1a;
  --gold: #c89b3c;
  --gold-strong: #b07f23;
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 4px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { line-height: 1.05; font-weight: 800; letter-spacing: -.02em; }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 11vw, 140px); }
.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-strong);
}
.section-head { max-width: 640px; margin-bottom: clamp(36px, 6vw, 64px); }
.section-head h2 { font-size: clamp(2rem, 4.6vw, 3.25rem); margin-top: 14px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 16px 34px; font-weight: 700; letter-spacing: .02em;
  border: 1px solid transparent; border-radius: var(--radius);
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn-gold { background: var(--gold); color: #1a1303; }
.btn-gold:hover { background: var(--gold-strong); color: #fff; transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; width: 100%; }
.btn-dark:hover { background: var(--gold-strong); transform: translateY(-2px); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), color .35s var(--ease);
  color: #fff;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { font-weight: 800; font-size: 1.3rem; letter-spacing: -.01em; }
.nav { display: flex; gap: clamp(18px, 2.6vw, 40px); }
.nav a {
  font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  opacity: .85; transition: opacity .2s var(--ease), color .2s var(--ease);
}
.nav a:hover { opacity: 1; color: var(--gold); }

.site-header.scrolled {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .07);
}

.nav-toggle { display: none; background: none; border: 0; color: inherit; padding: 8px; }
.nav-toggle svg { display: block; width: 26px; height: 26px; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center;
  text-align: center; color: #fff; overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; background: url("../img/hero.jpg") center/cover no-repeat;
  transform: scale(1.06);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,9,7,.55) 0%, rgba(10,9,7,.35) 38%, rgba(10,9,7,.78) 100%);
}
.hero__inner { position: relative; padding: 120px 0 90px; }
.hero__kicker { color: rgba(255,255,255,.82); }
.hero h1 {
  font-size: clamp(3.4rem, 11vw, 8.5rem); margin: .12em 0 .28em; letter-spacing: -.03em;
  text-shadow: 0 2px 40px rgba(0,0,0,.35);
}
.hero p {
  font-size: clamp(1.05rem, 2.2vw, 1.4rem); font-weight: 400; color: rgba(255,255,255,.9);
  max-width: 30ch; margin-inline: auto; margin-bottom: 2.4em;
}
.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; translate: -50% 0; color: rgba(255,255,255,.7);
  width: 24px; height: 24px; animation: bob 2.2s var(--ease) infinite;
}
@keyframes bob { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(7px) } }

/* ============================================================
   Products
   ============================================================ */
.products { background: var(--paper); }
.product-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px);
}
.card {
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff;
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -28px rgba(20,18,10,.45); border-color: transparent; }
.card__media { position: relative; aspect-ratio: 1/1; background: var(--stone); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__badge {
  position: absolute; top: 14px; right: 14px; min-width: 44px; height: 44px; padding: 0 10px;
  display: grid; place-items: center; border-radius: 999px; background: var(--gold); color: #1a1303;
  font-weight: 800; font-size: .95rem; box-shadow: 0 6px 16px -6px rgba(176,127,35,.7);
}
.card__badge small { font-weight: 600; font-size: .62rem; margin-left: 2px; }
.card__body { padding: 26px 24px 28px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__eyebrow { font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-strong); }
.card__title { font-size: 1.32rem; font-weight: 800; letter-spacing: -.01em; }
.card__desc { color: var(--ink-soft); font-size: .98rem; margin-bottom: 22px; }
.card .btn { margin-top: auto; }

/* ============================================================
   About
   ============================================================ */
.about { background: var(--stone); }
.about__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(34px, 6vw, 86px); align-items: center; }
.about__copy h2 { font-size: clamp(2rem, 4.4vw, 3rem); margin: 14px 0 22px; }
.about__copy p { color: var(--ink-soft); font-size: 1.1rem; max-width: 46ch; }
.about__media img { width: 100%; border-radius: 10px; box-shadow: 0 40px 70px -40px rgba(20,18,10,.6); }

/* ============================================================
   Contacts
   ============================================================ */
.contacts { background: var(--dark); color: #fff; text-align: center; }
.contacts .eyebrow { color: var(--gold); }
.contacts__mail {
  display: inline-block; font-size: clamp(2rem, 6vw, 4.4rem); font-weight: 800; letter-spacing: -.03em;
  margin: .2em 0 .35em; background: linear-gradient(transparent 86%, var(--gold) 0) no-repeat; background-size: 0% 100%;
  transition: background-size .4s var(--ease), color .3s var(--ease);
}
.contacts__mail:hover { background-size: 100% 100%; color: var(--gold); }
.contacts p { color: rgba(255,255,255,.66); max-width: 46ch; margin-inline: auto; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--dark-2); color: rgba(255,255,255,.6); padding-block: 40px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.site-footer .brand { color: #fff; font-size: 1.05rem; }
.site-footer nav { display: flex; gap: 22px; }
.site-footer a:hover { color: var(--gold); }
.site-footer small { font-size: .85rem; }

/* ============================================================
   Privacy / legal article
   ============================================================ */
.legal { padding-top: 140px; }
.legal__head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.legal__head p { color: var(--ink-soft); margin-top: 10px; }
.legal__body { max-width: 780px; margin-top: 48px; }
.legal__body h2 { font-size: 1.4rem; margin: 38px 0 12px; }
.legal__body p, .legal__body li { color: #3a3a33; margin-bottom: 14px; }
.legal__body ul { padding-left: 20px; }
.legal__body a { color: var(--gold-strong); text-decoration: underline; }

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
[data-delay="1"]{ transition-delay: .08s } [data-delay="2"]{ transition-delay: .16s } [data-delay="3"]{ transition-delay: .24s }

/* Hero content animates on load — never depends on the scroll observer */
.hero .reveal { opacity: 1; transform: none; animation: heroIn .9s var(--ease) both; }
.hero .reveal[data-delay="1"] { animation-delay: .12s; }
.hero .reveal[data-delay="2"] { animation-delay: .22s; }
.hero .reveal[data-delay="3"] { animation-delay: .34s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(26px); } }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .product-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .about__grid { grid-template-columns: 1fr; }
  .about__media { order: -1; }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 0;
    background: rgba(22,21,18,.97); backdrop-filter: blur(8px);
    padding: 10px var(--gutter) 26px; transform: translateY(-130%); transition: transform .4s var(--ease);
    color: #fff;
  }
  .nav.open { transform: none; }
  .nav a { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.08); opacity: .9; color:#fff; }
  .site-header.scrolled .nav:not(.open) { transform: translateY(-130%); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero .reveal { opacity: 1; transform: none; transition: none; animation: none; }
  .scroll-cue { animation: none; }
}
