/* Vyllor, Series One (sample, 2026-11-05).
   One near-black ground with a hairline lattice, cream ink, one cool light. Nothing boxed: the lattice is the structure,
   hairlines fade at their ends, corner brackets close on what you point at. The tee is drawn by vy3d.js on a fixed canvas
   and travels between the [data-slot] areas as you scroll. */

:root {
  --bg: #07090f;
  --ink: #eeeae1;
  --muted: #a6abbb;
  --line: rgba(238, 234, 225, .16);
  --grid: rgba(238, 234, 225, .06);
  --light: #8ea0ff;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --sans: 'Jost', 'Avenir Next', 'Helvetica Neue', sans-serif;
  --pad: clamp(16px, 2.4vw, 40px);
  --cell: 64px;
  --hdr: 76px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
  /* the names the shared pages.css uses */
  --ground: var(--bg);
  --ground-rgb: 7, 9, 15;
  --ink-rgb: 238, 234, 225;
  --frame: rgba(238, 234, 225, .4);
  --accent: var(--light);
  --err: #ff9d9d;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
  background-attachment: fixed;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  color: var(--ink);
  font: 300 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* the ground: charcoal silk folds under a scrim that deepens once you leave the hero, the lattice drawn over it */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background: var(--bg); }
.bg__media {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) brightness(.7) contrast(1.06);
  transform: scale(1.07); animation: drift 26s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: scale(1.01) translate3d(-1.4%, .9%, 0); } }
.bg::before, .bg::after { content: ''; position: absolute; inset: 0; }
.bg::before {
  z-index: 1;
  background:
    linear-gradient(rgba(7, 9, 15, calc(.34 + .38 * var(--scrim, 0))), rgba(7, 9, 15, calc(.34 + .38 * var(--scrim, 0)))),
    radial-gradient(120% 90% at 50% 45%, transparent 50%, rgba(3, 4, 8, .7));
}
.bg::after {
  z-index: 2;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 1px solid var(--light); outline-offset: 4px; }

