/* Heritage Wallpapers — design tokens + components */
:root {
  --bg: #46383b;            /* brand aubergine-brown, sampled from the logo */
  --bg-deep: #342a2c;
  --bg-raise: #54444a;
  --line: rgba(246, 241, 234, .16);
  --ivory: #f6f1ea;
  --ivory-dim: rgba(246, 241, 234, .76);
  --ink: #2a2123;           /* text on ivory sections */
  --ink-dim: #5d4f51;
  --brass: #d2b183;
  --brass-deep: #8a6a3d;    /* brass on ivory (4.6:1) */

  --font-display: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px; --s9: 112px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t: 240ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ivory);
  font: 400 1rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }
.ivory :focus-visible { outline-color: var(--brass-deep); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ivory); color: var(--ink); padding: 10px 16px; z-index: 200; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
section { padding-block: clamp(64px, 9vw, var(--s9)); }
.deep { background: var(--bg-deep); }
.ivory { background: var(--ivory); color: var(--ink); }
.ivory .dim { color: var(--ink-dim); }

/* ---------- type ---------- */
.display { font-family: var(--font-display); font-weight: 500; line-height: 1.04; letter-spacing: -.01em; margin: 0; }
h1.display { font-size: clamp(2.8rem, 7.4vw, 6rem); }
h2.display { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h3.display { font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.15; }
.eyebrow { font-size: .75rem; letter-spacing: .28em; text-transform: uppercase; color: var(--brass); font-weight: 500; margin: 0 0 var(--s4); }
.ivory .eyebrow { color: var(--brass-deep); }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ivory-dim); max-width: 52ch; }
.dim { color: var(--ivory-dim); }
em.it { font-style: italic; font-weight: 400; color: var(--brass); }
.ivory em.it { color: var(--brass-deep); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: 0 var(--s6); border-radius: var(--radius);
  font-size: .8rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  border: 1px solid transparent; transition: background var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease), transform var(--t) var(--ease);
  touch-action: manipulation; cursor: pointer;
}
.btn-primary { background: var(--ivory); color: var(--ink); }
.btn-primary:hover { background: var(--brass); }
.btn-ghost { border-color: var(--line); color: var(--ivory); background: transparent; }
.btn-ghost:hover { border-color: var(--ivory); }
.ivory .btn-primary { background: var(--ink); color: var(--ivory); }
.ivory .btn-primary:hover { background: var(--bg); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }
.link { display: inline-flex; gap: 8px; align-items: center; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; border-bottom: 1px solid var(--brass); padding-bottom: 4px; min-height: 24px; }
.link:hover { color: var(--brass); }

/* ---------- announcement + header ---------- */
.announce { background: var(--bg-deep); text-align: center; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; padding: 10px var(--gutter); color: var(--ivory-dim); border-bottom: 1px solid var(--line); }
.announce b { color: var(--brass); font-weight: 500; }

header.site { position: sticky; top: 0; z-index: 60; background: rgba(70, 56, 59, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
header.site .bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 76px; }
nav.primary { display: flex; gap: var(--s6); }
nav.primary a { font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; padding: 12px 0; position: relative; }
nav.primary a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform var(--t) var(--ease); }
nav.primary a:hover::after, nav.primary a[aria-current="page"]::after { transform: scaleX(1); }
.brand { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; gap: 5px; }
.brand .h { font-family: var(--font-display); font-weight: 600; font-size: 1.7rem; letter-spacing: .06em; }
.brand .w { font-family: var(--font-display); font-weight: 500; font-size: .66rem; letter-spacing: .5em; margin-right: -.5em; }
.bar .right { display: flex; justify-content: flex-end; align-items: center; gap: var(--s3); }
.bar .right .btn { min-height: 40px; padding: 0 var(--s5); }
.menu-btn { display: none; width: 44px; height: 44px; background: none; border: 0; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 22px; height: 1.5px; background: var(--ivory); position: relative; margin: auto; transition: transform var(--t) var(--ease), background var(--t); }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -7px; } .menu-btn span::after { top: 7px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }
.drawer { display: none; }

