:root{--wine:#420b11;--pink:#ef9cbe;--cream:#f7eee5;--rust:#601800;--blue:#2214ef;--gold:#aa7800;--olive:#646b09;--lilac:#d8b6e6}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--cream);color:var(--wine);font:1rem/1.55 Arial,Helvetica,sans-serif}
a{color:inherit;text-underline-offset:.22em}
a:focus-visible,summary:focus-visible{outline:3px solid currentColor;outline-offset:5px}
.wordmark{display:block;width:119px;height:38px;background:#420b11;mask:url(logo.png) center / contain no-repeat;flex:none}
.pill{display:inline-block;border:1px solid currentColor;border-radius:99px;padding:.65rem 1.15rem;text-decoration:none;font-weight:700;font-size:.94rem;line-height:1.3;transition:background .2s,color .2s}
.dark{background:var(--wine);color:var(--cream);border-color:var(--wine)}
.dark:hover{background:transparent;color:var(--wine)}
.light{background:var(--pink);color:var(--wine);border-color:var(--pink)}
.light:hover{background:transparent;color:var(--pink)}
.label,.project-type{font-size:.875rem;letter-spacing:.1em;text-transform:uppercase;font-weight:700}
h1,h2{font-family:Georgia,'Times New Roman',serif;font-weight:400;letter-spacing:-.066em;line-height:.97;margin:0}
h2{font-size:clamp(3rem,5.7vw,6rem)}
.rooms {
  --room-bg: #2515df;
  --room-ink: #fff2ea;
  --room-accent: #ef9cbe;
  --room-accent-ink: #420b11;
  --room-pattern: url(stripes.webp);
  color: var(--room-ink);
  background: var(--room-bg);
  min-height: 100svh;
  padding: clamp(1.5rem,3vw,3rem) clamp(1rem,6vw,6rem) clamp(2rem,4vw,4rem);
  transition: background-color .35s, color .35s;
}
.rooms[data-room="workroom"] {
  --room-bg: #b4e0d7;
  --room-ink: #601800;
  --room-accent: #601800;
  --room-accent-ink: #fff2ea;
  --room-pattern: url(circles.webp);
}
.rooms[data-room="shop"] {
  --room-bg: #ef9cbe;
  --room-ink: #420b11;
  --room-accent: #420b11;
  --room-accent-ink: #fff2ea;
  --room-pattern: url(checks.webp);
}
.rooms-intro { text-align: center; }
.rooms-intro .label { margin: 0 0 .85rem; }
.rooms-intro h1 { font-size: clamp(2.75rem,8vw,7.25rem); }
.rooms-intro h1 em { color: var(--room-accent); font-weight: 400; }
.rooms-intro > p:last-child { margin: 1rem auto 1.65rem; font-size: clamp(1rem,1.5vw,1.25rem); }
.room-controls {
  display: grid;
  grid-template-columns: repeat(6,minmax(0,1fr));
  max-width: 73rem;
  margin: 0 auto;
  gap: .45rem;
}
.room-controls button {
  border: 1px solid currentColor;
  color: inherit;
  background: transparent;
  min-height: 3rem;
  border-radius: .75rem .75rem 0 0;
  padding: .6rem .4rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.room-controls button:hover { text-decoration: underline; text-underline-offset: .22em; }
.room-controls button:focus-visible { outline: 3px solid currentColor; outline-offset: -5px; }
.room-controls button[aria-selected="true"] {
  color: var(--room-accent-ink);
  background: var(--room-accent);
  border-color: var(--room-accent);
}
.room-scene { margin: 0 auto; max-width: 73rem; }
.room-frame {
  position: relative;
  background: var(--room-pattern) center / 240px auto;
  padding: clamp(.65rem,2.7vw,2.5rem);
}
.room-frame img {
  display: block;
  width: 100%;
  height: clamp(240px,47svh,650px);
  object-fit: cover;
  background: var(--wine);
}
.room-stamp {
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(52px,9vw,110px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--gold) url(mark.png) center / 59% auto no-repeat;
  transform: translate(-20%,-20%) rotate(12deg);
}
.room-caption {
  background: var(--room-accent);
  color: var(--room-accent-ink);
  padding: 1rem clamp(1rem,2.7vw,2.5rem);
  display: grid;
  grid-template-columns: minmax(10rem,.6fr) minmax(10rem,.85fr) minmax(15rem,1.25fr);
  align-items: center;
  gap: .7rem 1.2rem;
}
.room-caption strong { font: 400 clamp(1.7rem,3vw,3rem)/1 Georgia,serif; letter-spacing: -.05em; }
@keyframes room-reveal {
  from { opacity: .5; }
  to { opacity: 1; }
}
.tab-panel:not([hidden]) .room-frame img { animation: room-reveal .36s ease-out; }
.section{padding:clamp(3.5rem,7vw,7rem) clamp(1.2rem,5vw,5rem)}
.section-head{display:flex;align-items:end;justify-content:space-between;gap:2rem;margin-bottom:2rem}
.section-head p{max-width:25rem;margin:0}
.projects{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(1rem,2.35vw,2.5rem)}
details{border-bottom:1px solid var(--wine)}
details p{margin:0 0 1.2rem}
summary{cursor:pointer;list-style:none;position:relative;padding-bottom:1rem}
summary::-webkit-details-marker{display:none}
summary::after{content:"+";position:absolute;right:0;bottom:1rem;font-size:1.55rem;line-height:1}
details[open] summary::after{content:"−"}
.project-art,.studio-image{display:block;background-size:cover;background-position:center;aspect-ratio:1}
.project-art{aspect-ratio:1;transition:filter .2s}
summary:hover .project-art{filter:saturate(1.25)}
.circles{background-image:url(circles.webp)}
.checks{background-image:url(checks.webp)}
.stripes{background-image:url(stripes.webp)}
.project-type{display:block;margin-top:1rem}
.project-name{display:block;padding-right:1.6rem;font-family:Georgia,serif;font-size:clamp(1.25rem,2.1vw,2.15rem);line-height:1.08;margin-top:.35rem}
.studio{display:grid;grid-template-columns: minmax(0,.85fr) minmax(0,1fr);gap:clamp(2rem,8vw,9rem);align-items:center;background:var(--lilac)}
.studio-image{background-image:url(table.webp);border-radius:49% 49% 0 0}
.studio-copy p:not(.label){max-width:35rem}
.contact{background:var(--wine);color:var(--pink);text-align:center}
.contact p{color:var(--cream);margin:1.5rem auto}
@media(max-width:850px){.room-caption{grid-template-columns:1fr 1fr}.room-caption > span:last-child{grid-column:1/-1}}
@media(max-width:650px){
.room-frame img{height:auto;aspect-ratio:4 / 3}.room-caption{grid-template-columns:1fr;gap:.4rem}.rooms-intro > p:last-child {max-width:18rem}
.section-head{display:block}.section-head p{margin-top:1rem}.projects{grid-template-columns:1fr}.project-art{max-width:100%}.studio{grid-template-columns:1fr}.studio-image{width:min(100%,22rem)}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important;animation:none!important}}

.studio-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .4rem 1rem;
  margin-bottom: 1rem;
}
.rooms-intro .studio-brand .label { margin: 0; }
.studio-brand .wordmark { background-color: currentColor; width: 95px; height: 30px; }
.tab-panel { max-width: 73rem; margin: 0 auto; }
.tab-panel[hidden] { display: none; }
.tab-panel:focus-visible { outline: 3px solid currentColor; outline-offset: -5px; }
.tab-panel.section { padding: clamp(1.4rem,4vw,4rem); }
.work { color: var(--wine); background: var(--cream); }
.studio { color: var(--wine); }
.contact { min-height: min(27rem,55svh); display: grid; place-content: center; justify-items: center; }
.rooms[data-room="portfolio"] {
  --room-bg: #646b09;
  --room-ink: #fff2ea;
  --room-accent: #f7eee5;
  --room-accent-ink: #420b11;
}
.rooms[data-room="about"] {
  --room-bg: #420b11;
  --room-ink: #fff2ea;
  --room-accent: #d8b6e6;
  --room-accent-ink: #420b11;
}
.rooms[data-room="contact"] {
  --room-bg: #ef9cbe;
  --room-ink: #420b11;
  --room-accent: #420b11;
  --room-accent-ink: #fff2ea;
}
@media(max-width:650px) {
  .room-controls { grid-template-columns: repeat(3,minmax(0,1fr)); margin-bottom: .45rem; }
  .room-controls button { border-radius: .5rem; font-size: .9rem; }
  .studio-image { max-height: 16rem; }
}

.room-controls.studio-controls { grid-template-columns: repeat(3,minmax(0,1fr)); }
.rooms:has(.studio-controls)[data-room="portfolio"] {
  --room-bg: #2515df;
  --room-ink: #fff2ea;
  --room-accent: #ef9cbe;
  --room-accent-ink: #420b11;
}
.studio-scene { position: relative; background: var(--wine); }
.studio-scene img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: contain; }
.project-spot,.studio-project-links button,.studio-project .close {
  border: 1px solid var(--wine);
  color: var(--wine);
  background: var(--cream);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}
