/* ===========================================================
   para mio — tokens
   =========================================================== */
:root {
  /* color: gallery wall, ink, and two pigments pulled from the actual
     media (a muted oxide/alizarin red from watercolor, a wash green) */
  --wall: #F6F5F1;
  --wall-dim: #EFEDE7;
  --paper: #FFFFFF;
  --ink: #1B1A18;
  --ink-soft: #4A4741;
  --pigment: #7A362E;       /* oxide red — a real watercolor pigment tone */
  --pigment-soft: #A65C4F;
  --wash: #45564A;          /* muted sage wash green */
  --line: #D8D4C9;          /* hairline rule */
  --line-strong: #B6B0A1;

  --display: "Fraunces", "Georgia", serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --nav-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

::selection { background: var(--pigment); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--pigment);
  outline-offset: 3px;
}

/* ===========================================================
   Type scale
   =========================================================== */
.eyebrow {
  font-family: var(--body);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: var(--ink-soft);
}

h1, h2, h3 { font-family: var(--display); font-weight: 500; margin: 0; }

h1 { font-size: clamp(2.6rem, 7vw, 5.5rem); line-height: 0.98; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.02; }
h3 { font-size: 1.3rem; }

.italic { font-style: italic; }

/* ===========================================================
   Top nav — signature element
   Sticky horizontal bar. Mark stays upside-down (flipped 180deg),
   sitting opposite the links.
   =========================================================== */
.top-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--wall);
  border-bottom: 1px solid var(--line);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
}

.top-nav__mark {
  display: inline-block;
  transform: rotate(180deg);
  font-family: var(--display);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.top-nav__rooms {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  align-items: center;
  gap: 26px;
  overflow-x: auto;
}

.top-nav__rooms a {
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color 0.25s var(--ease);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}

.top-nav__rooms a:hover,
.top-nav__rooms a[aria-current="true"] {
  color: var(--ink);
}

.top-nav__rooms a[aria-current="true"] {
  border-bottom-color: var(--pigment);
}

@media (max-width: 640px) {
  .top-nav { padding: 0 16px; }
  .top-nav__rooms { gap: 16px; }
}

/* ===========================================================
   Page shell
   =========================================================== */
.shell {
  padding-top: var(--nav-h);
}

/* ===========================================================
   Hero / slideshow
   =========================================================== */
.hero {
  position: relative;
  height: calc(100svh - var(--nav-h));
  min-height: 460px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.3s var(--ease);
}

.hero__slide-img.is-active { opacity: 1; }

/* a portrait source is rotated 90deg to lay into the frame; the swapped
   width/height (set as --box-w/--box-h by JS, in px) is what makes the
   rotated image still fill the box completely instead of overflowing it */
.hero__slide-img.is-portrait {
  inset: auto;
  top: 50%; left: 50%;
  width: var(--box-h, 100%);
  height: var(--box-w, 100%);
  transform: translate(-50%, -50%) rotate(90deg);
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27,26,24,0.05) 0%, rgba(27,26,24,0.55) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 var(--gutter) 64px;
  color: var(--paper);
  width: 100%;
}

.hero__eyebrow {
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: lowercase;
  margin-bottom: 14px;
}

.hero__title {
  color: var(--paper);
  max-width: 16ch;
}

.hero__sub {
  margin-top: 18px;
  max-width: 46ch;
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
}

.hero__cue {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--paper);
  text-decoration: none;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: lowercase;
}

.hero__cue-line {
  width: 1px; height: 34px;
  background: rgba(255,255,255,0.6);
  animation: cue-draw 2.2s var(--ease) infinite;
}

@keyframes cue-draw {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.01% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ===========================================================
   Framed hero variant — used on the index page instead of a
   full-bleed banner. Text sits on the plain wall, the slideshow
   is a contained "tv screen" box below it.
   =========================================================== */
.hero--framed {
  height: auto;
  min-height: auto;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 34px;
  padding: 88px var(--gutter) 56px;
}

.hero--framed .hero__content {
  position: static;
  padding: 0;
  width: auto;
  max-width: 640px;
  color: var(--ink);
}

.hero--framed .hero__eyebrow { color: var(--ink-soft); }
.hero--framed .hero__title { color: var(--ink); max-width: 20ch; margin: 0 auto; }
.hero--framed .hero__sub { color: var(--ink-soft); margin: 18px auto 0; }

.hero--framed .hero__cue {
  position: static;
  transform: none;
  color: var(--ink-soft);
}
.hero--framed .hero__cue-line { background: var(--line-strong); }

/* ===========================================================
   TV slideshow — a contained, screen-like box (not a full-width
   banner). Sized to the largest image's aspect ratio via JS.
   Portrait sources get rotated 90deg to lay into the frame.
   =========================================================== */
.tv-slideshow {
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  width: 100%;
  max-width: min(620px, 82vw);
  border: 1px solid var(--line);
  background: var(--ink);
}

.tv-slideshow__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27,26,24,0) 55%, rgba(27,26,24,0.5) 100%);
  z-index: 1;
}

