/* ==========================================================================
   Cichini Design — Das Luster, Graz
   Design system. Editorial / paper-and-light.
   ========================================================================== */

/* --- 1. Tokens ---------------------------------------------------------- */

:root {
  /* Surface: warm paper, the colour of an old lampshade */
  --paper:      #EDE9DF;
  --paper-hi:   #F6F2EB;
  --paper-lo:   #E2DDD0;
  --night:      #14130F;
  --night-hi:   #1E1C16;

  --ink:        #14130F;
  --ink-soft:   #4A4740;
  --gray:       #8C877C;
  --line:       rgba(20, 19, 15, .14);
  --line-soft:  rgba(20, 19, 15, .07);

  /* Light itself: brass and filament */
  --brass:      #A9803F;
  --glow:       #E8B463;

  /* On dark */
  --on-night:        #EDE9DF;
  --on-night-soft:   rgba(237, 233, 223, .58);
  --line-night:      rgba(237, 233, 223, .16);

  /* Type */
  /* The greeting strip carries Hangul and Cyrillic; Archivo covers neither
     Hangul nor CJK, so the stack names the platform faces that do. */
  --cjk: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR", sans-serif;
  --font-display: "Archivo", "Helvetica Neue", Helvetica, Arial, var(--cjk);
  --font-sans:    "Archivo", "Helvetica Neue", Helvetica, Arial, var(--cjk);
  --font-serif:   "Instrument Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;

  --wdth-x:  118;   /* extended — display */
  --wdth-n:  100;   /* normal   — ui */

  /* Rhythm (Coutumes' unit scale) */
  --u-8:    8px;
  --u-12:  12px;
  --u-16:  16px;
  --u-24:  24px;
  --u-40:  40px;
  --u-64:  64px;
  --u-120: clamp(64px, 9vw, 120px);
  --u-180: clamp(88px, 14vw, 180px);

  --gutter: clamp(20px, 4.4vw, 64px);
  --maxw:   1680px;

  /* Motion */
  --speed:      .3s;
  --speed-slow: .6s;
  --speed-page: 1.1s;

  --power2-out:    cubic-bezier(.215, .61,  .355, 1);
  --power3-out:    cubic-bezier(.165, .84,  .44,  1);
  --power4-out:    cubic-bezier(.23,  1,    .32,  1);
  --expo-out:      cubic-bezier(.19,  1,    .22,  1);
  --expo-in-out:   cubic-bezier(1, 0, 0, 1);
  --smooth:        cubic-bezier(.38, .005, .215, 1);
  --custom-in:     cubic-bezier(.4, 0, .1, 1);

  --header-h: 68px;
}

@media (max-width: 860px) { :root { --header-h: 58px; } }

/* --- 2. Reset ----------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
html.has-smooth-scroll { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-variation-settings: "wdth" var(--wdth-n);
  font-size: clamp(.95rem, .88rem + .28vw, 1.0625rem);
  line-height: 1.62;
  letter-spacing: .002em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

h1, h2, h3, h4, h5, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

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

a { color: inherit; text-decoration: none; }

button, input, textarea, select {
  font: inherit; color: inherit;
  background: none; border: 0; margin: 0;
}
button { cursor: pointer; }

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

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.u-visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 9999;
  padding: 10px 16px; background: var(--ink); color: var(--paper);
  font-size: .75rem; letter-spacing: .16em; text-transform: uppercase;
  transform: translateY(-160%);
  transition: transform var(--speed) var(--power2-out);
}
.skip-link:focus { transform: none; }

/* --- 3. Typography ------------------------------------------------------ */

.t-display {
  font-family: var(--font-display);
  font-variation-settings: "wdth" var(--wdth-x);
  font-weight: 500;
  text-transform: uppercase;
  line-height: .88;
  letter-spacing: -.018em;
  text-wrap: balance;
}

.t-xl  { font-size: clamp(2.35rem, 1.1rem + 5.4vw, 6.25rem); }
.t-lg  { font-size: clamp(2.1rem, 1.15rem + 4.1vw, 5.25rem); }
.t-md  { font-size: clamp(1.8rem, 1.1rem + 2.8vw,  3.4rem); }
.t-sm  { font-size: clamp(1.25rem, .95rem + 1.3vw, 2rem); line-height: .98; }

.t-serif {
  font-family: var(--font-serif);
  font-weight: 400;
  text-transform: none;
  letter-spacing: -.005em;
  line-height: 1.02;
}
.t-serif em { font-style: italic; }