@media (max-width: 860px) {
  header.site .bar { grid-template-columns: 44px 1fr 44px; min-height: 68px; }
  nav.primary, .bar .right .btn { display: none; }
  .menu-btn { display: block; }
  .bar .right { justify-content: flex-end; }
  .drawer { display: block; position: fixed; inset: 0; top: 68px; background: var(--bg-deep); padding: var(--s7) var(--gutter); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility var(--t); z-index: 55; }
  .drawer.open { opacity: 1; transform: none; visibility: visible; }
  .drawer a { display: block; font-family: var(--font-display); font-size: 2.2rem; padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
}

/* ---------- hero ---------- */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 112px); overflow: hidden; position: relative; }
.hero .grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero h1 { margin-bottom: var(--s5); }
.hero .lede { margin-bottom: var(--s6); }
.hero .cta { display: flex; flex-wrap: wrap; gap: var(--s3); margin-bottom: var(--s7); }
.trust { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s6); padding: 0; margin: 0; list-style: none; font-size: .8rem; color: var(--ivory-dim); }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust svg { width: 16px; height: 16px; color: var(--brass); flex: none; }

.phones { position: relative; height: clamp(420px, 52vw, 640px); }
.phones .phone { position: absolute; width: clamp(150px, 19vw, 240px); }
.phones .phone:nth-child(1) { left: 0; top: 14%; transform: rotate(-6deg); }
.phones .phone:nth-child(2) { left: 50%; top: 0; transform: translateX(-50%); z-index: 2; width: clamp(170px, 22vw, 276px); }
.phones .phone:nth-child(3) { right: 0; top: 18%; transform: rotate(6deg); }
.phones .phone { transition: transform .6s var(--ease); }
.phones:hover .phone:nth-child(1) { transform: rotate(-9deg) translateX(-10px); }
.phones:hover .phone:nth-child(3) { transform: rotate(9deg) translateX(10px); }

