
:root, [data-theme="studio"] {
  --bg: #f3eee6;
  --ink: #202422;
  --muted: #5e675f;
  --accent: #a66247;
  --paper: #faf7f2;
  --line: rgba(32, 36, 34, .14);
}
[data-theme="minimal"] { --bg:#f4f1ec; --ink:#2a2a28; --muted:#6b6560; --accent:#b85c38; --paper:#fffaf6; --line:rgba(42,42,40,.14); }
[data-theme="wabi"] { --bg:#f6f1ea; --ink:#3a342c; --muted:#7a7066; --accent:#a68462; --paper:#fffaf4; --line:rgba(58,52,44,.14); }
[data-theme="wood"] { --bg:#f3eee6; --ink:#3a2e24; --muted:#6e5c4c; --accent:#8b5e3c; --paper:#faf6f0; --line:rgba(58,46,36,.14); }
[data-theme="cream"] { --bg:#f7f4ef; --ink:#2c2926; --muted:#7a736c; --accent:#2a2a28; --paper:#fffdfb; --line:rgba(44,41,38,.14); }
[data-theme="italian"] { --bg:#f3ece4; --ink:#2c241e; --muted:#6e6258; --accent:#8d6a4a; --paper:#f8f3ec; --line:rgba(44,36,30,.14); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Outfit, system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.55;
  transition: background .5s ease, color .5s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: .4rem .7rem; z-index: 80; }
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  padding: .7rem 1.1rem;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-end { display: flex; align-items: center; gap: .35rem; flex: none; }
.soc {
  width: 34px; height: 34px; display: grid; place-items: center;
  color: var(--ink); border: 1px solid var(--line); border-radius: 50%; text-decoration: none;
}
.soc svg { width: 16px; height: 16px; display: block; }
.soc:hover, .soc:focus-visible { border-color: var(--accent); color: var(--accent); }
.soc-link { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; }
.soc-link svg { width: 18px; height: 18px; display: block; }
.logo img { height: 32px; width: auto; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--ink); border-radius: 999px;
  letter-spacing: .14em; text-transform: uppercase; font-size: .68rem; padding: .4rem .7rem;
}
#menu { display: flex; align-items: center; gap: .85rem; flex-wrap: wrap; justify-content: flex-end; }
#menu a { text-decoration: none; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.wa {
  background: var(--accent); color: #fff !important; text-decoration: none;
  padding: .48rem .85rem; border-radius: 999px; letter-spacing: .08em;
}
.wa-float {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 45;
  background: var(--accent); color: #fff; text-decoration: none;
  padding: .7rem 1rem; border-radius: 999px; letter-spacing: .12em; text-transform: uppercase;
  font-size: .72rem; box-shadow: 0 10px 30px rgba(0,0,0,.16);
}
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0; transform: scale(1.04);
  transition: opacity 1.2s ease;
}
.hero-media img.is-portrait { object-position: center center; }
.hero-media img.on { opacity: 1; animation: ken 6.2s linear forwards; }
@keyframes ken { from { transform: scale(1); } to { transform: scale(1.04); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to right, rgba(54, 40, 30, .28), transparent 58%),
    linear-gradient(to top, rgba(54, 40, 30, .58) 0%, rgba(54, 40, 30, .16) 42%, rgba(54, 40, 30, .12) 100%);
}
.hero-dots { display: flex; gap: .45rem; margin-top: 1.35rem; }
.hero-dots button {
  width: 36px; height: 3px; padding: 0; border: 0; border-radius: 99px;
  background: rgba(246,241,234,.4); position: relative; overflow: hidden;
}
.hero-dots button.on::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 0; background: #f6f1ea;
  animation: herotick 5s linear forwards;
}
@keyframes herotick { to { width: 100%; } }
.hero:hover .hero-media img.on,
.hero.is-paused .hero-media img.on,
.hero:hover .hero-dots button.on::after,
.hero.is-paused .hero-dots button.on::after { animation-play-state: paused; }
.hero-copy { position: relative; z-index: 2; color: #f6f1ea; padding: 7rem 1.25rem 4.5rem; max-width: 40rem; }
.kicker { margin: 0 0 .45rem; letter-spacing: .18em; text-transform: uppercase; font-size: .68rem; color: var(--accent); }
.hero .kicker { color: #e7c4a4; }
h1, h2, h3 { font-family: Fraunces, Georgia, serif; font-weight: 460; letter-spacing: -.03em; line-height: 1.05; }
.hero h1 { font-size: clamp(3.2rem, 8vw, 6.4rem); margin: 0; font-weight: 500; }
.sub { margin: .7rem 0 0; font-size: clamp(1.15rem, 2vw, 1.45rem); font-family: Fraunces, Georgia, serif; }
.cn { margin: .35rem 0 0; opacity: .8; letter-spacing: .08em; }
.lead { margin: 1rem 0 0; max-width: 32rem; color: rgba(246,241,234,.88); }
.section { padding: 5.2rem 1.25rem; }
.section h2 { font-size: clamp(2.1rem, 4.5vw, 3.6rem); margin: 0 0 .7rem; max-width: 16ch; }
.prose { max-width: 38rem; }
.prose p { margin: 0 0 .8rem; font-size: 1.05rem; }
.trust {
  margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line); max-width: 36rem;
}
.ssm { font-family: Fraunces, Georgia, serif; font-size: 1.15rem; margin: 0 0 .35rem; }
.trust p { margin: .2rem 0; color: var(--muted); }
.services { display: grid; gap: .8rem; margin-top: 1.6rem; }
.service {
  display: grid; grid-template-columns: 3.2rem 1fr; gap: 1rem;
  padding: 1.15rem 0; border-top: 1px solid var(--line);
}
.service span { font-family: Fraunces, Georgia, serif; font-size: 1.35rem; color: var(--accent); }
.service h3 { margin: 0 0 .25rem; font-size: 1.2rem; }
.service p { margin: 0; color: var(--muted); max-width: 40rem; }
.style-stage { position: relative; min-height: 78svh; display: grid; align-items: end; overflow: hidden; }
.style-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.style-stage.natural { min-height: 0; overflow: visible; align-items: center; grid-template-columns: minmax(240px, 520px) minmax(0, 1fr); gap: 1.25rem; }
.style-stage.natural img { position: relative; inset: auto; width: 100%; height: auto; max-width: 520px; object-fit: contain; }
.style-stage .card {
  position: relative; z-index: 1; margin: 1rem;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  padding: 1.1rem; max-width: 46rem;
}
.style-stage.natural .card { margin: 0; }
.swatches, .chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .75rem; }
.swatch, .chip {
  display: flex; align-items: center; gap: .4rem;
  border: 1px solid var(--line); background: var(--paper); border-radius: 999px;
  padding: .22rem .65rem .22rem .22rem; font-size: .85rem;
}
.swatch.on, .chip.on { border-color: var(--accent); }
.swatch img, .chip img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.note { min-height: 1.3em; color: var(--muted); margin: .6rem 0 0; }
.gallery { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: .55rem; margin-top: 1rem; }
.gallery img { width: 100%; height: 240px; object-fit: cover; }
.gallery.natural { grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: start; }
.gallery.natural img { width: 100%; height: auto; max-width: 380px; object-fit: contain; }
.gallery figcaption { color: var(--muted); font-size: .82rem; margin-top: .3rem; }
.board { position: relative; min-height: 460px; margin-top: .5rem; }
.cut { position: absolute; margin: 0; width: min(30vw, 240px); opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.cut.in { opacity: 1; transform: none; }
.cut img { width: 100%; height: auto; filter: drop-shadow(0 14px 22px rgba(0,0,0,.12)); }
.cut figcaption { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cut.sofa { left: 2%; bottom: 6%; width: min(42vw, 380px); }
.cut.chair { right: 4%; bottom: 10%; transition-delay: .08s; }
.cut.table { left: 36%; bottom: 2%; width: min(24vw, 220px); transition-delay: .14s; }
.cut.pendant { left: 16%; top: 0; width: min(14vw, 120px); }
.cut.rattan { right: 16%; top: 2%; width: min(16vw, 150px); transition-delay: .1s; }
.works-head { padding: 0 0 .4rem; }
.works-track { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .4rem 0 1rem; }
.works-track article { flex: 0 0 min(78vw, 520px); scroll-snap-align: center; }
.works-track button { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; }
.works-track img { width: 100%; height: 320px; object-fit: cover; }
.works-track article.is-square img { height: auto; aspect-ratio: 1; object-fit: contain; background: var(--paper); max-width: 520px; }
.works-track h3 { margin: .7rem 0 .15rem; font-size: 1.6rem; }
.works-track p { margin: 0; letter-spacing: .14em; text-transform: uppercase; font-size: .68rem; color: var(--muted); }
.journey {
  list-style: none; margin: 1.5rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem;
}
.js .journey { opacity: 0; transform: translateY(12px); transition: opacity .7s ease, transform .7s ease; }
.js .journey.in { opacity: 1; transform: none; }
.journey li {
  background: var(--paper); border: 1px solid var(--line);
  display: flex; flex-direction: column; min-width: 0; padding-bottom: 1rem;
}
.journey img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center; height: auto; }
.journey img.pos-high { object-position: center 32%; }
.journey .num {
  font-family: Fraunces, Georgia, serif; font-weight: 460;
  font-size: clamp(2rem, 3vw, 2.6rem); line-height: 1; letter-spacing: -.03em;
  padding: .8rem 1rem 0;
}
.journey svg { width: 22px; height: 22px; margin: .2rem 1rem 0; color: var(--muted); }
.journey h3 { margin: .15rem 0 0; padding: 0 1rem; font-size: 1.2rem; }
.journey p { margin: .2rem 0 0; padding: 0 1rem; color: var(--muted); }
.journey li.accent {
  background: color-mix(in srgb, var(--accent) 12%, var(--paper));
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
}
.journey li.accent .num, .journey li.accent svg { color: var(--accent); }
@media (hover: hover) and (pointer: fine) {
  .journey li { transition: transform .35s ease; }
  .journey li:hover { transform: translateY(-4px); }
}
.light-hero { background: #14110f; color: #f6f1ea; padding: 4.4rem 0 2.4rem; }
.light-hero .kicker { color: #e7c4a4; }
.light-copy, .light-cap, .light-controls { padding-left: 1.25rem; padding-right: 1.25rem; }
.light-hero h2 { color: #f6f1ea; max-width: 16ch; margin-bottom: 1.1rem; }
.light-pair { --mix: 0; }
.light-stage[hidden] { display: none !important; }
.light-frame { position: relative; margin: 0 auto; overflow: hidden; background: #1a1612; }
.light-stage[data-room="dining"] .light-frame { width: min(100%, calc((100svh - 17rem) * 1280 / 720)); aspect-ratio: 1280 / 720; }
.light-stage[data-room="bedroom"] .light-frame { width: min(92vw, 560px, calc((100svh - 17rem) * 864 / 1152)); aspect-ratio: 864 / 1152; }
.light-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.light-frame .night { opacity: var(--mix); transition: opacity .9s ease; }
.glow {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(circle at var(--gx) var(--gy), rgba(255, 214, 156, .78) 0%, rgba(255, 168, 80, .24) 16%, transparent 36%);
  opacity: calc(var(--mix) * .92); transform-origin: var(--gx) var(--gy);
  transition: opacity .9s ease, transform .9s ease;
}
.light-pair.scrubbing .night, .light-pair.scrubbing .glow { transition: none; }
.light-pair.pulse .glow { animation: lamp .9s ease; }
@keyframes lamp {
  0% { opacity: 0; transform: scale(.82); }
  48% { opacity: 1; transform: scale(1.06); }
  100% { opacity: .9; transform: scale(1); }
}
.light-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-top: 1rem; }
.switch {
  display: inline-flex; align-items: center; gap: .75rem; min-height: 58px;
  padding: .4rem 1.05rem .4rem .4rem; border: 0; border-radius: 999px;
  background: #f4efe8; color: #1c1714; font-size: 1.05rem;
}
.rocker {
  width: 48px; height: 48px; border-radius: 14px; position: relative;
  background: linear-gradient(#fff, #ddd4c8); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
}
.rocker::after {
  content: ""; position: absolute; left: 7px; right: 7px; top: 7px; height: 15px; border-radius: 6px;
  background: #2c2824; transform: translateY(16px); transition: transform .35s ease, background .35s ease, box-shadow .35s ease;
}
.switch[aria-pressed="true"] .rocker::after { transform: translateY(0); background: #e8b15a; box-shadow: 0 0 14px rgba(255, 196, 110, .95); }
.dimmer { display: flex; align-items: center; gap: .55rem; color: rgba(246,241,234,.78); font-size: .85rem; }
.dimmer input { width: 150px; accent-color: #e8b15a; }
.rooms { display: flex; gap: .4rem; }
.rooms button {
  min-height: 44px; padding: .45rem 1rem; border-radius: 999px;
  border: 1px solid rgba(246,241,234,.35); background: transparent; color: #f6f1ea;
}
.rooms button.on { background: #f6f1ea; color: #1c1714; border-color: #f6f1ea; }
.light-cap { margin: .85rem 0 0; color: rgba(246,241,234,.7); font-size: .9rem; }
.address { font-family: Fraunces, Georgia, serif; font-size: 1.2rem; line-height: 1.35; max-width: 34rem; margin: .4rem 0; }
.appoint { color: var(--muted); margin: .15rem 0 .4rem; }
.maps { font-size: .92rem; letter-spacing: .03em; }
.contact-row { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; margin-top: 1.1rem; align-items: center; }
.contact-row a { text-decoration: none; }
footer .address { font-size: 1.05rem; }
.brief { background: var(--paper); padding: 1.15rem; max-width: 46rem; }
.brief-step { display: none; }
.brief-step.on { display: block; }
.brief h3 { margin: 0 0 .35rem; font-size: 1.55rem; }
.brief h3 em { font-style: normal; font-family: Outfit, system-ui, sans-serif; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-left: .45rem; }
.hint { margin: 0 0 .7rem; color: var(--muted); }
.brief-styles { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.brief-choices { display: grid; grid-template-columns: 1fr; gap: .5rem; }
.brief-styles button, .brief-choices button {
  border: 1px solid var(--line); background: transparent; color: inherit; text-align: left;
}
.brief-styles button {
  display: flex; flex-direction: column; padding: 0; border-radius: 14px; overflow: hidden; min-height: 44px;
}
.brief-styles img { width: 100%; height: 96px; object-fit: cover; border-radius: 0; }
.brief-styles span { padding: .7rem .75rem .85rem; font-size: 1rem; }
.brief-choices button { min-height: 52px; border-radius: 14px; padding: .85rem 1rem; font-size: 1.02rem; }
.brief-styles button.on, .brief-choices button.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.brief-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1rem; align-items: center; }
.brief-actions button, .brief-actions .wa { min-height: 52px; border-radius: 999px; padding: .75rem 1.15rem; font-size: 1rem; }
.brief-actions button { border: 1px solid var(--line); background: transparent; }
.brief-actions button:disabled { opacity: .38; }
.quiz, .faq details { background: var(--paper); }
.quiz { padding: 1.15rem; max-width: 40rem; }
.quiz h3 { margin: 0 0 .75rem; font-size: 1.4rem; }
.quiz button.choice {
  display: block; width: 100%; text-align: left; margin: 0 0 .45rem; padding: .75rem .85rem;
  background: transparent; border: 1px solid var(--line);
}
.quiz button.choice:hover, .quiz button.choice:focus-visible { border-color: var(--accent); }
.faq { max-width: 40rem; }
.faq details { border-top: 1px solid var(--line); padding: .2rem 0; background: transparent; }
.faq summary { cursor: pointer; padding: .9rem 0; font-weight: 400; }
.faq details p { margin: 0 0 1rem; color: var(--muted); }
footer.foot {
  padding: 3rem 1.25rem 5.5rem; border-top: 1px solid var(--line);
  display: grid; gap: .4rem;
}
footer.foot img { height: 36px; width: auto; margin-bottom: .6rem; }
footer.foot a { text-decoration: none; }
footer.foot .row { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; margin-top: .6rem; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (min-width: 900px) {
  .section { padding: 6.5rem 8vw; }
  .hero-copy { padding: 8rem 8vw 5rem; }
  .services { grid-template-columns: 1fr 1fr; }
  .service { grid-template-columns: 3.2rem 1fr; }
  .works-track { padding-left: 8vw; padding-right: 8vw; }
  footer.foot { padding-left: 8vw; padding-right: 8vw; }
  .light-copy, .light-cap, .light-controls { padding-left: 8vw; padding-right: 8vw; }
  .light-pair { position: relative; }
  .light-controls {
    position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; margin: 0;
    padding-top: 3.2rem; padding-bottom: 1.15rem;
    background: linear-gradient(to top, rgba(12, 9, 7, .72), rgba(12, 9, 7, .2) 62%, transparent);
  }
  .brief-choices { grid-template-columns: 1fr 1fr; }
  .brief-styles { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-end .wa { padding: .42rem .62rem; font-size: .68rem; }
  .soc { width: 32px; height: 32px; }
  #menu {
    display: none; position: fixed; inset: 0; background: var(--bg);
    flex-direction: column; justify-content: center; align-items: flex-start;
    padding: 2rem; gap: 1rem;
  }
  #menu.open { display: flex; }
  #menu a { font-size: 1.2rem; }
  .gallery { grid-template-columns: 1fr; }
  .gallery img { height: 220px; }
  .gallery.natural { grid-template-columns: 1fr; }
  .gallery.natural img { height: auto; }
  .style-stage.natural { grid-template-columns: 1fr; }
  .board { min-height: 560px; }
  .light-controls { align-items: stretch; }
  .switch { width: 100%; }
  .dimmer { width: 100%; }
  .dimmer input { flex: 1; width: auto; min-height: 32px; }
  .rooms { width: 100%; }
  .rooms button { flex: 1; }
  .light-stage[data-room="dining"] .light-frame { width: 100%; }
  .light-stage[data-room="bedroom"] .light-frame { width: min(100%, 520px); }
  .cut { width: 42vw; }
  .cut.sofa { width: 72vw; left: 0; bottom: 16%; }
  .cut.chair { width: 40vw; right: 0; bottom: 4%; }
  .cut.table { left: 6%; bottom: 0; width: 38vw; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .cut, .js .journey { opacity: 1; transform: none; transition: none; }
  .light-frame .night, .glow, .rocker::after, .hero-media img { transition: none; animation: none; transform: none; }
  .hero-dots button.on::after { animation: none; width: 100%; }
}
@media (max-width: 980px) {
  .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .journey {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    gap: .75rem; padding-bottom: .4rem; margin-right: -1.25rem;
    -webkit-overflow-scrolling: touch;
  }
  .journey li { flex: 0 0 82%; scroll-snap-align: start; }
}