.t-eyebrow {
  font-family: var(--font-sans);
  font-variation-settings: "wdth" 104;
  font-size: .6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .24em;
  line-height: 1;
  color: var(--gray);
}
.t-eyebrow--ink { color: var(--ink); }

.t-lead {
  font-size: clamp(1.075rem, .95rem + .75vw, 1.5rem);
  line-height: 1.44;
  letter-spacing: -.008em;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.t-body { max-width: 62ch; color: var(--ink-soft); text-wrap: pretty; }
.t-body + .t-body { margin-top: var(--u-16); }
.t-body strong { color: var(--ink); font-weight: 600; }

.t-note {
  font-size: .8125rem;
  line-height: 1.5;
  letter-spacing: .01em;
  color: var(--gray);
}

.t-num {
  font-family: var(--font-sans);
  font-size: .6875rem;
  letter-spacing: .18em;
  color: var(--gray);
  font-variant-numeric: tabular-nums;
}

/* --- 4. Layout ---------------------------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell--wide { max-width: none; }

.section { padding-block: var(--u-180); position: relative; }
.section--tight { padding-block: var(--u-120); }
.section--flush-top { padding-top: 0; }

.section--night {
  background: var(--night);
  color: var(--on-night);
  --curtain: var(--night);
}
.section--night .t-body,
.section--night .t-lead { color: var(--on-night-soft); }
.section--night .t-eyebrow { color: rgba(237,233,223,.5); }
.section--night .t-eyebrow--ink { color: var(--on-night); }

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--u-24) var(--gutter);
}

/* Column utilities — every span collapses to full width on narrow screens */
.gc-1-5 { grid-column: 1 / span 5; }
.gc-1-6 { grid-column: 1 / span 6; }
.gc-7-5 { grid-column: 7 / span 5; }
.gc-7-6 { grid-column: 7 / span 6; }
.gc-8-5 { grid-column: 8 / span 5; }

@media (max-width: 980px) {
  [class*="gc-"] { grid-column: 1 / -1; }
}

/* Category tiles: 3-up then 2-up, collapsing to 2-up and 1-up */
.cats {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
}
.cats > li { grid-column: span 4; }
.cats > li:nth-child(n + 4) { grid-column: span 6; }
.cats > li:nth-child(n + 4) .tile { --ar: 3 / 2; }

@media (max-width: 900px) {
  .cats > li, .cats > li:nth-child(n + 4) { grid-column: span 6; }
  .cats > li:nth-child(n + 4) .tile { --ar: 4 / 5; }
}
@media (max-width: 560px) {
  .cats > li, .cats > li:nth-child(n + 4) { grid-column: 1 / -1; }
  .cats > li .tile { --ar: 3 / 2; }
}

.rule {
  height: 1px;
  background-color: var(--rule-c, rgba(20, 19, 15, .14));
}
.section--night, .footer { --rule-c: rgba(237, 233, 223, .16); }

/* Section header: eyebrow left, index right — a spread mark */
.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--u-24);
  padding-bottom: var(--u-16);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--u-64);
}
.section--night .sec-head { border-color: var(--line-night); }

/* --- 5. Header / navigation -------------------------------------------- */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 900;
  height: var(--header-h);
  display: flex;
  align-items: center;
  mix-blend-mode: normal;
  transition:
    transform var(--speed-slow) var(--power3-out),
    background-color var(--speed) var(--power2-out),
    color var(--speed) var(--power2-out),
    box-shadow var(--speed) var(--power2-out);
}
.header::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10, 9, 6, .62), rgba(10, 9, 6, 0));
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--speed) var(--power2-out);
}
.header.is-over-dark:not(.is-solid)::before { opacity: 1; }

.header__inner { position: relative; }

.header::after {
  content: "";
  position: absolute; inset: auto 0 0;
  height: 1px; background: currentColor; opacity: 0;
  transition: opacity var(--speed) var(--power2-out);
}
.header.is-solid {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
}
.header.is-solid::after { opacity: .14; }
.header.is-hidden { transform: translateY(-101%); }
.header.is-over-dark { color: var(--on-night); }
.header.is-over-dark.is-solid {
  background: color-mix(in srgb, var(--night) 82%, transparent);
}

.header__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--u-24);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: .5em;
  font-family: var(--font-display);
  font-variation-settings: "wdth" 116;
  font-weight: 600;
  font-size: .9375rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}
.brand__sub {
  font-variation-settings: "wdth" 92;
  font-weight: 400;
  font-size: .625rem;
  letter-spacing: .2em;
  opacity: .55;
}

