/* === Quacktory — Tactile Earth Edition ===
   Derived from a Pinterest crit: olive / rust / cream earthy mood board
   with bilingual RU/EN two-column layout, twig connective tissue,
   fingerprint-arch logo, and 5-tile palette/texture strip.
*/

:root {
  --bg: #2C331B;          /* deep forest olive */
  --fg: #8A3710;          /* rust / terracotta */
  --ink: #E8DDC8;         /* warm cream */
  --ink-soft: #F5ECD8;    /* higher-contrast cream for body on rust */
  --walnut: #3E331C;      /* deep walnut */
  --bark: #624638;        /* dry bark / edge */

  --font-display: "Cormorant Garamond", "Cormorant", "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, monospace;

  --tracking-wide: 0.2em;
  --tracking-display: -0.018em;

  --pad-section: clamp(64px, 9vw, 140px);
  --pad-inline: clamp(24px, 5vw, 80px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
svg { display: block; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--fg); color: var(--ink); }

/* ============================================================
   Twig decoration — runs across section boundaries, exactly
   as the crit used a real twig to bridge olive ↔ rust zones.
   ============================================================ */
.twig {
  display: block;
  width: 100%;
  height: 80px;
  color: var(--bark);
  background: var(--bg);
}
.twig--top { background: var(--bg); color: var(--bark); }
.twig--mid { background: var(--bg); color: var(--bark); position: relative; z-index: 2; }

/* ============================================================
   Ghost-pill chrome (top nav)
   ============================================================ */
.chrome {
  position: sticky;
  top: 18px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  max-width: 1240px;
  padding: 12px 22px;
  border: 1px solid rgba(232, 221, 200, 0.18);
  border-radius: 999px;
  background: rgba(44, 51, 27, 0.55);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--ink);
  width: calc(100% - 32px);
}

.chrome__brand { display: flex; align-items: center; gap: 10px; }
.chrome__mark { color: var(--fg); display: inline-flex; }
.chrome__name { letter-spacing: 0.3em; font-weight: 500; }

.chrome__nav { display: flex; gap: 18px; }
.chrome__nav a {
  position: relative;
  padding-bottom: 2px;
  transition: color 200ms ease;
}
.chrome__nav a:hover { color: var(--fg); }
.chrome__nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: currentColor;
  transition: right 220ms ease;
}
.chrome__nav a:hover::after { right: 0; }

.chrome__lang { color: var(--ink-soft); opacity: 0.7; }

@media (max-width: 760px) {
  .chrome { gap: 8px; padding: 10px 14px; flex-wrap: wrap; }
  .chrome__nav { gap: 12px; order: 3; width: 100%; justify-content: center; }
}

/* ============================================================
   Section utility
   ============================================================ */
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.75;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: var(--tracking-display);
  line-height: 0.96;
  font-size: clamp(40px, 6vw, 84px);
  text-transform: uppercase;
  color: var(--ink);
}

/* ============================================================
   HERO — Pattern A (duotone giant wordmark) × Pattern D (arch frame)
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: clamp(110px, 14vh, 180px) var(--pad-inline) clamp(80px, 10vh, 140px);
  background: var(--bg);
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.hero__rule {
  position: absolute;
  top: 0; left: 50%;
  width: 1px; height: 60px;
  background: var(--fg);
  transform: translateX(-50%);
  opacity: 0.6;
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.75;
  margin-bottom: 28px;
}

.hero__wordmark {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: 0.04em;
  font-size: clamp(72px, 16vw, 220px);
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 auto;
}

.hero__arch {
  position: absolute;
  left: 50%;
  top: -8%;
  transform: translateX(-50%);
  width: 110%;
  height: 130%;
  color: var(--fg);
  opacity: 0.85;
  pointer-events: none;
}
.hero__arch svg { width: 100%; height: 100%; }

.hero__lede {
  margin: 28px auto 0;
  max-width: 720px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(16px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}
.lede__ru { display: block; }
.lede__en { display: block; font-style: italic; color: var(--ink); opacity: 0.78; }

.hero__vitrina {
  position: relative;
  margin: 60px auto 0;
  max-width: 980px;
  padding: 40px;
}
.hero__vitrina img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid rgba(232, 221, 200, 0.12);
  filter: brightness(0.95) saturate(0.92);
}
.hero__arch-frame {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(138, 55, 16, 0.5);
  border-radius: 50% 50% 6px 6px / 28% 28% 6px 6px;
  pointer-events: none;
}
.hero__vitrina figcaption {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.6;
  margin-top: 16px;
}

.hero__scroll {
  justify-self: center;
  margin-top: 40px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.7;
  transition: opacity 220ms ease;
}
.hero__scroll:hover { opacity: 1; }
.hero__scroll span { display: inline-block; }
.hero__scroll svg { animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(3px); } }

/* ============================================================
   ABOUT — bilingual two-column (RU | EN)
   ============================================================ */
