/* ===== Tokens ===== */
:root {
  --bg: #090908;
  --bg-2: #111110;
  --bg-3: #181816;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.24);
  --text: #f3f0ea;
  --muted: #a8a39a;
  --accent: #c9cdd3;
  --accent-strong: #eceef1;
  --on-accent: #0d0e10;
  --silver: linear-gradient(135deg, #f1f2f4 0%, #c3c7cd 45%, #9ea3ab 70%, #d9dce0 100%);
  --lamp-light: 255, 247, 232;
  --danger: #e2886f;

  --serif: "Playfair Display", "Times New Roman", serif;
  --sans: "Onest", "Segoe UI", Arial, sans-serif;
  --wide: "Tenor Sans", "Segoe UI", Arial, sans-serif;

  --container: 1240px;
  --gutter: 40px;
  --header-h: 84px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ===== Type ===== */
.h-display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.04;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.h-section {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.h-section--accent { color: var(--accent); }

.lead { color: var(--text); font-size: 15px; line-height: 1.7; max-width: 46ch; }
.muted { color: var(--muted); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 46px;
  padding: 0 22px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex: none; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--accent { background: var(--silver); background-size: 200% 100%; background-position: 0 0; color: var(--on-accent); transition: background-position .5s var(--ease); }
.btn--accent:hover { background-position: 100% 0; }

.btn--ghost { border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* split button: label | arrow cell, like the reference */
.btn--split { padding: 0; gap: 0; border-color: var(--line-strong); }
.btn--split .btn__label { padding: 0 22px; }
.btn--split .btn__icon {
  display: grid; place-items: center;
  width: 46px; align-self: stretch;
  border-left: 1px solid var(--line-strong);
  transition: border-color .25s var(--ease);
}
.btn--split:hover { border-color: var(--accent); color: var(--accent); }
.btn--split:hover .btn__icon { border-color: var(--accent); }

.btn--block { width: 100%; justify-content: center; }

/* ===== Logo ===== */
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo__mark {
  width: 42px; height: 42px; flex: none;
  /* the factory's line-drawing mark, tinted with the accent colour through a mask */
  background: var(--accent);
  -webkit-mask: url("../img/logo-mark.png") center / contain no-repeat;
          mask: url("../img/logo-mark.png") center / contain no-repeat;
}
.logo__text { display: flex; flex-direction: column; line-height: 1; white-space: nowrap; }
.logo__name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.logo__sub {
  margin-top: 5px;
  font-size: 9px;
  letter-spacing: 0.32em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ===== Header ===== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  transition: border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
/* The frosted background lives on a pseudo-element: backdrop-filter on .header itself would make it
   the containing block for the fixed mobile menu, squeezing the menu into the header's height. */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(9, 9, 8, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.header.is-scrolled,
.header--solid { border-bottom-color: var(--line); }
.header.is-scrolled::before,
.header--solid::before { opacity: 1; }
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav { display: flex; gap: 34px; }
.nav a {
  position: relative;
  font-size: 13px;
  padding: 6px 0;
  color: var(--text);
  transition: color .2s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--accent); }
.nav a.is-active::after { transform: scaleX(1); }

.header__contacts { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.header__phone { font-size: 14px; letter-spacing: 0.02em; }
.header__phone:hover { color: var(--accent); }
.header__contacts .btn { min-height: 40px; font-size: 12px; padding: 0 18px; }

.burger {
  display: none;
  width: 44px; height: 44px;
  position: relative;
}
.burger span, .burger::before, .burger::after {
  content: ""; position: absolute; left: 11px; right: 11px; height: 1px; background: var(--text);
  transition: transform .3s var(--ease), opacity .2s;
}
.burger::before { top: 15px; }
.burger span { top: 22px; }
.burger::after { top: 29px; }
.burger[aria-expanded="true"]::before { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span { opacity: 0; }
.burger[aria-expanded="true"]::after { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: clamp(720px, 100vh, 960px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(9,9,8,.92) 0%, rgba(9,9,8,.7) 32%, rgba(9,9,8,.15) 65%, rgba(9,9,8,.25) 100%),
    linear-gradient(180deg, rgba(9,9,8,.55) 0%, rgba(9,9,8,0) 22%, rgba(9,9,8,0) 60%, rgba(9,9,8,.85) 100%);
}
.hero__content {
  position: relative; z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
}
.hero__text { max-width: 560px; }
.hero__rule { width: 44px; height: 1px; background: var(--text); margin: 28px 0 24px; opacity: .7; }
.hero__sub { font-size: 14px; line-height: 1.7; max-width: 34ch; }
.hero .btn { margin-top: 34px; }

/* Hero load sequence — the one orchestrated motion moment */
.hero__text > * { opacity: 0; transform: translateY(14px); animation: rise .9s var(--ease) forwards; }
.hero__text > *:nth-child(2) { animation-delay: .15s; }
.hero__text > *:nth-child(3) { animation-delay: .25s; }
.hero__text > *:nth-child(4) { animation-delay: .35s; }
.hero__bg { animation: settle 2.4s var(--ease) forwards; transform: scale(1.06); }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes settle { to { transform: scale(1); } }

/* ===== Features strip ===== */
.features {
  position: relative; z-index: 2;
  background: rgba(17, 17, 16, 0.72);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--line);
}
.features__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.feature {
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 18px;
  padding: 34px 28px;
  border-left: 1px solid var(--line);
}
.feature:first-child { border-left: 0; padding-left: 0; }
.feature__icon { width: 30px; height: 30px; color: var(--accent); margin-top: 2px; }
.feature__title {
  font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.4;
}
.feature__text { grid-column: 2; margin-top: 12px; font-size: 12px; line-height: 1.6; color: var(--muted); }

/* ===== Sections ===== */
.section { padding: 110px 0; }
.section--tight { padding: 90px 0; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: stretch; }
.about__text .h-section { margin-bottom: 28px; }
.about__text .lead { color: var(--text); opacity: .9; }
.about__text { align-self: center; }

.about__media { position: relative; min-height: 380px; overflow: hidden; border-radius: 2px; }
.about__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(9,9,8,.82) 0%, rgba(9,9,8,.35) 55%, rgba(9,9,8,.1) 100%);
}
.about__caption { position: absolute; z-index: 1; left: 44px; bottom: 44px; max-width: 280px; }
.about__caption h3 {
  font-family: var(--serif); font-weight: 400; font-size: 26px; letter-spacing: 0.06em; text-transform: uppercase;
}
.about__caption p { margin-top: 16px; font-size: 13px; line-height: 1.7; color: var(--text); opacity: .85; }

/* Catalog preview */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.cat-card { display: block; }
.cat-card__media { aspect-ratio: 4 / 3.1; overflow: hidden; border-radius: 2px; background: var(--bg-3); }
.cat-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .4s; filter: brightness(.85); }
.cat-card:hover .cat-card__media img { transform: scale(1.05); filter: brightness(1); }
.cat-card__title {
  margin-top: 20px; color: var(--accent);
  font-size: 15px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
}
.cat-card__text { margin-top: 6px; font-size: 13px; line-height: 1.55; color: var(--text); opacity: .85; }

/* Process */
.process { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 44px; }
.step { position: relative; padding-right: 28px; }
.step__icon { width: 44px; height: 44px; color: var(--accent); }
.step:not(:last-child)::after {
  content: "";
  position: absolute; top: 22px; left: 72px; right: 22px;
  border-top: 1px dashed var(--line-strong);
}
.step:not(:last-child)::before {
  content: "";
  position: absolute; top: 18px; right: 22px;
  width: 8px; height: 8px;
  border-top: 1px solid var(--line-strong); border-right: 1px solid var(--line-strong);
  transform: rotate(45deg);
}
.step__title {
  margin-top: 18px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
}
.step__text { margin-top: 8px; font-size: 12px; line-height: 1.6; color: var(--muted); max-width: 22ch; }

/* ===== Footer ===== */
.footer { padding: 0; background: var(--bg); border-top: 1px solid var(--line); }

/* Lamp stage: two pendants hang from the footer's top edge, sway gently and light the wordmark.
   --on1/--on2: 0 or 1, set from main.js. */
.stage {
  --p1: 30%;
  --p2: 70%;
  --on1: 0;
  --on2: 0;
  --lx1: var(--p1);
  --lx2: var(--p2);
  position: relative;
  height: clamp(460px, 42vw, 600px);
  margin-bottom: 64px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.lamp {
  --shade: 124px;
  position: absolute;
  top: 0;
  width: var(--shade);
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(-50%);
  z-index: 3;
}
/* clearly different drop lengths: one hangs low, one stays high */
.lamp--1 { left: var(--p1); --cord: 196px; }
.lamp--2 { left: var(--p2); --cord: 62px; }

/* the ceiling canopy is fixed to the ceiling and never moves */
.lamp__cap { width: 26px; height: 9px; background: #171717; border-radius: 0 0 4px 4px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
/* everything below the canopy swings around the point where the cord leaves it */
.lamp__swing {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: 50% 0;
  animation: sway 5.5s ease-in-out infinite alternate;
}
/* longer cord swings slower; offset so the two lamps never move in step */
.lamp--1 .lamp__swing { animation-duration: 6.4s; animation-delay: -2s; }
.lamp--2 .lamp__swing { animation-duration: 4.6s; animation-delay: -3.7s; }
@keyframes sway { from { rotate: -1.6deg; } to { rotate: 1.6deg; } }
.lamp__cord { width: 1px; height: var(--cord); background: rgba(255,255,255,.26); }

.lamp__body { display: block; width: 100%; padding: 0; margin-top: -2px; position: relative; z-index: 1; cursor: pointer; }
.lamp__body svg { display: block; width: 100%; height: auto; overflow: visible; }
.lamp__body:hover svg path, .lamp__body:hover svg rect { stroke: rgba(255,255,255,.4); }
.lamp__glow { fill: rgb(var(--lamp-light)); opacity: .12; transition: opacity .3s var(--ease); }
.lamp.is-on .lamp__glow { opacity: 1; filter: drop-shadow(0 0 6px rgba(var(--lamp-light), .9)) drop-shadow(0 2px 18px rgba(var(--lamp-light), .6)); }

.lamp__beam {
  position: absolute;
  top: calc(100% - 7px);
  left: 50%;
  width: 640px;
  height: 640px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(var(--lamp-light), .13) 0%, rgba(var(--lamp-light), .04) 50%, transparent 85%);
  clip-path: polygon(40.3% 0, 59.7% 0, 100% 100%, 0 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 8%, #000 38%, #000 62%, transparent 92%);
          mask-image: linear-gradient(90deg, transparent 8%, #000 38%, #000 62%, transparent 92%);
  opacity: 0;
  pointer-events: none;
}
.lamp--1 .lamp__beam { opacity: var(--on1); }
.lamp--2 .lamp__beam { opacity: var(--on2); }

.stage__text { position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(32px, 4.5vw, 56px); text-align: center; }
.stage__layer { margin: 0; color: #1d1d1c; }
.stage__layer--lit {
  position: absolute;
  inset: 0;
  color: #f6f4f0;
  text-shadow: 0 0 40px rgba(var(--lamp-light), .25);
  -webkit-mask-image:
    radial-gradient(ellipse 36% 150% at var(--lx1) -30%, rgba(0,0,0,var(--on1)) 25%, transparent 100%),
    radial-gradient(ellipse 36% 150% at var(--lx2) -30%, rgba(0,0,0,var(--on2)) 25%, transparent 100%);
          mask-image:
    radial-gradient(ellipse 36% 150% at var(--lx1) -30%, rgba(0,0,0,var(--on1)) 25%, transparent 100%),
    radial-gradient(ellipse 36% 150% at var(--lx2) -30%, rgba(0,0,0,var(--on2)) 25%, transparent 100%);
}
.stage__word {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 8vw, 118px);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.stage__tag { display: block; margin-top: 18px; font-size: 12px; letter-spacing: .32em; text-transform: uppercase; }
.footer__grid { display: grid; grid-template-columns: 1.3fr .8fr .8fr 1.1fr 1.5fr; gap: 40px; }
.footer__about p { margin-top: 22px; font-size: 13px; line-height: 1.7; color: var(--muted); max-width: 30ch; }
.footer__title {
  color: var(--accent); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 18px;
}
.footer__list li + li { margin-top: 10px; }
.footer__list a, .footer__list span { font-size: 13px; color: var(--text); opacity: .85; transition: color .2s, opacity .2s; }
.footer__list a:hover { color: var(--accent); opacity: 1; }
.socials { display: flex; gap: 12px; margin-top: 18px; }
.socials a {
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid var(--line-strong); border-radius: 50%;
  transition: border-color .2s, color .2s;
}
.socials a:hover { border-color: var(--accent); color: var(--accent); }
.socials svg { width: 16px; height: 16px; }

.cta-box { border: 1px solid var(--line-strong); padding: 30px; border-radius: 2px; align-self: start; }
.cta-box h3 { font-size: 15px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.cta-box p { margin: 12px 0 24px; font-size: 13px; line-height: 1.6; color: var(--muted); }

.footer__bottom {
  margin-top: 56px; padding: 22px 0;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: var(--muted);
}
.footer__bottom a:hover { color: var(--accent); }

/* ===== Modal ===== */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: 20px;
  visibility: hidden; opacity: 0;
  transition: opacity .3s var(--ease), visibility 0s linear .3s;
}
.modal.is-open { visibility: visible; opacity: 1; transition: opacity .3s var(--ease); }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.72); }
.modal__dialog {
  position: relative;
  width: 100%; max-width: 480px; max-height: calc(100vh - 40px); overflow-y: auto;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 44px 40px 40px;
  /* opens as a circle of light growing from the pressed button (--ox/--oy set in main.js) */
  clip-path: circle(0 at var(--ox, 50%) var(--oy, 50%));
  transition: clip-path .6s cubic-bezier(.65, 0, .35, 1);
}
.modal.is-open .modal__dialog { clip-path: circle(var(--or, 150%) at var(--ox, 50%) var(--oy, 50%)); }
.modal__close {
  position: absolute; top: 10px; right: 10px;
  width: 44px; height: 44px; display: grid; place-items: center; color: var(--muted);
}
.modal__close:hover { color: var(--accent); }
.modal__title { font-family: var(--serif); font-weight: 400; font-size: 32px; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.1; }
.modal__lead { margin: 12px 0 28px; font-size: 13px; color: var(--muted); }

/* Form */
.field { display: block; margin-bottom: 18px; }
.field__label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.field__input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--text);
  font: inherit; font-size: 15px;
  transition: border-color .2s;
}
textarea.field__input { min-height: 96px; resize: vertical; }
select.field__input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
.field__input:focus { outline: none; border-color: var(--accent); }
.field.has-error .field__input { border-color: var(--danger); }
.field__error { display: none; margin-top: 6px; font-size: 12px; color: var(--danger); }
.field.has-error .field__error { display: block; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 12px; color: var(--muted); line-height: 1.5; margin: 4px 0 24px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); flex: none; }
.check a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.check.has-error { color: var(--danger); }

.form-error { margin: -8px 0 18px; font-size: 13px; line-height: 1.5; color: var(--danger); }
.form-error[hidden] { display: none; }

.form-success { display: none; text-align: center; padding: 20px 0; }
.form-success svg { width: 54px; height: 54px; color: var(--accent); margin: 0 auto 20px; }
.form-success h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; text-transform: uppercase; letter-spacing: .04em; }
.form-success p { margin-top: 12px; color: var(--muted); font-size: 14px; }
.form-success .btn { margin-top: 28px; }
.modal.is-success form, .modal.is-success .modal__lead, .modal.is-success .modal__title { display: none; }
.modal.is-success .form-success { display: block; }

.btn.is-loading { pointer-events: none; opacity: .7; }

body.is-locked { overflow: hidden; }

/* ===== Catalog page ===== */
.page-hero { padding: calc(var(--header-h) + 70px) 0 50px; border-bottom: 1px solid var(--line); }
.crumbs { display: flex; gap: 10px; font-size: 12px; color: var(--muted); margin-bottom: 22px; }
.crumbs a:hover { color: var(--accent); }
.page-hero .lead { margin-top: 18px; color: var(--muted); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 44px 0 36px; }
.filter {
  min-height: 42px; padding: 0 18px;
  border: 1px solid var(--line-strong); border-radius: 2px;
  font-size: 13px;
  transition: border-color .2s, color .2s, background-color .2s;
}
.filter:hover { border-color: var(--accent); color: var(--accent); }
.filter[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* Columns are filled by main.js; each photo keeps its own proportions, so nothing is cut off. */
.product-grid { display: flex; align-items: flex-start; gap: 24px; }
.product-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 48px; }
.product { display: flex; flex-direction: column; }
.product__media { overflow: hidden; border-radius: 2px; background: var(--bg-3); }
.product__media img { display: block; width: 100%; height: auto; filter: brightness(.88); transition: transform .8s var(--ease), filter .4s; }
.product:hover .product__media img { transform: scale(1.04); filter: brightness(1); }
.product__cat { margin-top: 18px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.product__title { margin-top: 6px; font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.15; }
.product__text { margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.product__text { margin-bottom: 18px; }
.product__meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.product__price { font-size: 13px; }
.product__price b { font-weight: 500; color: var(--text); }
.product .btn { min-height: 40px; font-size: 12px; padding: 0 16px; }
.empty { padding: 60px 0; text-align: center; color: var(--muted); }

/* Privacy page */
.prose { max-width: 72ch; padding: 50px 0 110px; }
.prose h2 { font-family: var(--serif); font-weight: 500; font-size: 26px; margin: 40px 0 12px; }
.prose p, .prose li { color: var(--text); opacity: .85; line-height: 1.8; }
.prose ul { list-style: disc; padding-left: 20px; }

/* ===== Type roles =====
   Playfair Display — headings; Tenor Sans — brand and labels; Onest — reading text. */
.logo__name { font-family: var(--wide); font-weight: 400; font-size: 18px; letter-spacing: .16em; }
.logo__sub { font-family: var(--wide); }
.feature__title, .step__title, .cat-card__title, .footer__title, .cta-box h3,
.stage__tag, .product__cat, .about__caption h3 {
  font-family: var(--wide);
  font-weight: 400;
}
.feature__title, .step__title { letter-spacing: .1em; }
.cat-card__title { font-size: 14px; letter-spacing: .16em; }
.about__caption h3 { font-size: 18px; letter-spacing: .14em; }
.h-display { letter-spacing: .005em; line-height: 1.08; }
.h-section { letter-spacing: .02em; }
.modal__title, .form-success h3, .product__title { font-family: var(--serif); }


.hero__cta { display: flex; align-items: center; gap: 22px; margin-top: 34px; flex-wrap: wrap; }
.hero__cta .btn { margin-top: 0; }


/* ===== Reveal =====
   Text fades in. Photos (.js-light) are lit from the top down: a soft edge of light travels down
   the image while it rises from near-black to full colour, like a lamp switching on above it. */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@property --lit { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
.js-light {
  --lit: 0%;
  -webkit-mask-image: linear-gradient(180deg, #000 calc(var(--lit) - 30%), rgba(0,0,0,.08) var(--lit));
          mask-image: linear-gradient(180deg, #000 calc(var(--lit) - 30%), rgba(0,0,0,.08) var(--lit));
  filter: brightness(.35) saturate(.5);
  transition: --lit 1.5s cubic-bezier(.45, 0, .2, 1), filter 1.8s var(--ease);
}
.is-visible .js-light, .js-light.is-visible { --lit: 135%; filter: none; }
/* photo cards don't also slide; the light is their entrance */
.reveal:has(> .js-light) { transform: none; transition: opacity .4s linear; }
.reveal.js-light { transform: none; transition: opacity .4s linear, --lit 1.5s cubic-bezier(.45, 0, .2, 1), filter 1.8s var(--ease); }
/* cards in a row light up one after another */
.cat-grid > :nth-child(2) .js-light, .product-col:nth-child(2) .js-light { transition-delay: .12s; }
.cat-grid > :nth-child(3) .js-light, .product-col:nth-child(3) .js-light { transition-delay: .24s; }
.cat-grid > :nth-child(4) .js-light { transition-delay: .36s; }
.cat-grid > :nth-child(5) .js-light { transition-delay: .48s; }
.process .step:nth-child(2) { transition-delay: .12s; }
.process .step:nth-child(3) { transition-delay: .24s; }
.process .step:nth-child(4) { transition-delay: .36s; }
.process .step:nth-child(5) { transition-delay: .48s; }

/* ===== Page transitions (cross-document View Transitions) =====
   The old page dims like a light going off; the new one appears as a circle of light growing from
   the click point (--vt-x/--vt-y, set in main.js). The header stays put across pages. */
@view-transition { navigation: auto; }
.header { view-transition-name: site-header; }
::view-transition-old(root) { animation: vt-dim .5s ease-in both; }
::view-transition-new(root) { animation: vt-light .8s cubic-bezier(.65, 0, .35, 1) .1s both; }
@keyframes vt-dim { to { filter: brightness(.15); } }
@keyframes vt-light {
  from { clip-path: circle(0 at var(--vt-x, 50%) var(--vt-y, 0%)); }
  to { clip-path: circle(150% at var(--vt-x, 50%) var(--vt-y, 0%)); }
}
/* catalog cards glide to their new places when the filter changes */
::view-transition-group(*) { animation-duration: .5s; animation-timing-function: cubic-bezier(.65, 0, .35, 1); }

/* ===== Responsive ===== */
@media (max-width: 1180px) {
  .nav { gap: 22px; }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer__about { grid-column: 1 / -1; }
  .cta-box { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  :root { --gutter: 28px; }
  .header__contacts .header__phone { display: none; }
  .feature { padding: 26px 20px; }
  .about { grid-template-columns: 1fr; gap: 48px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .process { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .step:nth-child(3)::after, .step:nth-child(3)::before { display: none; }
}

@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .burger { display: block; }
  .header__contacts { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    flex-direction: column; gap: 0;
    padding: 24px var(--gutter);
    background: var(--bg);
    transform: translateX(100%);
    transition: transform .35s var(--ease);
    overflow-y: auto;
  }
  .nav.is-open { transform: none; }
  .nav a { font-family: var(--serif); font-size: 28px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav__mobile-cta { display: flex !important; flex-direction: column; gap: 16px; margin-top: 28px; }
  .nav__mobile-cta a { font-family: var(--sans); font-size: 16px; border: 0; padding: 0; }
  .nav__mobile-cta .btn { justify-content: center; }
}

@media (max-width: 768px) {
  :root { --gutter: 16px; }
  .logo__name { font-size: 18px; }
  .logo__sub { font-size: 8px; letter-spacing: .26em; }
  .logo__mark { width: 36px; height: 36px; }
  /* On phones the advantages stack into a tall column, so the photo only fills the first screen
     and the advantages sit below it on a solid background instead of over the image. */
  .hero { --hero-photo: clamp(560px, 92svh, 760px); min-height: 0; }
  .hero__bg, .hero::before { height: var(--hero-photo); bottom: auto; }
  .hero__content { min-height: var(--hero-photo); padding: calc(var(--header-h) + 40px) 0 50px; }
  .features { background: var(--bg-2); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .features__grid { grid-template-columns: 1fr; }
  .feature, .feature:nth-child(3) { border-left: 0; padding: 22px 0; }
  .feature + .feature { border-top: 1px solid var(--line); }
  .section { padding: 72px 0; }
  .section--tight { padding: 64px 0; }
  .about__media { min-height: 320px; }
  .about__caption { left: 24px; bottom: 28px; right: 24px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 12px; }
  .process { grid-template-columns: 1fr; row-gap: 0; margin-top: 32px; }
  .step { display: grid; grid-template-columns: 44px 1fr; column-gap: 20px; padding: 0 0 32px; }
  .step__icon { grid-row: span 2; }
  .step__title { margin-top: 4px; }
  .step__text { max-width: none; }
  .step::after, .step::before { display: none !important; }
  .step:not(:last-child) .step__icon { position: relative; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
  .footer__contacts { grid-column: 1 / -1; }
  .modal__dialog { padding: 40px 22px 28px; }
}

@media (max-width: 600px) {
  .stage { --p1: 27%; --p2: 73%; height: 460px; margin-bottom: 48px; }
  .lamp { --shade: 84px; }
  .lamp--1 { --cord: 130px; }
  .lamp--2 { --cord: 36px; }
  .lamp__beam { width: 440px; height: 520px; }
  .stage__word { font-size: 12.5vw; line-height: .95; }
  .stage__word > span { display: block; }
  .stage__tag { font-size: 10px; letter-spacing: .24em; }
  .stage__layer--lit {
    -webkit-mask-image:
      radial-gradient(ellipse 40% 90% at var(--lx1) -10%, rgba(0,0,0,var(--on1)) 25%, transparent 100%),
      radial-gradient(ellipse 40% 90% at var(--lx2) -10%, rgba(0,0,0,var(--on2)) 25%, transparent 100%);
            mask-image:
      radial-gradient(ellipse 40% 90% at var(--lx1) -10%, rgba(0,0,0,var(--on1)) 25%, transparent 100%),
      radial-gradient(ellipse 40% 90% at var(--lx2) -10%, rgba(0,0,0,var(--on2)) 25%, transparent 100%);
  }
}

@media (max-width: 420px) {
  .cat-grid { grid-template-columns: 1fr; }
}

.nav__mobile-cta { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__text > * { opacity: 1; transform: none; }
  .lamp__swing { animation: none; }
  .js-light { -webkit-mask-image: none; mask-image: none; filter: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