.nav { display: flex; gap: clamp(18px, 2.1vw, 38px); justify-self: center; }
.nav__link {
  position: relative;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding-block: 6px;
  overflow: hidden;
  display: inline-block;
}
/* Link roll: the label slides up, its clone rises into place */
.nav__link span {
  display: block;
  transition: transform .48s var(--expo-out);
}
.nav__link span::after {
  content: attr(data-t);
  position: absolute;
  left: 0; top: 100%;
}
.nav__link:hover span,
.nav__link:focus-visible span { transform: translateY(-100%); }
.nav__link.is-current::before {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor; opacity: .5;
}

.header__end {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: var(--u-16);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  height: 34px;
  padding-inline: 15px;
  border: 1px solid currentColor;
  border-radius: 40px;
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color var(--speed) var(--custom-in),
              color var(--speed) var(--custom-in);
}
.pill:hover { background: currentColor; }
.pill:hover > * { mix-blend-mode: difference; }

.burger {
  display: none;
  width: 40px; height: 34px;
  margin-right: -8px;
  position: relative;
}
.burger i {
  position: absolute; left: 8px; right: 8px; height: 1px;
  background: currentColor;
  transition: transform .5s var(--expo-out), opacity .2s linear;
}
.burger i:nth-child(1) { top: 13px; }
.burger i:nth-child(2) { top: 20px; }
body.is-menu-open .burger i:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
body.is-menu-open .burger i:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* Full-screen menu */
.menu {
  position: fixed; inset: 0; z-index: 890;
  background: var(--night);
  color: var(--on-night);
  padding: calc(var(--header-h) + var(--u-40)) var(--gutter) var(--u-40);
  display: grid;
  grid-template-rows: 1fr auto;
  gap: var(--u-40);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .9s var(--expo-in-out);
  visibility: hidden;
  overflow-y: auto;
}
body.is-menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }

.menu__list { display: grid; align-content: center; gap: clamp(2px, .8vw, 10px); }
.menu__item { overflow: hidden; }
.menu__link {
  display: block;
  font-family: var(--font-display);
  font-variation-settings: "wdth" var(--wdth-x);
  font-weight: 500;
  text-transform: uppercase;
  font-size: clamp(2.25rem, 8.4vw, 6.5rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  transform: translateY(110%);
  transition: transform .85s var(--expo-out), color var(--speed) linear;
}
body.is-menu-open .menu__link { transform: none; }
.menu__link:hover { color: var(--glow); }
.menu__list li:nth-child(1) .menu__link { transition-delay: .06s; }
.menu__list li:nth-child(2) .menu__link { transition-delay: .12s; }
.menu__list li:nth-child(3) .menu__link { transition-delay: .18s; }
.menu__list li:nth-child(4) .menu__link { transition-delay: .24s; }
.menu__list li:nth-child(5) .menu__link { transition-delay: .30s; }
.menu__list li:nth-child(6) .menu__link { transition-delay: .36s; }

.menu__foot {
  display: flex; flex-wrap: wrap; gap: var(--u-16) var(--u-40);
  justify-content: space-between;
  padding-top: var(--u-24);
  border-top: 1px solid var(--line-night);
  font-size: .75rem;
  letter-spacing: .1em;
  color: var(--on-night-soft);
  opacity: 0;
  transition: opacity .5s linear .5s;
}
body.is-menu-open .menu__foot { opacity: 1; }

/* --- 6. Media primitives ------------------------------------------------ */

.media {
  position: relative;
  overflow: hidden;
  background: var(--paper-lo);
  aspect-ratio: var(--ar, 4 / 5);
}
.media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  will-change: transform;
}
.media--contain img { object-fit: contain; }
.media--tall  { --ar: 3 / 4; }
.media--sq    { --ar: 1 / 1; }
.media--wide  { --ar: 16 / 10; }
.media--pano  { --ar: 21 / 9; }

/* Second frame revealed on hover */
.media__alt {
  opacity: 0;
  transition: opacity .55s var(--power2-out);
}
.media--swap:hover .media__alt { opacity: 1; }

/* Warm scrim so type stays readable over lit glass */
.media__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 9, 6, .62) 0%,
    rgba(10, 9, 6, .22) 42%,
    rgba(10, 9, 6, 0) 78%);
  pointer-events: none;
}

.media__cap {
  margin-top: var(--u-12);
  display: flex; justify-content: space-between; gap: var(--u-16);
}