.project-spot {
  position: absolute;
  transform: translate(-50%,-50%);
  display: flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  padding: .4rem .8rem .4rem .55rem;
  border-radius: 2rem;
  box-shadow: 0 2px 10px #26030845;
  white-space: nowrap;
}
.project-spot span:first-child {
  display: grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  background: var(--pink);
  border-radius: 50%;
}
.project-spot:hover,.studio-project-links button:hover { background: var(--pink); }
.project-spot:focus-visible,.studio-project-links button:focus-visible,.studio-project .close:focus-visible {
  outline: 3px solid #2515df;
  outline-offset: 3px;
}
.project-tech { left: 18%; top: 40%; }
.project-tima { left: 70%; top: 51%; }
.project-openspace { left: 48%; top: 63%; }
.studio-project-links {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 1px;
  background: var(--wine);
}
.studio-project-links button { min-height: 48px; padding: .55rem; }
.studio-project {
  width: min(100% - 2rem,39rem);
  max-height: calc(100dvh - 2rem);
  padding: clamp(1.25rem,4vw,2.75rem);
  border: 1px solid var(--wine);
  border-radius: 1rem;
  background: var(--cream);
  color: var(--wine);
}
.studio-project::backdrop { background: #210408ba; }
body:has(.studio-project[open]) { overflow: hidden; }
.studio-project h2 { font-size: clamp(2.55rem,6vw,4.75rem); }
.studio-project .type { font-size: .875rem; letter-spacing: .09em; text-transform: uppercase; font-weight: 700; padding-right: 2.5rem; }
.studio-project .close { position: absolute; right: .75rem; top: .75rem; width: 44px; height: 44px; border-radius: 50%; background: var(--pink); font-size: 1.55rem; }

@media (max-width: 650px) {
  .project-spot { width: 44px; padding: 0; justify-content: center; }
  .project-spot span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .studio-project-links button { font-size: .85rem; }
}

.studio-project-gallery { width: min(100% - 2rem, 66rem); }
.studio-project-gallery > form { position: sticky; top: 0; z-index: 1; height: 0; }
.studio-project-gallery .close { top: 0; right: 0; }
.studio-project-gallery > p:not(.type) { max-width: 42rem; }
.studio-project-gallery h3 { margin: 1.75rem 0 .8rem; font-size: 1rem; }
.project-gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.15rem; }
.project-gallery figure { margin: 0; }
.project-gallery figure:first-child { grid-column: 1 / -1; }
.project-gallery img { display: block; width: 100%; height: auto; border-radius: .4rem; }
.project-gallery figcaption { margin-top: .35rem; font-size: .9rem; }
@media(max-width:600px) {
  .project-gallery { grid-template-columns: 1fr; }
}

