/* House of Singhal — design review build
   Palette is taken from the materials the studio actually specifies:
   lime plaster, teak, kumkum red, brass, kota stone. */
:root {
  --plaster: #ede6da;
  --paper: #f6f1e8;
  --ink: #1b1611;
  --teak: #241a13;
  --teak-2: #32251b;
  --kumkum: #b8402a;
  --brass: #a98950;
  --sage: #88917a;
  --line: rgba(27, 22, 17, 0.16);
  --line-light: rgba(237, 230, 218, 0.18);
  --display: "Bodoni Moda", "Didot", "Bodoni 72", serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--kumkum); color: var(--paper); }
:focus-visible { outline: 2px solid var(--kumkum); outline-offset: 3px; }

/* ---------- type ---------- */
.display {
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.02em;
  font-optical-sizing: auto;
}
.display em { font-style: italic; font-weight: 400; }
.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.lede { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.45; max-width: 34em; }
.muted { opacity: 0.62; }

/* ---------- grain ---------- */
.grain::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 90;
  opacity: 0.22; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- header ---------- */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  color: var(--ink);
  transition: color 0.35s, background 0.35s, transform 0.5s var(--ease), padding 0.35s;
}
.site-head.on-dark, .site-head.on-red { color: var(--plaster); }
/* once past the top, the bar tucks away on the way down and returns, with a backing, on the way up */
.site-head.stuck { padding-block: 11px; background: rgba(246, 241, 232, 0.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.site-head.stuck.on-dark { background: rgba(36, 26, 19, 0.86); }
.site-head.stuck.on-red { background: rgba(184, 64, 42, 0.9); }
.site-head.away:not(.open) { transform: translateY(-110%); }
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand b {
  font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: -0.01em;
}
.brand b i { font-style: italic; }
.brand span { opacity: 0.7; }
.nav { display: flex; gap: clamp(14px, 2.2vw, 34px); align-items: center; }
.nav a { position: relative; font-size: 14px; }
.nav a small {
  display: block; font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em;
  text-transform: uppercase; opacity: 0.55; margin-bottom: 1px;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.nav .cta {
  border: 1px solid currentColor; border-radius: 999px; padding: 9px 16px; font-size: 13px;
}
.nav .cta::after { display: none; }
.menu-btn { display: none; }

@media (max-width: 860px) {
  .nav { display: none; }
  .menu-btn {
    display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
    text-transform: uppercase; border: 1px solid currentColor; border-radius: 999px; padding: 9px 14px;
  }
  .site-head.open { color: var(--plaster); }
  .site-head.open .nav {
    display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
    position: fixed; inset: 0; background: var(--teak); padding: 96px var(--gutter) 32px;
    z-index: -1;
  }
  .site-head.open .nav a { font-family: var(--display); font-size: 38px; line-height: 1; }
  .site-head.open .nav .cta { font-family: var(--sans); font-size: 15px; margin-top: 12px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  background: var(--teak); color: var(--plaster);
  overflow: hidden;
  display: grid; grid-template-rows: 1fr auto;
}
.hero-stage { position: relative; display: grid; place-items: center; padding: 96px var(--gutter) 0; }
.arch {
  position: relative;
  width: min(46vw, 62svh); aspect-ratio: 3 / 4.1;
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  background: #3a2b20;
  box-shadow: 0 0 0 1px var(--line-light), 0 60px 120px -40px rgba(0, 0, 0, 0.7);
}
.arch canvas { width: 100% !important; height: 100% !important; display: block; }
.arch .fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-word {
  position: absolute; z-index: 2; pointer-events: none;
  font-size: clamp(64px, 15.5vw, 290px);
  white-space: nowrap;
  mix-blend-mode: difference; color: var(--plaster);
}
.hero-word.w1 { left: var(--gutter); top: 21%; }
.hero-word.w2 { left: auto; right: var(--gutter); bottom: 9%; width: max-content; justify-self: end; text-align: right; }
.hero-word.w2 em { color: #e2a08f; }
.hero-note {
  position: absolute; z-index: 3; max-width: 23ch; font-size: 14px; line-height: 1.45;
}
.hero-note.left { left: var(--gutter); bottom: 14%; }
.hero-note.right { right: var(--gutter); top: 22%; text-align: right; }
.hero-note .label { display: block; margin-bottom: 8px; color: var(--brass); }

.hero-bar {
  position: relative; z-index: 4;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 18px var(--gutter);
  border-top: 1px solid var(--line-light);
}
.dress { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.dress button {
  display: flex; align-items: center; gap: 8px; font-size: 13px;
  padding: 7px 12px 7px 8px; border-radius: 999px; border: 1px solid var(--line-light);
  transition: background 0.4s, color 0.4s, border-color 0.4s;
}
.dress button i { width: 16px; height: 16px; border-radius: 50%; display: block; }
.dress button[aria-pressed="true"] { background: var(--plaster); color: var(--teak); border-color: var(--plaster); }

@media (max-width: 860px) {
  .arch { width: min(78vw, 52svh); }
  .hero-word { font-size: 23vw; }
  .hero-word.w1 { top: 15%; }
  .hero-word.w2 { bottom: 20%; }
  .hero-note.right { display: none; }
  .hero-note.left { position: relative; left: auto; bottom: auto; max-width: none; padding: 20px 0 6px; justify-self: start; }
  .hero-stage { align-content: center; }
}

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden; white-space: nowrap;
  border-block: 1px solid var(--line);
  padding: 14px 0; background: var(--plaster);
}
.marquee > div { display: inline-block; animation: slide 70s linear infinite; }
.marquee a { font-family: var(--display); font-style: italic; font-size: 26px; margin-right: 18px; }
.marquee a::after { content: "✳"; font-style: normal; font-size: 14px; margin-left: 18px; color: var(--kumkum); vertical-align: middle; }
.marquee a:hover { color: var(--kumkum); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- section scaffolding ---------- */
.section { padding: clamp(72px, 11vw, 168px) var(--gutter); position: relative; }
.section.dark { background: var(--teak); color: var(--plaster); }
.section.plaster { background: var(--plaster); }
.room-tag {
  display: flex; align-items: center; gap: 14px; margin-bottom: clamp(28px, 5vw, 64px);
}
.room-tag::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: 0.18; }
.room-tag b { font-family: var(--display); font-style: italic; font-weight: 400; font-size: 20px; }
.h-xl { font-size: clamp(44px, 8.4vw, 148px); }
.h-lg { font-size: clamp(38px, 5.6vw, 96px); }
.h-md { font-size: clamp(28px, 3.2vw, 52px); line-height: 1.02; }

/* ---------- manifesto ---------- */
.manifesto { display: grid; grid-template-columns: 1fr; gap: 48px; }
.manifesto .display { max-width: 15em; }
.manifesto .display em { color: var(--kumkum); }
.figures { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.figures div { padding: 22px 16px 0 0; }
.figures dt { font-family: var(--display); font-size: clamp(40px, 5vw, 84px); line-height: 1; }
.figures dd { font-size: 14px; opacity: 0.7; margin-top: 8px; max-width: 18ch; }
@media (max-width: 720px) { .figures { grid-template-columns: repeat(2, 1fr); row-gap: 28px; } }

/* ---------- projects ---------- */
.projects { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(20px, 3vw, 48px) clamp(14px, 2vw, 32px); }
.proj { position: relative; display: block; }
.proj:nth-child(1) { grid-column: 1 / span 7; }
.proj:nth-child(2) { grid-column: 9 / span 4; margin-top: 22vw; }
.proj:nth-child(3) { grid-column: 2 / span 4; margin-top: -6vw; }
.proj:nth-child(4) { grid-column: 7 / span 6; margin-top: 6vw; }
.proj figure { overflow: hidden; background: var(--teak-2); }
.proj:nth-child(2) figure, .proj:nth-child(3) figure { border-radius: 999px 999px 0 0; aspect-ratio: 3 / 4; }
.proj:nth-child(1) figure, .proj:nth-child(4) figure { aspect-ratio: 16 / 10.5; }
.proj img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.4s var(--ease), filter 0.8s; filter: saturate(0.82); }
.proj:hover img { transform: scale(1); filter: saturate(1); }
.proj .num { position: absolute; top: -0.55em; left: -0.12em; font-size: clamp(60px, 9vw, 150px); color: var(--kumkum); mix-blend-mode: multiply; z-index: 2; pointer-events: none; font-style: italic; }
.proj header { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 16px; }
.proj h3 { font-family: var(--display); font-weight: 400; font-size: clamp(24px, 2.6vw, 40px); line-height: 1.05; letter-spacing: -0.01em; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tags a, .tags span {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px;
  transition: background 0.3s, color 0.3s;
}
.dark .tags a, .dark .tags span { border-color: var(--line-light); }
.tags a:hover { background: var(--ink); color: var(--paper); }
.dark .tags a:hover { background: var(--plaster); color: var(--teak); }
@media (max-width: 860px) {
  .projects { display: block; }
  .proj { margin: 0 0 56px !important; }
}
.more-link {
  display: inline-flex; align-items: center; gap: 14px; margin-top: clamp(40px, 6vw, 80px);
  font-family: var(--display); font-style: italic; font-size: clamp(24px, 2.6vw, 40px);
  border-bottom: 1px solid currentColor; padding-bottom: 6px;
}
.more-link span { transition: transform 0.5s var(--ease); display: inline-block; }
.more-link:hover span { transform: translateX(10px); }

/* ---------- index (location / space / style) ---------- */
.index-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs button {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 10px 16px; border: 1px solid var(--line-light); border-radius: 999px;
  transition: background 0.3s, color 0.3s;
}
.tabs button[aria-selected="true"] { background: var(--plaster); color: var(--teak); }
.index-body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.index-list { display: flex; flex-wrap: wrap; column-gap: 0.32em; row-gap: 0; font-family: var(--display); font-size: clamp(28px, 4.1vw, 68px); line-height: 1.12; letter-spacing: -0.015em; }
.index-list a { opacity: 0.42; transition: opacity 0.35s, color 0.35s; white-space: nowrap; }
.index-list a::after { content: " /"; opacity: 0.35; font-style: normal; color: var(--plaster); }
.index-list a:hover, .index-list a.on { opacity: 1; font-style: italic; color: #e2a08f; }
.index-list sup { font-family: var(--mono); font-size: 0.2em; letter-spacing: 0.06em; vertical-align: top; margin-left: 3px; font-style: normal; }
.index-peek { position: sticky; top: 96px; }
.index-peek figure { aspect-ratio: 3 / 4; border-radius: 999px 999px 0 0; overflow: hidden; background: var(--teak-2); }
.index-peek img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.5s; }
.index-peek p { margin-top: 14px; font-size: 14px; opacity: 0.75; }
.index-peek code { font-family: var(--mono); font-size: 12px; color: var(--brass); display: block; margin-top: 8px; word-break: break-all; }
[role="tabpanel"][hidden] { display: none; }
@media (max-width: 860px) { .index-body { grid-template-columns: 1fr; } .index-peek { display: none; } }

/* ---------- process ---------- */
.process { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.process li { padding: 24px 20px 0 0; border-right: 1px solid var(--line); min-height: 280px; padding-left: 20px; display: flex; flex-direction: column; }
.process li:first-child { padding-left: 0; }
.process li:last-child { border-right: 0; }
.process .display { font-size: clamp(26px, 2.5vw, 38px); margin: 14px 0 12px; line-height: 1; }
.process p { font-size: 15px; opacity: 0.75; }
.process .label:last-child { margin-top: auto; padding-top: 24px; color: var(--kumkum); }
@media (max-width: 960px) {
  .process { grid-template-columns: 1fr; }
  .process li { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px 0; min-height: 0; }
}

/* ---------- founder ---------- */
.founder { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 96px); align-items: end; }
.portrait { aspect-ratio: 3 / 4; border-radius: 999px 999px 0 0; overflow: hidden; position: relative; background: linear-gradient(160deg, #c9b79c, #8d6f55 60%, #4a3527); }
.portrait .label { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; color: var(--plaster); }
.founder .lede { margin-top: 28px; }
.social { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 36px; margin-top: 40px; border-top: 1px solid var(--line); padding-top: 22px; }
.social b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(34px, 4vw, 60px); line-height: 1; }
@media (max-width: 860px) { .founder { grid-template-columns: 1fr; } .portrait { max-width: 340px; } .social { gap: 22px; } }

/* ---------- journal ---------- */
.journal { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 36px); }
.post { display: block; border-top: 1px solid var(--line); padding-top: 18px; }
.post figure { aspect-ratio: 4 / 3; overflow: hidden; margin: 16px 0; background: var(--plaster); }
.post img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.8); transition: transform 1.2s var(--ease); }
.post:hover img { transform: scale(1.05); }
.post h3 { font-family: var(--display); font-weight: 400; font-size: clamp(22px, 2vw, 30px); line-height: 1.1; }
.post p { font-size: 15px; opacity: 0.7; margin-top: 10px; }
@media (max-width: 860px) { .journal { grid-template-columns: 1fr; } }

/* ---------- academy ---------- */
.academy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); align-items: center; }
.book-wrap { perspective: 1400px; display: grid; place-items: center; padding: 20px 0; }
.book {
  width: min(300px, 62vw); aspect-ratio: 3 / 4.2; position: relative;
  transform: rotateY(-24deg) rotateX(6deg); transform-style: preserve-3d;
  transition: transform 0.9s var(--ease);
  background: var(--kumkum); color: var(--plaster);
  box-shadow: 30px 40px 60px -20px rgba(0, 0, 0, 0.6);
  padding: 24px; display: flex; flex-direction: column; justify-content: space-between;
}
.book:hover { transform: rotateY(-8deg) rotateX(2deg); }
.book::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 26px; background: linear-gradient(90deg, rgba(0,0,0,.28), transparent); }
.book::after { content: ""; position: absolute; top: 3px; bottom: 3px; right: -14px; width: 14px; background: repeating-linear-gradient(90deg, #efe7d8 0 1px, #cfc5b2 1px 2px); transform: rotateY(90deg); transform-origin: left; }
.book .display { font-size: 44px; }
.courses { margin-top: 32px; border-top: 1px solid var(--line-light); }
.courses li { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line-light); }
.courses .display { font-size: 24px; line-height: 1.1; }
.waitlist { display: flex; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
.waitlist input { flex: 1 1 220px; background: transparent; border: 0; border-bottom: 1px solid var(--line-light); color: inherit; font: inherit; padding: 12px 0; }
.waitlist input::placeholder { color: inherit; opacity: 0.5; }
.btn { display: inline-block; background: var(--kumkum); color: var(--paper); border-radius: 999px; padding: 13px 24px; font-size: 15px; transition: transform 0.4s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: transparent; color: inherit; border: 1px solid currentColor; }
@media (max-width: 860px) { .academy { grid-template-columns: 1fr; } }

/* ---------- contact / footer ---------- */
.contact { background: var(--kumkum); color: var(--paper); }
.contact .h-xl em { color: var(--teak); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); margin-top: clamp(40px, 6vw, 88px); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; }
.form label { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.75; padding-top: 16px; }
.form input, .form select, .form textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(246, 241, 232, 0.45);
  color: inherit; font: inherit; font-size: 18px; padding: 8px 0 10px; border-radius: 0; appearance: none;
}
.form select option { color: var(--ink); }
.form .full { grid-column: 1 / -1; }
.form .btn { background: var(--teak); margin-top: 24px; justify-self: start; }
.studio dl { display: grid; gap: 22px; }
.studio dt { opacity: 0.7; margin-bottom: 4px; }
.studio dd { font-size: 19px; line-height: 1.4; }
@media (max-width: 860px) { .contact-grid, .form { grid-template-columns: 1fr; } }

.foot { background: var(--teak); color: var(--plaster); padding: 56px var(--gutter) 28px; }
.foot-cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 2fr; gap: 32px; }
.foot h4 { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); margin-bottom: 14px; }
.foot li { font-size: 14px; line-height: 1.9; opacity: 0.8; }
.foot li a:hover { color: #e2a08f; }
.foot .areas { columns: 3; column-gap: 20px; }
.foot .big { font-family: var(--display); font-size: 34px; line-height: 1; }
.foot .big i { font-style: italic; }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line-light); font-size: 12px; opacity: 0.6; }
@media (max-width: 860px) { .foot-cols { grid-template-columns: 1fr 1fr; } .foot .areas { columns: 2; } .foot-cols > :last-child, .foot-cols > :first-child { grid-column: 1 / -1; } }