/* --- 7. Hero ------------------------------------------------------------ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  background: var(--night);
  color: var(--on-night);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  overflow: hidden;
}
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale3d(1.14, 1.14, 1);
  will-change: transform;
}
.is-ready .hero__bg img {
  transform: scale3d(1, 1, 1);
  transition: transform 2.1s var(--expo-out);
}
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 82% at 50% 6%, rgba(232, 180, 99, .16), transparent 62%),
    linear-gradient(to top, rgba(10, 9, 6, .88) 2%, rgba(10, 9, 6, .26) 48%, rgba(10, 9, 6, .52) 100%);
}

.hero__inner {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding-block: calc(var(--header-h) + var(--u-40)) clamp(26px, 4.5vh, 52px);
}

.hero__title {
  max-width: 15ch;
  margin-bottom: clamp(24px, 4vh, 56px);
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--u-24);
  padding-top: var(--u-24);
  border-top: 1px solid var(--line-night);
}
.hero__claim {
  max-width: 46ch;
  color: rgba(237, 233, 223, .78);
  font-size: clamp(.95rem, .9rem + .35vw, 1.1875rem);
  line-height: 1.5;
}

/* Language greeting strip above the fold */
.hero__hello {
  display: flex; flex-wrap: wrap; gap: .35em 1.1em;
  margin-bottom: auto;
  padding-bottom: var(--u-40);
  font-size: .6875rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(237, 233, 223, .5);
}
.hero__hello span { white-space: nowrap; }

.scroll-cue {
  display: inline-flex; align-items: center; gap: .7em;
  font-size: .625rem; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(237, 233, 223, .6);
}
.scroll-cue i {
  width: 46px; height: 1px; background: currentColor;
  position: relative; overflow: hidden; display: block;
}
.scroll-cue i::after {
  content: ""; position: absolute; inset: 0;
  background: var(--glow);
  animation: cue 2.4s var(--smooth) infinite;
}
@keyframes cue {
  0%   { transform: translateX(-100%); }
  55%  { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* --- 8. Marquee --------------------------------------------------------- */

.marquee {
  --mq-dur: 34s;
  display: flex;
  overflow: hidden;
  user-select: none;
  padding-block: var(--u-24);
  border-block: 1px solid var(--line);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.section--night .marquee,
.marquee--night { border-color: var(--line-night); }

.marquee__row {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  padding-right: clamp(28px, 4vw, 64px);
  animation: mq var(--mq-dur) linear infinite;
  will-change: transform;
}
.marquee:hover .marquee__row { animation-play-state: paused; }
.marquee--reverse .marquee__row { animation-direction: reverse; }
@keyframes mq { to { transform: translateX(-100%); } }

.marquee__item {
  font-family: var(--font-display);
  font-variation-settings: "wdth" var(--wdth-x);
  font-weight: 500;
  text-transform: uppercase;
  font-size: clamp(1.5rem, 3.4vw, 3.25rem);
  line-height: 1;
  letter-spacing: -.01em;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: .5em;
}
.marquee__item::after {
  content: "";
  width: .28em; height: .28em; border-radius: 50%;
  background: var(--brass);
  flex: 0 0 auto;
}
.marquee--small .marquee__item {
  font-size: .75rem;
  letter-spacing: .2em;
  font-variation-settings: "wdth" 100;
  font-weight: 500;
}
.marquee--small .marquee__item::after { width: 4px; height: 4px; }

/* --- 9. Buttons & links ------------------------------------------------- */

.btn {
  --btn-fg: var(--paper);
  --btn-bg: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .85em;
  padding: 15px 26px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  overflow: hidden;
  isolation: isolate;
  transition: color .4s var(--custom-in);
}
.btn::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--brass);
  transform: translateY(101%);
  transition: transform .55s var(--expo-out);
}
.btn:hover::before { transform: translateY(0); }
.btn__arrow { transition: transform .5s var(--expo-out); }
.btn:hover .btn__arrow { transform: translateX(5px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border: 1px solid var(--line);
}
.btn--ghost:hover { color: var(--paper); }
.section--night .btn--ghost,
.btn--ghost.is-night { --btn-fg: var(--on-night); border-color: var(--line-night); }

/* Underline that draws from the left, retreats to the right */
.link-u {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.link-u::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(1); transform-origin: right center;
  transition: transform .5s var(--expo-out);
}
.link-u:hover::after {
  transform: scaleX(0);
  transform-origin: right center;
}
.link-u--in::after { transform: scaleX(0); transform-origin: left center; }
.link-u--in:hover::after { transform: scaleX(1); transform-origin: left center; }

/* --- 10. Cards ---------------------------------------------------------- */

.card { display: block; position: relative; }
.card .media img {
  transition: transform 1.1s var(--power4-out), filter .6s var(--power2-out);
}
.card:hover .media img { transform: scale(1.045); }

.card__head {
  margin-top: var(--u-16);
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--u-16);
}
.card__title {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 108;
  font-weight: 500;
  text-transform: uppercase;
  font-size: clamp(.95rem, .88rem + .3vw, 1.1875rem);
  line-height: 1.1;
  letter-spacing: -.005em;
}
.card__price { font-size: .8125rem; color: var(--ink-soft); white-space: nowrap; }
.card__meta { margin-top: 5px; font-size: .8125rem; color: var(--gray); }

.card__tag {
  position: absolute; top: var(--u-12); left: var(--u-12);
  z-index: 2;
  padding: 5px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(6px);
  font-size: .625rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
}
.card__tag--sold { background: var(--ink); color: var(--paper); }

/* Category tile: full-bleed image, label bottom-left, arrow that travels */
.tile {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--night);
  color: var(--on-night);
  aspect-ratio: var(--ar, 4 / 5);
}
.tile img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.2s var(--power4-out), filter .7s var(--power2-out);
}
.tile:hover img { transform: scale(1.09); }
.tile__body {
  position: absolute; inset: auto 0 0 0;
  padding: var(--u-24);
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--u-16);
}
.tile__name {
  font-family: var(--font-display);
  font-variation-settings: "wdth" var(--wdth-x);
  font-weight: 500; text-transform: uppercase;
  font-size: clamp(1.1rem, .9rem + 1vw, 1.85rem);
  line-height: .96; letter-spacing: -.012em;
}
.tile__n { font-size: .625rem; letter-spacing: .2em; opacity: .65; }
.tile__arrow {
  flex: 0 0 auto;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-night);
  display: grid; place-items: center;
  transition: background-color .45s var(--custom-in), color .45s var(--custom-in),
              transform .55s var(--expo-out);
}
.tile:hover .tile__arrow {
  background: var(--paper); color: var(--ink);
  transform: rotate(-45deg);
}