.lattice, .stage { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.lattice { z-index: 0; }
.stage { z-index: 1; }

/* content sits above the stage; the hero wordmark sits under it */
main > section > *, .foot > * { position: relative; z-index: 2; }

/* ---------- type ---------- */
.disp {
  font-family: var(--mono); font-weight: 300; text-transform: uppercase;
  font-size: clamp(40px, 5.2vw, 96px); line-height: .98; letter-spacing: -.04em;
}
.lede { font-size: clamp(17px, 1.2vw, 20px); color: var(--muted); max-width: 36ch; }
h3 { font: 400 15px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- frame button: a control, so it keeps its frame ---------- */
.fbtn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 22px;
  font: 400 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; white-space: nowrap;
  border: 1px solid rgba(238, 234, 225, .4); color: var(--ink);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.fbtn span { transition: transform .3s var(--ease); }
.fbtn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.fbtn:hover span { transform: translateX(3px); }
.fbtn--sm { min-height: 42px; padding: 0 16px; }
.fbtn--fill { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.fbtn--fill:hover { background: transparent; color: var(--ink); }

/* corner brackets that close on whatever you point at */
.brk { position: absolute; inset: -10px; pointer-events: none; opacity: 0; transition: inset .45s var(--ease), opacity .3s; }
.brk, .corner::before {
  --c: rgba(238, 234, 225, .7);
  background:
    linear-gradient(var(--c), var(--c)) top left / 14px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) top left / 1px 14px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 14px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 1px 14px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 14px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 1px 14px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 14px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 1px 14px no-repeat;
}

/* ---------- preloader: a wordmark and a timed hairline, no number ---------- */
.pl { display: none; }
.js .pl {
  position: fixed; inset: 0; z-index: 60; background: var(--bg);
  display: grid; place-content: center; justify-items: center; gap: 28px;
  transition: clip-path 1.1s cubic-bezier(.7, 0, .2, 1);
  clip-path: inset(0 0 0 0);
}
.pl img { width: 200px; height: auto; }
.pl__bar { display: block; width: 180px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.pl.is-run .pl__bar { transform: scaleX(.9); transition: transform 1.3s cubic-bezier(.3, .6, .2, 1); }
.pl.is-ready .pl__bar { transform: scaleX(1); transition-duration: .25s; }
.pl.is-out { clip-path: inset(0 0 100% 0); }
.js .pl.is-gone { display: none; }

/* ---------- header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 20; height: var(--hdr); padding: 0 var(--pad);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  background: linear-gradient(rgba(7, 9, 15, .97) 45%, rgba(7, 9, 15, 0));
  transition: transform .5s var(--ease);
}
.hdr.is-hidden { transform: translateY(-100%); }
.hdr__logo img { width: auto; height: 44px; }
.hdr__nav { display: flex; gap: clamp(18px, 2.4vw, 44px); }
.hdr__nav a {
  font: 400 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted);
  padding: 12px 0; transition: color .25s;
}
.hdr__nav a:hover, .hdr__nav a.is-on { color: var(--ink); }
.hdr .fbtn { justify-self: end; }

/* ---------- sections ---------- */
.sec { padding: 16svh var(--pad); }
.slot { position: relative; }
.slot__still { width: auto; height: 100%; margin-inline: auto; object-fit: contain; opacity: .9; transition: opacity .6s; }
.has3d .slot__still { opacity: 0; }

/* 1 hero */
.hero { position: relative; height: 100svh; min-height: 660px; }
.wm {
  position: absolute !important; z-index: 0 !important; left: 50%; top: 43%;
  width: min(84vw, 1400px); aspect-ratio: 1776 / 884; translate: -50% -50%;
  -webkit-mask: url(media/logo-cream.png) center / contain no-repeat;
  mask: url(media/logo-cream.png) center / contain no-repeat;
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(238, 234, 225, .55), rgba(190, 198, 230, .12) 22%, transparent 46%),
    linear-gradient(180deg, rgba(238, 234, 225, .06), rgba(238, 234, 225, .015));
}
.hero__slot { position: absolute; left: 50%; top: calc(var(--hdr) + 1svh); width: min(52vw, 760px); height: 70svh; translate: -50% 0; }
.corner {
  position: absolute !important; top: 41%; display: grid; gap: 2px; padding: 16px 18px;
  font: 400 14px/1.45 var(--mono); text-transform: uppercase; letter-spacing: .08em;
}
.corner::before { content: ''; position: absolute; inset: 0; --c: rgba(238, 234, 225, .45); background-size: 10px 1px, 1px 10px, 10px 1px, 1px 10px, 10px 1px, 1px 10px, 10px 1px, 1px 10px; }
.corner--l { left: var(--pad); }
.corner--r { right: var(--pad); text-align: right; }
.hero__foot { position: absolute !important; left: 50%; bottom: 9svh; translate: -50% 0; display: grid; justify-items: center; gap: 22px; width: min(92vw, 760px); text-align: center; }
.hero__line { font: 400 clamp(17px, 1.5vw, 24px)/1.35 var(--mono); text-transform: uppercase; letter-spacing: .04em; text-wrap: balance; }
.badge { position: absolute !important; bottom: var(--pad); display: flex; align-items: center; gap: 14px; font: 400 13px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.badge svg, .feats svg { width: 24px; height: 24px; flex: none; fill: none; stroke: var(--ink); stroke-width: 1.2; }
.badge--l { left: var(--pad); }
.badge--r { right: var(--pad); text-align: right; flex-direction: row-reverse; }

/* 2 the garment */
.details {
  display: grid; grid-template-columns: minmax(0, 4.2fr) minmax(0, 5fr) minmax(0, 3.8fr); column-gap: var(--pad);
  align-items: start; min-height: 112svh;
}
.details__intro { display: grid; gap: 26px; justify-items: start; padding-top: 2svh; }
.details__slot { height: 84svh; }
.feats { display: grid; }
.feats li { position: relative; display: grid; grid-template-columns: 24px 1fr; column-gap: 18px; row-gap: 8px; padding: 22px 0; }
.feats li::before, .layers li::before, .qa details::before, .piece__top::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 12%, var(--line) 88%, transparent);
}
.feats svg { grid-row: span 2; margin-top: -2px; }
.feats p { font-size: 16px; color: var(--muted); }

/* 3 the collection */
.headrow { display: flex; justify-content: space-between; align-items: end; gap: var(--pad); margin-bottom: 7svh; }
.headrow .lede { text-align: right; }
.pieces { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--pad); }
.piece { position: relative; display: grid; gap: 14px; perspective: 900px; }
.piece__top { position: relative; display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 12px; }
.piece__top::after { top: auto; bottom: 0; }
.piece__top span { font: 400 13px/1 var(--mono); color: var(--muted); }
.piece__fig { position: relative; aspect-ratio: 1; }
.piece__fig::before { /* a pool of light under each piece, no edge */
  content: ''; position: absolute; inset: 8% 6% 4%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(142, 160, 255, .16), transparent);
  transition: opacity .4s; opacity: .7;
}
.piece__fig img { position: relative; width: 100%; height: 100%; object-fit: contain; transition: transform .5s var(--ease); transform-style: preserve-3d; }
.piece__fig .brk { inset: -4px; }
.piece:hover .brk, .piece:focus-within .brk { opacity: 1; inset: 6px; }
.piece:hover .piece__fig::before { opacity: 1; }
.piece__tags { display: flex; flex-wrap: wrap; gap: 6px 14px; font: 400 13px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.piece__tags span + span::before { content: '·'; margin-right: 14px; color: var(--line); }
.piece__cta { justify-self: start; opacity: 0; translate: 0 6px; transition: opacity .3s, translate .3s var(--ease), background .3s, color .3s; }
.piece:hover .piece__cta, .piece:focus-within .piece__cta { opacity: 1; translate: 0 0; }
.coll__more { display: flex; justify-content: center; margin-top: 8svh; }

/* 4 the fabric */
.fabric { position: relative; height: 340svh; }
.fabric__pin { position: sticky; top: 0; height: 100svh; padding: calc(var(--hdr) + 5svh) var(--pad) 7svh; overflow: hidden; }
.fabric__intro { position: relative; z-index: 2; display: grid; gap: 24px; max-width: 30vw; }
.fabric__intro .disp { font-size: clamp(36px, 4.2vw, 76px); }
.fabric__slot { position: absolute !important; left: 33%; right: 28%; top: 14svh; bottom: 10svh; }
.leaders { position: absolute !important; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.leaders line { stroke: rgba(238, 234, 225, .45); stroke-width: 1; opacity: 0; transition: opacity .4s; }
.leaders line.is-on { opacity: 1; }
.layers { position: absolute !important; right: var(--pad); top: 0; bottom: 0; width: min(25vw, 380px); }
.layers li { position: absolute; left: 0; right: 0; display: grid; gap: 8px; padding-top: 18px; opacity: 0; translate: 0 10px; transition: opacity .5s var(--ease), translate .5s var(--ease); }
.layers li.is-on { opacity: 1; translate: 0 0; }
.layers .n { font: 400 13px/1 var(--mono); color: var(--light); letter-spacing: .08em; }
.layers p { font-size: 16px; color: var(--muted); }
.fabric__verify {
  position: absolute !important; left: var(--pad); bottom: 7svh; max-width: 30ch;
  font: 400 14px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .06em;
  opacity: 0; transition: opacity .6s;
}
.fabric__verify.is-on { opacity: 1; }

/* 5 need to know */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: calc(var(--pad) * 2); align-items: start; }
.faq__side { position: sticky; top: calc(var(--hdr) + 4svh); display: grid; gap: 2svh; }
.faq__slot { height: 62svh; }
.qa { display: grid; padding-top: 1svh; }
.qa details { position: relative; }
.qa summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center;
  padding: 26px 0; font: 400 16px/1.35 var(--mono); text-transform: uppercase; letter-spacing: .05em;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; font: 300 22px/1 var(--mono); color: var(--muted); transition: rotate .35s var(--ease); }