/* ---------- reveal ---------- */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.line-rv { display: block; overflow: hidden; padding: 0.04em 0.07em 0.16em; margin: -0.04em -0.07em -0.16em; }
.line-rv > span { display: block; }
.js .line-rv > span { transform: translateY(105%); transition: transform 1.1s var(--ease); }
.js .in .line-rv > span, .js .line-rv.in > span { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .rv, .js .line-rv > span { opacity: 1; transform: none; transition: none; }
  .marquee > div { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- cursor ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none;
  width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%;
  background: var(--kumkum); color: var(--paper);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  transform: translate(var(--x, -200px), var(--y, -200px)) scale(var(--s, 0));
  transition: transform 0.25s ease-out;
}
@media (hover: none) { .cursor { display: none; } }

/* =====================================================
   Inner pages
   ===================================================== */
.page-top { padding: clamp(120px, 15vw, 200px) var(--gutter) clamp(36px, 5vw, 64px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.crumbs a { opacity: 0.6; }
.crumbs a:hover { opacity: 1; color: var(--kumkum); }
.crumbs a::after { content: " →"; opacity: 0.6; }

/* project */
.cover { margin: 0 var(--gutter); aspect-ratio: 16 / 8.2; overflow: hidden; background: var(--teak-2); }
.cover img { width: 100%; height: 115%; object-fit: cover; will-change: transform; }
.facts { display: grid; grid-template-columns: repeat(6, 1fr); border-bottom: 1px solid var(--line); margin: 0 var(--gutter); }
.facts div { padding: 22px 12px 22px 0; }
.facts dt { opacity: 0.6; margin-bottom: 6px; }
.facts dd { font-family: var(--display); font-size: clamp(19px, 1.8vw, 26px); line-height: 1.15; }
.facts dd a { border-bottom: 1px solid var(--kumkum); }
.facts dd a:hover { color: var(--kumkum); }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, 1fr); } .cover { aspect-ratio: 4 / 3; } }