/* --- 11. Scroll reveal -------------------------------------------------- */

/* Nothing is hidden until JS confirms it can animate — no-JS shows all. */
.js [data-reveal] { --rv-d: 0ms; }

.js [data-reveal="fade"] {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity .85s var(--power2-out) var(--rv-d),
              transform .95s var(--power3-out) var(--rv-d);
}
.js [data-reveal="fade"].is-inview { opacity: 1; transform: none; }

/* Image unveils behind a moving edge, and settles from a slight zoom.
   The curtain is a pseudo-element: hiding the observed node itself (with
   clip-path or scale) zeroes its intersection rect, and it never un-hides. */
.js [data-reveal="mask"] { position: relative; }
.js [data-reveal="mask"]::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 3;
  background: var(--curtain, var(--paper));
  transform: translate3d(0, 0, 0);
  transition: transform 1.15s var(--expo-out) var(--rv-d);
  pointer-events: none;
}
.js [data-reveal="mask"] img {
  transform: scale(1.14);
  transition: transform 1.6s var(--expo-out) var(--rv-d);
}
.js [data-reveal="mask"].is-inview::after { transform: translate3d(0, 101%, 0); }
.js [data-reveal="mask"].is-inview img { transform: scale(1); }

/* Rules draw themselves */
.js [data-reveal="rule"] {
  background-color: transparent;
  background-image: linear-gradient(var(--rule-c, rgba(20, 19, 15, .14)),
                                    var(--rule-c, rgba(20, 19, 15, .14)));
  background-repeat: no-repeat;
  background-size: 0% 100%;
  transition: background-size 1.1s var(--expo-out) var(--rv-d);
}
.js [data-reveal="rule"].is-inview { background-size: 100% 100%; }

/* Text set line by line, each line rising out of its own box.
   .line / .line__in are produced by main.js splitLines(). */
.line { display: block; overflow: hidden; }
.line__in {
  display: block;
  transform: translate3d(0, 105%, 0);
  transition: transform 1s var(--expo-out) var(--ln-d, 0ms);
}
.is-inview .line__in, .is-ready .line__in { transform: none; }

