/* ISAL · Interiors & Studio — one-page site. Mobile first. */
:root {
  --vanilla-silk: #EEE2D4;
  --alpine-oat: #D7C6B6;
  --warm-greige: #B39D92;
  --cherry-velvet: #471D1F;
  --bordeaux-noir: #32191F;
  --paper: #F3EADF;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --header: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--vanilla-silk); color: var(--bordeaux-noir);
  font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--cherry-velvet); color: var(--vanilla-silk); }
:focus-visible { outline: 2px solid var(--cherry-velvet); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--cherry-velvet); color: var(--vanilla-silk); padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; color: var(--cherry-velvet); letter-spacing: -0.01em; }
h1 { font-size: clamp(46px, 7.4vw, 108px); line-height: .98; }
h2 { font-size: clamp(42px, 5.8vw, 88px); line-height: 1; }
h3 { font-size: clamp(27px, 2.5vw, 36px); line-height: 1.1; }
h1 em, h2 em { font-style: italic; }
p { margin: 0; }
.eyebrow, .plate__no, .chapter__no, .link, .btn, .nav a, .contact__list dt, .piece__cta, .index a {
  font-family: var(--sans); font-weight: 600; font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
}
.eyebrow { color: var(--cherry-velvet); }
.lede { font-size: clamp(18px, 1.55vw, 22px); line-height: 1.55; max-width: 34ch; }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 30px; border-radius: 999px; border: 1.5px solid var(--cherry-velvet);
  background: var(--cherry-velvet); color: var(--vanilla-silk); text-decoration: none;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn:hover { background: var(--bordeaux-noir); border-color: var(--bordeaux-noir); }