.story { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 6vw, 96px); }
.story p + p { margin-top: 1.1em; }
.story .body { font-size: 19px; max-width: 36em; }
.story .body p:first-child::first-letter { font-family: var(--display); font-size: 4.6em; float: left; line-height: 0.78; padding: 0.08em 0.1em 0 0; color: var(--kumkum); }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } }

.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(12px, 2vw, 28px); padding: 0 var(--gutter); }
.gallery figure { overflow: hidden; align-self: start; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; padding-top: 10px; opacity: 0.6; }
.gallery .g-a { grid-column: 1 / span 8; }
.gallery .g-b { grid-column: 9 / span 4; align-self: end; }
.gallery .g-c { grid-column: 2 / span 5; }
.gallery .g-d { grid-column: 7 / span 6; margin-top: 8vw; }
.gallery .g-e { grid-column: 1 / -1; }
.gallery figure > div { overflow: hidden; }
.gallery .g-b > div { border-radius: 999px 999px 0 0; aspect-ratio: 3 / 4; }
@media (max-width: 860px) { .gallery { display: block; } .gallery figure { margin-bottom: 22px; } .gallery .g-d { margin-top: 0; } }

.materials { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.materials li { aspect-ratio: 1 / 1.25; padding: 16px; display: flex; flex-direction: column; justify-content: flex-end; color: var(--paper); }
.materials li b { font-family: var(--display); font-weight: 400; font-size: clamp(18px, 1.8vw, 26px); line-height: 1.1; }
.materials li.lt { color: var(--ink); }
@media (max-width: 720px) { .materials { grid-template-columns: repeat(2, 1fr); } }

.next { display: block; position: relative; overflow: hidden; color: var(--plaster); background: var(--teak); padding: clamp(72px, 12vw, 180px) var(--gutter); }
.next img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.32; transition: opacity 0.8s, transform 1.6s var(--ease); }
.next:hover img { opacity: 0.5; transform: scale(1.04); }
.next > * { position: relative; }