/* phone mockup */
.phone { aspect-ratio: 9 / 18.4; border-radius: 13% / 6.4%; padding: 2.6%; background: #1b1516; box-shadow: 0 0 0 1.5px #5a494d, 0 30px 60px -20px rgba(0, 0, 0, .65); position: relative; }
.phone .screen { position: absolute; inset: 2.6%; border-radius: 11% / 5.4%; overflow: hidden; background: var(--bg-deep); }
.phone .screen .art { width: 100%; height: 100%; }
.phone .screen::after { content: ""; position: absolute; inset: 0 0 45% 0; background: linear-gradient(rgba(14, 9, 11, .62), rgba(14, 9, 11, 0)); z-index: 1; pointer-events: none; }
.phone .island { position: absolute; top: 2.6%; left: 50%; transform: translateX(-50%); width: 28%; height: 2.6%; background: #000; border-radius: 99px; z-index: 3; }
.phone .lock { position: absolute; top: 12%; left: 0; right: 0; text-align: center; z-index: 2; color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .45); pointer-events: none; }
.phone .lock .d { font-size: clamp(.55rem, 1vw, .8rem); letter-spacing: .04em; opacity: .9; }
.phone .lock .t { font-family: var(--font-body); font-weight: 300; font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.05; letter-spacing: -.02em; }
.phone.sm .lock { top: 10%; } .phone.sm .lock .t { font-size: clamp(1.4rem, 2.6vw, 2rem); } .phone.sm .lock .d { font-size: .55rem; }

.laptop { aspect-ratio: 16 / 10; border-radius: 10px 10px 4px 4px; padding: 2.2%; background: #1b1516; box-shadow: 0 0 0 1.5px #5a494d, 0 30px 60px -20px rgba(0, 0, 0, .65); position: relative; }
.laptop .screen { position: absolute; inset: 2.2% 2.2% 2.2% 2.2%; border-radius: 4px; overflow: hidden; }
.laptop .screen .art { width: 100%; height: 100%; }
.laptop::after { content: ""; position: absolute; left: -4%; right: -4%; bottom: -3.5%; height: 3.5%; background: linear-gradient(#6a585d, #3b3033); border-radius: 0 0 14px 14px; }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); padding-block: var(--s5); overflow: hidden; background: var(--bg-deep); }
.marquee .track { display: flex; gap: var(--s7); width: max-content; animation: slide 38s linear infinite; font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 2rem); font-style: italic; color: var(--ivory-dim); white-space: nowrap; }
.marquee .track span { display: inline-flex; gap: var(--s7); align-items: center; }
.marquee .track span::after { content: "✦"; font-style: normal; font-size: .6em; color: var(--brass); }
.marquee:hover .track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- section head ---------- */
.head { display: flex; justify-content: space-between; align-items: end; gap: var(--s6); flex-wrap: wrap; margin-bottom: clamp(32px, 5vw, 64px); }
.head > div { max-width: 640px; }
.head p { margin: var(--s4) 0 0; }

/* ---------- bundle feature ---------- */
.bundle { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.bundle .stage { position: relative; background: var(--bg-deep); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 56px); display: grid; place-items: center; min-height: 420px; overflow: hidden; }
.bundle .stage .laptop { width: 86%; }
.bundle .stage .phone { position: absolute; width: 26%; right: 6%; bottom: -8%; transform: rotate(5deg); }
.badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--brass); color: var(--brass); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; padding: 6px 12px; border-radius: 99px; margin-bottom: var(--s5); }
.price { display: flex; align-items: baseline; gap: var(--s3); flex-wrap: wrap; margin: var(--s5) 0; }
.price .now { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 500; font-variant-numeric: tabular-nums; line-height: 1; }
.price .was { color: var(--ivory-dim); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.price .save { color: var(--brass); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.ivory .price .was { color: var(--ink-dim); }
.ticks { list-style: none; padding: 0; margin: 0 0 var(--s6); display: grid; gap: var(--s3); color: var(--ivory-dim); }
.ticks li { display: flex; gap: var(--s3); align-items: start; }
.ticks svg { width: 18px; height: 18px; margin-top: 4px; color: var(--brass); flex: none; }

/* ---------- collection cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 32px); }
.card { display: flex; flex-direction: column; gap: var(--s4); position: relative; }
.card .media { position: relative; aspect-ratio: 4 / 5; background: var(--bg-deep); border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; border: 1px solid var(--line); }
.card .media .phone { width: 52%; transition: transform .6s var(--ease); }
.card .media .phone.sm { transform: translateY(8%); }
.card:hover .media .phone { transform: translateY(2%) scale(1.03); }
.card .media .bgart { position: absolute; inset: 0; opacity: .22; transition: opacity .5s var(--ease), transform .8s var(--ease); }
.card .media .bgart .art { width: 100%; height: 100%; }
.card:hover .media .bgart { opacity: .4; transform: scale(1.05); }
.card .tag { position: absolute; top: 12px; left: 12px; z-index: 3; background: var(--ivory); color: var(--ink); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; padding: 5px 10px; border-radius: 2px; font-weight: 500; }
.card .meta { display: flex; justify-content: space-between; gap: var(--s3); align-items: baseline; }
.card h3 { margin: 0; }
.card .sub { font-size: .82rem; color: var(--ivory-dim); letter-spacing: .04em; margin: 4px 0 0; }
.card .p { font-variant-numeric: tabular-nums; white-space: nowrap; }
.card .stretch::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.card .stretch:focus-visible { outline-offset: 6px; }
@media (max-width: 1080px) { .cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .cards { grid-template-columns: 1fr; } .card .media { aspect-ratio: 1 / 1; } }

/* ---------- device toggle / preview ---------- */
.toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 99px; padding: 4px; gap: 4px; }
.toggle button { background: none; border: 0; min-height: 40px; padding: 0 var(--s5); border-radius: 99px; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; transition: background var(--t), color var(--t); }
.toggle button[aria-pressed="true"] { background: var(--ivory); color: var(--ink); }
.preview { background: var(--bg-deep); border: 1px solid var(--line); border-radius: var(--radius); min-height: clamp(420px, 56vw, 640px); display: grid; place-items: center; padding: var(--s6); margin-top: var(--s6); }
.preview .phone { width: min(260px, 60%); }
.preview .laptop { width: min(720px, 92%); }

/* ---------- features (ivory) ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 64px); }
.features article { border-top: 1px solid rgba(42, 33, 35, .25); padding-top: var(--s5); }
.features .num { font-family: var(--font-display); font-size: 1.1rem; font-style: italic; color: var(--brass-deep); }
.features h3 { margin: var(--s3) 0; }
.features p { margin: 0; color: var(--ink-dim); }
@media (max-width: 780px) { .features { grid-template-columns: 1fr; } }

/* ---------- free sample ---------- */
.sample { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.sample form { display: grid; gap: var(--s3); max-width: 480px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ivory-dim); }
.field input { min-height: 52px; padding: 0 var(--s4); background: rgba(246, 241, 234, .06); border: 1px solid var(--line); color: var(--ivory); border-radius: var(--radius); font: inherit; }
.field input::placeholder { color: rgba(246, 241, 234, .5); }
.field input:focus-visible { outline-offset: 0; border-color: var(--brass); }
.form-note { font-size: .8rem; color: var(--ivory-dim); margin: 0; }
.form-msg { min-height: 1.5em; font-size: .9rem; color: var(--brass); margin: 0; }
.fan { position: relative; height: clamp(320px, 38vw, 460px); }
.fan .phone { position: absolute; width: clamp(130px, 15vw, 190px); left: 50%; top: 50%; }
.fan .phone:nth-child(1) { transform: translate(-130%, -50%) rotate(-10deg); }
.fan .phone:nth-child(2) { transform: translate(-50%, -56%); z-index: 2; }
.fan .phone:nth-child(3) { transform: translate(30%, -50%) rotate(10deg); }
@media (max-width: 780px) { .sample { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { border-bottom: 1px solid rgba(42, 33, 35, .2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--s5); align-items: center; padding: var(--s5) 0; min-height: 56px; font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.5rem); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-body); font-weight: 300; font-size: 1.6rem; color: var(--brass-deep); transition: transform var(--t) var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 var(--s5); max-width: 62ch; color: var(--ink-dim); }

/* ---------- footer ---------- */
footer.site { background: var(--bg-deep); border-top: 1px solid var(--line); padding-block: var(--s8) var(--s6); }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s7); margin-bottom: var(--s7); }
footer h4 { font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--brass); margin: 0 0 var(--s4); font-weight: 500; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
footer ul a { display: inline-block; padding: 6px 0; color: var(--ivory-dim); transition: color var(--t); }
footer ul a:hover { color: var(--ivory); }
footer .brand { align-items: flex-start; margin-bottom: var(--s4); }
footer .brand .w { margin-right: 0; }
footer .about { color: var(--ivory-dim); max-width: 34ch; margin: 0; font-size: .92rem; }
footer .legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s3); border-top: 1px solid var(--line); padding-top: var(--s5); font-size: .78rem; color: var(--ivory-dim); }
@media (max-width: 860px) { footer .cols { grid-template-columns: 1fr 1fr; } footer .cols > :first-child { grid-column: 1 / -1; } }