.inquiry-form { display: grid; gap: .85rem; width: min(100%, 31rem); margin: 0 auto 1rem; text-align: left; }
.inquiry-form label { display: grid; gap: .35rem; font-weight: 700; }
.inquiry-form input, .inquiry-form textarea {
  width: 100%; padding: .7rem; border: 1px solid var(--pink); border-radius: .35rem;
  background: var(--cream); color: var(--wine); font: inherit; font-weight: 400;
}
.inquiry-form textarea { resize: vertical; }
.inquiry-form button { justify-self: start; cursor: pointer; }
.inquiry-form button:disabled { opacity: .65; cursor: wait; }
.inquiry-form #inquiry-status { margin: 0; }
.inquiry-form #inquiry-status:empty { display: none; }
.inquiry-entry { max-width: 45rem; margin: 1rem 0; border: 1px solid var(--wine); padding: 1rem; overflow-wrap: anywhere; }
.inquiry-entry h2 { font-size: 1.8rem; margin-bottom: .5rem; }
.inquiry-entry time { display: block; }
.inquiry-entry p { white-space: pre-wrap; }

.contact-social {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}
.contact-social:hover { background: var(--pink); color: var(--wine); }
.contact-socials { display: flex; justify-content: center; gap: .4rem; }

.studio-workroom-detail {
  width: 100%;
  object-fit: cover;
  object-position: center;
  background-image: none;
}
@media (max-width:650px) {
  .studio-workroom-detail { width: min(100%,22rem); }
}

.studio-brand-home .wordmark { width: 174px; height: 55.5px; }

.rooms-intro .wildest-headline { font-size: clamp(2.5rem,7.65vw,7rem); }
.wildest-headline span { display: inline-block; }