.about {
  background: var(--bg);
  padding: var(--pad-section) var(--pad-inline);
  position: relative;
}
.about__head { text-align: center; margin-bottom: 80px; }
.about__head .section-title { margin-top: 18px; }
.about__head .section-title .dot { color: var(--fg); padding: 0 12px; }

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  max-width: 1240px;
  margin: 0 auto;
}
@media (max-width: 820px) { .about__grid { grid-template-columns: 1fr; } }

.about__col {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.65;
  color: var(--ink-soft);
}
.about__col--en { color: var(--ink); opacity: 0.86; }

.about__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 1.8vw, 26px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(232, 221, 200, 0.18);
}
.about__brand-mark { color: var(--fg); display: inline-flex; }

.about__lead { margin-bottom: 32px; }
.about__block { margin-bottom: 28px; }
.about__sub {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--fg);
}

/* ============================================================
   LADDER — rust band, 5 product specimens on a horizontal track
   Crit adapted: year-timeline → size-timeline.
   ============================================================ */
.ladder {
  background: var(--fg);
  color: var(--ink-soft);
  padding: var(--pad-section) var(--pad-inline);
  position: relative;
  overflow: hidden;
}
.ladder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(232, 221, 200, 0.06), transparent 60%);
  pointer-events: none;
}

.ladder__head { text-align: center; margin-bottom: 80px; position: relative; z-index: 1; }
.ladder__head .section-title { color: var(--ink-soft); }
.ladder__head .section-eyebrow { color: var(--ink-soft); }
.ladder__lede {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.7;
  margin-top: 18px;
}

.ladder__rail {
  list-style: none;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr 1.1fr 1fr 1fr;
  align-items: end;
  gap: clamp(12px, 1.6vw, 28px);
  max-width: 1280px;
  margin: 0 auto;
  padding-bottom: 24px;
}
@media (max-width: 920px) {
  .ladder__rail { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .ladder__node--center { grid-column: 1 / -1; justify-self: center; max-width: 280px; }
}

.ladder__node { position: relative; }

.ladder__edge {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.7;
  white-space: nowrap;
}
.ladder__edge--left  { left: -8px;  bottom: 0; transform: rotate(-90deg) translateX(50%); transform-origin: left bottom; }
.ladder__edge--right { right: -8px; bottom: 0; transform: rotate(-90deg) translateX(-50%); transform-origin: right bottom; }

.ladder__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 8px;
  transition: transform 320ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.ladder__btn:hover { transform: translateY(-8px); }
.ladder__btn:focus-visible { outline: 1px dashed var(--ink-soft); outline-offset: 8px; }

.ladder__num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.7;
}

.ladder__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #FFFFFF;
  border: 1px solid rgba(14, 10, 4, 0.4);
  overflow: hidden;
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.7);
  transition: box-shadow 320ms ease;
}
.ladder__btn:hover .ladder__photo { box-shadow: 0 28px 60px -20px rgba(0, 0, 0, 0.85); }
.ladder__photo img { width: 100%; height: 100%; object-fit: cover; }

.ladder__node--center .ladder__photo { transform: scale(1.08); }
.ladder__node--center .ladder__name { font-size: 1.2em; color: var(--ink); }

.ladder__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(20px, 1.6vw, 26px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.ladder__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.7;
}

.ladder__track {
  position: absolute;
  left: 0; right: 0;
  bottom: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(232, 221, 200, 0.5) 12%, rgba(232, 221, 200, 0.5) 88%, transparent 100%);
  z-index: 0;
}

/* ============================================================
   MATERIALS — 5-tile palette + texture strip (crit's bottom band)
   ============================================================ */
.materials {
  background: var(--bg);
  padding: var(--pad-section) var(--pad-inline);
}
.materials__head { text-align: center; margin-bottom: 80px; }
.materials__lede {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.7;
  margin-top: 18px;
}

