/* Layout: full-bleed living velvet photo; a frameless menu on top. Only the 5 brand states are used. */
:root {
  --oxblood: #4A1024;      /* Velvet Oxblood */
  --porcelain: #F7F2EB;    /* Warm Porcelain */
  --silver: #D3D5D8;       /* Satin Silver */
  --ink-soft: rgba(247, 242, 235, .9);
  --ink-muted: rgba(74, 16, 36, .72);  /* oxblood on porcelain, still >4.5:1 */
  --hair: var(--silver);
  --fa: "Peyda", Tahoma, "Segoe UI", sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --gutter: clamp(24px, 6vw, 112px);
  --ease: cubic-bezier(.2,.7,.1,1);
  color-scheme: dark;
}
body { margin: 0; background: var(--oxblood); color: var(--porcelain); font-family: var(--fa); }

/* Hero: the photo is oversized so moving it never shows an edge */
.hero { position: fixed; inset: 0; overflow: hidden; background: var(--oxblood); }
.velvet, .cloth { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.velvet { animation: settle 2.4s cubic-bezier(.2,.7,.1,1) both; }
.cloth { opacity: 0; transition: opacity 1.2s ease; }
.cloth.on { opacity: 1; }
@keyframes settle { from { opacity: 0; transform: scale(1.08); } }

/* Frameless menu: logo, links and consultation sit straight on the velvet.
   No box, only a soft oxblood shade at the top of the page keeps them legible. */
.hero::after {
  content: ""; position: absolute; inset: 0 0 auto; height: 240px; pointer-events: none;
  background: linear-gradient(rgba(74, 16, 36, .78), rgba(74, 16, 36, .35) 55%, rgba(74, 16, 36, 0));
}
.bar {
  position: fixed; z-index: 5; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: calc(env(safe-area-inset-top, 0px) + 26px); padding-bottom: 26px;
  padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px));
  animation: appear 1.4s .4s ease both;
}
@media (min-width: 1100px) { .bar { padding-left: max(56px, env(safe-area-inset-left, 0px)); padding-right: max(56px, env(safe-area-inset-right, 0px)); } }
@keyframes appear { from { opacity: 0; } }
.mark { position: relative; z-index: 2; display: flex; align-items: center; min-height: 44px; }
.mark img {
  height: 44px; width: auto; opacity: .9; filter: drop-shadow(0 2px 10px rgba(74, 16, 36, .6));
  animation: unveil 2.2s .5s cubic-bezier(.2,.7,.1,1) both;
}
/* logo motion: it unveils right-to-left (the way it is read), then a slow band of light crosses it like polished silver */
@keyframes unveil {
  from { clip-path: inset(0 0 0 100%); filter: blur(6px) drop-shadow(0 2px 10px rgba(74, 16, 36, .6)); }
  to { clip-path: inset(0 0 0 0); filter: blur(0) drop-shadow(0 2px 10px rgba(74, 16, 36, .6)); }
}
.mark::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 38%, rgba(247, 242, 235, .95) 50%, transparent 62%) 100% 0 / 300% 100% no-repeat;
  -webkit-mask: url(../logo-horizontal.webp) center / contain no-repeat; mask: url(../logo-horizontal.webp) center / contain no-repeat;
  animation: glint 9s 3s ease-in-out infinite;
}
.mark:hover::after, .mark:focus-visible::after { animation: glint-now 1.4s ease-in-out; }
@keyframes glint { 0%, 72% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@keyframes glint-now { from { background-position: 100% 0; } to { background-position: 0 0; } }

.nav { position: relative; display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.nav a {
  position: relative; z-index: 1; display: block; padding: 12px 14px;
  color: var(--ink-soft); text-decoration: none; font-size: 15px; font-weight: 400;
  text-shadow: 0 1px 12px rgba(74, 16, 36, .7); transition: color .3s;
}
.nav a:hover, .nav a:focus-visible, .nav a[aria-current] { color: var(--porcelain); }
.nav a[aria-current] { font-weight: 600; }
.glow { /* a line of light that slides under the hovered link */
  position: absolute; bottom: 4px; left: 0; width: 0; height: 1px; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, var(--porcelain) 25%, var(--porcelain) 75%, transparent);
  box-shadow: 0 0 8px rgba(247, 242, 235, .7);
  transition: transform .5s cubic-bezier(.2,.7,.1,1), width .5s cubic-bezier(.2,.7,.1,1), opacity .35s;
}
.cta { /* the consultation link: a small porcelain diamond leads the words, and turns and glints on hover */
  display: inline-flex; align-items: center; gap: 14px; min-height: 44px;
  color: var(--porcelain); text-decoration: none; font-size: 15px; font-weight: 600;
  text-shadow: 0 1px 12px rgba(74, 16, 36, .7);
}
.cta::before {
  content: ""; width: 7px; height: 7px; background: var(--porcelain); transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(247, 242, 235, .55); transition: transform .6s cubic-bezier(.2,.7,.1,1), box-shadow .4s;
}
.cta:hover::before, .cta:focus-visible::before { transform: rotate(225deg) scale(1.35); box-shadow: 0 0 16px rgba(247, 242, 235, .9); }
:focus-visible { outline: 1px solid var(--porcelain); outline-offset: 3px; }

.menu-toggle {
  position: relative; z-index: 2; display: none; width: 44px; height: 44px; padding: 0; cursor: pointer;
  color: var(--porcelain); background: none; border: 0;
}
.menu-toggle span, .menu-toggle span::before { display: block; width: 32px; height: 1.5px; margin: auto; background: currentColor; position: relative; transition: transform .4s cubic-bezier(.2,.7,.1,1); }
.menu-toggle span { top: -5px; }
.menu-toggle span::before { content: ""; position: absolute; top: 10px; }
.menu-toggle[aria-expanded="true"] span { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(-10px) rotate(-90deg); }

@media (max-width: 1099px) {
  .bar > .cta, .glow { display: none; }
  .menu-toggle { display: block; }
  .mark img { height: 54px; }
  .menu-toggle { width: 58px; height: 58px; order: -1; } /* RTL: first in order sits on the right, so the logo moves left */
  .menu-toggle span, .menu-toggle span::before { width: 38px; height: 2px; }
  .menu-toggle span { top: -6px; }
  .menu-toggle span::before { top: 12px; }
  .menu-toggle[aria-expanded="true"] span { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span::before { transform: translateY(-12px) rotate(-90deg); }
  /* the open menu fills the screen as frosted velvet: no panel, just large type */
  .nav {
    display: none; position: fixed; inset: 0; z-index: 1; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    background: rgba(74, 16, 36, .55);
    -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%);
  }
  .nav.open { display: flex; animation: appear .5s ease both; }
  .nav a { padding: 12px 20px; font-size: 26px; font-weight: 300; }
  .nav .nav-cta { margin-top: 24px; }
  .nav .nav-cta a { display: inline-flex; font-size: 18px; }
}
@media (min-width: 1100px) {
  .nav .nav-cta { display: none; }
  .mark img { height: 58px; }
  .nav { gap: 14px; }
  .nav a, .cta { font-size: 17px; }
  .nav a { padding: 12px 16px; }
  .glow { height: 1.5px; }
}

/* Pointer: a diamond-cut arrowhead; only on devices with a real mouse */
.arrow { display: none; }
@media (hover: hover) and (pointer: fine) {
  html, a, button { cursor: none; }
  .arrow { display: block; position: fixed; z-index: 20; left: 0; top: 0; pointer-events: none; opacity: 0; will-change: transform, opacity; }
  .arrow { width: 22px; height: 22px; transform-origin: 9% 9%; filter: drop-shadow(0 3px 4px rgba(74, 16, 36, .7)); transition: filter .4s ease; }
  .arrow svg { display: block; width: 100%; height: 100%; }
  .ptr-over .arrow { filter: drop-shadow(0 0 5px rgba(247, 242, 235, .55)) drop-shadow(0 3px 4px rgba(74, 16, 36, .6)); }
}

/* Header over porcelain sections: the same frameless menu, inked in oxblood */
.bar::before {
  content: ""; position: absolute; inset: 0 0 -32px; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .6s;
  background: linear-gradient(rgba(247, 242, 235, .95), rgba(247, 242, 235, .75) 60%, rgba(247, 242, 235, 0));
}
.mark img { transition: opacity .6s; }
.mark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .6s; background: var(--oxblood);
  -webkit-mask: url(../logo-horizontal.webp) center / contain no-repeat; mask: url(../logo-horizontal.webp) center / contain no-repeat;
}
.nav a, .cta, .menu-toggle { transition: color .6s; }
.bar.light::before, .bar.light .mark::before { opacity: 1; }
.bar.light .mark img { opacity: 0; }
.bar.light .nav a, .bar.light .cta, .bar.light .menu-toggle { color: var(--oxblood); text-shadow: none; }
.bar.light .cta::before { background: var(--oxblood); box-shadow: none; }
.bar.light .glow { background: linear-gradient(90deg, transparent, var(--oxblood) 25%, var(--oxblood) 75%, transparent); box-shadow: none; }