.tv-slideshow__caption {
  position: absolute;
  left: 20px; bottom: 16px;
  z-index: 2;
  color: rgba(255,255,255,0.85);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: lowercase;
}

/* ===========================================================
   Section header (wall placard)
   =========================================================== */
.placard {
  padding: 96px var(--gutter) 40px;
  max-width: 920px;
}

.placard .eyebrow { margin-bottom: 18px; }

.placard__rule {
  margin-top: 28px;
  height: 1px;
  background: var(--line);
  border: 0;
}

.placard p {
  margin-top: 22px;
  max-width: 58ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* ===========================================================
   Gallery — salon-style mixed-orientation grid via CSS columns
   =========================================================== */
.gallery {
  padding: 20px var(--gutter) 100px;
  columns: 4 260px;
  column-gap: 18px;
}

@media (max-width: 700px) {
  .gallery { columns: 2 140px; column-gap: 10px; }
}

.gallery__item {
  break-inside: avoid;
  margin-bottom: 18px;
  cursor: zoom-in;
  overflow: hidden;
  background: var(--wall-dim);
}

.gallery__item img {
  width: 100%;
  display: block;
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
}

.gallery__item:hover img {
  transform: scale(1.03);
}

.gallery__pair {
  break-inside: avoid;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gallery__pair .gallery__item { margin-bottom: 0; }
.gallery__pair-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--ink-soft);
  padding: 2px 2px 8px;
}

/* ===========================================================
   Gallery — collage variant (pinned-wall feel, straightens on scroll)
   =========================================================== */
.gallery--collage {
  columns: unset;
  column-gap: unset;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 90px;
  gap: 22px;
  padding-top: 30px;
}

@media (max-width: 700px) {
  .gallery--collage { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 70px; gap: 14px; }
}

.gallery--collage .gallery__item {
  margin-bottom: 0;
  background: var(--wall-dim);
  --tilt: 0deg;
  transform: rotate(var(--tilt)) scale(0.86);
  opacity: 0;
  transition: transform 0.9s var(--ease), opacity 0.9s var(--ease);
  will-change: transform, opacity;
}

.gallery--collage .gallery__item.is-revealed {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.gallery--collage .gallery__item:hover {
  transform: rotate(0deg) scale(1.015);
}

.gallery--collage .gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* orientation-based spans: portrait tall & narrow, landscape wide & short, square balanced */
.gallery--collage .gallery__item[data-orientation="portrait"] { grid-column: span 2; grid-row: span 4; }
.gallery--collage .gallery__item[data-orientation="landscape"] { grid-column: span 3; grid-row: span 3; }
.gallery--collage .gallery__item[data-orientation="square"] { grid-column: span 2; grid-row: span 3; }

.gallery--collage .gallery__pair.gallery__item {
  grid-column: span 2;
  grid-row: span 8;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: transparent;
}
.gallery--collage .gallery__pair.gallery__item .gallery__pair-imgs {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
}
.gallery--collage .gallery__pair.gallery__item img {
  flex: 1;
  min-height: 0;
  width: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

@media (max-width: 700px) {
  .gallery--collage .gallery__item[data-orientation="portrait"] { grid-column: span 1; grid-row: span 4; }
  .gallery--collage .gallery__item[data-orientation="landscape"] { grid-column: span 2; grid-row: span 3; }
  .gallery--collage .gallery__item[data-orientation="square"] { grid-column: span 1; grid-row: span 3; }
  .gallery--collage .gallery__pair.gallery__item { grid-column: span 1; grid-row: span 8; }
}

/* ===========================================================
   Lightbox — "standing in front of the piece"
   =========================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15,14,13,0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}

.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox__frame {
  max-width: 90vw;
  max-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox img {
  max-width: 90vw;
  max-height: 82vh;
  width: auto; height: auto;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.4s var(--ease) 0.05s, transform 0.4s var(--ease) 0.05s;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}

.lightbox.is-open img { opacity: 1; transform: scale(1); }

.lightbox__caption {
  position: absolute;
  left: var(--gutter);
  bottom: 28px;
  color: rgba(255,255,255,0.7);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: lowercase;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: none;
  border: 0;
  color: var(--paper);
  cursor: pointer;
  font-family: var(--body);
}

.lightbox__close {
  top: 24px; right: var(--gutter);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: lowercase;
}

.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  padding: 10px 16px;
  opacity: 0.7;
}
.lightbox__nav:hover { opacity: 1; }
.lightbox__prev { left: 12px; }
.lightbox__next { right: 12px; }

@media (max-width: 700px) {
  .lightbox__nav { font-size: 1.5rem; padding: 8px 10px; }
}

/* ===========================================================
   Studio / about strip
   =========================================================== */
.studio {
  padding: 90px var(--gutter);
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.studio__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  max-width: 1100px;
  align-items: center;
}

@media (max-width: 800px) {
  .studio__grid { grid-template-columns: 1fr; }
}

.studio__note {
  font-size: 0.95rem;
  color: var(--ink-soft);
  border-left: 2px solid var(--pigment);
  padding-left: 18px;
  margin-top: 24px;
}

.studio__frame {
  aspect-ratio: 4/3;
  background: var(--wall-dim);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--line-strong);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  text-align: center;
  padding: 20px;
}

/* ===========================================================
   Medium preview cards (home)
   =========================================================== */
.rooms {
  padding: 20px var(--gutter) 100px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2px;
  background: var(--line);
}

@media (max-width: 800px) {
  .rooms { grid-template-columns: 1fr; }
}

.room-card {
  position: relative;
  background: var(--ink);
  aspect-ratio: 3/4;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
}

.room-card--placeholder {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.room-card--placeholder .room-card__label {
  padding: 26px;
}

.room-card--placeholder .room-card__num {
  color: rgba(255,255,255,0.45);
}

.room-card--placeholder .room-card__title {
  color: rgba(255,255,255,0.85);
}

.room-card--placeholder .room-card__soon {
  display: block;
  margin-top: 10px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: rgba(255,255,255,0.4);
}

.gallery__empty {
  padding: 60px var(--gutter) 100px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.gallery-section-title {
  padding: 46px var(--gutter) 0;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--ink);
}

.tv-slideshow-row {
  display: flex;
  gap: 16px;
  padding: 0 var(--gutter);
  align-items: flex-start;
}

.tv-slideshow-row .tv-slideshow {
  flex: 1;
  max-width: none;
  margin: 0;
}

@media (max-width: 700px) {
  .tv-slideshow-row { flex-direction: column; }
}

.room-card img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
  opacity: 0.82;
}

.room-card:hover img { transform: scale(1.06); }

.room-card__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.75) 100%);
}

