/* EURÉ catalog. Dark and neutral (not warm), built on one centre axis: every
   block is centred or mirrored. Cormorant Garamond for names and headings,
   Instrument Sans for everything else. */
:root {
  color-scheme: dark;
  --bg: #000;
  --panel: #0c0c0c;
  --raise: #121212;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.18);
  --text: #ecebe8;
  --muted: #a3a09b;
  --faint: #8a8783;
  --gold: #d9c08a;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --head: 64px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --slow: cubic-bezier(0.16, 1, 0.3, 1);
  --soft: cubic-bezier(0.45, 0, 0.15, 1);
  /* pictures dissolve into the page: no frame edge anywhere */
  --vig: radial-gradient(closest-side, #000 58%, rgba(0, 0, 0, 0.55) 80%, transparent 100%);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 14px/1.6 var(--sans); letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 1px solid var(--text); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 50%; top: -60px; z-index: 100; padding: 10px 14px; background: var(--text); color: var(--bg); transform: translateX(-50%); }
.skip:focus { top: 8px; }

.label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.serif { font-family: var(--serif); font-weight: 300; }

/* a line link: a hairline on each side that opens on hover */
.link-line { display: inline-flex; align-items: center; justify-content: center; gap: 14px; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text); }
.link-line::before, .link-line::after { content: ""; width: 26px; height: 1px; background: currentColor; opacity: 0.7; transition: width 0.6s var(--slow); }
.link-line:hover::before, .link-line:hover::after { width: 48px; }

/* header: the mark in the centre, two words on each side */
.head {
  position: sticky; top: 0; z-index: 40; height: var(--head);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 var(--gutter);
  background: rgba(0, 0, 0, 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.head .side { display: flex; align-items: center; gap: 34px; }
.head .side.l { justify-self: start; }
.head .side.r { justify-self: end; }
.head nav { display: flex; gap: 34px; }
.head nav a, .head .cart-btn, .head .menu-btn { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); transition: color 0.3s; }
.head nav a:hover, .head nav a[aria-current="page"], .head .cart-btn:hover, .head .menu-btn:hover { color: var(--text); }
.head .logo img { height: 30px; width: auto; }
.cart-btn .count { color: var(--text); }
.cart-btn .count:not(:empty) { margin-left: 2px; }
.menu-btn { display: none; }
@media (max-width: 760px) {
  .head nav { display: none; }
  .menu-btn { display: inline-block; }
  .head .logo img { height: 26px; }
}
.mobile-nav {
  position: fixed; inset: var(--head) 0 0 0; z-index: 39; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 24px var(--gutter) calc(var(--head) + 24px); gap: 18px;
  transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
}
.mobile-nav.open { opacity: 1; transform: none; visibility: visible; }
.mobile-nav a { font-family: var(--serif); font-weight: 300; font-style: italic; font-size: 32px; line-height: 1.2; }

/* filters, and the price order mirrored around its word */
.toolbar { display: grid; justify-items: center; gap: 12px; padding: 22px var(--gutter) 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.filters { display: flex; justify-content: center; gap: 6px 30px; flex-wrap: wrap; align-items: baseline; }
.filters button, .sort button { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); padding: 6px 0; border-bottom: 1px solid transparent; transition: color 0.3s, border-color 0.3s; }
.filters button[aria-pressed="true"], .filters button:hover, .sort button[aria-pressed="true"], .sort button:hover { color: var(--text); }
.filters button[aria-pressed="true"], .sort button[aria-pressed="true"] { border-bottom-color: var(--text); }
.sort { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 22px; }
.sort button:first-child { justify-self: end; }
.sort button:last-child { justify-self: start; }
.sort .label { font-size: 10px; letter-spacing: 0.22em; color: var(--gold); opacity: 0.85; }
.toolbar .clear { display: inline-flex; align-items: center; gap: 12px; margin-top: 2px; padding: 6px 0; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); transition: color 0.3s; }
.toolbar .clear span { font-size: 13px; line-height: 1; color: var(--faint); transition: color 0.3s; }
.toolbar .clear:hover, .toolbar .clear:hover span { color: var(--text); }

/* grid of pieces: rows are centred, so a short last row sits in the middle */
.grid {
  --cols: 4; --gx: clamp(10px, 1.5vw, 24px);
  display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(40px, 4.4vw, 64px) var(--gx);
  padding: clamp(40px, 4.4vw, 64px) var(--gutter) clamp(72px, 8vw, 120px);
}
@media (max-width: 1100px) { .grid { --cols: 3; } }
@media (max-width: 760px) { .grid { --cols: 2; } }
.card { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gx)) / var(--cols)); min-width: 0; display: flex; flex-direction: column; }
.card[hidden] { display: none; }
.card .frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.card .frame .shot { position: absolute; inset: 0; -webkit-mask-image: var(--vig); mask-image: var(--vig); }
.card .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.6s var(--ease), transform 1.2s var(--ease); }
.card .frame img.alt { opacity: 0; }
@media (hover: hover) {
  .card:hover .frame img.alt { opacity: 1; }
  .card:hover .frame img:not(.alt) { transform: scale(1.02); }
}
.card .meta { display: grid; justify-items: center; text-align: center; gap: 3px; padding: 18px 8px 0; }
.card .name { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.2; }
.card .price { font-size: 12px; letter-spacing: 0.06em; color: var(--muted); white-space: nowrap; }
.card .note { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); white-space: nowrap; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text); background: rgba(0, 0, 0, 0.55); padding: 4px 9px; }

