:root {
  --bg: #08080a;
  --bg-2: #0d0d10;
  --fg: #f4f2ee;
  --muted: #8b8b92;
  --dim: #55555c;
  --accent: #e8922b;
  --line: rgba(255, 255, 255, .08);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------- image placeholder (shown if the file is missing) ---------- */
.ph {
  position: relative;
  background:
    radial-gradient(120% 90% at 30% 20%, #25252c 0%, #121216 60%, #0a0a0c 100%);
  overflow: hidden;
}
.ph::after {
  content: attr(data-label);
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--dim);
  z-index: 0;
}
.ph img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }

/* ---------- header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--pad);
  background: linear-gradient(to bottom, rgba(8,8,10,.85), rgba(8,8,10,0));
  backdrop-filter: blur(2px);
}
.logo { font-family: var(--serif); font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.logo span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  transition: color .25s;
}
.nav a:hover { color: var(--accent); }
.cart {
  position: relative; width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  transition: border-color .25s, transform .25s;
}
.cart:hover { border-color: var(--accent); }
.cart.bump { transform: scale(1.18); }
.cart__badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 14px; height: 14px; padding: 0 3px;
  display: grid; place-items: center;
  font-size: 8px; font-weight: 600; color: #000;
  background: var(--accent); border-radius: 7px;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px;
  padding: 110px var(--pad) 60px;
}
#rain { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.hero__text, .hero__photo { position: relative; z-index: 1; }

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 10px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.eyebrow i { width: 32px; height: 1px; background: var(--accent); }

.hero__title { font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 8.6vw, 128px); line-height: .98; letter-spacing: -.035em; }
.hero__title .line { display: block; }
.hero__title .ghost {
  font-style: italic; color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.28);
  margin: .12em 0;
}
.hero__lead { max-width: 380px; margin: 28px 0 32px; font-size: 12px; line-height: 1.7; color: var(--muted); }

.btn {
  display: inline-block; padding: 14px 26px;
  background: var(--fg); color: #000;
  font-size: 9px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  transition: background .3s, color .3s, transform .3s;
}
.btn:hover { background: var(--accent); transform: translateY(-2px); }

.hero__photo { aspect-ratio: 1 / 1.18; max-width: 560px; width: 100%; justify-self: end; }
.hero__photo img { object-position: 50% 62%; filter: brightness(.72) saturate(.8) contrast(1.1); }
.weather {
  position: absolute; z-index: 2; left: 0; bottom: 8%;
  padding: 14px 20px 14px 18px;
  background: rgba(10,10,12,.72); backdrop-filter: blur(10px);
  border-left: 1px solid var(--accent);
}
.weather small { display: block; font-size: 8px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.weather strong { font-size: 13px; font-weight: 600; }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; padding: 36px 0; border-block: 1px solid var(--line); }
.marquee__track { display: flex; width: max-content; gap: 36px; animation: slide 38s linear infinite; }
.marquee span, .marquee em {
  font-family: var(--serif); font-style: italic; font-size: clamp(18px, 2vw, 26px);
  letter-spacing: .06em; text-transform: uppercase; color: var(--dim); white-space: nowrap;
}
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- arsenal ---------- */
.arsenal { max-width: 1240px; margin: 0 auto; padding: 120px var(--pad) 140px; }
.arsenal__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 80px; }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5vw, 64px); line-height: 1.05; letter-spacing: -.02em; }
.h2 em { color: var(--dim); }
.arsenal__note { max-width: 260px; font-size: 11px; line-height: 1.7; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 40px; }
.card { position: relative; }
.card--1 { grid-column: 1 / 6; }
.card--2 { grid-column: 7 / 13; margin-top: 90px; }
.card--3 { grid-column: 4 / 10; margin-top: 90px; }
.card--3::before {
  content: ""; position: absolute; left: 50%; top: -60px; width: 1px; height: 60px; background: var(--line);
}