.qa details[open] summary::after { rotate: 45deg; }
.qa details p { padding: 0 0 28px; max-width: 54ch; color: var(--muted); }
.qa details::details-content { block-size: 0; overflow: hidden; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
.qa details[open]::details-content { block-size: auto; }
:root { interpolate-size: allow-keywords; }

/* footer */
.foot { position: relative; padding: 18svh var(--pad) 28px; overflow: hidden; }
.foot__cta { display: flex; justify-content: space-between; align-items: end; gap: var(--pad); flex-wrap: wrap; }
.foot__cta > div { display: grid; gap: 24px; justify-items: start; }
.foot__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.6fr); gap: var(--pad); margin-top: 14svh; }
.foot__cols nav { display: grid; gap: 4px; align-content: start; }
.foot__cols h3 { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.foot__cols a { font-size: 17px; padding: 4px 0; transition: color .25s; }
.foot__cols a:hover { color: var(--light); }
.foot__note { font-size: 15px; color: var(--muted); max-width: 40ch; justify-self: end; }
.foot__mark {
  margin-top: 10svh; width: 100%; aspect-ratio: 1776 / 884;
  -webkit-mask: url(media/logo-cream.png) center / contain no-repeat;
  mask: url(media/logo-cream.png) center / contain no-repeat;
  background: linear-gradient(180deg, rgba(238, 234, 225, .78), rgba(238, 234, 225, .36) 42%, rgba(160, 170, 215, .14) 72%, rgba(238, 234, 225, .03));
}
.foot__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-top: 28px; font: 400 13px/1.5 var(--mono); color: var(--muted); }
.foot__base span:last-child { display: flex; gap: 22px; }
.foot__base a:hover { color: var(--ink); }

