@font-face {
  font-family: "Guano Apes";
  src: url("fonts/GuanoApes.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* =========================================================
   maruCraft — landing
   palette: off-black ink, deep navy, periwinkle, off-white
   fonts:   Cascadia Mono (body/ui) + Rubik Marker Hatched (display)
   ========================================================= */
:root {
  --ink:        #1b1d2b;        /* off-black, never #000 */
  --ink-soft:   #3a3d55;
  --paper:      #efeee9;        /* warm off-white */
  --paper-2:    #e6e5df;
  --navy:       #2d3264;        /* deep navy (middle section + accent) */
  --navy-2:     #24284f;
  --peri:       #a9b2dd;        /* periwinkle catalog bg */
  --peri-2:     #b7bfe2;
  --card:       #ececec;
  --line:       rgba(27,29,43,0.14);
  --line-light: rgba(255,255,255,0.16);

  --ease:       cubic-bezier(0.16, 1, 0.3, 1);
  --dur:        .5s;
  --radius-lg:  28px;
  --radius-md:  18px;
  --radius-sm:  12px;

  --mono:  "Cascadia Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: "Guano Apes", "Rubik Marker Hatched", "Caveat Brush", var(--mono);
}

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

html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* visually hidden but readable by search engines and screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---------- shared ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 55%, transparent);
}
.eyebrow--dark { color: color-mix(in srgb, var(--navy) 70%, transparent); }

.btn {
  --bg: var(--ink);
  --fg: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
  box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 10px 24px -16px color-mix(in srgb, var(--ink) 60%, transparent);
  cursor: pointer;
  user-select: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn--ghost {
  --bg: transparent;
  --fg: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}
.btn--ghost:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.btn--sm { padding: 10px 16px; font-size: 11px; }
.btn--big { padding: 18px 28px; font-size: 14px; }
.btn--vk {
  --bg: #0077ff;
  --fg: #ffffff;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset;
}
.btn--vk:hover { box-shadow: 0 1px 0 rgba(255,255,255,.25) inset; }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: min(1200px, calc(100% - 24px));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 10px 14px 10px 14px;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
.nav.is-scrolled {
  box-shadow: 0 10px 30px -18px color-mix(in srgb, var(--ink) 40%, transparent);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
}
.nav__mark { display: flex; align-items: center; justify-self: start; }
.nav__cta { justify-self: end; }
.nav__mark img { width: 34px; height: 34px; border-radius: 50%; display: block; }
.nav__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 26px);
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.nav__links a { padding: 4px 2px; position: relative; color: var(--ink-soft); transition: color .2s var(--ease); line-height: 1; }
.nav__links a:hover { color: var(--ink); }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); }

/* burger */
.nav__burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 0;
  cursor: pointer;
  position: relative;
  transition: background .25s var(--ease);
}
.nav__burger:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.nav__burger span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transform-origin: center;
  transition: transform .3s var(--ease), opacity .2s var(--ease), top .3s var(--ease);
  translate: -50% -50%;
}
.nav__burger span:nth-child(1) { top: calc(50% - 5px); }
.nav__burger span:nth-child(3) { top: calc(50% + 5px); }
.nav__burger.is-open span:nth-child(1) { top: 50%; transform: rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { top: 50%; transform: rotate(-45deg); }

/* mobile menu overlay */
.mmenu {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: color-mix(in srgb, var(--paper) 96%, transparent);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s var(--ease);
}
.mmenu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.mmenu__inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: clamp(18px, 3vw, 28px);
  padding: 80px 24px 40px;
}
.mmenu__inner a {
  font-family: var(--mono);
  font-size: clamp(18px, 5vw, 28px);
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--ink);
  line-height: 1;
}
.mmenu__inner a.btn {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 1.5px;
  margin-top: 20px;
  text-transform: uppercase;
  color: var(--fg);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 50% 110%, color-mix(in srgb, var(--peri) 40%, transparent), transparent 60%),
    var(--paper);
  display: grid;
  place-items: center;
  padding: 120px 5vw 80px;
}
.hero-rope {
  position: absolute;
  top: 50%;
  height: min(92%, 860px);
  width: auto;
  transform: translateY(-50%);
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 30px 40px color-mix(in srgb, var(--navy) 25%, transparent));
  opacity: .98;
}
.hero-rope--left  { left: -4vw; animation: sway 9s ease-in-out infinite; }
.hero-rope--right { right: -4vw; transform: translateY(-50%) scaleX(-1); animation: sway 10s ease-in-out infinite reverse; }
@keyframes sway {
  0%, 100% { transform: translateY(-50%) rotate(0); }
  50%      { transform: translateY(calc(-50% - 6px)) rotate(.6deg); }
}
.hero-rope--right { animation-name: sway-r; }
@keyframes sway-r {
  0%, 100% { transform: translateY(-50%) scaleX(-1) rotate(0); }
  50%      { transform: translateY(calc(-50% - 6px)) scaleX(-1) rotate(.6deg); }
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.hero-logo {
  width: min(52vw, 560px);
  filter: drop-shadow(0 12px 18px color-mix(in srgb, var(--navy) 20%, transparent));
}
.hero__tagline {
  font-family: var(--mono);
  font-size: clamp(14px, 1.6vw, 18px);
  letter-spacing: .5px;
  color: var(--ink-soft);
  max-width: 44ch;
  line-height: 1.6;
}
.hero__actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero__meta {
  position: absolute;
  left: 0; right: 0; bottom: 18px;
  display: flex;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 40px);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 45%, transparent);
  z-index: 2;
}