/* soft fade where a picture was padded (stand posts, chains) */
.fade { -webkit-mask-image: var(--mask); mask-image: var(--mask); }

/* piece page: one column on the centre axis */
.crumbs { text-align: center; padding: 26px var(--gutter) 0; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.crumbs a:hover { color: var(--text); }
.piece { display: grid; justify-items: center; text-align: center; }
.piece-head { display: grid; justify-items: center; gap: 12px; padding: 26px var(--gutter) 34px; }
.piece-head h1 { font-family: var(--serif); font-weight: 300; font-style: italic; font-size: clamp(46px, 5.4vw, 76px); line-height: 1; margin: 0; letter-spacing: -0.01em; }
.piece-head .price { font-size: 15px; letter-spacing: 0.04em; }
.piece-head .price small { font-size: 11px; letter-spacing: 0.14em; color: var(--muted); margin-left: 6px; }
.viewer {
  --vw: min(600px, calc(100vw - 2 * var(--gutter) - 160px), max(440px, calc((100svh - 250px) * 0.8)));
  display: flex; align-items: center; justify-content: center; gap: clamp(20px, 3.5vw, 52px); width: 100%;
}
.gallery { width: var(--vw); display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-mask-image: var(--vig); mask-image: var(--vig); }
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { flex: 0 0 100%; margin: 0; position: relative; aspect-ratio: 4 / 5; overflow: hidden; scroll-snap-align: center; }
.gallery img, .gallery video { width: 100%; height: 100%; object-fit: cover; }
.gallery figure.square img { object-fit: contain; }
.gallery figcaption { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cap { margin: 14px 0 0; min-height: 1.6em; font-size: 10px; letter-spacing: 0.2em; }
.vnav { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; color: var(--muted); transition: color 0.3s, border-color 0.3s, opacity 0.3s; }
.vnav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.vnav:hover:not(:disabled) { color: var(--text); border-color: var(--text); }
.vnav:disabled { opacity: 0.28; cursor: default; }
.dots { display: flex; justify-content: center; gap: 10px; padding: 10px 0 0; }
.dots span { width: 5px; height: 5px; border-radius: 50%; background: var(--line-2); transition: background 0.3s; cursor: pointer; }
.dots span.on { background: var(--text); }
.info { width: min(600px, 100%); display: grid; justify-items: center; padding: 34px var(--gutter) 88px; }
.info .desc { color: var(--muted); font-size: 15px; line-height: 1.8; max-width: 32em; margin: 0; }
.buy { margin-top: 30px; display: grid; justify-items: center; gap: 12px; width: 100%; }
.qty { display: inline-grid; grid-template-columns: 44px 44px 44px; align-items: center; border: 1px solid var(--line-2); width: max-content; }
.qty button { height: 44px; font-size: 16px; color: var(--muted); transition: color 0.2s; }
.qty button:hover:not(:disabled) { color: var(--text); }
.qty button:disabled { color: var(--line-2); cursor: default; }
.qty output { text-align: center; font-size: 14px; }
.row { display: flex; gap: 12px; align-items: stretch; justify-content: center; flex-wrap: wrap; width: 100%; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 22px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; border: 1px solid var(--line-2); transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.btn:hover { border-color: var(--text); }
.btn.solid { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn.solid:hover { background: #fff; }
.btn[aria-disabled="true"], .btn:disabled { background: transparent; color: var(--faint); border-color: var(--line); cursor: default; }
.btn.wide { flex: 0 1 300px; min-width: 210px; }
.hint { font-size: 12px; color: var(--muted); min-height: 1.6em; margin: 0; text-align: center; }
.hint a { border-bottom: 1px solid var(--line-2); }
.ask { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.ask a { border-bottom: 1px solid var(--line-2); }

/* accordion: centred titles between two marks */
.acc { width: 100%; margin-top: 44px; border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 16px; padding: 19px 0; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::before, .acc summary::after { content: "+"; width: 12px; font-size: 15px; line-height: 1; color: var(--faint); transition: transform 0.4s var(--slow); }
.acc details[open] summary::before, .acc details[open] summary::after { transform: rotate(45deg); }
.acc .body { padding: 0 0 24px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.acc .body p { margin: 0 auto 12px; max-width: 32em; }
.acc .body a { border-bottom: 1px solid var(--line-2); }
/* specs mirror on the axis: names to the left of it, values to the right */
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 24px; margin: 0; }
.specs dt { text-align: right; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); padding-top: 3px; }
.specs dd { text-align: left; margin: 0; color: var(--text); }

.related { border-top: 1px solid var(--line); }
.related h2 { text-align: center; font-family: var(--serif); font-weight: 300; font-style: italic; font-size: clamp(32px, 3.4vw, 46px); margin: 0; padding: clamp(72px, 8vw, 110px) var(--gutter) 0; }

@media (max-width: 760px) {
  .viewer { --vw: 100vw; }
  .vnav { display: none; }
  .piece-head { padding-bottom: 26px; }
  .info { padding-top: 28px; }
}

/* information page */
.page-title { display: grid; justify-items: center; text-align: center; padding: clamp(80px, 10vw, 130px) var(--gutter) clamp(64px, 7vw, 96px); border-bottom: 1px solid var(--line); }
.page-title h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 6vw, 80px); line-height: 1.02; margin: 16px 0 0; }
.section { display: grid; justify-items: center; text-align: center; padding: clamp(72px, 8vw, 110px) var(--gutter); border-bottom: 1px solid var(--line); }
.section > div { width: 100%; display: grid; justify-items: center; }
.section h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 3.6vw, 50px); line-height: 1.08; margin: 12px 0 26px; }
.section .lead { color: var(--text); font-size: 17px; line-height: 1.7; max-width: 34em; margin: 0 auto 44px; }
.section p { color: var(--muted); line-height: 1.8; max-width: 38em; margin: 0 auto 14px; }
.blocks { --cols: 3; --gx: 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gx); width: min(1080px, 100%); }
.block { flex: 0 1 calc((100% - (var(--cols) - 1) * var(--gx)) / var(--cols)); min-width: 0; border: 1px solid var(--line); padding: 34px 26px 32px; display: grid; justify-items: center; align-content: start; text-align: center; }
.block h3 { font-family: var(--serif); font-weight: 400; font-size: 25px; line-height: 1.2; margin: 14px 0 12px; }
.block p { font-size: 14px; margin: 0 auto 8px; }
.block a { border-bottom: 1px solid var(--line-2); }
.block .ico { width: 44px; height: 28px; color: var(--muted); }
@media (max-width: 980px) { .blocks { --cols: 2; } }
@media (max-width: 600px) { .blocks { --cols: 1; } }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 auto; display: grid; gap: 28px; max-width: 34em; }
.steps li { counter-increment: s; display: grid; justify-items: center; gap: 8px; color: var(--muted); line-height: 1.75; }
.steps li::before { content: counter(s, decimal-leading-zero); font-size: 11px; letter-spacing: 0.16em; color: var(--gold); }
.steps strong { color: var(--text); font-weight: 400; }