/* ---------- reveals: mounted hidden, latched once ---------- */
.js [data-in], .js [data-rv] { opacity: 0; translate: 0 18px; transition: opacity 1s var(--ease) var(--d, 0s), translate 1s var(--ease) var(--d, 0s); }
.js .is-in[data-in], .js .is-in[data-rv] { opacity: 1; translate: 0 0; }

/* ---------- phone ---------- */
@media (max-width: 767px) {
  :root { --cell: 48px; --hdr: 62px; }
  body { font-size: 16px; }
  .hdr { grid-template-columns: 1fr auto; }
  .hdr__nav { display: none; }
  .hdr__logo img { height: 36px; }
  .disp { font-size: clamp(34px, 10vw, 46px); }

  .hero { min-height: 600px; }
  .hero__slot { width: 100vw; top: calc(var(--hdr) + 4svh); height: 47svh; }
  .wm { top: 38%; width: 118vw; }
  .corner { display: none !important; }
  .badge { display: none !important; }
  .hero__foot { bottom: 6svh; gap: 18px; }
  .hero__line { font-size: 17px; }

  .sec { padding: 11svh var(--pad); }
  .details { display: grid; grid-template-columns: 1fr; row-gap: 2svh; min-height: 0; }
  .details__slot { height: 52svh; }

  .headrow { display: grid; gap: 16px; margin-bottom: 5svh; }
  .headrow .lede { text-align: left; }
  .pieces {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74vw; gap: 18px;
    overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad);
    scrollbar-width: none;
  }
  .pieces::-webkit-scrollbar { display: none; }
  .piece { scroll-snap-align: start; }
  .piece__cta { opacity: 1; translate: 0 0; }

  .fabric { height: 300svh; }
  .fabric__pin { padding-top: calc(var(--hdr) + 3svh); }
  .fabric__intro { max-width: none; gap: 14px; }
  .fabric__intro .lede { font-size: 16px; }
  .fabric__slot { left: 0; right: 0; top: 40svh; bottom: 26svh; }
  .leaders { display: none; }
  .layers { left: var(--pad); right: var(--pad); top: auto; bottom: 4svh; width: auto; height: 22svh; }
  .layers li { top: auto !important; bottom: 0; }
  .fabric__verify { bottom: 4svh; right: var(--pad); max-width: none; font-size: 13px; }

  .faq { grid-template-columns: 1fr; }
  .faq__side { position: relative; top: 0; }
  .faq__slot { height: 44svh; }
  .qa summary { font-size: 15px; padding: 22px 0; min-height: 44px; }

  .foot { padding-top: 12svh; }
  .foot__cols { grid-template-columns: 1fr 1fr; margin-top: 9svh; }
  .foot__note { grid-column: 1 / -1; justify-self: start; }
  .foot__cols a { padding: 8px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bg__media { animation: none; transform: none; }
  .js [data-in], .js [data-rv] { opacity: 1; translate: none; transition: none; }
  .pl { transition: none; }
  .layers li, .leaders line, .fabric__verify { transition: none; }
}