.btn--ghost { background: transparent; color: var(--cherry-velvet); }
.btn--ghost:hover { background: var(--cherry-velvet); color: var(--vanilla-silk); }
.btn--small { min-height: 40px; padding: 0 20px; }
.btn--large { min-height: 60px; padding: 0 36px; }
.link { color: var(--cherry-velvet); text-decoration: none; padding-bottom: 5px; border-bottom: 1px solid var(--warm-greige); transition: border-color .3s; }
.link:hover { border-color: var(--cherry-velvet); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header);
  background: rgba(238, 226, 212, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .4s;
}
.site-header.is-scrolled { border-bottom-color: rgba(179, 157, 146, .55); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { color: var(--cherry-velvet); display: inline-flex; }
.brand__logo { height: 22px; width: auto; }
.nav { display: none; }
.nav a { color: var(--bordeaux-noir); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--cherry-velvet); }
.nav a.btn { color: var(--vanilla-silk); }
.nav a.btn:hover { color: var(--vanilla-silk); }
.menu-toggle { width: 44px; height: 44px; border: 0; background: none; display: grid; place-items: center; cursor: pointer; color: var(--cherry-velvet); }
.menu-toggle__bars, .menu-toggle__bars::before { display: block; width: 24px; height: 1.5px; background: currentColor; position: relative; transition: transform .35s var(--ease); }
.menu-toggle__bars::before { content: ""; position: absolute; top: 7px; }
.menu-toggle__bars { transform: translateY(-3.5px); }
.menu-open .menu-toggle__bars { transform: rotate(45deg); }
.menu-open .menu-toggle__bars::before { transform: translateY(-7px) rotate(-90deg); }
.menu-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--vanilla-silk); }
.menu-open .nav {
  display: flex; position: fixed; inset: var(--header) 0 0 0; flex-direction: column; gap: 6px;
  padding: 32px var(--gutter); background: var(--vanilla-silk);
}
.menu-open .nav a:not(.btn) { font: 500 40px/1.35 var(--serif); letter-spacing: 0; text-transform: none; color: var(--cherry-velvet); }
.menu-open .nav .btn { margin-top: 24px; align-self: flex-start; min-height: 52px; padding: 0 30px; font: 600 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.menu-open { overflow: hidden; }

/* ---------- frames ---------- */
.frame { margin: 0; position: relative; overflow: hidden; background: var(--alpine-oat); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--tall { aspect-ratio: 4 / 5; }
.frame--wide { aspect-ratio: 4 / 3; }
.frame--arch { aspect-ratio: 4 / 5; border-radius: 50% 50% 0 0 / 40% 40% 0 0; }

/* ---------- cover ---------- */
.cover { display: grid; gap: 36px; padding-top: clamp(28px, 6vw, 72px); padding-bottom: clamp(56px, 8vw, 112px); }
.cover__text { display: flex; flex-direction: column; gap: 22px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 8px; }
.cover__frame { width: 100%; }
.index { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--warm-greige); }
.index li { border-bottom: 1px solid var(--warm-greige); }
.index a { display: flex; gap: 14px; align-items: baseline; padding: 16px 0; text-decoration: none; color: var(--bordeaux-noir); }
.index a span { font: italic 500 20px/1 var(--serif); letter-spacing: 0; color: var(--cherry-velvet); min-width: 28px; }
.index a:hover { color: var(--cherry-velvet); }

/* ---------- houses ---------- */
.houses { display: grid; gap: 56px; padding-bottom: clamp(24px, 4vw, 64px); }
.house { display: flex; flex-direction: column; gap: 24px; text-decoration: none; }
.house__meta { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.house__logo { width: 150px; height: auto; color: var(--cherry-velvet); margin-bottom: 6px; }
.house__meta p { max-width: 36ch; }
.house:hover .link { border-color: var(--cherry-velvet); }

/* ---------- chapters ---------- */
.chapter { padding-block: clamp(72px, 10vw, 160px); }
.chapter--oat { background: var(--alpine-oat); }
.chapter__head { display: grid; gap: 18px; margin-bottom: clamp(44px, 6vw, 88px); }
.chapter__no { color: var(--cherry-velvet); display: flex; align-items: center; gap: 14px; }
.chapter__no::after { content: ""; width: 48px; height: 1px; background: var(--cherry-velvet); }
.chapter__head p { max-width: 52ch; font-size: 18px; }
.chapter__head p a { color: var(--cherry-velvet); }

/* interiors plates */
.plates { display: grid; gap: 72px; }
.plate { display: grid; gap: 22px; align-content: start; }
.plate__caption { display: grid; gap: 12px; align-content: start; }
.plate__no { color: var(--cherry-velvet); }
.plate__caption p { max-width: 46ch; }
.plate__caption .link { justify-self: start; margin-top: 6px; }

/* studio pieces: swipeable on mobile */
.pieces {
  list-style: none; margin: 0; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter); padding-bottom: 8px; scrollbar-width: none;
}
.pieces::-webkit-scrollbar { display: none; }
.piece { flex: 0 0 78%; scroll-snap-align: start; }
.piece__link { display: flex; flex-direction: column; gap: 18px; text-decoration: none; }
.piece__link .frame { background: var(--vanilla-silk); }
.piece__meta { display: grid; gap: 8px; }
.piece__cta { color: var(--cherry-velvet); }
.piece__link:hover h3 { font-style: italic; }
.studio__foot { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; margin-top: clamp(48px, 6vw, 88px); }
.studio__foot p { font: italic 500 clamp(26px, 2.6vw, 36px)/1.2 var(--serif); color: var(--cherry-velvet); }

/* process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.step { display: grid; gap: 10px; padding: 28px 0; border-top: 1px solid var(--warm-greige); }
.step__no { font: 500 italic 44px/1 var(--serif); color: var(--cherry-velvet); font-variant-numeric: lining-nums; height: 44px; }
.step p { max-width: 36ch; }

/* statement */
.statement { background: var(--cherry-velvet); color: var(--vanilla-silk); padding-block: clamp(72px, 10vw, 160px); }
.statement__inner { display: grid; gap: 44px; align-items: center; }
.statement__frame { max-width: 460px; width: 100%; background: var(--bordeaux-noir); }
.statement__text { display: grid; gap: 22px; }
.statement h2 { color: var(--vanilla-silk); }
.statement p { max-width: 50ch; font-size: 18px; }
.eyebrow--light { color: var(--alpine-oat); }
.signature { font: italic 500 22px/1.3 var(--serif) !important; color: var(--alpine-oat); }
.statement :focus-visible { outline-color: var(--vanilla-silk); }

/* questions */
.faq__list { border-top: 1px solid var(--warm-greige); }
.faq__item { border-bottom: 1px solid var(--warm-greige); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font: 400 30px/1 var(--serif); color: var(--cherry-velvet); transition: transform .3s var(--ease); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item h3 { font-size: clamp(22px, 2vw, 28px); }
.faq__item p { padding: 0 0 26px; max-width: 64ch; }
.faq { padding-bottom: 0; }

/* contact */
.contact__side { display: grid; gap: clamp(40px, 5vw, 64px); }
.enquiry { display: grid; gap: 22px; background: var(--paper); padding: clamp(24px, 3vw, 40px); border-radius: 4px; }
.enquiry__title { font: italic 500 28px/1.2 var(--serif); color: var(--cherry-velvet); }
.field { display: grid; gap: 8px; }
.field-row { display: grid; gap: 22px; }
.field label { font: 600 11px/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--cherry-velvet); }
.field .optional { font-weight: 400; letter-spacing: .06em; text-transform: none; color: var(--bordeaux-noir); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 17px/1.4 var(--sans); color: var(--bordeaux-noir); background: transparent;
  border: 0; border-bottom: 1px solid var(--warm-greige); border-radius: 0; padding: 10px 0; min-height: 46px;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--cherry-velvet) 50%), linear-gradient(135deg, var(--cherry-velvet) 50%, transparent 50%);
  background-position: calc(100% - 12px) 52%, calc(100% - 6px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 28px; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom: 2px solid var(--cherry-velvet); }