/* footer: the mark, three columns, the line */
.foot { display: grid; justify-items: center; text-align: center; padding: clamp(80px, 9vw, 120px) var(--gutter) 36px; border-top: 1px solid var(--line); }
.foot .brand { display: grid; justify-items: center; gap: 18px; }
.foot .brand img { height: 30px; width: auto; }
.foot .brand i { width: 40px; height: 1px; background: var(--gold); opacity: 0.6; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); justify-content: center; gap: 36px clamp(24px, 6vw, 96px); margin: 60px 0 56px; }
.foot h4 { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); font-weight: 400; margin: 0 0 14px; }
.foot a, .foot p { display: block; color: var(--muted); font-size: 13px; line-height: 2.1; margin: 0; }
.foot a:hover { color: var(--text); }
.foot .legal { width: 100%; border-top: 1px solid var(--line); padding-top: 24px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
@media (max-width: 760px) { .foot-cols { grid-template-columns: minmax(0, 300px); } }

/* cart: a centred panel (the whole screen on phones) */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, 0.66); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity 0.45s var(--ease), visibility 0.45s; }
.drawer {
  position: fixed; left: 50%; top: 50%; z-index: 61; width: min(600px, calc(100vw - 32px)); max-height: min(88vh, 920px);
  background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column;
  transform: translate(-50%, calc(-50% + 18px)); opacity: 0; visibility: hidden;
  transition: transform 0.6s var(--slow), opacity 0.4s var(--ease), visibility 0.6s;
}
.cart-open .scrim { opacity: 1; visibility: visible; }
.cart-open .drawer { transform: translate(-50%, -50%); opacity: 1; visibility: visible; }
.cart-open { overflow: hidden; }
@media (max-width: 600px) {
  .drawer { inset: 0; width: auto; max-height: none; border: 0; transform: translateY(18px); }
  .cart-open .drawer { transform: none; }
}
.drawer header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 24px; height: var(--head); border-bottom: 1px solid var(--line); flex: none; }
.drawer header .label { justify-self: start; }
.drawer header h2 { font-family: var(--serif); font-weight: 300; font-style: italic; font-size: 26px; margin: 0; }
.drawer .close { justify-self: end; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); padding: 10px 0 10px 10px; }
.drawer .close:hover { color: var(--text); }
.drawer .scroll { flex: 1; overflow-y: auto; padding: 6px 24px 26px; overscroll-behavior: contain; }
.drawer .empty { padding: 56px 0 40px; color: var(--muted); text-align: center; }
.drawer .empty p { margin: 0 0 24px; }
/* a line mirrors on its picture: name and price to the left, quantity to the right */
.line-item { display: grid; grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr); gap: 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.line-item .li-l { text-align: right; }
.line-item .li-r { display: grid; justify-items: start; gap: 10px; }
.line-item img { width: 72px; aspect-ratio: 4 / 5; object-fit: cover; background: #000; }
.line-item .n { font-family: var(--serif); font-size: 21px; line-height: 1.15; }
.line-item .p { font-size: 12px; color: var(--muted); margin-top: 3px; }
.line-item .qty { grid-template-columns: 32px 32px 32px; }
.line-item .qty button { height: 32px; font-size: 14px; }
.line-item .rm { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); padding: 2px 0; }
.line-item .rm:hover { color: var(--text); }
.line-item.gone { opacity: 0.55; }
.line-item .gone-note { font-size: 12px; color: var(--muted); }
.choice { margin-top: 28px; }
.choice fieldset { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice legend { width: 100%; text-align: center; padding: 0; margin-bottom: 12px; }
.opt { position: relative; display: grid; justify-items: center; text-align: center; padding: 20px 14px 16px; border: 1px solid var(--line); cursor: pointer; transition: border-color 0.3s, background-color 0.3s; }
.opt:hover { border-color: var(--line-2); }
.opt:has(input:checked) { border-color: var(--text); background: var(--raise); }
.opt:has(input:focus-visible) { outline: 1px solid var(--text); outline-offset: 2px; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.opt span { display: grid; justify-items: center; }
.opt span::after { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--faint); margin-top: 14px; transition: background-color 0.3s, border-color 0.3s; }
.opt input:checked + span::after { background: var(--text); border-color: var(--text); }
.opt b { font-weight: 400; display: grid; justify-items: center; gap: 10px; }
.opt small { display: block; color: var(--muted); font-size: 12px; line-height: 1.55; margin-top: 6px; }
.opt .ico { width: 36px; height: 23px; color: var(--muted); }
@media (max-width: 480px) { .choice fieldset { grid-template-columns: 1fr; } }
.sum { border-top: 1px solid var(--line); padding: 18px 24px 22px; flex: none; background: var(--panel); text-align: center; }
/* totals mirror on the axis too */
.sum dl { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; margin: 0 0 16px; font-size: 13px; }
.sum dt { color: var(--muted); text-align: right; }
.sum dd { margin: 0; text-align: left; }
.sum .total dt, .sum .total dd { color: var(--text); font-size: 15px; padding-top: 6px; }
.sum .btn { width: 100%; }
.sum .fine { font-size: 11.5px; color: var(--faint); line-height: 1.6; margin: 12px auto 0; max-width: 40em; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 70; transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  background: var(--text); color: var(--bg); padding: 12px 18px; font-size: 12px; letter-spacing: 0.06em; transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* the photographs' near-black backgrounds sink into the page's black */
.card .frame .shot, .gallery, .feature-media { filter: contrast(1.12); }

/* =====================================================================
   Editorial layer and motion. Slow, deliberate, never flashy: masked
   rises, images uncovered from above, a gold line that draws the piece.
   Everything here is off with prefers-reduced-motion and without JS.
   ===================================================================== */
::selection { background: rgba(217, 192, 138, 0.28); color: #fff; }
body { overflow-x: hidden; }

/* film grain, felt more than seen */
.grain {
  position: fixed; inset: -50%; z-index: 80; pointer-events: none; opacity: 0.045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* page transitions: a dark veil lifts on arrival and falls on leaving */
.veil-in, .veil-out { position: fixed; inset: 0; z-index: 90; background: var(--bg); pointer-events: none; }
.veil-in { opacity: 0; }
.arrive .veil-in { animation: veil-in 0.9s var(--slow) 0.05s both; }
@keyframes veil-in { from { opacity: 1; } to { opacity: 0; } }
.veil-out { opacity: 0; transition: opacity 0.45s var(--ease); }
.leaving .veil-out { opacity: 1; }

/* ---------------------------------------------------------------------
   The opening (first visit to the home page in a session).
   0.4s   the mark opens from its centre, out of a soft blur (2.8s)
   2.0s   a gold line grows under it, from the centre
   2.6s   Tepic, Nayarit
   4.3s   the mark fades; the gold line runs to both edges of the screen
   5.2s   the screen parts along that line, upward and downward
   --------------------------------------------------------------------- */
.opening { display: none; }
.intro .opening { display: block; position: fixed; inset: 0; z-index: 95; pointer-events: none; }
.op-half { position: absolute; left: 0; right: 0; height: 50.5%; background: #000; pointer-events: auto; will-change: transform; }
.op-top { top: 0; }
.op-bot { bottom: 0; }
.intro .op-top { animation: part-up 1.6s var(--soft) 5.2s both; }
.intro .op-bot { animation: part-down 1.6s var(--soft) 5.2s both; }
@keyframes part-up { to { transform: translateY(-101%); } }
@keyframes part-down { to { transform: translateY(101%); } }
.op-seam { position: absolute; left: 0; right: 0; top: 50%; height: 1px; margin-top: -0.5px; z-index: 1; background: linear-gradient(90deg, transparent, var(--gold) 18%, var(--gold) 82%, transparent); transform: scaleX(0); opacity: 0; }
.intro .op-seam { animation: seam 2.2s var(--soft) 4.4s both; }
@keyframes seam { 0% { transform: scaleX(0.08); opacity: 0; } 12% { opacity: 0.85; } 50% { transform: scaleX(1); opacity: 0.85; } 100% { transform: scaleX(1); opacity: 0; } }
.opening-mark { position: absolute; inset: 0; z-index: 2; }
.opening-mark img { position: absolute; left: 0; right: 0; bottom: calc(50% + 26px); margin: 0 auto; width: min(52vw, 270px); height: auto; opacity: 0; }
.opening-mark i { position: absolute; left: 50%; top: 50%; width: 120px; height: 1px; margin: -0.5px 0 0 -60px; background: var(--gold); opacity: 0.85; transform: scaleX(0); }
.opening-mark span { position: absolute; left: 0; right: 0; top: calc(50% + 24px); text-align: center; font-size: 10px; letter-spacing: 0.42em; text-indent: 0.42em; text-transform: uppercase; color: var(--faint); opacity: 0; }
.intro .opening-mark img { animation: mark-in 2.8s var(--soft) 0.4s both, gone 0.9s var(--ease) 4.3s forwards; }
.intro .opening-mark i { animation: line-in 1.6s var(--soft) 2s both, gone 0.6s var(--ease) 5.3s forwards; }
.intro .opening-mark span { animation: fade-in 1.4s var(--ease) 2.6s both, gone 0.9s var(--ease) 4.3s forwards; }
@keyframes mark-in {
  0% { opacity: 0; filter: blur(12px); clip-path: inset(0 50% 0 50%); transform: scale(1.04); }
  55% { opacity: 1; }
  100% { opacity: 1; filter: blur(0); clip-path: inset(0 0 0 0); transform: none; }
}
@keyframes line-in { to { transform: scaleX(1); } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes gone { to { opacity: 0; } }
/* skipped with a click, a key or the wheel: part at once */
.intro.opened .opening-mark img, .intro.opened .opening-mark i, .intro.opened .opening-mark span { animation: gone 0.35s var(--ease) forwards; }
.intro.opened .op-seam { animation: none; opacity: 0; }
.intro.opened .op-top { animation: part-up 0.95s var(--soft) 0.12s both; }
.intro.opened .op-bot { animation: part-down 0.95s var(--soft) 0.12s both; }
.intro body { overflow: hidden; }

/* header over the hero: transparent until scrolled, hides going down */
.head { transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease), transform 0.6s var(--slow), opacity 1.4s var(--ease); }
.head.over:not(.solid) { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.head.tucked { transform: translateY(-100%); }
[data-page="home"] .head { position: fixed; left: 0; right: 0; }
.js[data-page="home"]:not(.go) .head { opacity: 0; }

/* reveals */
.js [data-r]:not([data-r="img"]):not([data-r="words"]) { opacity: 0; transform: translateY(22px); transition: opacity 1.2s var(--ease) var(--rd, 0s), transform 1.4s var(--slow) var(--rd, 0s); }
.js [data-r].in:not([data-r="img"]):not([data-r="words"]) { opacity: 1; transform: none; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.w > span { display: inline-block; }
.js [data-r="words"] .w > span { transform: translateY(110%); transition: transform 1.3s var(--slow) calc(var(--rd, 0s) + var(--i) * 70ms); }
.js [data-r="words"].in .w > span { transform: none; }
.js [data-r="img"] { position: relative; }
.js [data-r="img"]::after { content: ""; position: absolute; inset: -1px; z-index: 3; background: var(--bg); transform-origin: 50% 0; transition: transform 1.6s var(--slow) var(--rd, 0s); pointer-events: none; }
.js [data-r="img"].in::after { transform: scaleY(0); }
.js [data-r="img"] img, .js [data-r="img"] video { transform: scale(1.12); transition: transform 2.2s var(--slow) var(--rd, 0s); }
.js [data-r="img"].in img, .js [data-r="img"].in video { transform: none; }

/* hero: the piece on the axis, the line under it */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; justify-items: center; text-align: center; overflow: hidden; background: #000; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70vmax 46vmax at 50% 40%, rgba(255, 255, 255, 0.045), transparent 70%); pointer-events: none; }
.hero-stage { display: grid; place-items: center; width: 100%; padding: calc(var(--head) + 3vh) var(--gutter) 0; }
.hero-piece { position: relative; margin: 0; width: min(60vw, 920px, calc((100svh - 420px) * 2.03)); min-width: 280px; aspect-ratio: 1500 / 740; }
.hero-photo, .hero-trace { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-trace { overflow: visible; filter: drop-shadow(0 0 3px rgba(231, 207, 158, 0.35)); }
.hero-trace path { fill: none; stroke: #e7cf9e; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.hero-trace .outer { stroke-width: 1.4; stroke-opacity: 0.95; }
.hero-trace .inner { stroke-width: 1; stroke-opacity: 0.7; }
/* with JS the hero waits for "go" (as the opening parts), then draws */
.js .hero-trace path { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.js .hero-photo { opacity: 0; transform: scale(1.04); }
.js .hero-kicker, .js .hero-cta, .js .hero-scroll { opacity: 0; }
.js.go .hero-trace path { animation: draw var(--dur) cubic-bezier(0.45, 0, 0.2, 1) var(--d) forwards; }
.js.go .hero-trace { animation: fade-out 1.6s var(--ease) 2.7s forwards; }
.js.go .hero-photo { animation: photo-in 2.2s var(--ease) 2.3s forwards, settle 10s var(--slow) 2.3s forwards; }
.js.go .hero-kicker { animation: fade-in 1.2s var(--ease) 0.6s forwards; }
.js.go .hero-cta { animation: fade-in 1.2s var(--ease) 3.2s forwards; }
.js.go .hero-scroll { animation: fade-in 1.2s var(--ease) 3.6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes photo-in { to { opacity: 1; } }
@keyframes settle { to { transform: none; } }
.hero-copy { position: relative; display: grid; justify-items: center; gap: 18px; padding: 2.4vh var(--gutter) clamp(88px, 12vh, 124px); }
.hero-title { font-family: var(--serif); font-weight: 300; font-style: italic; font-size: clamp(40px, 5.6vw, 92px); line-height: 1; letter-spacing: -0.015em; margin: 0; }
.js .hero-title { --rd: 0.9s; }
.hero-cta { margin-top: 12px; }
.hero-scroll { position: absolute; left: calc(50% - 0.5px); bottom: 0; width: 1px; height: 64px; overflow: hidden; }
.hero-scroll i { position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: linear-gradient(to bottom, transparent, var(--text)); animation: scroll-cue 2.4s var(--ease) infinite; }
@keyframes scroll-cue { from { transform: translateY(-100%); } to { transform: translateY(100%); } }
@media (max-width: 760px) {
  .hero-piece { width: 88vw; min-width: 0; }
  .hero-copy { padding-bottom: 96px; }
}

.statement { font-family: var(--serif); font-weight: 300; font-style: italic; font-size: clamp(40px, 5.2vw, 84px); line-height: 1.02; letter-spacing: -0.01em; margin: 0; }

/* the diptych: two pieces, mirrored on the axis */
.diptych { display: grid; grid-template-columns: repeat(2, minmax(0, 520px)); justify-content: center; gap: clamp(28px, 7vw, 128px); padding: clamp(96px, 12vw, 168px) var(--gutter); border-top: 1px solid var(--line); }
.feature { display: grid; grid-template-rows: auto 1fr; justify-items: center; text-align: center; min-width: 0; }
.feature-media { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; -webkit-mask-image: var(--vig); mask-image: var(--vig); }
.feature-media .px { position: absolute; inset: -6% 0; }
.feature-media video, .feature-media img { width: 100%; height: 100%; object-fit: cover; }
/* a small piece, enlarged around the centre of its frame */
.feature-media .px.zoom video { position: absolute; left: calc(50% * (1 - var(--zoom))); top: calc(53% * (1 - var(--zoom))); width: calc(100% * var(--zoom)); height: calc(100% * var(--zoom)); max-width: none; }
.feature-copy { display: grid; grid-template-rows: auto auto 1fr auto; justify-items: center; gap: 20px; padding-top: 42px; }
.feature .statement { font-size: clamp(32px, 3.3vw, 52px); }
.feature-copy p { color: var(--muted); font-size: 15px; line-height: 1.8; max-width: 26em; margin: 0; }
.feature-meta { display: grid; justify-items: center; gap: 18px; font-size: 13px; letter-spacing: 0.04em; padding-top: 4px; }
.diptych .feature:nth-child(2) { --rd: 0.15s; }
@media (max-width: 760px) {
  .diptych { grid-template-columns: minmax(0, 520px); gap: 96px; padding: 88px var(--gutter); }
  .diptych .feature:nth-child(2) { --rd: 0s; }
}

/* collection */
.collection { border-top: 1px solid var(--line); }
.collection-head { display: grid; justify-items: center; text-align: center; gap: 18px; padding: clamp(96px, 11vw, 150px) var(--gutter) 52px; }
.collection-head p { color: var(--muted); line-height: 1.8; max-width: 34em; margin: 6px 0 0; }

/* cards: the turntable on hover */
.card .frame .hover { position: absolute; inset: 0; z-index: 2; background: #000; opacity: 0; transition: opacity 0.7s var(--ease); pointer-events: none; }
.card .frame .hover.on { opacity: 1; }
.card .frame .hover video { width: 100%; height: 100%; object-fit: cover; }
/* a piece with a turntable shows only the turntable on hover, never its packaging photo */
.hover-video .card[data-video] .frame img.alt { display: none; }
.card .note { z-index: 3; }
.card .look { z-index: 3; position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text); opacity: 0; transform: translateY(6px); transition: opacity 0.5s var(--ease), transform 0.6s var(--slow); }
@media (hover: hover) { .card:hover .look { opacity: 1; transform: none; } }

/* materials: a triptych, the words between two renders */
.materia { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 400px) minmax(0, 1fr); align-items: center; gap: clamp(24px, 5vw, 88px); padding: clamp(96px, 11vw, 150px) var(--gutter); border-top: 1px solid var(--line); }
.materia .feature-media { max-width: 460px; justify-self: center; }
.materia-copy { display: grid; justify-items: center; text-align: center; gap: 22px; }
.materia .statement { font-size: clamp(34px, 3.4vw, 54px); }
.materia-copy p { color: var(--muted); font-size: 15px; line-height: 1.8; margin: 0; }
.materia .feature-media:last-child { --rd: 0.15s; }
@media (max-width: 900px) {
  .materia { grid-template-columns: 1fr 1fr; gap: 14px; }
  .materia-copy { grid-column: 1 / -1; order: -1; margin-bottom: 40px; }
}

/* delivery */
.deliver { display: grid; justify-items: center; text-align: center; gap: 26px; padding: clamp(96px, 11vw, 150px) var(--gutter); border-top: 1px solid var(--line); }
.deliver-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 300px)); justify-content: center; gap: 48px; margin: 30px 0 14px; }
.deliver-cols .ico { width: 44px; height: 28px; color: var(--muted); margin: 0 auto 16px; display: block; }
.deliver-cols h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin: 0 0 10px; }
.deliver-cols p { color: var(--muted); font-size: 14px; line-height: 1.75; margin: 0; }
.deliver-cols > div:nth-child(2) { --rd: 0.12s; }
.deliver-cols > div:nth-child(3) { --rd: 0.24s; }
@media (max-width: 760px) { .deliver-cols { grid-template-columns: minmax(0, 320px); gap: 40px; } .deliver-cols > div { --rd: 0s !important; } }

/* titles in the display italic */
.page-title h1, .section h2 { font-style: italic; }

/* reduced motion: everything is simply there */
.calm .opening, .calm .grain { display: none !important; }
.calm [data-r], .calm [data-r] .w > span, .calm [data-r="img"] img, .calm [data-r="img"] video { opacity: 1 !important; transform: none !important; }
.calm [data-r="img"]::after { display: none; }
.calm .hero-trace { display: none; }
.calm .hero-photo, .calm .hero-kicker, .calm .hero-cta, .calm .hero-scroll, .calm .head { opacity: 1 !important; transform: none !important; }
