:root {
  color-scheme: light;
  --ink: #281d17;
  --cream: #f2e6d7;
  --paper: #f8f2e9;
  --muted: #695446;
  --line: #7e6c5c;
  --margin: clamp(24px, 3.5vw, 72px);
  --arrival: cubic-bezier(.16, 1, .3, 1);
  font-family: "DM Sans", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button { border: 0; }
img { display: block; max-width: 100%; height: auto; }
::selection { background: #e5bdb1; color: var(--ink); }
:focus-visible { outline: 2px solid #77462d; outline-offset: 6px; }
.skip-link { position: fixed; top: 12px; left: 24px; z-index: 20; background: var(--paper); padding: 12px 20px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.hero { min-height: 700px; height: 100svh; position: relative; isolation: isolate; overflow: hidden; background: var(--cream); }
.architecture { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; z-index: -2; }
.header { position: relative; z-index: 8; margin: 0 var(--margin); min-height: 78px; padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.identity { display: inline-flex; gap: 30px; align-items: center; font-size: clamp(13px, 1.2vw, 19px); letter-spacing: -.045em; }
.symbol { width: 38px; height: 29px; flex-shrink: 0; }
.identity-connector { font-size: .94em; }
nav { display: flex; gap: 36px; align-items: center; font-size: clamp(13px, 1.15vw, 18px); }
.nav-explore { padding: 10px 0; }
.nav-explore:hover { text-decoration: underline; text-underline-offset: 5px; }
.contact-button { display: inline-flex; align-items: center; gap: 11px; min-height: 44px; background: transparent; border: 1px solid var(--ink); padding: 11px 28px; border-radius: 99px; transition: background-color 180ms, color 180ms; }
.contact-button:hover { background: var(--ink); color: var(--paper); }
.copy { position: absolute; z-index: 5; left: var(--margin); top: 20%; width: 49%; }
h1 { margin: 0; font-size: clamp(64px, min(7.5vw, 15svh), 148px); line-height: .96; letter-spacing: -.075em; font-weight: 800; }
h1 > span { display: block; }
h1 em { display: block; margin-top: .075em; font: italic 400 1.04em/.91 "Instrument Serif", Georgia, serif; letter-spacing: -.045em; white-space: nowrap; }
.copy > p { margin: clamp(25px, 3.2vh, 36px) 0 clamp(28px, 3.8vh, 42px); font-size: clamp(16px, 1.45vw, 23px); letter-spacing: -.045em; line-height: 1.45; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; padding: 19px 30px; min-height: 58px; border-radius: 99px; background: var(--ink); color: #fff9f2; font-size: clamp(16px, 1.3vw, 21px); letter-spacing: -.035em; transition: background-color 180ms, box-shadow 180ms; }
.primary-button:hover { background: #493125; box-shadow: 0 8px 24px #472e1918; }
.button-arrow { display: inline-block; transition: transform 180ms var(--arrival); }
.primary-button:hover .button-arrow { transform: translate(2px, -2px); }
.primary-button:active { background: #1d1410; }
.showcase { --set-width: min(71vw, 155svh); position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.display-set { position: absolute; width: var(--set-width); aspect-ratio: 1586 / 992; right: -9%; top: calc(73% - var(--set-width) * .391); z-index: 2; }
.object { position: absolute; transform: translate(var(--depth-x, 0px), var(--depth-y, 0px)); }
.product { width: 100%; height: auto; }
.object-dress { width: calc(var(--set-width) * .55); top: calc(clamp(90px, 10svh, 112px) - var(--set-width) * .0392); right: calc(-9vw + var(--set-width) * .03); z-index: 1; }
/* Products and plinths share one canvas, keeping their contact points together. */
.plinths { position: absolute; width: 100%; max-width: none; right: 0; top: calc(var(--set-width) * .13); height: auto; z-index: 2; }
.object-shoe { width: 42%; left: 10%; top: 0; z-index: 4; }
.object-perfume { width: 24%; top: 41%; right: 11%; z-index: 5; transform: translate(var(--depth-x, 0px), var(--depth-y, 0px)) rotate(var(--depth-tilt, 0deg)); transform-origin: 50% 93%; }
.object-perfume::before { content: ""; position: absolute; z-index: -1; width: 60%; left: 20%; height: 2%; bottom: 6.7%; border-radius: 50%; background: #56331940; filter: blur(5px); }
.shoe-contact-shadow { position: absolute; z-index: 3; width: 18%; height: 1.6%; left: 36%; top: calc(var(--set-width) * .401); border-radius: 50%; background: #65492d30; filter: blur(7px); transform: rotate(2deg); }
.hero-footer { position: absolute; z-index: 7; bottom: 5.8%; left: var(--margin); right: var(--margin); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.scroll-invitation { display: inline-flex; align-items: center; gap: 22px; font-size: clamp(13px, 1.16vw, 18px); letter-spacing: -.025em; }
.scroll-invitation svg { width: 24px; height: 37px; transition: transform 220ms var(--arrival); }
.scroll-invitation:hover svg { transform: translateY(4px); }
.motion-button { display: flex; align-items: center; gap: 9px; font-size: 12px; padding: 10px 12px; background: #fff9f2c9; border: 1px solid #826b4e38; border-radius: 99px; }
.motion-button[hidden] { display: none; }
.motion-icon { font-size: 14px; min-width: 10px; }
.motion-button:hover { background: var(--paper); }
.next-chapter { background: var(--paper); padding: 100px var(--margin) 48px; min-height: 410px; display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; }
.chapter-note { font-size: 17px; margin: 0 0 18px; color: var(--muted); }
.next-chapter h2 { margin: 0; font-size: clamp(36px, 4.8vw, 76px); font-weight: 500; line-height: 1.05; letter-spacing: -.06em; }
.next-chapter h2 em { font: italic 400 1.2em "Instrument Serif", Georgia, serif; }
.chapter-description { max-width: 420px; color: var(--muted); font-size: 16px; line-height: 1.6; margin: 24px 0 0; }
.return-link { display: inline-flex; gap: 20px; padding: 12px 0; font-size: 14px; white-space: nowrap; }
.return-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.contact-dialog { color: var(--ink); background: var(--paper); border: 0; border-radius: 8px; padding: 54px; width: min(590px, calc(100vw - 32px)); max-height: calc(100svh - 32px); }
.contact-dialog::backdrop { background: #24170c70; }
.dialog-close { position: absolute; top: 14px; right: 18px; background: transparent; font-size: 30px; width: 44px; height: 44px; }
.contact-dialog h2 { margin: 30px 0 20px; font-size: clamp(36px, 4vw, 48px); font-weight: 500; line-height: 1.1; letter-spacing: -.055em; }
.contact-dialog h2 em { font: italic 400 1.12em "Instrument Serif", Georgia, serif; }
.contact-dialog p { font-size: 16px; line-height: 1.6; color: var(--muted); margin: 0 0 28px; }
.contact-dialog .primary-button { font-size: 16px; padding: 16px 24px; }
body:has(dialog[open]) { overflow: hidden; }

@media (min-width: 1800px) {
  .header { min-height: 96px; }
}
@media (max-width: 1100px) and (min-width: 761px) {
  .hero { min-height: 690px; }
  .identity { gap: 15px; }
  .copy { top: 23%; }
  .copy > p { max-width: 360px; }
}
@media (max-width: 760px), (max-width: 1100px) and (max-aspect-ratio: 1/1) {
  :root { --margin: 24px; }
  .hero { height: auto; min-height: 0; }
  .architecture { object-fit: cover; object-position: 66% bottom; }
  .header { min-height: 78px; padding: 16px 0; gap: 14px; }
  .identity { gap: 12px; font-size: 12px; letter-spacing: -.035em; max-width: 200px; }
  .symbol { width: 28px; height: 24px; }
  .identity > span { max-width: 130px; line-height: 1.35; }
  nav { gap: 0; }
  .nav-explore { display: none; }
  .contact-button { font-size: 12px; padding: 10px 15px; gap: 7px; }
  .copy { position: relative; top: auto; left: auto; width: auto; margin: 45px var(--margin) 0; }
  h1 { font-size: clamp(46px, calc(17.5vw - 8.4px), 96px); line-height: .95; letter-spacing: -.07em; }
  h1 em { font-size: 1.13em; margin-top: .07em; }
  .copy > p { font-size: 16px; max-width: 300px; margin: 24px 0 23px; line-height: 1.45; }
  .primary-button { font-size: 15px; padding: 17px 23px; min-height: 54px; gap: 20px; }
  .showcase { position: relative; inset: auto; margin-top: 14px; height: 100vw; }
  .display-set { position: static; width: auto; aspect-ratio: auto; right: auto; top: auto; }
  .object-dress { width: 77%; right: -12%; top: -5%; }
  .object-shoe { width: 70%; left: 0%; top: 19%; }
  .object-perfume { width: 31%; right: 1%; top: 53%; }
  .plinths { width: 112%; right: -5%; top: auto; bottom: -9%; }
  .shoe-contact-shadow { width: 30%; left: auto; right: 37%; top: 80%; }
  .hero-footer { position: relative; bottom: auto; left: auto; right: auto; margin: 0 var(--margin); padding: 6px 0 27px; gap: 8px; }
  .scroll-invitation { font-size: 12px; gap: 13px; }
  .scroll-invitation svg { width: 19px; height: 28px; }
  .motion-button { font-size: 11px; padding: 10px; min-height: 44px; min-width: 44px; }
  .motion-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .motion-icon { width: 12px; }
  .next-chapter { min-height: 350px; padding-top: 64px; padding-bottom: 32px; flex-direction: column; align-items: flex-start; gap: 30px; }
  .chapter-note { font-size: 14px; }
  .next-chapter h2 { font-size: clamp(38px, 8vw, 52px); }
  .chapter-description { font-size: 14px; margin-top: 18px; }
  .return-link { font-size: 12px; }
  .contact-dialog { padding: 42px 28px 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .object { transform: none !important; }
}