/* location */
.loc-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 5vw, 80px); align-items: end; }
.loc-hero figure { aspect-ratio: 3 / 4; border-radius: 999px 999px 0 0; overflow: hidden; }
.loc-hero img { width: 100%; height: 100%; object-fit: cover; }
.loc-hero h1 { font-size: clamp(40px, 6.2vw, 96px); }
.loc-hero h1 em { color: var(--kumkum); }
.answer { border-left: 2px solid var(--kumkum); padding: 4px 0 4px 20px; margin-top: 32px; max-width: 40em; font-size: 18px; }
.answer .label { display: block; color: var(--kumkum); margin-bottom: 8px; }
@media (max-width: 860px) { .loc-hero { grid-template-columns: 1fr; } .loc-hero figure { max-width: 320px; } }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 16px 12px 16px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.table th { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.6; }
.table td:first-child { font-family: var(--display); font-size: clamp(20px, 2vw, 28px); }
.table-wrap { overflow-x: auto; }
.table-wrap .table { min-width: 560px; }

.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: baseline; padding: 22px 0; font-family: var(--display); font-size: clamp(22px, 2.3vw, 34px); line-height: 1.1; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-size: 24px; color: var(--kumkum); transition: transform 0.4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; max-width: 44em; opacity: 0.8; }