.materials__grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(8px, 1vw, 18px);
  max-width: 1280px;
  margin: 0 auto;
}
@media (max-width: 920px) { .materials__grid { grid-template-columns: repeat(2, 1fr); } }

.material { display: flex; flex-direction: column; gap: 14px; }
.material__chip {
  width: 100%;
  aspect-ratio: 1 / 1.1;
  border: 1px solid rgba(232, 221, 200, 0.18);
  box-shadow: 0 16px 30px -22px rgba(0, 0, 0, 0.7);
  transition: transform 320ms ease;
}
.material:hover .material__chip { transform: translateY(-6px); }

.material__hex {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg);
}
.material__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(15px, 1.1vw, 18px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}
.material__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.65;
}

/* ============================================================
   ORDER — explicit CTA, addresses the "no CTA" watch-out
   ============================================================ */
.order {
  background: var(--fg);
  color: var(--ink-soft);
  padding: var(--pad-section) var(--pad-inline);
  text-align: center;
}
.order__title {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: var(--tracking-display);
  line-height: 1.0;
  font-size: clamp(36px, 5.6vw, 78px);
  text-transform: uppercase;
  color: var(--ink);
  margin: 18px 0 24px;
}
.order__title span {
  display: block;
  font-style: italic;
  color: var(--ink-soft);
  opacity: 0.78;
}
.order__lede {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(15px, 1.2vw, 19px);
  line-height: 1.55;
  max-width: 720px;
  margin: 0 auto 40px;
  color: var(--ink-soft);
}
.order__lede-en { display: inline; font-style: italic; opacity: 0.78; }

.order__cta-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}
.btn--primary { background: var(--walnut); color: var(--ink); }
.btn--primary:hover { background: var(--ink); color: var(--walnut); transform: translateY(-2px); }
.btn--ghost { border-color: var(--ink-soft); color: var(--ink-soft); }
.btn--ghost:hover { background: rgba(232, 221, 200, 0.12); transform: translateY(-2px); }

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  background: var(--walnut);
  color: var(--ink-soft);
  padding: 60px var(--pad-inline);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.foot p { margin-bottom: 4px; opacity: 0.78; }
.foot__brand { font-family: var(--font-display); font-size: 18px; letter-spacing: 0.3em; opacity: 1; }
.foot__col--end { text-align: right; }
@media (max-width: 760px) {
  .foot { grid-template-columns: 1fr 1fr; }
  .foot__col--end { text-align: left; }
}

/* ============================================================
   MODAL — adapted from the crit's "year / title / description"
   pattern; here it carries size / material / price.
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}
.modal.is-open { opacity: 1; pointer-events: auto; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 12, 4, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal__panel {
  position: relative;
  width: min(960px, 100%);
  max-height: 90vh;
  background: var(--ink-soft);
  color: var(--walnut);
  border: 1px solid rgba(0, 0, 0, 0.4);
  box-shadow: 0 60px 120px -30px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 320ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.modal.is-open .modal__panel { transform: translateY(0); }

.modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 2;
  font-size: 24px;
  line-height: 1;
  color: var(--walnut);
  padding: 8px 12px;
}
.modal__close:hover { color: var(--fg); }

.modal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}
@media (max-width: 720px) { .modal__grid { grid-template-columns: 1fr; } }

.modal__media { background: #FFFFFF; }
.modal__media img { width: 100%; height: 100%; object-fit: cover; }

.modal__body { padding: 40px clamp(24px, 3vw, 48px); display: flex; flex-direction: column; gap: 14px; }
.modal__num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--fg); }
.modal__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 4vw, 56px);
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--walnut);
}
.modal__ru, .modal__en { font-family: var(--font-display); font-weight: 300; line-height: 1.55; color: #2a1f10; }
.modal__en { font-style: italic; opacity: 0.78; }

.modal__meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 8px;
  padding: 18px 0;
  border-top: 1px solid rgba(0,0,0,0.18);
  border-bottom: 1px solid rgba(0,0,0,0.18);
}
.modal__meta div { display: flex; justify-content: space-between; gap: 12px; }
.modal__meta dt { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: #6a4a2a; }
.modal__meta dd { font-family: var(--font-display); font-weight: 500; font-size: 16px; color: var(--walnut); }

.modal__cta { margin-top: auto; align-self: flex-start; }

/* ============================================================
   Scroll-reveal (IntersectionObserver) — applied to .reveal targets
   ============================================================ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.is-in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll svg { animation: none; }
  .ladder__btn { transition: none; }
}