.js [data-reveal="stagger"] > * {
  opacity: 0; transform: translate3d(0, 26px, 0);
  transition: opacity .8s var(--power2-out), transform .9s var(--power3-out);
}
.js [data-reveal="stagger"].is-inview > * { opacity: 1; transform: none; }
.js [data-reveal="stagger"].is-inview > *:nth-child(1) { transition-delay: .00s; }
.js [data-reveal="stagger"].is-inview > *:nth-child(2) { transition-delay: .07s; }
.js [data-reveal="stagger"].is-inview > *:nth-child(3) { transition-delay: .14s; }
.js [data-reveal="stagger"].is-inview > *:nth-child(4) { transition-delay: .21s; }
.js [data-reveal="stagger"].is-inview > *:nth-child(5) { transition-delay: .28s; }
.js [data-reveal="stagger"].is-inview > *:nth-child(6) { transition-delay: .35s; }
.js [data-reveal="stagger"].is-inview > *:nth-child(n+7) { transition-delay: .42s; }

/* --- 12. Loader & page transition --------------------------------------- */

.veil {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--night);
  display: grid; place-items: center;
  transition: clip-path 1s var(--expo-in-out), opacity .4s linear;
  /* Default state is *lifted*. Without JS nothing would ever lift it, so the
     curtain only closes once the inline head script proves JS is running. */
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
}
.js .veil { clip-path: inset(0 0 0 0); pointer-events: auto; }
.veil__mark {
  width: clamp(120px, 20vw, 210px);
  opacity: .92;
  filter: invert(1) contrast(1.1);
  mix-blend-mode: screen;
  animation: veilPulse 1.6s var(--smooth) infinite alternate;
}
@keyframes veilPulse { from { opacity: .45; } to { opacity: .95; } }

body.is-ready .veil {
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
}
body.is-leaving .veil {
  clip-path: inset(0 0 0 0);
  transition-duration: .75s;
  pointer-events: all;
}
body.is-leaving .veil__mark { animation: none; opacity: .5; }

/* --- 13. Cursor --------------------------------------------------------- */

.cursor {
  position: fixed; top: 0; left: 0; z-index: 950;
  width: 76px; height: 76px;
  margin: -38px 0 0 -38px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  display: grid; place-items: center;
  pointer-events: none;
  opacity: 0;
  transform: scale(.18);
  transition: opacity .3s linear, transform .45s var(--power3-out),
              background-color .3s linear, color .3s linear;
  mix-blend-mode: normal;
  will-change: transform;
}
.cursor__label {
  font-size: .5625rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .25s linear, transform .35s var(--power3-out);
}
.cursor.is-on { opacity: 1; }
.cursor.is-active { transform: scale(1); }
.cursor.is-active .cursor__label { opacity: 1; transform: none; }

/* --- 14. Drag gallery --------------------------------------------------- */

.drag {
  position: relative;
  cursor: grab;
  overflow: hidden;
}
.drag.is-dragging { cursor: grabbing; }
.drag__track {
  display: flex;
  gap: var(--gutter);
  padding-inline: var(--gutter);
  will-change: transform;
}
.drag__item { flex: 0 0 auto; width: clamp(230px, 30vw, 430px); }
.drag__item--wide { width: clamp(300px, 46vw, 660px); }
/* Native scroll is the fallback and the touch behaviour */
.drag--native {
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.drag--native::-webkit-scrollbar { display: none; }
.drag--native .drag__item { scroll-snap-align: start; }

.drag__progress {
  margin: var(--u-24) var(--gutter) 0;
  height: 1px;
  background: var(--line);
  position: relative;
}
.section--night .drag__progress { background: var(--line-night); }
.drag__progress i {
  position: absolute; inset: 0 auto 0 0;
  width: 18%;
  background: var(--ink);
  transform-origin: left;
}
.section--night .drag__progress i { background: var(--on-night); }

/* --- 15. Editorial blocks ----------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--u-40) var(--gutter);
  align-items: center;
}
.split__media { grid-column: 1 / span 6; }
.split__text  { grid-column: 8 / span 5; }
.split--flip .split__media { grid-column: 7 / span 6; grid-row: 1; }
.split--flip .split__text  { grid-column: 1 / span 5; grid-row: 1; }

.statement {
  max-width: 22ch;
  margin-inline: auto;
  text-align: center;
}
.statement--wide { max-width: 34ch; }

/* Numbered value list */
.values { border-top: 1px solid var(--line); }
.section--night .values { border-color: var(--line-night); }
.values__row {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 1.15fr);
  gap: var(--u-24) var(--gutter);
  padding-block: var(--u-40);
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.section--night .values__row { border-color: var(--line-night); }
.values__row:hover .values__title { color: var(--brass); }
.values__title {
  font-family: var(--font-display);
  font-variation-settings: "wdth" var(--wdth-x);
  font-weight: 500; text-transform: uppercase;
  font-size: clamp(1.35rem, 1rem + 1.6vw, 2.5rem);
  line-height: .96; letter-spacing: -.015em;
  transition: color .4s var(--power2-out);
}

/* Mosaic — offset picture wall, the pieces drift at different speeds */
.mosaic {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
  align-items: start;
}
.mosaic__a { grid-column: 1 / span 5; }
.mosaic__b { grid-column: 7 / span 4; margin-top: var(--u-120); }
.mosaic__c { grid-column: 3 / span 4; }
.mosaic__d { grid-column: 8 / span 5; margin-top: calc(var(--u-120) * -.5); }

.quote {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 1rem + 2.2vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -.012em;
  max-width: 20ch;
}
.quote em { font-style: italic; color: var(--brass); }

/* --- 16. Info / contact ------------------------------------------------- */

.info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: var(--u-40) var(--gutter);
}
.info__k {
  font-size: .625rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gray);
  padding-bottom: var(--u-12);
  margin-bottom: var(--u-16);
  border-bottom: 1px solid var(--line);
}
.section--night .info__k { border-color: var(--line-night); }
.info__v { font-size: .9375rem; line-height: 1.7; }
.info__v a:hover { color: var(--brass); }