.two { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 6vw, 96px); }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: 15px; transition: background 0.3s, color 0.3s; }
.chips a:hover { background: var(--ink); color: var(--paper); }
.dark .chips a { border-color: var(--line-light); }
.dark .chips a:hover { background: var(--plaster); color: var(--teak); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 36px); }
.cards .proj { grid-column: auto !important; margin: 0 !important; }
.cards .proj figure { border-radius: 0 !important; aspect-ratio: 4 / 5 !important; }
.cards .proj:nth-child(2) figure { border-radius: 999px 999px 0 0 !important; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

/* blueprint (internal review page) */
.bp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.bp-grid > div { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 24px; }
.bp-grid h3 { font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1.05; margin: 10px 0 12px; }
.bp-grid p, .bp-grid li { font-size: 15px; opacity: 0.8; }
.bp-grid li { padding: 5px 0; border-top: 1px dashed var(--line); }
.bp-grid code, .url { font-family: var(--mono); font-size: 12.5px; color: var(--kumkum); word-break: break-all; }
@media (max-width: 860px) { .bp-grid { grid-template-columns: 1fr; } }
.tree { font-family: var(--mono); font-size: 13.5px; line-height: 1.9; white-space: pre; overflow-x: auto; background: var(--teak); color: var(--plaster); padding: 28px; }
.tree b { color: #e2a08f; font-weight: 400; }
.tree i { color: var(--brass); font-style: normal; }
.review-banner { position: fixed; inset: auto 0 0 0; z-index: 70; background: var(--brass); color: var(--teak); text-align: center; padding: 8px 16px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
