:root {
  color-scheme: light;
  --header-height: 82px;
  --ink: #191015;
  --paper: #f4eee7;
  --muted: #65545e;
  --line: #d9c9d0;
  --serif: "Baskervville", Georgia, serif;
  --sans: "Inter", "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 var(--sans); }
body:has(dialog[open]) { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid #a34881; outline-offset: 4px; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 5; padding: .7rem 1rem; background: white; transform: translateY(-150%); }
.skip:focus { transform: none; }
.topbar, footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 5vw; background: var(--ink); color: var(--paper); }
.topbar { position: sticky; z-index: 3; top: 0; height: var(--header-height); padding-block: 0; background: #100c10; border-bottom: 1px solid #ffffff25; }
.brand { display: inline-flex; gap: .65rem; align-items: center; flex: 0 0 auto; }
.brand img { width: 52px; height: auto; }
.brand span { border-left: 1px solid #fff5; padding-left: .65rem; font-size: .6rem; line-height: 1.35; font-weight: 650; letter-spacing: .17em; }
nav { display: flex; gap: clamp(1rem, 3vw, 3.5rem); font-size: .88rem; }
nav a:hover, footer > a:last-child:hover { text-decoration: underline; text-underline-offset: 5px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .7rem; min-height: 46px; padding: .62rem 1.15rem; border: 1px solid transparent; border-radius: 100px; font-size: .86rem; font-weight: 650; line-height: 1.2; }
.button-outline { border-color: #ffffff65; }
.button-light { color: var(--ink); background: #fae6ec; }
.button-dark { color: white; background: var(--ink); }
.button:hover { filter: brightness(.93); }
.text-link { display: inline-flex; align-items: center; gap: .55rem; width: fit-content; min-height: 44px; font-size: .88rem; font-weight: 600; text-decoration: underline; text-underline-offset: .35em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.showcase { --step: min(55svh, 495px); background: #100c10; }
.showcase.ready { min-height: calc(100svh + 3 * var(--step)); }
.showcase-sticky {
  --stage: #100c10;
  --ambient: #604033;
  --highlight: #f4cba6;
  --control: #f7dfce;
  position: sticky;
  top: var(--header-height);
  color: #fff8ef;
  background: var(--stage);
  transition: background-color .75s ease;
}
.showcase-sticky[data-scene="1"] { --stage: #100d1a; --ambient: #4e3777; --highlight: #d8bfff; --control: #ebdfff; }
.showcase-sticky[data-scene="2"] { --stage: #210b12; --ambient: #79364a; --highlight: #ffb8bc; --control: #ffe3e1; }
.showcase-sticky[data-scene="3"] { --stage: #0b181a; --ambient: #365f65; --highlight: #b9e4d8; --control: #e1f6ee; }
.showcase-inner {
  position: relative;
  isolation: isolate;
  min-height: max(575px, calc(100svh - var(--header-height)));
  display: flex;
  align-items: center;
  padding: clamp(4rem, 8vh, 8rem) 6.2vw clamp(7.6rem, 18vh, 13rem);
  overflow: hidden;
}
.showcase-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(ellipse at 68% 33%, var(--ambient), transparent 68%);
  opacity: .9;
}
.hero-visual { position: absolute; inset: 0; z-index: -1; overflow: hidden; touch-action: pan-y; }
.hero-images, .hero-images::after { position: absolute; inset: 0; }
.hero-images::after {
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--stage) 0%, color-mix(in srgb, var(--stage), transparent 20%) 23%, transparent 65%),
    linear-gradient(0deg, var(--stage) 0%, color-mix(in srgb, var(--stage), transparent 23%) 13%, transparent 47%),
    linear-gradient(270deg, #100c1030, transparent 29%);
}
.hero-photo {
  position: absolute;
  inset: -3% -1% -3% auto;
  width: 77%;
  height: 106%;
  object-fit: cover;
  object-position: 57% 45%;
  mask-image: linear-gradient(90deg, transparent 0%, #000 33%);
  opacity: 0;
  transform: translate3d(calc(30px + var(--mx, 0px)), calc(var(--scroll-drift, 0px) + var(--my, 0px)), 0) scale(1.14);
  transition: opacity .68s cubic-bezier(.22,.7,.2,1), transform .92s cubic-bezier(.22,.7,.2,1);
}
.hero-photo.current { opacity: 1; transform: translate3d(var(--mx, 0px), calc(var(--scroll-drift, 0px) + var(--my, 0px)), 0) scale(1.045); }
.hero-photo:nth-child(2) { object-position: 60% 47%; }
.hero-photo:nth-child(3) { object-position: 58% 36%; }
.hero-photo:nth-child(4) { object-position: 56% 42%; }
.hero-copy { position: relative; width: min(56vw, 800px); }
.eyebrow { display: flex; align-items: center; gap: .7rem; margin: 0 0 1rem; font-size: .69rem; font-weight: 650; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow i { width: .46rem; height: .46rem; background: #ce84ab; transform: rotate(45deg); flex: 0 0 auto; }
.hero-copy .eyebrow { color: var(--highlight); letter-spacing: .26em; margin-bottom: clamp(1rem, 3vh, 2rem); }
.hero-copy .eyebrow i { background: currentColor; box-shadow: 0 0 16px currentColor; }
h2, h3, .scene-heading { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -.062em; line-height: .99; }
h2 { font-size: clamp(2.6rem, 5.5vw, 6rem); }
h3 { font-size: clamp(1.6rem, 2.5vw, 2.5rem); }
.scene-heading { font-size: clamp(4.4rem, 9.35vw, 12.2rem); line-height: .84; text-shadow: 0 4px 45px #140b1070; }
.scene-heading span, .scene-heading em { display: block; }
.scene-heading em { color: var(--highlight); padding-bottom: .09em; }
.hero-intro { max-width: 33ch; min-height: 3em; margin: clamp(1rem, 3vh, 1.7rem) 0 .95rem; color: #f5e8e2; }
.hero-actions, .studio-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem 1.15rem; }
.hero-actions .button { background: var(--control); color: #20141b; }
.hero-actions .text-link { text-underline-offset: .45em; }
.hero-caption { position: absolute; bottom: 1.75rem; inset-inline: 6.2vw; display: flex; justify-content: space-between; align-items: end; gap: 1rem; border-top: 1px solid #ffffff36; padding-top: .85rem; }
.scene-controls { display: flex; align-items: center; gap: .55rem; padding-block: .25rem; }
.scene-index { display: flex; align-items: center; gap: .55rem; font-size: .74rem; letter-spacing: .12em; color: #e3d4cd; font-variant-numeric: tabular-nums; margin-right: .6rem; }
.scene-index strong { color: var(--highlight); }
.scene-index span { width: clamp(18px, 3.3vw, 48px); height: 1px; background: #ffffff56; }
.scene-arrow { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #ffffff60; border-radius: 50%; background: #14101650; }
.scene-arrow:not(:disabled):hover { color: var(--stage); background: var(--control); }
.scene-arrow:disabled { opacity: .4; cursor: default; }
.scene-buttons { display: flex; gap: .42rem; }
.scene-buttons button { position: relative; width: clamp(53px, 7vw, 102px); height: clamp(45px, 6vw, 70px); padding: 0; overflow: hidden; border: 1px solid #ffffff38; background: #1b1418; color: #fff; transition: border-color .35s ease; }
.scene-buttons img { width: 100%; height: 100%; object-fit: cover; opacity: .48; transition: opacity .35s ease; }
.scene-buttons button span { position: absolute; inset: auto .3rem .22rem auto; padding: 0 .22rem; background: #110c13a3; font-size: .62rem; }
.scene-buttons button:is(:hover, [aria-pressed="true"]) { border-color: var(--highlight); }
.scene-buttons button:is(:hover, [aria-pressed="true"]) img { opacity: 1; }
h2 em { color: #773b62; }

.section { width: min(90%, 1440px); margin-inline: auto; scroll-margin-top: var(--header-height); }
.gallery { padding-block: clamp(3.8rem, 8vw, 8rem); }
.section-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 1.25rem; margin-bottom: 1.7rem; }
.filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.filters button, .quiz-option { border: 1px solid var(--line); border-radius: 100px; background: transparent; padding: .6rem 1rem; min-height: 44px; font-size: .88rem; }
.filters button[aria-pressed="true"], .filters button:hover, .quiz-option:hover { background: var(--ink); color: white; border-color: var(--ink); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.25rem 1.25rem; }
.card { display: block; width: 100%; padding: 0; background: none; border: 0; text-align: left; }
.card-visual { display: block; overflow: hidden; border-radius: .2rem; aspect-ratio: 4 / 4.8; background: #e8dfe1; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover img { transform: scale(1.04); }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: .35rem; margin: .55rem .15rem 0; font: clamp(1.15rem, 2vw, 1.65rem)/1.14 var(--serif); }
.card-title span:last-child { font: .95rem var(--sans); }
.style-section { display: grid; grid-template-columns: 42fr 58fr; background: #211823; color: #fff5ef; border-radius: .25rem; overflow: hidden; }
.style-section h2 em { color: #edb5d4; }
.style-section .quiz-step { color: #ead6e1; }
.style-section .quiz-option:hover { color: #211823; background: #f2d9e7; border-color: #f2d9e7; }
.style-art img { width: 100%; height: 100%; object-fit: cover; max-height: 660px; }
.style-content { align-self: center; padding: clamp(1.45rem, 5.5vw, 6rem); min-width: 0; }
.style-content h2 { margin-bottom: 1.5rem; }
.quiz-step { margin: 0 0 .5rem; color: var(--muted); font-size: .8rem; }
.quiz-question { margin: 0 0 .7rem; font-weight: 650; }
.quiz-options, .quiz-links { display: flex; flex-wrap: wrap; gap: .5rem .7rem; }
.quiz-back { border: 0; background: none; padding: .55rem 0; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; font-size: .85rem; }
.quiz-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; margin: .8rem 0; }
.quiz-results .card-title { font-size: clamp(.9rem, 1.65vw, 1.3rem); }
.quiz-results .card-visual { aspect-ratio: 1; }
.studio { display: grid; grid-template-columns: 41fr 59fr; align-items: center; gap: 1rem; padding-block: clamp(4rem, 9vw, 9rem); }
.studio-copy > p:not(.eyebrow) { max-width: 35ch; color: var(--muted); margin: 1.15rem 0; }
.studio-phone { margin-top: .4rem; }
.studio-images { display: grid; grid-template-columns: 1.4fr 1fr; gap: .8rem; }
.studio-images img { width: 100%; height: clamp(220px, 30vw, 460px); object-fit: cover; border-radius: 1rem; }
.studio-images img:nth-child(2) { object-position: 32% center; margin-top: 2rem; }
footer p, footer > a:last-child { font-size: .82rem; }
footer p { color: #ead6e1; }
dialog { padding: 0; width: min(900px, 92vw); max-height: 91svh; border: 0; border-radius: 1rem; color: var(--ink); background: var(--paper); overflow: auto; }
dialog[open] { display: grid; grid-template-columns: 55fr 45fr; align-items: center; }
dialog::backdrop { background: #1c121be0; }
.detail-image { width: 100%; max-height: 86svh; object-fit: contain; background: #e9dfe3; }
.detail-copy { padding: clamp(1rem, 3.5vw, 3rem); }
.detail-copy h2 { font-size: clamp(2.2rem, 4vw, 4.2rem); }
.detail-description { color: var(--muted); margin: 1rem 0 1.4rem; }
.close-detail { position: absolute; z-index: 1; top: .7rem; right: .7rem; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fdf4f8; font-size: 1.65rem; }

@media (min-width: 961px) {
  .gallery-grid > .card:nth-child(-n+2) { grid-column: span 2; }
  .gallery-grid > .card:nth-child(-n+2) .card-visual { aspect-ratio: 1.52; }
}
@media (max-width: 960px) {
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  :root { --header-height: 68px; }
  .topbar { padding-inline: 4vw; }
  nav { display: none; }
  .showcase { --step: min(35svh, 260px); }
  .showcase-inner { min-height: max(524px, calc(100svh - var(--header-height))); padding: 1rem 5vw 5.8rem; align-items: end; }
  .hero-copy { width: 100%; pointer-events: none; }
  .hero-actions { gap: .25rem .85rem; pointer-events: auto; width: fit-content; }
  .hero-copy .eyebrow { margin-bottom: .6rem; font-size: .61rem; }
  .scene-heading { font-size: clamp(3.9rem, 15vw, 7.3rem); }
  .hero-intro { min-height: 0; margin: .65rem 0 .4rem; font-size: .83rem; }
  .hero-photo { inset: -1% -2% auto auto; width: 104%; height: 80%; object-position: 58% 43%; mask-image: none; }
  .hero-photo:nth-child(2) { object-position: 56% 43%; }
  .hero-images::after { background: linear-gradient(0deg, var(--stage) 3%, color-mix(in srgb, var(--stage), transparent 9%) 21%, color-mix(in srgb, var(--stage), transparent 46%) 42%, transparent 72%), linear-gradient(90deg,#100c1040,transparent 65%); }
  .hero-caption { bottom: .75rem; inset-inline: 5vw; padding-top: .65rem; gap: .5rem; }
  .scene-controls { gap: .27rem; padding-block: 0; }
  .scene-index { display: none; }
  .scene-arrow { width: 36px; height: 44px; border-radius: 0; }
  .scene-buttons { gap: .28rem; }
  .scene-buttons button { width: clamp(39px, 13vw, 65px); height: 44px; }

  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem .7rem; }
  .style-section, .studio { grid-template-columns: 1fr; }
  .style-art img { max-height: 260px; object-position: center 45%; }
  .studio-images img { height: clamp(160px, 42vw, 300px); }
  footer { align-items: start; flex-wrap: wrap; }
  footer p { order: 2; width: 100%; margin: 0; }
  dialog[open] { grid-template-columns: 1fr; }
  .detail-image { max-height: 57svh; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .hero-photo, .hero-photo.current { transform: none; }
}