.card__img { aspect-ratio: 1 / 1; margin-bottom: 14px; }
.card--2 .card__img { aspect-ratio: 4 / 5; }
.card--3 .card__img { aspect-ratio: 16 / 9; }
.card__img img { transition: transform .9s cubic-bezier(.2,.7,.2,1); filter: brightness(.9) saturate(.9); }
.card--1 .card__img img { object-position: 50% 55%; }
.card--2 .card__img img { object-position: 50% 45%; }
.card--3 .card__img img { object-position: 50% 48%; filter: brightness(1.25) saturate(.95); }
.card:hover .card__img img { transform: scale(1.05); }
.tag {
  position: absolute; z-index: 3; top: 12px; left: 12px;
  padding: 3px 7px; font-size: 7px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: #000; background: var(--accent);
}
.card__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card h3 { font-family: var(--serif); font-weight: 700; font-size: 14px; }
.card b { font-size: 11px; font-weight: 600; }
.card p { font-size: 9px; color: var(--dim); margin-top: 2px; }
.add {
  margin-top: 14px; padding: 9px 0; width: 100%;
  font-size: 9px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  border: 1px solid var(--line);
  opacity: 0; transform: translateY(6px);
  transition: opacity .3s, transform .3s, background .3s, color .3s, border-color .3s;
}
.card:hover .add, .add:focus-visible { opacity: 1; transform: none; }
.add:hover { background: var(--fg); color: #000; border-color: var(--fg); }

/* ---------- manifesto ---------- */
.manifesto { position: relative; min-height: 560px; display: grid; place-items: center; padding: 100px var(--pad); }
.manifesto__bg { position: absolute; inset: 0; }
.manifesto__bg img { opacity: .28; filter: grayscale(.4); }
.manifesto__bg::before {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to bottom, var(--bg), rgba(8,8,10,.2) 30%, rgba(8,8,10,.2) 70%, var(--bg));
}
.manifesto__card {
  position: relative; z-index: 3; max-width: 520px; text-align: center;
  padding: 44px 40px;
  background: rgba(255,255,255,.035); border: 1px solid var(--line); backdrop-filter: blur(14px);
}
.flame { color: var(--accent); margin-bottom: 14px; }
.manifesto h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; margin-bottom: 16px; }
.manifesto p { font-size: 11px; line-height: 1.75; color: var(--muted); }

/* ---------- footer ---------- */
.footer { background: var(--bg-2); padding: 80px var(--pad) 28px; }
.footer__inner {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px;
  padding-bottom: 60px; border-bottom: 1px solid var(--line);
}
.footer__brand p { max-width: 240px; margin-top: 12px; font-size: 10px; line-height: 1.7; color: var(--muted); }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col a { font-size: 10px; color: var(--muted); transition: color .25s; }
.footer__col a:hover { color: var(--accent); }
.footer__col h4, .logo--glitch { margin-bottom: 6px; }
.footer__col h4 { font-size: 8px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }

/* chromatic-aberration text, like the template */
.glitch, .logo--glitch { position: relative; color: var(--fg); text-shadow: -1px 0 #00e5ff, 1px 0 #ff2bd6; }
.logo--glitch { font-size: 20px; }

.footer__bottom {
  max-width: 1240px; margin: 0 auto; padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 8px; color: var(--dim);
}
.footer__soc { display: flex; gap: 18px; }
.footer__soc a:hover { color: var(--accent); }

/* ---------- toast ---------- */
.toast {
  position: fixed; z-index: 60; left: 50%; bottom: 28px;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 20px; font-size: 11px;
  background: var(--fg); color: #000;
  transition: opacity .3s, transform .3s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s ease, transform 1s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.hero__title .line { animation: rise 1.1s cubic-bezier(.2,.7,.2,1) both; }
.hero__title .line:nth-child(2) { animation-delay: .12s; }
.hero__title .line:nth-child(3) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 100px; }
  .hero__photo { justify-self: start; max-width: 100%; }
  .arsenal__head { flex-direction: column; align-items: flex-start; margin-bottom: 48px; }
  .grid { grid-template-columns: 1fr; gap: 48px; }
  .card--1, .card--2, .card--3 { grid-column: 1; margin-top: 0; }
  .card--3::before { display: none; }
  .add { opacity: 1; transform: none; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .nav { gap: 16px; }
  .footer__bottom { flex-direction: column; }
  .manifesto__card { padding: 32px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- header on scroll ---------- */
.header { transition: background .3s, padding .3s; }
.header.solid { background: rgba(8,8,10,.88); padding-block: 12px; backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }

/* ---------- materials ---------- */
.materials { max-width: 1240px; margin: 0 auto; padding: 40px var(--pad) 140px; }
.materials__head { margin-bottom: 56px; }
.materials__list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.mat { padding: 32px 28px 36px 0; border-right: 1px solid var(--line); }
.mat + .mat { padding-left: 28px; }
.mat:last-child { border-right: 0; }
.mat__n { font-family: var(--serif); font-style: italic; font-size: 13px; color: var(--accent); }
.mat h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; margin: 18px 0 10px; }
.mat p { font-size: 11px; line-height: 1.7; color: var(--muted); min-height: 5.2em; }
.mat__spec {
  display: inline-block; margin-top: 18px; padding: 4px 9px;
  font-size: 8px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid var(--line); color: var(--fg);
}
.mat:nth-child(2) { transition-delay: .08s; } .mat:nth-child(3) { transition-delay: .16s; } .mat:nth-child(4) { transition-delay: .24s; }

/* ---------- perks ---------- */
.perks { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.perk { padding: 30px var(--pad); display: flex; flex-direction: column; gap: 2px; text-align: center; }
.perk + .perk { border-left: 1px solid var(--line); }
.perk b { font-family: var(--serif); font-weight: 500; font-size: 17px; }
.perk span { font-size: 10px; color: var(--muted); }

/* ---------- newsletter ---------- */
.news { padding: 120px var(--pad); }
.news__inner { max-width: 620px; margin: 0 auto; text-align: center; }
.news__form { display: flex; margin-top: 36px; border: 1px solid var(--line); transition: border-color .25s; }
.news__form:focus-within { border-color: var(--accent); }
.news__form input {
  flex: 1; min-width: 0; padding: 0 20px; background: transparent; border: 0; outline: 0;
  color: var(--fg); font: inherit; font-size: 12px;
}
.news__form input::placeholder { color: var(--dim); }
.news__msg { min-height: 1.6em; margin-top: 14px; font-size: 11px; color: var(--muted); }
.news__msg.err { color: #e5675b; }
.news__msg.ok { color: var(--accent); }

/* ---------- cart drawer ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.6);
  opacity: 0; pointer-events: none; transition: opacity .35s;
}
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; z-index: 80; top: 0; right: 0; bottom: 0; width: min(400px, 100%);
  display: flex; flex-direction: column;
  background: var(--bg-2); border-left: 1px solid var(--line);
  transform: translateX(100%); transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.drawer.open { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; }
.drawer__close { font-size: 28px; line-height: 1; color: var(--muted); transition: color .2s; }
.drawer__close:hover { color: var(--fg); }
.drawer__list { list-style: none; flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer__empty { padding: 40px 24px; text-align: center; font-size: 12px; color: var(--dim); }
.drawer__list:not(:empty) + .drawer__empty { display: none; }
.ci { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ci img { width: 64px; height: 80px; object-fit: cover; }
.ci h4 { font-family: var(--serif); font-size: 13px; font-weight: 700; }
.ci__price { font-size: 11px; color: var(--muted); margin: 2px 0 8px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.qty button { width: 24px; height: 24px; font-size: 13px; color: var(--muted); transition: color .2s, background .2s; }
.qty button:hover { color: #000; background: var(--fg); }
.qty span { min-width: 24px; text-align: center; font-size: 11px; }
.ci__rm { font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); transition: color .2s; }
.ci__rm:hover { color: var(--accent); }
.drawer__foot { padding: 22px 24px 26px; border-top: 1px solid var(--line); }
.drawer__total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.drawer__total b { font-family: var(--serif); font-size: 22px; letter-spacing: 0; color: var(--fg); }
.btn--full { width: 100%; text-align: center; }
.btn:disabled { opacity: .35; pointer-events: none; }
.news__form .btn { white-space: nowrap; }

@media (max-width: 900px) {
  .materials__list { grid-template-columns: 1fr 1fr; }
  .mat, .mat + .mat { padding: 28px 20px 32px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .mat:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
  .mat p { min-height: 0; }
  .perks { grid-template-columns: 1fr; }
  .perk + .perk { border-left: 0; border-top: 1px solid var(--line); }
  .news { padding-block: 80px; }
}
@media (max-width: 520px) {
  .materials__list { grid-template-columns: 1fr; }
  .mat:nth-child(even) { padding-left: 0; border-left: 0; }
  .news__form { flex-direction: column; }
  .news__form input { padding: 16px 20px; }
}

/* ---------- language switcher ---------- */
.lang { display: flex; gap: 2px; }
.lang button {
  padding: 4px 6px; font-size: 9px; font-weight: 600; letter-spacing: .12em; color: var(--dim);
  transition: color .25s;
}
.lang button:hover { color: var(--fg); }
.lang button[aria-pressed="true"] { color: var(--accent); }
.nav__links { display: flex; align-items: center; gap: 28px; }
.burger { display: none; }

/* ---------- mobile ---------- */
@media (max-width: 700px) {
  .header { padding-block: 12px; }
  .nav { gap: 6px; }
  .lang button { padding: 10px 7px; font-size: 10px; }
  .cart { width: 40px; height: 40px; }
  .cart__badge { min-width: 16px; height: 16px; font-size: 9px; border-radius: 8px; }

  .burger {
    display: grid; place-content: center; gap: 6px; width: 40px; height: 40px;
  }
  .burger i { display: block; width: 20px; height: 1.5px; background: var(--fg); transition: transform .3s; }
  .header.menu-open .burger i:first-child { transform: translateY(3.75px) rotate(45deg); }
  .header.menu-open .burger i:last-child { transform: translateY(-3.75px) rotate(-45deg); }

  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 4px var(--pad) 12px;
    background: rgba(8,8,10,.96); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden;
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .header.menu-open .nav__links { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
  .nav__links a { padding: 16px 0; font-size: 12px; border-bottom: 1px solid var(--line); }
  .nav__links a:last-child { border-bottom: 0; }
}

@media (max-width: 520px) {
  .hero { min-height: 0; gap: 36px; padding: 96px var(--pad) 48px; }
  .hero__title { font-size: clamp(42px, 13.5vw, 64px); }
  .hero__lead { max-width: none; font-size: 14px; margin: 22px 0 28px; }
  .eyebrow { font-size: 11px; }
  .btn { padding: 17px 30px; font-size: 11px; }
  .hero .btn { display: block; text-align: center; }
  .hero__photo { aspect-ratio: 4 / 5; }
  .weather { padding: 12px 16px; }
  .weather small { font-size: 10px; }
  .weather strong { font-size: 14px; }

  .marquee { padding: 24px 0; }
  .marquee__track { gap: 24px; animation-duration: 28s; }

  .arsenal { padding: 72px var(--pad) 88px; }
  .arsenal__note { max-width: none; font-size: 14px; }
  .grid { gap: 56px; }
  .card h3 { font-size: 18px; }
  .card b { font-size: 15px; }
  .card p { font-size: 12px; margin-top: 4px; }
  .tag { font-size: 9px; padding: 4px 9px; }
  .add { padding: 15px 0; font-size: 11px; }

  .materials { padding: 8px var(--pad) 80px; }
  .materials__head { margin-bottom: 36px; }
  .mat p { font-size: 14px; }
  .mat__spec { font-size: 10px; padding: 5px 10px; }

  .manifesto { min-height: 0; padding: 72px var(--pad); }
  .manifesto__card { padding: 32px 22px; }
  .manifesto p { font-size: 14px; }

  .perk { padding: 24px var(--pad); }
  .perk b { font-size: 19px; }
  .perk span { font-size: 13px; }

  .news { padding-block: 64px; }
  .news__form { margin-top: 28px; }
  .news__form input { font-size: 16px; }   /* stops iOS zooming into the field */
  .news__form .btn { padding: 17px 20px; }
  .news__msg { font-size: 13px; }

  .footer { padding: 56px var(--pad) calc(24px + env(safe-area-inset-bottom)); }
  .footer__inner { gap: 36px 24px; padding-bottom: 40px; }
  .footer__brand p { max-width: none; font-size: 13px; }
  .footer__col { gap: 4px; }
  .footer__col a { font-size: 13px; padding: 6px 0; }
  .footer__col h4 { font-size: 10px; margin-bottom: 8px; }
  .footer__bottom { font-size: 11px; gap: 12px; }
  .footer__soc { gap: 22px; }
  .footer__soc a { padding: 4px 0; }

  .toast { width: calc(100% - 2 * var(--pad)); max-width: 360px; text-align: center; bottom: calc(20px + env(safe-area-inset-bottom)); }

  .drawer { width: 100%; border-left: 0; }
  .drawer__head, .drawer__foot { padding-inline: var(--pad); }
  .drawer__foot { padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
  .drawer__list { padding-inline: var(--pad); }
  .drawer__close { width: 40px; height: 40px; font-size: 32px; margin-right: -8px; }
  .ci { grid-template-columns: 72px 1fr auto; }
  .ci img { width: 72px; height: 92px; }
  .ci h4 { font-size: 15px; }
  .ci__price { font-size: 13px; }
  .qty button { width: 36px; height: 36px; font-size: 16px; }
  .qty span { font-size: 13px; min-width: 28px; }
  .ci__rm { font-size: 10px; padding: 10px 0 10px 8px; }
}

@media (max-width: 360px) {
  .logo { font-size: 16px; }
  .lang button { padding: 10px 5px; }
}

/* touch screens have no hover: keep the add-to-cart button visible */
@media (hover: none) {
  .add { opacity: 1; transform: none; }
  .card:hover .card__img img { transform: none; }
}

/* the 100vh hero jumps around under mobile browser bars */
@supports (height: 100svh) {
  .hero { min-height: 100svh; }
  @media (max-width: 520px) { .hero { min-height: 0; } }
}

.footer__bottom a[href*="webstufflab"] { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