/* ---------- USP strip ---------- */
.usp {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.usp ul {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.usp li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 26px clamp(18px, 3vw, 36px);
  border-left: 1px solid var(--line);
}
.usp li:first-child { border-left: 0; }
.usp li b {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  color: color-mix(in srgb, var(--ink) 50%, transparent);
  letter-spacing: 1.5px;
}
.usp li span {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.25;
  color: var(--ink);
  text-transform: lowercase;
  letter-spacing: .3px;
}

/* ---------- MIDDLE / TAGS ---------- */
.middle {
  background: var(--navy);
  color: #eaeaf0;
  padding: clamp(56px, 7vw, 110px) clamp(24px, 5vw, 80px);
  position: relative;
  overflow: hidden;
}
.middle::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 500px at 85% 20%, color-mix(in srgb, var(--peri) 20%, transparent), transparent 60%),
    radial-gradient(600px 400px at 10% 90%, color-mix(in srgb, #ffffff 8%, transparent), transparent 70%);
  pointer-events: none;
}
.middle__inner {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 2vw, 30px) clamp(22px, 3vw, 52px);
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(38px, 5.8vw, 86px);
  line-height: .95;
  color: #ececf2;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.tag { display: inline-block; white-space: nowrap; transition: transform .5s var(--ease), color .3s var(--ease); }
.tag:hover { color: #fff; transform: translateY(-2px) rotate(-1deg); }
.tag--1  { margin-left: 0; }
.tag--2  { margin-left: 22%; }
.tag--3  { margin-left: 2%; }
.tag--4  { margin-left: 4%; }
.tag--5  { margin-left: 2%; }
.tag--6  { margin-left: 0; }
.tag--7  { margin-left: 2%; }
.tag--8  { margin-left: 26%; }
.tag--9  { margin-left: 4%; }
.tag--10 { margin-left: 16%; }

.about {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: #c9cde2;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.about__label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: color-mix(in srgb, #c9cde2 70%, transparent);
  margin-bottom: 6px;
}

/* ---------- CATALOG ---------- */
.catalog {
  background: var(--peri);
  padding: clamp(70px, 9vw, 130px) clamp(20px, 5vw, 60px) clamp(90px, 10vw, 140px);
  position: relative;
}
.catalog__head {
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 70px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.catalog__title {
  font-family: var(--display);
  font-weight: 400;
  color: var(--navy);
  font-size: clamp(60px, 10vw, 140px);
  letter-spacing: 4px;
  line-height: .9;
  text-transform: uppercase;
}
.catalog__sub {
  max-width: 56ch;
  font-size: 14px;
  line-height: 1.65;
  color: color-mix(in srgb, var(--navy) 80%, transparent);
}


.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 28px);
  max-width: 1200px;
  margin: 0 auto;
}
.card--offset { grid-column: 2; }

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card__link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
}
.card__link {
  display: block;
  color: inherit;
  text-decoration: none;
  outline: none;
}
.card__link:focus-visible .card__img {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}
.card__img {
  background: var(--card);
  border-radius: var(--radius-md);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  padding: 0;
  position: relative;
  box-shadow:
    0 1px 0 rgba(255,255,255,.6) inset,
    0 18px 40px -22px color-mix(in srgb, var(--navy) 55%, transparent);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.card__img::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% 110%, color-mix(in srgb, var(--navy) 10%, transparent), transparent 50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.card:hover .card__img {
  transform: translateY(-4px);
  box-shadow:
    0 1px 0 rgba(255,255,255,.6) inset,
    0 28px 50px -22px color-mix(in srgb, var(--navy) 65%, transparent);
}
.card:hover .card__img::after { opacity: 1; }
.card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease);
}
.card:hover .card__img img { transform: scale(1.04); }