.hours { display: grid; gap: 5px; }
.hours li { display: flex; justify-content: space-between; gap: var(--u-16); max-width: 22rem; }
.hours li span:last-child { color: var(--gray); font-variant-numeric: tabular-nums; }
.hours li[data-closed] span:last-child { color: var(--brass); }

/* --- 17. Form ----------------------------------------------------------- */

.field { position: relative; border-bottom: 1px solid var(--line); }
.section--night .field { border-color: var(--line-night); }
.field input, .field textarea {
  width: 100%;
  padding: 16px 0 12px;
  font-size: 1rem;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field label {
  position: absolute; left: 0; top: 16px;
  font-size: 1rem; color: var(--gray);
  pointer-events: none;
  transform-origin: left top;
  transition: transform .4s var(--power3-out), color .3s linear;
}
.field input:focus + label,
.field textarea:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:not(:placeholder-shown) + label {
  transform: translateY(-15px) scale(.68);
  color: var(--brass);
}
.field::after {
  content: ""; position: absolute; left: 0; bottom: -1px; right: 0; height: 1px;
  background: var(--brass);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--expo-out);
}
.field:focus-within::after { transform: scaleX(1); }

/* --- 18. Filters -------------------------------------------------------- */

.filters {
  display: flex; flex-wrap: wrap; gap: var(--u-8);
  padding-block: var(--u-16);
}
.chip {
  padding: 9px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .6875rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  white-space: nowrap;
  transition: background-color .35s var(--custom-in), color .35s var(--custom-in),
              border-color .35s var(--custom-in);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.shop-grid {
  display: grid;
  /* min(48%, …) keeps two columns on a phone instead of one huge card */
  grid-template-columns: repeat(auto-fill, minmax(min(48%, 250px), 1fr));
  gap: var(--u-64) var(--gutter);
}
@media (max-width: 700px) {
  .shop-grid { grid-template-columns: 1fr 1fr; gap: var(--u-40) var(--u-16); }
}
.shop-grid > li { transition: opacity .45s var(--power2-out), transform .45s var(--power2-out); }
.shop-grid > li[hidden] { display: none; }

/* --- 19. Footer --------------------------------------------------------- */

.footer {
  background: var(--night);
  color: var(--on-night);
  --curtain: var(--night);
  padding-top: var(--u-120);
}
.footer a:hover { color: var(--glow); }

.footer__word {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 125;
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(3rem, 15.5vw, 17rem);
  line-height: .78;
  letter-spacing: -.03em;
  margin-block: var(--u-64) 0;
  color: transparent;
  -webkit-text-stroke: 1px rgba(237, 233, 223, .34);
  transition: color 1.2s var(--power2-out);
  white-space: nowrap;
}
.footer:hover .footer__word { color: rgba(237, 233, 223, .07); }

.footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--u-40) var(--gutter);
  padding-bottom: var(--u-64);
}
.footer__h {
  font-size: .625rem; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(237, 233, 223, .45);
  margin-bottom: var(--u-16);
}
.footer__list { display: grid; gap: 9px; font-size: .875rem; }