.room-card__label {
  position: relative;
  padding: 26px;
}

.room-card__num {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.7);
  display: block;
  margin-bottom: 8px;
}

.room-card__title {
  font-family: var(--display);
  font-size: 1.7rem;
  font-style: italic;
}

/* ===========================================================
   Commissions (waitlist-style)
   =========================================================== */
.commissions {
  padding: 90px var(--gutter) 120px;
  max-width: 640px;
}

.commissions__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--wash);
  margin-bottom: 22px;
}
.commissions__status::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--wash);
}

.form-row { margin-top: 26px; }

.form-row label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  padding: 10px 2px;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.25s var(--ease);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--pigment);
  outline: none;
}

.form-row textarea { resize: vertical; min-height: 90px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  padding: 14px 26px;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  font-family: var(--body);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  cursor: pointer;
  transition: background 0.25s var(--ease);
}
.btn:hover { background: var(--pigment); }

.form-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--ink-soft);
}

/* ===========================================================
   Audio player — custom UI, no native controls, no direct link
   to the file anywhere in the markup.
   =========================================================== */
.tracklist {
  padding: 20px var(--gutter) 100px;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.track {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.track__play {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.track__play:hover,
.track__play.is-playing { background: var(--ink); color: var(--paper); }

.track__body { flex: 1 1 auto; min-width: 0; }

.track__title {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.05rem;
}

.track__bar {
  margin-top: 8px;
  height: 3px;
  background: var(--line);
  cursor: pointer;
  position: relative;
}

.track__bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: var(--pigment);
}

.track__time {
  flex: 0 0 auto;
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
   =========================================================== */
/* ===========================================================
   Footer — social hub
   =========================================================== */
.site-footer {
  padding: 70px var(--gutter) 50px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.site-footer__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
}

.site-footer__mark {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.4rem;
}

.social-list {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0; padding: 0;
  flex-wrap: wrap;
}

.social-list a {
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.social-list a:hover { color: var(--pigment); border-color: var(--pigment); }

.social-list a.social-icon {
  display: inline-flex;
  align-items: center;
  color: var(--ink-soft);
  border-bottom: none;
}
.social-list a.social-icon:hover { color: var(--pigment); }

.footer-commissions {
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.footer-commissions:hover { color: var(--pigment); border-color: var(--pigment); }

.site-footer__meta {
  width: 100%;
  margin-top: 30px;
  font-size: 11px;
  color: var(--line-strong);
}