/* Page: porcelain sheets slide up over the fixed velvet, like a curtain */
/* the sheet itself must not catch the mouse over the velvet, or the hero thinks it is covered */
.sheet { position: relative; z-index: 1; pointer-events: none; }
.sheet > :not(.stage) { pointer-events: auto; }
.stage { height: 100vh; height: 100svh; pointer-events: none; display: grid; place-items: center; padding-inline: 24px; }
/* Hero words: one line of promise and one way in, set quietly on the velvet after it settles */
.hero-copy { text-align: center; color: var(--porcelain); transition: opacity .5s ease; }
.menu-open .hero-copy { opacity: 0; visibility: hidden; } /* the open menu owns the screen */
.motto {
  margin: 0; font-size: clamp(30px, 4.4vw, 64px); font-weight: 300; line-height: 1.5;
  text-shadow: 0 2px 24px rgba(74, 16, 36, .8);
  animation: surface 2.4s 1.2s var(--ease) both;
}
.enter {
  pointer-events: auto; display: inline-flex; align-items: center; gap: 14px; min-height: 52px; margin-top: 44px; padding: 0 30px;
  color: var(--porcelain); text-decoration: none; font-size: 15px; font-weight: 400; letter-spacing: .04em;
  border: 1px solid rgba(247, 242, 235, .55); background: rgba(74, 16, 36, .18);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background .6s var(--ease), color .6s var(--ease), border-color .6s;
  animation: surface 2s 2s var(--ease) both;
}
.enter::before { content: ""; width: 6px; height: 6px; background: currentColor; transform: rotate(45deg); transition: transform .6s var(--ease); }
.enter:hover, .enter:focus-visible { background: var(--porcelain); color: var(--oxblood); border-color: var(--porcelain); }
.enter:hover::before, .enter:focus-visible::before { transform: rotate(225deg) scale(1.3); }
@keyframes surface { from { opacity: 0; transform: translateY(14px); filter: blur(8px); } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.paper { background: var(--porcelain); color: var(--oxblood); }
.wrap { padding-inline: var(--gutter); max-width: 1440px; margin-inline: auto; }
.eyebrow { margin: 0 0 28px; font-size: 12px; font-weight: 400; letter-spacing: .32em; text-transform: uppercase; color: var(--ink-muted); }
.latin { font-family: var(--serif); font-weight: 300; letter-spacing: .01em; }
p { line-height: 1.95; }

.intro { padding-block: clamp(112px, 16vw, 220px) clamp(80px, 10vw, 140px); }
.intro h1 { margin: 0; max-width: 16ch; font-size: clamp(34px, 5.4vw, 78px); font-weight: 300; line-height: 1.35; }
.intro p { margin: 40px 0 0; max-width: 46ch; font-size: clamp(16px, 1.3vw, 19px); color: var(--ink-muted); }
.brands { display: flex; flex-wrap: wrap; gap: 12px 44px; margin: 72px 0 0; padding: 28px 0 0; list-style: none; border-top: 1px solid var(--hair); }
.brands li { font-size: 13px; letter-spacing: .28em; text-transform: uppercase; }

/* Chapters: one product per step of the digital workflow, image large, words few */
.chapter { display: grid; gap: 40px; align-items: center; padding-block: clamp(72px, 10vw, 150px); border-top: 1px solid var(--hair); }
.chapter figure { margin: 0; display: grid; place-items: center; aspect-ratio: 4 / 3; }
.chapter figure img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.chapter .fade img { -webkit-mask: linear-gradient(#000 62%, transparent 96%); mask: linear-gradient(#000 62%, transparent 96%); } /* photo is cut at the wrist */
.step { display: flex; gap: 14px; align-items: baseline; margin: 0 0 22px; font-size: 14px; color: var(--ink-muted); }
.step b { font-weight: 400; color: var(--oxblood); }
.chapter h2 { margin: 0; font-size: clamp(44px, 6vw, 96px); line-height: 1; direction: ltr; text-align: right; }
.chapter .line { margin: 26px 0 0; font-size: clamp(20px, 1.9vw, 28px); font-weight: 300; line-height: 1.6; }
.facts { margin: 22px 0 0; font-size: 15px; color: var(--ink-muted); }
.more { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; margin-top: 26px; color: var(--oxblood); text-decoration: none; font-size: 15px; font-weight: 600; }
.more::before { content: ""; width: 6px; height: 6px; background: currentColor; transform: rotate(45deg); transition: transform .6s var(--ease); }
.more:hover::before, .more:focus-visible::before { transform: rotate(225deg) scale(1.3); }
.paper :focus-visible { outline-color: var(--oxblood); }
@media (min-width: 900px) {
  .chapter { grid-template-columns: 7fr 5fr; gap: 6vw; }
  .chapter.flip figure { order: 2; }
}

/* Index: every product as type; on a mouse, its photo drifts beside the pointer */
.index { padding-block: clamp(96px, 12vw, 180px); border-top: 1px solid var(--hair); }
.index h2 { margin: 0 0 56px; font-size: clamp(28px, 3vw, 40px); font-weight: 300; }
.group { display: grid; gap: 8px 6vw; padding: 28px 0; border-top: 1px solid var(--hair); }
.group h3 { margin: 6px 0 0; font-size: 14px; font-weight: 400; color: var(--ink-muted); }
.group ul { margin: 0; padding: 0; list-style: none; }
.item { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; padding: 10px 0; min-height: 44px; color: var(--oxblood); text-decoration: none; }
.item .latin { font-size: clamp(26px, 2.6vw, 40px); line-height: 1.2; direction: ltr; transition: letter-spacing .7s var(--ease); }
.item small { font-size: 14px; color: var(--ink-muted); }
.item:hover .latin, .item:focus-visible .latin { letter-spacing: .05em; }
@media (min-width: 900px) { .group { grid-template-columns: 3fr 9fr; } }
.peek { display: none; }
@media (hover: hover) and (pointer: fine) {
  .peek {
    display: block; position: fixed; z-index: 15; left: 0; top: 0; width: 300px; height: 240px; pointer-events: none;
    opacity: 0; transition: opacity .5s ease; will-change: transform, opacity;
  }
  .peek.on { opacity: 1; }
  .peek img { width: 100%; height: 100%; object-fit: contain; }
}

/* Close: back to velvet for the one action that matters */
.close { position: relative; overflow: hidden; color: var(--porcelain); }
.close > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.close::before { content: ""; position: absolute; inset: 0; background: rgba(74, 16, 36, .62); }
.close .wrap { position: relative; padding-block: clamp(120px, 16vw, 220px) 48px; }
.close h2 { margin: 0; max-width: 22ch; font-size: clamp(32px, 4.6vw, 66px); font-weight: 300; line-height: 1.4; }
.close p { margin: 32px 0 0; max-width: 44ch; font-size: clamp(16px, 1.3vw, 19px); color: var(--ink-soft); }
.actions { display: flex; flex-wrap: wrap; gap: 16px 44px; margin-top: 48px; }
.quiet { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-soft); font-size: 15px; text-decoration: none; border-bottom: 1px solid rgba(211, 213, 216, .5); }
.quiet:hover, .quiet:focus-visible { color: var(--porcelain); border-color: var(--porcelain); }
.foot { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; margin-top: clamp(96px, 12vw, 180px); padding-top: 28px; border-top: 1px solid rgba(211, 213, 216, .3); font-size: 13px; color: var(--ink-soft); }
.foot img { height: 36px; width: auto; opacity: .9; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot a { display: inline-block; padding: 10px 0; color: inherit; text-decoration: none; }
.foot a:hover, .foot a:focus-visible { color: var(--porcelain); }

/* Gentle reveal; without JS (or with reduced motion) everything is simply there */
.js .rise { opacity: 0; transform: translateY(28px); transition: opacity 1.4s var(--ease), transform 1.4s var(--ease); }
.js .rise.in { opacity: 1; transform: none; }

/* Pointer over porcelain: the diamond is cut from oxblood instead */
.arrow .f1 { fill: var(--porcelain); transition: fill .4s; }
.arrow .f2 { fill: var(--silver); }
.arrow .edge { stroke: var(--porcelain); transition: stroke .4s; }
.ptr-light .arrow .f1 { fill: var(--oxblood); }
.ptr-light .arrow .edge { stroke: var(--oxblood); }
.ptr-light .arrow { filter: drop-shadow(0 2px 3px rgba(74, 16, 36, .25)); }

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