.footer__bar {
  display: flex; flex-wrap: wrap; gap: var(--u-12) var(--u-24);
  justify-content: space-between; align-items: center;
  padding-block: var(--u-24);
  border-top: 1px solid var(--line-night);
  font-size: .75rem;
  color: rgba(237, 233, 223, .5);
}

/* --- 20. Page intro (inner pages) --------------------------------------- */

.pintro {
  padding-top: calc(var(--header-h) + var(--u-120));
  padding-bottom: var(--u-64);
}
.pintro__title { margin-block: var(--u-24) var(--u-40); }
.pintro__row {
  display: flex; flex-wrap: wrap; gap: var(--u-24);
  justify-content: space-between; align-items: flex-end;
}

.crumbs { font-size: .6875rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gray); }
.crumbs a:hover { color: var(--ink); }

/* --- 21. Product page --------------------------------------------------- */

.pdp { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: var(--u-40) var(--gutter); }
.pdp__gallery { grid-column: 1 / span 7; display: grid; gap: var(--u-12); }
.pdp__side {
  grid-column: 9 / span 4;
  position: sticky; top: calc(var(--header-h) + var(--u-40));
  align-self: start;
}
.spec { border-top: 1px solid var(--line); margin-top: var(--u-40); }
.spec__row {
  display: flex; justify-content: space-between; gap: var(--u-16);
  padding-block: 13px;
  border-bottom: 1px solid var(--line-soft);
  font-size: .875rem;
}
.spec__row dt { color: var(--gray); }

.acc__btn {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center; gap: var(--u-16);
  padding-block: 17px;
  border-bottom: 1px solid var(--line);
  font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  text-align: left;
}
.acc__btn i { transition: transform .4s var(--power3-out); font-style: normal; }
.acc__btn[aria-expanded="true"] i { transform: rotate(45deg); }
.acc__panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .55s var(--expo-out);
  border-bottom: 1px solid var(--line);
}
.acc__panel[data-open] { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__panel p { padding-block: var(--u-16) var(--u-24); }

/* --- 22. Responsive ----------------------------------------------------- */

@media (max-width: 1180px) {
  .split__media { grid-column: 1 / span 6; }
  .split__text  { grid-column: 8 / span 5; }
  .mosaic__b { margin-top: var(--u-64); }
}

@media (max-width: 980px) {
  .nav { display: none; }
  .burger { display: block; }
  .header__inner { grid-template-columns: 1fr auto; }
  .header__end { gap: var(--u-12); }

  .split__media, .split--flip .split__media,
  .split__text,  .split--flip .split__text { grid-column: 1 / -1; grid-row: auto; }
  .split--flip .split__media { order: -1; }

  .values__row { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .values__row > :last-child { grid-column: 2; }

  .mosaic__a { grid-column: 1 / span 7; }
  .mosaic__b { grid-column: 8 / span 5; margin-top: var(--u-64); }
  .mosaic__c { grid-column: 1 / span 5; }
  .mosaic__d { grid-column: 6 / span 7; margin-top: 0; }

  .pdp__gallery { grid-column: 1 / -1; }
  .pdp__side { grid-column: 1 / -1; position: static; }
}

@media (max-width: 640px) {
  .hero__meta { flex-direction: column; align-items: flex-start; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: var(--u-8); }
  .footer__word { font-size: 3.6rem; }
  .info { grid-template-columns: 1fr; }
  .pill--hide-s { display: none; }
}

/* Coarse pointers: no custom cursor, no JS drag inertia */
@media (hover: none), (pointer: coarse) {
  .cursor { display: none; }
}

/* --- 23. Reduced motion ------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; background-size: 100% 100% !important; }
  .js [data-reveal="mask"]::after { display: none; }
  .js [data-reveal] img { transform: none !important; }
  .line__in { transform: none !important; }
  .hero__bg img { transform: none !important; }
  .marquee__row { animation: none; }
  .cursor { display: none; }
}

/* --- 24. Print ---------------------------------------------------------- */

@media print {
  .header, .menu, .veil, .cursor, .marquee, .footer__word { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 24px; }
}

/* --- 25. Parallax wrapper ------------------------------------------------
   The inner frame is taller than its mask so the drift never exposes an edge. */
.media__pxwrap {
  position: absolute;
  inset: -9% 0;
  display: block;
  will-change: transform;
}
.media__pxwrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