.card__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 2px 6px;
  font-family: var(--mono);
}
.card__name {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--navy);
}
.card__price {
  font-size: 12px;
  letter-spacing: .5px;
  color: color-mix(in srgb, var(--navy) 70%, transparent);
  font-feature-settings: "tnum";
}

/* ---------- MARQUEE ---------- */
/* ── CUSTOM / INDIVIDUAL ORDER ────────────────────── */
.custom {
  padding: clamp(64px, 8vw, 120px) clamp(20px, 5vw, 80px);
  background: color-mix(in srgb, var(--peri) 8%, var(--paper));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.custom__inner {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.custom__head {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.custom__head h2 {
  margin-top: 12px;
  font-size: clamp(60px, 10vw, 140px);
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--navy);
  line-height: 1.1;
}
.custom__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.custom__body > p {
  font-size: 15px;
  line-height: 1.7;
  color: color-mix(in srgb, var(--navy) 85%, transparent);
}
.custom__points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}
.custom__points li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 13px;
}
.custom__points li b {
  font-weight: 500;
  letter-spacing: .5px;
  text-transform: uppercase;
  font-size: 11px;
  color: color-mix(in srgb, var(--navy) 60%, transparent);
}
.custom__points li span {
  color: var(--navy);
}

@media (max-width: 760px) {
  .custom__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .custom__head { position: static; }
}

/* ── MARQUEE ────────────────────────────────────────── */
.marquee {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding: 18px 0;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}
.marquee__track {
  display: flex;
  gap: 40px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  will-change: transform;
}
.marquee__track span { flex: 0 0 auto; }
@keyframes marquee {
  from { transform: translate3d(0,0,0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* ---------- HOW ---------- */
.how {
  padding: clamp(80px, 10vw, 140px) clamp(20px, 5vw, 80px);
  max-width: 1200px;
  margin: 0 auto;
}
.how__head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: clamp(32px, 5vw, 60px);
}
.how__head h2 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--ink);
  font-size: clamp(48px, 7vw, 96px);
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: .9;
}
.how__list {
  display: grid;
  grid-template-columns: 1fr;
}
.how__list li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.how__list li:last-child { border-bottom: 1px solid var(--line); }
.how__num {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 3px;
  color: color-mix(in srgb, var(--ink) 55%, transparent);
}
.how__list h3 {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: .5px;
  color: var(--ink);
  margin-bottom: 8px;
  text-transform: lowercase;
}
.how__list p {
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 58ch;
}