.field [aria-invalid="true"] { border-bottom-color: #9B2C2C; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.enquiry .btn { justify-self: start; }
.enquiry .btn[disabled] { opacity: .6; cursor: progress; }
.enquiry__status { min-height: 1.6em; font-size: 15px; }
.enquiry__status.is-ok { color: var(--cherry-velvet); font-weight: 600; }
.enquiry__status.is-error { color: #9B2C2C; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.contact__inner > .contact__list { margin-top: clamp(40px, 5vw, 64px); }
.contact__list { margin: 0; display: grid; gap: 0; }
.contact__list div { padding: 22px 0; border-top: 1px solid var(--warm-greige); display: grid; gap: 6px; }
.contact__list dt { color: var(--cherry-velvet); }
.contact__list dd { margin: 0; font-size: 18px; }
.contact__list a { text-decoration: none; border-bottom: 1px solid var(--warm-greige); }
.contact__list a:hover { border-color: var(--cherry-velvet); }

/* footer */
.site-footer { background: var(--bordeaux-noir); color: var(--vanilla-silk); padding-block: 72px 40px; }
.site-footer__inner { display: grid; gap: 40px; }
.site-footer .brand { color: var(--vanilla-silk); }
.footer__logo { width: 150px; height: auto; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.footer__nav a { text-decoration: none; font: 600 12px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--alpine-oat); }
.footer__nav a:hover { color: var(--vanilla-silk); }
.legal { font-size: 13px; color: var(--alpine-oat); line-height: 1.6; border-top: 1px solid rgba(215, 198, 182, .25); padding-top: 24px; }
.site-footer :focus-visible { outline-color: var(--vanilla-silk); }

/* floating WhatsApp */
.wa-float {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 40;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--cherry-velvet); color: var(--vanilla-silk); box-shadow: 0 10px 30px -10px rgba(50, 25, 31, .6);
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .4s, transform .4s var(--ease);
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- motion (only with JS; off for reduced motion) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-img img { clip-path: inset(100% 0 0 0); transform: scale(1.08); transition: clip-path 1.3s cubic-bezier(.65, 0, .35, 1), transform 1.8s var(--ease); }
.js .reveal-img.is-in img { clip-path: inset(0 0 0 0); transform: none; }
/* cover: CSS-only entrance so the first paint never waits for JS */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes unveil { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
.rise { animation: rise 1.1s var(--ease) both; }
.cover .rise:nth-child(2) { animation-delay: .08s; }
.cover__text .rise:nth-child(3) { animation-delay: .16s; }
.cover__text .rise:nth-child(4) { animation-delay: .24s; }
.rise--img { animation: none; }
.rise--img img { animation: unveil 1.4s cubic-bezier(.65, 0, .35, 1) .1s both; }
.index.rise { animation-delay: .35s; }
@media (prefers-reduced-motion: reduce) {
  .rise, .rise--img img { animation: none; }
  html { scroll-behavior: auto; }
  .js .reveal, .js .reveal-img img { opacity: 1; transform: none; clip-path: none; transition: none; }
}

/* ---------- tablet ---------- */
@media (min-width: 700px) {
  .houses { grid-template-columns: 1fr 1fr; gap: 32px; }
  .house--offset { margin-top: 140px; }
  .piece { flex-basis: 44%; }
  .steps { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .contact__list { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .index { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- desktop ---------- */
@media (min-width: 1024px) {
  :root { --header: 80px; }
  .brand__logo { height: 24px; }
  .nav { display: flex; align-items: center; gap: 34px; }
  .menu-toggle { display: none; }
  .cover { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: 1fr auto; column-gap: clamp(40px, 6vw, 110px); row-gap: 56px; align-items: end; min-height: calc(100svh - var(--header)); }
  .cover__text { grid-column: 1; grid-row: 1; padding-bottom: 12px; }
  .cover__frame { grid-column: 2; grid-row: 1 / span 2; align-self: end; max-height: calc(100svh - var(--header) - 72px); width: auto; aspect-ratio: 4 / 5; justify-self: end; }
  .index { grid-column: 1; grid-row: 2; }
  .houses { gap: clamp(40px, 6vw, 110px); padding-inline: clamp(72px, 9vw, 160px); }
  .house--offset { margin-top: 220px; }
  .chapter__head { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: end; column-gap: 40px; }
  .chapter__no { grid-column: 1 / -1; }
  .chapter__head p { justify-self: end; }
  .frame--wide { aspect-ratio: 16 / 10; }
  .plates { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: clamp(96px, 10vw, 160px); }
  .plate--wide { grid-column: 1 / -1; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; }
  .plate--wide .frame { grid-column: 1 / -1; }
  .plate--wide .plate__caption { grid-column: 1 / span 7; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); column-gap: 40px; align-items: start; }
  .plate--wide .plate__caption .plate__no { grid-column: 1 / -1; }
  .plate--wide .plate__caption h3 { grid-column: 1; }
  .plate--wide .plate__caption p, .plate--wide .plate__caption .link { grid-column: 2; }
  .plate--04 .plate__caption { grid-column: 6 / -1; }
  .plate--02 { grid-column: 1 / span 5; }
  .plate--03 { grid-column: 7 / -1; margin-top: 200px; }
  .pieces { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 72px 32px; overflow: visible; }
  .piece:nth-child(3n + 2) { transform: translateY(80px); }
  .js .piece.reveal:nth-child(3n + 2) { transform: translateY(106px); }
  .js .piece.reveal.is-in:nth-child(3n + 2) { transform: translateY(80px); }
  .studio__foot { margin-top: 160px; flex-direction: row; align-items: center; justify-content: space-between; }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .step { padding-right: 24px; }
  .statement__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(56px, 8vw, 140px); }
  .faq__inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: clamp(56px, 7vw, 120px); align-items: start; }
  .faq .chapter__head { grid-template-columns: 1fr; position: sticky; top: calc(var(--header) + 32px); }
  .contact__inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); column-gap: clamp(56px, 7vw, 120px); }
  .contact .chapter__head { grid-column: 1 / -1; }
  .contact__inner > .contact__list { grid-column: 1; grid-row: 2; align-self: start; grid-template-columns: 1fr; margin-top: 0; }
  .contact__side { grid-column: 2; grid-row: 2; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .site-footer__inner { grid-template-columns: auto 1fr; align-items: end; }
  .footer__nav { justify-content: flex-end; }
  .legal { grid-column: 1 / -1; }
  .wa-float { display: none; }
}