/* ---------- hero grid / bundle responsive ---------- */
@media (max-width: 900px) {
  .hero .grid, .bundle { grid-template-columns: 1fr; }
  .phones { order: -1; height: clamp(340px, 78vw, 480px); }
  .bundle .stage { min-height: 320px; }
}

/* ---------- catalog page ---------- */
.page-head { padding-block: clamp(48px, 7vw, 96px) var(--s6); border-bottom: 1px solid var(--line); }
.filters { display: flex; justify-content: space-between; gap: var(--s5); flex-wrap: wrap; padding-block: var(--s5); align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip { min-height: 44px; padding: 0 var(--s5); background: none; border: 1px solid var(--line); border-radius: 99px; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; transition: background var(--t), color var(--t), border-color var(--t); }
.chip:hover { border-color: var(--ivory); }
.chip[aria-pressed="true"] { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.sort { display: flex; align-items: center; gap: var(--s3); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ivory-dim); }
.sort select { min-height: 44px; background: var(--bg-deep); color: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 var(--s4); font: inherit; letter-spacing: .04em; text-transform: none; }
.empty { text-align: center; padding: var(--s8) 0; color: var(--ivory-dim); }

/* ---------- product page ---------- */
.crumbs { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ivory-dim); padding-block: var(--s5); }
.crumbs a:hover { color: var(--brass); }
.product { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; padding-bottom: var(--s9); }
.product .info { position: sticky; top: 108px; }
.product .info h1 { margin-bottom: var(--s4); }
.product .info .lede { margin-bottom: 0; }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); border-block: 1px solid var(--line); padding-block: var(--s5); margin-block: var(--s6); }
.specs dt { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brass); margin-bottom: 4px; }
.specs dd { margin: 0; font-family: var(--font-display); font-size: 1.5rem; }
.buy { display: grid; gap: var(--s3); }
.buy .btn { width: 100%; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); margin-top: var(--s4); }
.thumbs .t { aspect-ratio: 9 / 16; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.thumbs .t .art { width: 100%; height: 100%; }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; } .product .info { position: static; } }