/* ---------- FOOTER / CTA ---------- */
.foot {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(80px, 10vw, 140px) clamp(20px, 5vw, 80px) 40px;
  position: relative;
  overflow: hidden;
}
.foot::before {
  content: "";
  position: absolute; inset: auto -10% -40% -10%;
  height: 60%;
  background: radial-gradient(600px 260px at 50% 0%, color-mix(in srgb, var(--peri) 22%, transparent), transparent 70%);
  pointer-events: none;
}
.foot__cta {
  max-width: 1200px;
  margin: 0 auto 64px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
  position: relative;
}
.foot__cta h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(56px, 9vw, 130px);
  line-height: .9;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--paper);
}
.foot__links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.foot__links .btn {
  --bg: var(--paper);
  --fg: var(--ink);
}
.foot__links .btn--ghost {
  --bg: transparent;
  --fg: var(--paper);
  border-color: color-mix(in srgb, var(--paper) 25%, transparent);
}
.foot__meta {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid color-mix(in srgb, var(--paper) 15%, transparent);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--paper) 60%, transparent);
  position: relative;
}
.foot__legal {
  max-width: 1200px;
  margin: 16px auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.5px;
  color: color-mix(in srgb, var(--paper) 35%, transparent);
}
.foot__legal-sep {
  opacity: 0.5;
}
.foot__legal-link {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.5px;
  color: color-mix(in srgb, var(--paper) 50%, transparent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
}
.foot__legal-link:hover {
  color: color-mix(in srgb, var(--paper) 80%, transparent);
}

/* legal modal */
.modal--legal .modal__dialog--legal {
  max-width: 560px;
  display: block;
  padding: 40px;
}
.modal--legal .modal__body--legal {
  display: block;
}
.modal--legal .modal__body--legal p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink);
}
.modal--legal .modal__body--legal a {
  color: var(--navy);
}
.modal__legal-note {
  margin-top: 20px !important;
  font-size: 12px !important;
  color: var(--ink-soft) !important;
  opacity: 0.7;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .usp ul { grid-template-columns: repeat(2, 1fr); }
  .usp li:nth-child(3) { border-left: 0; }
  .usp li:nth-child(3), .usp li:nth-child(4) { border-top: 1px solid var(--line); }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: block; grid-column: 3; }
  .nav { grid-template-columns: auto 1fr auto; }

  /* ropes become corner accents, not full-height flanks */
  .hero-rope { height: 42%; opacity: .55; top: 0; transform: translateY(0); filter: drop-shadow(0 20px 30px color-mix(in srgb, var(--navy) 20%, transparent)); }
  .hero-rope--left  { left: -22vw; animation: none; }
  .hero-rope--right { right: -22vw; transform: translateY(0) scaleX(-1); animation: none; }
  .hero-logo { width: 78vw; }

  .middle__inner { grid-template-columns: 1fr; gap: 40px; }
  .tags { font-size: clamp(34px, 10vw, 64px); }
  .tag { margin-left: 0 !important; }

  .grid { grid-template-columns: repeat(2, 1fr); }
  .card--offset { grid-column: auto; }

  .how__list li { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }

  .foot__cta { grid-template-columns: 1fr; align-items: start; }
  .foot__meta { font-size: 10px; letter-spacing: 1.5px; }
}

@media (max-width: 520px) {
  body { font-size: 14px; }
  .hero { padding: 110px 4vw 70px; }
  /* phones: ropes framing the top, pulled just enough to not cover logo/tagline */
  .hero-rope { height: 48%; opacity: .7; top: -1%; transform: translateY(0); }
  .hero-rope--left  { left: -34vw; animation: none; }
  .hero-rope--right { right: -34vw; transform: translateY(0) scaleX(-1); animation: none; }
  .hero__actions .btn { padding: 12px 18px; }

  .usp ul { grid-template-columns: 1fr; }
  .usp li { border-left: 0; border-top: 1px solid var(--line); }
  .usp li:first-child { border-top: 0; }

  .catalog { padding: 60px 4vw 80px; }
  .grid { gap: 14px; }
}

/* =========================================================
   MODAL
   ========================================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 40px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s var(--ease);
}
.modal.is-open { opacity: 1; visibility: visible; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--ink) 55%, transparent);
  backdrop-filter: blur(8px) saturate(1.1);
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
  cursor: pointer;
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(88dvh, 720px);
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  box-shadow:
    0 1px 0 rgba(255,255,255,.5) inset,
    0 30px 60px -20px color-mix(in srgb, var(--ink) 60%, transparent);
  transform: translateY(12px) scale(.98);
  transition: transform .45s var(--ease);
}
.modal.is-open .modal__dialog { transform: none; }

.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  backdrop-filter: blur(6px);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.modal__close:hover { transform: scale(1.05); background: var(--paper); }

.modal__media {
  background: var(--card);
  display: grid;
  place-items: center;
  overflow: hidden;
  align-self: stretch;
}
.modal__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal__body {
  padding: clamp(24px, 3.5vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}
.modal__title {
  font-family: var(--mono);
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.1;
}
.modal__price {
  font-family: var(--mono);
  font-size: 20px;
  color: var(--navy);
  font-feature-settings: "tnum";
  letter-spacing: .5px;
}
.modal__desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 46ch;
}
.modal__specs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 0;
  margin-top: 4px;
}
.modal__specs li {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--navy) 55%, transparent);
  display: flex;
  align-items: center;
  gap: 10px;
}
.modal__specs li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--navy) 35%, transparent);
  flex-shrink: 0;
}
.modal__actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
  padding-top: 14px;
  flex-wrap: wrap;
}
.modal__actions .btn svg { flex: 0 0 auto; }

@media (max-width: 760px) {
  .modal__dialog {
    grid-template-columns: 1fr;
    max-height: 90dvh;
  }
  .modal__media { aspect-ratio: 4 / 3; }
}