/* ---------- modal ---------- */
dialog { border: 1px solid var(--line); border-radius: 8px; background: var(--bg-deep); color: var(--ivory); padding: var(--s7); max-width: 480px; width: calc(100% - 32px); }
dialog::backdrop { background: rgba(20, 14, 16, .72); backdrop-filter: blur(4px); }
dialog h2 { margin: 0 0 var(--s3); }
dialog p { color: var(--ivory-dim); margin: 0 0 var(--s5); }
dialog .actions { display: flex; gap: var(--s3); flex-wrap: wrap; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: 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; }
  .marquee .track { animation: none; }
}

/* ---------- real artwork ---------- */
img.art { width: 100%; height: 100%; object-fit: cover; background: var(--bg-deep); }
.gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(8px, 1.4vw, 20px); }
.tile { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.tile img { transition: transform .8s var(--ease); }
.tile:hover img { transform: scale(1.04); }
.tile .cap { position: absolute; inset: auto 0 0 0; padding: 36px 12px 12px; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; background: linear-gradient(transparent, rgba(14, 9, 11, .78)); }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

.cards.three { grid-template-columns: repeat(4, 1fr); }
.card.soon .media { border-style: dashed; background: transparent; }
.card.soon .mark { font-family: var(--font-display); font-style: italic; font-size: clamp(3rem, 8vw, 5rem); color: var(--ivory-dim); opacity: .5; }
.card.soon .tag { background: transparent; color: var(--brass); border: 1px solid var(--brass); }
.card.soon h3 { color: var(--ivory-dim); }

.thumbs { grid-template-columns: repeat(5, 1fr); }
button.t { padding: 0; background: none; cursor: pointer; transition: border-color var(--t), opacity var(--t); opacity: .7; }
button.t:hover { opacity: 1; }
button.t[aria-pressed="true"] { border-color: var(--brass); opacity: 1; }
.scene { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ivory-dim); margin: var(--s4) 0 0; }
.scene span { color: var(--brass); }
.preview .phone { width: min(280px, 62%); }
@media (max-width: 1080px) { .cards.three { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px) { .cards.three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .cards.three { grid-template-columns: 1fr; } }

/* desktop-only collections */
.thumbs .t.wide { aspect-ratio: 16 / 9; }
.card .media .laptop { width: 82%; transition: transform .6s var(--ease); }
.card:hover .media .laptop { transform: scale(1.03); }
[hidden] { display: none !important; }

/* ---------- centrepiece collage ---------- */
.hero-collage { padding-bottom: 0; }
.hero-collage .center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-collage h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); margin-bottom: var(--s4); }
.hero-collage .lede { margin-inline: auto; margin-bottom: 0; }
.hero-collage .price { justify-content: center; }
.hero-collage .cta { justify-content: center; margin-bottom: var(--s8); }
.seen { font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; color: var(--brass); margin: 0 0 var(--s4); }
.collage { columns: 5; column-gap: clamp(6px, 1vw, 12px); width: min(100% - 2 * var(--gutter), 1400px); margin-inline: auto; max-height: clamp(560px, 62vw, 820px); overflow: hidden; -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
.collage img { width: 100%; height: auto; margin-bottom: clamp(6px, 1vw, 12px); border-radius: 3px; break-inside: avoid; background: var(--bg-deep); }
@media (max-width: 1000px) { .collage { columns: 4; } }
@media (max-width: 700px) { .collage { columns: 3; } }
@media (max-width: 460px) { .collage { columns: 2; } }
s.was { color: var(--ivory-dim); font-size: .85em; }
