/* ==========================================================================
   Integrity Custom Cabinetry — site styles
   Type: Cormorant Garamond (display) + Jost (text)
   ========================================================================== */

:root {
  --paper: #F4F0E9;
  --paper-2: #EBE5DA;
  --paper-3: #E1D9CB;
  --ink: #16150F;
  --ink-2: #211F18;
  --ink-3: #2C2A22;
  --text: #2A2821;
  --muted: #625C4F;
  --line: rgba(22, 21, 15, .14);
  --line-strong: rgba(22, 21, 15, .32);
  --ivory: #F4F0E9;
  --ivory-muted: rgba(244, 240, 233, .70);
  --ivory-line: rgba(244, 240, 233, .18);
  --olive: #A9AB3C;          /* brand accent, from the logo */
  --olive-deep: #6B6D1F;     /* accent for small text on light backgrounds */

  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Jost", "Futura", "Avenir Next", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 4.2vw, 72px);
  --max: 1600px;
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-slow: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
::selection { background: var(--ink); color: var(--ivory); }

:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--ivory);
  padding: 10px 16px; font-size: 14px;
}
.skip-link:focus { top: 16px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ------------------------------------------------------------------ Type */

.display {
  font-family: var(--serif);
  font-weight: 300;
  line-height: .98;
  letter-spacing: -.012em;
}
.display em, .h2 em, .h1 em, .lead em, .quote em { font-style: italic; font-weight: 300; }

.d-xl { font-size: clamp(3rem, 6.4vw, 7rem); }
.h1   { font-family: var(--serif); font-weight: 300; font-size: clamp(2.9rem, 6vw, 6.4rem); line-height: 1; letter-spacing: -.012em; }
.h2   { font-family: var(--serif); font-weight: 300; font-size: clamp(2.3rem, 4.3vw, 4.6rem); line-height: 1.04; letter-spacing: -.01em; }
.h3   { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.3vw, 2.35rem); line-height: 1.12; }
.h4   { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; line-height: 1.2; }

.lead {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.25vw, 2.2rem);
  line-height: 1.34;
  color: var(--ink);
}
.body-l { font-size: 18px; line-height: 1.75; }
.muted { color: var(--muted); }

.label {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--ink);
}
.label--rule::before {
  content: ""; width: 36px; height: 1px; background: var(--olive); flex: none;
}
.on-dark .label, .label--light { color: var(--ivory); }

.prose p + p { margin-top: 1.1em; }
.prose { max-width: 60ch; }

/* ---------------------------------------------------------------- Layout */

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 1100px; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.2vw, 36px); }

.section { padding: clamp(72px, 9vw, 140px) 0; }
.section--tight { padding: clamp(56px, 6.5vw, 104px) 0; }
.section--flush-top { padding-top: 0; }

.on-dark { background: var(--ink); color: var(--ivory-muted); }
.on-dark .h1, .on-dark .h2, .on-dark .h3, .on-dark .lead, .on-dark .display { color: var(--ivory); }
.on-stone { background: var(--paper-2); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.on-dark .rule { background: var(--ivory-line); }

/* --------------------------------------------------------------- Buttons */

.btn {
  display: inline-flex; align-items: center; gap: 18px;
  padding: 18px 30px;
  font-family: var(--sans);
  font-size: 12.5px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  line-height: 1;
  border: 1px solid var(--ink);
  background: var(--ink); color: var(--ivory);
  transition: background .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
}
.btn:hover { background: transparent; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--ivory); }
.btn--light { border-color: var(--ivory); background: var(--ivory); color: var(--ink); }
.btn--light:hover { background: transparent; color: var(--ivory); }
.btn--ghost-light { border-color: rgba(244,240,233,.6); background: transparent; color: var(--ivory); }
.btn--ghost-light:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }

.arrow {
  position: relative; display: inline-block; width: 26px; height: 1px; background: currentColor;
  transition: width .5s var(--ease);
}
.arrow::after {
  content: ""; position: absolute; right: 0; top: -3.5px;
  width: 8px; height: 8px; border-top: 1px solid currentColor; border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.btn:hover .arrow, .link:hover .arrow { width: 38px; }

.link {
  display: inline-flex; align-items: center; gap: 16px;
  font-size: 12.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  padding-bottom: 8px; border-bottom: 1px solid var(--line-strong);
  transition: border-color .4s var(--ease);
}
.link:hover { border-color: currentColor; }
.on-dark .link { color: var(--ivory); border-color: var(--ivory-line); }
.on-dark .link:hover { border-color: var(--ivory); }

/* ---------------------------------------------------------------- Header */

.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  color: var(--ivory);
  transition: background .5s var(--ease), color .5s var(--ease), transform .6s var(--ease), box-shadow .5s var(--ease);
}
.header__inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { position: relative; display: block; width: 176px; flex: none; }
.brand img { width: 100%; transition: opacity .5s var(--ease); }
.brand .brand__dark { position: absolute; inset: 0; opacity: 0; }

.nav { display: flex; align-items: center; gap: clamp(22px, 2.6vw, 44px); }
.nav a {
  position: relative;
  font-size: 12.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  padding: 6px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav .nav__tel { letter-spacing: .12em; opacity: .85; }
.nav .nav__cta {
  border: 1px solid currentColor; padding: 12px 20px;
  transition: background .4s var(--ease), color .4s var(--ease);
}
.nav .nav__cta::after { display: none; }
.header--solid .nav .nav__cta:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.header:not(.header--solid) .nav .nav__cta:hover { background: var(--ivory); color: var(--ink); }

.header--solid {
  background: rgba(244, 240, 233, .94);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.header--solid .brand__light { opacity: 0; }
.header--solid .brand__dark { opacity: 1; }
.header--hidden { transform: translateY(-100%); }

/* Pages without a dark hero start solid */
.page-light .header { background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.page-light .header .brand__light { opacity: 0; }
.page-light .header .brand__dark { opacity: 1; }
.page-light .header .nav .nav__cta:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }

.burger { display: none; width: 44px; height: 44px; position: relative; margin-right: -10px; }
.burger span {
  position: absolute; left: 10px; right: 10px; height: 1px; background: currentColor;
  transition: transform .5s var(--ease), top .5s var(--ease);
}
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 26px; }
.menu-open .burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--ink); color: var(--ivory);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 40px) var(--gutter) 40px;
  opacity: 0; visibility: hidden;
  transition: opacity .5s var(--ease), visibility 0s linear .5s;
}
.menu-open .menu { opacity: 1; visibility: visible; transition: opacity .5s var(--ease); }
.menu nav { display: flex; flex-direction: column; gap: 6px; }
.menu nav a {
  font-family: var(--serif); font-weight: 300; font-size: clamp(2.6rem, 11vw, 4rem); line-height: 1.15;
}
.menu__meta { display: grid; gap: 10px; font-size: 15px; color: var(--ivory-muted); }
.menu__meta a { color: var(--ivory); }
.menu-open .header { color: var(--ivory); background: transparent; box-shadow: none; }
.menu-open .header .brand__light { opacity: 1; }
.menu-open .header .brand__dark { opacity: 0; }

@media (max-width: 1080px) {
  .nav .nav__tel { display: none; }
}
@media (max-width: 880px) {
  :root { --header-h: 72px; }
  .nav { display: none; }
  .burger { display: block; }
  .brand { width: 150px; }
}

/* ------------------------------------------------------------------ Hero */

.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 600px;
  color: var(--ivory); background: var(--ink); overflow: hidden;
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 1.8s var(--ease);
}
.hero__slide img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08);
  transition: transform 9s linear;
}
.hero__slide.is-active { opacity: 1; }
.hero__slide.is-active img { transform: scale(1); }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(14,13,9,.58) 0%, rgba(14,13,9,.22) 14%, rgba(14,13,9,0) 26%),
    radial-gradient(ellipse 72% 90% at 0% 80%, rgba(14,13,9,.74) 0%, rgba(14,13,9,.46) 48%, rgba(14,13,9,0) 100%),
    linear-gradient(0deg, rgba(14,13,9,.6) 0%, rgba(14,13,9,.25) 16%, rgba(14,13,9,0) 34%);
}
.hero__content {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding-bottom: clamp(36px, 6vw, 80px);
}
.hero__title { max-width: 12ch; margin-top: 0; font-size: clamp(2.5rem, 5vw, 5.55rem); text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero__foot {
  margin-top: clamp(20px, 2.4vw, 32px);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
}
.hero__intro { max-width: 44ch; font-size: 17px; color: rgba(244,240,233,.86); }
.hero__meta { display: flex; align-items: center; gap: 28px; flex: none; }
.hero__caption {
  font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; color: rgba(244,240,233,.8);
  min-width: 15ch; text-align: right;
}
.hero__caption a:hover { color: var(--ivory); }
.hero__dots { display: flex; gap: 10px; }
.hero__dots button {
  width: 34px; height: 24px; position: relative;
}
.hero__dots button::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(244,240,233,.35);
}
.hero__dots button::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--ivory);
  transform: scaleX(0); transform-origin: left;
}
.hero__dots button.is-active::after { animation: dot 7s linear forwards; }
@keyframes dot { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .hero__slide img { transform: none !important; transition: none; }
  .hero__dots button.is-active::after { animation: none; transform: scaleX(1); }
}
@media (max-width: 760px) {
  .hero__foot { flex-direction: column; align-items: flex-start; }
  .hero__meta { width: 100%; justify-content: space-between; flex-direction: row-reverse; }
  .hero__caption { text-align: left; }
}

/* ---------------------------------------------------------- Section head */

.shead { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.2vw, 36px); align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.shead__title { grid-column: 1 / span 7; }
.shead__title .h2 { margin-top: 22px; }
.shead__aside { grid-column: 9 / span 4; }
.shead__aside p + .link { margin-top: 26px; }
@media (max-width: 900px) {
  .shead__title, .shead__aside { grid-column: 1 / -1; }
  .shead__aside { margin-top: 24px; }
}

/* --------------------------------------------------------- Media / frame */

.frame { position: relative; overflow: hidden; background: var(--paper-3); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-slow); }
a:hover .frame img, .frame--zoom:hover img { transform: scale(1.035); }
.on-dark .frame { background: var(--ink-3); }

/* ------------------------------------------------------- Featured (home) */

.featured { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.2vw, 36px); row-gap: clamp(48px, 5.5vw, 96px); }
.feat { display: block; }
.feat__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-top: 22px; }
.feat__name { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 2.4vw, 2.5rem); line-height: 1.1; color: var(--ink); }
.feat__type { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); text-align: right; }

/* Paired rows (wide + narrow) share one height that fits a laptop screen;
   the middle project runs full width as a panoramic pause. */
.featured { --pair-h: clamp(320px, 60vh, 600px); }
.feat--a { grid-column: 1 / span 8; }
.feat--b { grid-column: 9 / span 4; }
.feat--c { grid-column: 1 / -1; }
.feat--d { grid-column: 1 / span 4; }
.feat--e { grid-column: 5 / span 8; }
.feat--a .frame, .feat--b .frame, .feat--d .frame, .feat--e .frame { height: var(--pair-h); }
.feat--c .frame { aspect-ratio: 21 / 9; }
@media (max-width: 900px) {
  .feat--a, .feat--b, .feat--c, .feat--d, .feat--e { grid-column: 1 / -1; }
  .feat--a .frame, .feat--b .frame, .feat--d .frame, .feat--e .frame { height: auto; aspect-ratio: 4 / 3; }
  .feat--c .frame { aspect-ratio: 3 / 2; }
  .feat__meta { flex-direction: column; gap: 6px; }
  .feat__type { text-align: left; }
}

/* ------------------------------------------------------------ Full bleed */

.bleed { position: relative; height: clamp(520px, 92vh, 1000px); overflow: hidden; color: var(--ivory); background: var(--ink); }
.bleed img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; will-change: transform; }
.bleed__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14,13,9,.72), rgba(14,13,9,.08) 60%); }
.bleed__content { position: absolute; left: 0; right: 0; bottom: clamp(40px, 7vw, 100px); }
.quote { font-family: var(--serif); font-weight: 300; font-size: clamp(2.3rem, 4.4vw, 4.8rem); line-height: 1.04; letter-spacing: -.01em; max-width: 14ch; color: var(--ivory); }
.quote-cite { display: block; margin-top: 28px; font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase; color: rgba(244,240,233,.8); font-style: normal; }
.bleed__credit { position: absolute; right: var(--gutter); bottom: clamp(40px, 7vw, 100px); font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; color: rgba(244,240,233,.8); }
.bleed__credit:hover { color: var(--ivory); }
@media (max-width: 760px) { .bleed__credit { position: static; display: inline-block; margin-top: 18px; } }

/* ----------------------------------------------------------------- Rooms */

.rooms { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.2vw, 36px); }
.rooms__list { grid-column: 1 / span 7; border-top: 1px solid var(--line); }
.room {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px;
  padding: clamp(14px, 1.5vw, 22px) 0; border-bottom: 1px solid var(--line);
  transition: padding .6s var(--ease), color .4s var(--ease);
}
.room__t { font-family: var(--serif); font-weight: 300; font-size: clamp(1.6rem, 2.45vw, 2.5rem); line-height: 1.05; color: var(--ink); transition: transform .6s var(--ease); }
.room .arrow { color: var(--ink); transition: width .5s var(--ease); }
.room:hover .room__t, .room.is-active .room__t { transform: translateX(14px); font-style: italic; }
.room:hover .arrow { width: 44px; }
.room__thumb { display: none; }
.rooms__preview { grid-column: 9 / span 4; position: relative; }
.rooms__stage { position: sticky; top: calc(var(--header-h) + 40px); aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-3); }
.rooms__stage img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.05); transition: opacity .8s var(--ease), transform 1.4s var(--ease-slow);
}
.rooms__stage img.is-active { opacity: 1; transform: none; }
.rooms__note { margin-top: 18px; font-size: 14px; color: var(--muted); }
@media (max-width: 900px) {
  .rooms__list { grid-column: 1 / -1; }
  .rooms__preview { display: none; }
  .room { grid-template-columns: 88px 1fr auto; }
  .room__thumb { display: block; width: 88px; aspect-ratio: 1; object-fit: cover; }
  .room .arrow { width: 20px; }
}

/* ----------------------------------------------------------------- Craft */

.craft__imgs { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.2vw, 36px); align-items: start; }
.craft__imgs figcaption { margin-top: 14px; font-size: 13px; letter-spacing: .06em; color: var(--ivory-muted); }
.craft__imgs figure { margin: 0; }
.craft__imgs figure { grid-column: span 4; }
.craft__imgs figure .frame { aspect-ratio: 1 / 1; }
/* Crop toward the cabinetry, away from counters and mirrors */
.craft__imgs figure:nth-child(1) img { object-position: 50% 100%; }
.craft__imgs figure:nth-child(2) img { object-position: 30% 100%; }
.craft__imgs figure:nth-child(3) img { object-position: 68% 50%; }

.steps { margin-top: clamp(56px, 6.5vw, 104px); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ivory-line); }
.step { padding: 30px 28px 0 0; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--ivory-line); }
.step__n { font-size: 12.5px; letter-spacing: .22em; color: var(--olive); }
.step h3 { margin-top: 18px; font-family: var(--serif); font-weight: 400; font-size: 1.85rem; color: var(--ivory); line-height: 1.1; }
.step p { margin-top: 14px; font-size: 15.5px; line-height: 1.7; color: var(--ivory-muted); }
@media (max-width: 960px) {
  .craft__imgs { row-gap: 32px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .step:nth-child(n+3) { margin-top: 36px; border-top: 1px solid var(--ivory-line); }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 28px 0 0; border-left: 0; }
  .step + .step { margin-top: 28px; border-top: 1px solid var(--ivory-line); }
}

/* ---------------------------------------------------------------- Story */

.story { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.2vw, 36px); align-items: center; }
.story__media { grid-column: 1 / span 5; }
.story__media .frame { aspect-ratio: 4 / 5; }
.story__text { grid-column: 7 / span 6; }
.story__text .h2 { margin-top: 22px; max-width: 16ch; }
.story__text .prose { margin-top: 34px; }
.story__sign { margin-top: 36px; display: flex; align-items: center; gap: 18px; }
.story__sign b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.7rem; color: var(--ink); }
.story__sign span { font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 900px) {
  .story__media, .story__text { grid-column: 1 / -1; }
  .story__text { margin-top: 48px; }
}

/* ------------------------------------------------------------------ CTA */

.cta { text-align: center; }
.cta .h1 { margin: 26px auto 0; max-width: 14ch; }
.cta p { margin: 30px auto 0; max-width: 46ch; }
.cta__actions { margin-top: 44px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta__small { margin-top: 30px; font-size: 14px; color: var(--muted); }
.on-dark.cta .cta__small { color: var(--ivory-muted); }

/* --------------------------------------------------------------- Footer */

.footer { background: var(--ink); color: var(--ivory-muted); padding: clamp(56px, 7vw, 104px) 0 36px; font-size: 15px; }
.footer a { color: var(--ivory); transition: opacity .3s; }
.footer a:hover { opacity: .7; }
.footer__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.2vw, 36px); row-gap: 48px; }
.footer__brand { grid-column: 1 / span 4; }
.footer__brand img { width: 200px; }
.footer__brand p { margin-top: 28px; max-width: 32ch; }
.footer__col { grid-column: span 2; }
.footer__col--wide { grid-column: span 3; }
.footer h4 { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--olive); margin-bottom: 18px; }
.footer li + li { margin-top: 8px; }
.footer__base { margin-top: clamp(64px, 8vw, 110px); padding-top: 26px; border-top: 1px solid var(--ivory-line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; }
@media (max-width: 1000px) {
  .footer__brand { grid-column: 1 / -1; }
  .footer__col, .footer__col--wide { grid-column: span 6; }
}
@media (max-width: 520px) {
  .footer__col, .footer__col--wide { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------ Page hero */

.phero { padding: calc(var(--header-h) + clamp(64px, 9vw, 140px)) 0 clamp(48px, 6vw, 88px); }
.phero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.2vw, 36px); align-items: end; }
.phero__title { grid-column: 1 / span 8; }
.phero__title .h1 { margin-top: 24px; }
.phero__aside { grid-column: 9 / span 4; }
@media (max-width: 900px) {
  .phero__title, .phero__aside { grid-column: 1 / -1; }
  .phero__aside { margin-top: 28px; }
}

/* ---------------------------------------------------------- Work index */

.filters { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-bottom: clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.filter { position: relative; font-size: 12.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding: 6px 0; transition: color .3s; }
.filter sup { font-size: 10px; letter-spacing: .05em; margin-left: 4px; }
.filter:hover { color: var(--ink); }
.filter[aria-pressed="true"] { color: var(--ink); }
.filter[aria-pressed="true"]::after { content: ""; position: absolute; left: 0; right: .2em; bottom: 0; height: 1px; background: var(--ink); }

.index { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.2vw, 36px); row-gap: clamp(64px, 7vw, 120px); }
.card { display: block; grid-column: span 6; }
.card .frame { aspect-ratio: 4 / 3; }
.card:nth-child(4n+1) { grid-column: 1 / span 7; }
.card:nth-child(4n+2) { grid-column: 9 / span 4; align-self: end; }
.card:nth-child(4n+2) .frame { aspect-ratio: 4 / 5; }
.card:nth-child(4n+3) { grid-column: 1 / span 5; }
.card:nth-child(4n+3) .frame { aspect-ratio: 4 / 5; }
.card:nth-child(4n+4) { grid-column: 7 / span 6; align-self: center; }
.card__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 20px; }
.card__name { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.2vw, 2.3rem); line-height: 1.1; color: var(--ink); }
.card__rooms { font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); text-align: right; }
.card__line { margin-top: 8px; color: var(--muted); font-size: 15.5px; max-width: 46ch; }
.card[hidden] { display: none; }
.index.is-filtered .card { grid-column: span 6 !important; align-self: start !important; }
.index.is-filtered .card .frame { aspect-ratio: 4 / 3 !important; }
@media (max-width: 800px) {
  .card, .card:nth-child(n), .index.is-filtered .card { grid-column: 1 / -1 !important; }
  .card:nth-child(n) .frame { aspect-ratio: 4 / 3; }
  .card__meta { flex-direction: column; gap: 4px; }
  .card__rooms { text-align: left; }
}

/* ------------------------------------------------------------- Project */

.pj-hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: var(--ink); color: var(--ivory); }
.pj-hero img { width: 100%; height: 100%; object-fit: cover; }
.pj-hero__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14,13,9,.62) 0%, rgba(14,13,9,.22) 26%, rgba(14,13,9,0) 45%), linear-gradient(180deg, rgba(14,13,9,.58) 0%, rgba(14,13,9,.22) 14%, rgba(14,13,9,0) 26%); }
.pj-hero__content { position: absolute; left: 0; right: 0; bottom: clamp(36px, 6vw, 80px); }
.pj-hero__content .h1 { margin-top: 0; color: var(--ivory); font-size: clamp(3rem, 6.4vw, 7rem); text-shadow: 0 2px 30px rgba(0,0,0,.25); }

.pj-intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.2vw, 36px); align-items: center; }
.pj-lead { grid-column: 1 / span 6; max-width: 26ch; }
.pj-facts { grid-column: 8 / span 5; }
.pj-facts dl { margin: 0; border-top: 1px solid var(--line); }
.pj-facts div { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 110px 1fr; gap: 16px; }
.pj-facts dt { font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.pj-facts dd { margin: 0; font-size: 16px; color: var(--ink); }
@media (max-width: 900px) {
  .pj-lead, .pj-facts { grid-column: 1 / -1; }
  .pj-facts { margin-top: 32px; }
}

.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 32px); row-gap: clamp(12px, 2vw, 32px); }
.g { position: relative; display: block; overflow: hidden; background: var(--paper-3); cursor: zoom-in; }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-slow); }
.g:hover img { transform: scale(1.025); }
.g--full { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.g--wide { grid-column: 1 / span 8; aspect-ratio: 3 / 2; }
.g--wide.g--right { grid-column: 5 / span 8; }
.g--half { grid-column: span 6; aspect-ratio: 4 / 5; }
.g--half-l { grid-column: span 6; aspect-ratio: 3 / 2; }
.g--solo { grid-column: 4 / span 6; aspect-ratio: 4 / 5; }
.g--gap { margin-top: clamp(40px, 6vw, 110px); }
@media (max-width: 760px) {
  .g--full, .g--wide, .g--wide.g--right, .g--half-l { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
  .g--half { grid-column: span 6; }
  .g--solo { grid-column: 2 / span 10; }
  .g--gap { margin-top: 0; }
}

.next { display: block; position: relative; height: clamp(420px, 70vh, 760px); overflow: hidden; background: var(--ink); color: var(--ivory); }
.next img { width: 100%; height: 100%; object-fit: cover; opacity: .72; transition: transform 1.6s var(--ease-slow), opacity .8s var(--ease); }
.next:hover img { transform: scale(1.04); opacity: .6; }
.next__content { position: absolute; left: 0; right: 0; bottom: clamp(40px, 6vw, 90px); }
.next__content .h1 { margin-top: 20px; color: var(--ivory); }
.next .arrow { width: 56px; margin-left: 24px; vertical-align: middle; }
.next:hover .arrow { width: 80px; }

/* ------------------------------------------------------------ Lightbox */

.lb { position: fixed; inset: 0; z-index: 300; background: rgba(14,13,9,.97); color: var(--ivory); display: grid; grid-template-rows: auto 1fr auto; opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility 0s linear .4s; }
.lb.is-open { opacity: 1; visibility: visible; transition: opacity .4s var(--ease); }
.lb__bar, .lb__foot { display: flex; justify-content: space-between; align-items: center; padding: 18px var(--gutter); font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; }
.lb__stage { position: relative; display: flex; align-items: center; justify-content: center; padding: 0 var(--gutter); min-height: 0; }
.lb__stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb button { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ivory-line); transition: border-color .3s; }
.lb button:hover { border-color: var(--ivory); }
.lb svg { width: 16px; height: 16px; }
.lb__nav { display: flex; gap: 10px; }

/* ------------------------------------------------------------- About */

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.pillar { padding: 32px 32px 0 0; }
.pillar + .pillar { padding-left: 32px; border-left: 1px solid var(--line); }
.pillar h3 { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; line-height: 1.15; color: var(--ink); margin-top: 16px; }
.pillar p { margin-top: 14px; color: var(--text); }
@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 28px 0 0; border-left: 0; }
  .pillar + .pillar { margin-top: 28px; border-top: 1px solid var(--line); }
}

.services { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(24px, 4vw, 80px); border-top: 1px solid var(--line); }
.service { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.service__n { font-size: 12.5px; letter-spacing: .2em; color: var(--olive-deep); padding-top: 10px; }
.service h3 { font-family: var(--serif); font-weight: 400; font-size: 1.8rem; line-height: 1.15; color: var(--ink); }
.service p { margin-top: 10px; color: var(--text); font-size: 16px; }
@media (max-width: 800px) { .services { grid-template-columns: 1fr; } }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0; font-family: var(--serif); font-size: clamp(1.4rem, 2vw, 1.85rem); line-height: 1.2; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; width: 16px; height: 16px; flex: none; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; transition: transform .4s var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq details p { padding: 0 0 28px; max-width: 62ch; color: var(--text); }

.areas { display: flex; flex-wrap: wrap; gap: 10px; }
.areas li { border: 1px solid var(--line-strong); padding: 8px 16px; font-size: 14px; }

.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.2vw, 36px); }
.split__a { grid-column: 1 / span 4; }
.split__b { grid-column: 6 / span 7; }
@media (max-width: 900px) { .split__a, .split__b { grid-column: 1 / -1; } .split__b { margin-top: 36px; } }

/* ------------------------------------------------------------- Contact */

.contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.2vw, 36px); }
.contact__form { grid-column: 1 / span 7; }
.contact__info { grid-column: 9 / span 4; }
@media (max-width: 960px) { .contact__form, .contact__info { grid-column: 1 / -1; } .contact__info { margin-top: 72px; } }

.form { display: grid; gap: 34px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 10px; }
.field label { font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 18px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
  padding: 10px 0 14px; transition: border-color .3s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2316150F'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 4px center; padding-right: 28px;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: #8f887a; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field__error { font-size: 14px; color: #8A2E1E; min-height: 0; }
.field.has-error input, .field.has-error textarea { border-color: #8A2E1E; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.choice span { display: inline-block; padding: 10px 18px; border: 1px solid var(--line-strong); font-size: 14.5px; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.choice input:checked + span { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.choice input:focus-visible + span { outline: 1px solid var(--ink); outline-offset: 3px; }
.form__status { display: none; padding: 20px 24px; background: var(--paper-2); border-left: 2px solid var(--olive); }
.form__status.is-shown { display: block; }
.form__note { font-size: 14.5px; color: var(--muted); }
.form__note a { border-bottom: 1px solid var(--line-strong); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.info + .info { margin-top: 44px; padding-top: 44px; border-top: 1px solid var(--line); }
.info .label { margin-bottom: 14px; }
.info__big { font-family: var(--serif); font-size: clamp(1.7rem, 2.4vw, 2.3rem); line-height: 1.2; color: var(--ink); }
.info__big--sm { font-size: clamp(1.15rem, 1.6vw, 1.45rem); word-break: break-word; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.hours li:last-child { border-bottom: 0; }
.hours span { color: var(--muted); }

/* ------------------------------------------------------------- Reveal */

.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1.1s var(--ease), transform 1.2s var(--ease-slow); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="img"] { opacity: 1; transform: none; background: transparent; }
.js [data-reveal="img"] img { clip-path: inset(0 0 100% 0); transform: scale(1.12); transition: clip-path 1.5s var(--ease-slow), transform 2s var(--ease-slow); transition-delay: var(--d, 0s); }
.js [data-reveal="img"].is-in img { clip-path: inset(0 0 0 0); transform: scale(1); }
.js a:hover [data-reveal="img"].is-in img, .js .g[data-reveal="img"].is-in:hover img { transform: scale(1.03); transition: clip-path 1.5s var(--ease-slow), transform 1.4s var(--ease-slow); }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js [data-reveal="img"] img { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
}

/* Hero entrance */
.js .hero [data-in] { opacity: 0; transform: translateY(30px); transition: opacity 1.4s var(--ease), transform 1.6s var(--ease-slow); transition-delay: var(--d, 0s); }
.is-ready .hero [data-in] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .hero [data-in] { opacity: 1; transform: none; transition: none; } }

/* About: story columns */
.about-story__title { grid-column: 1 / span 6; }
.about-story__text { grid-column: 8 / span 5; }
@media (max-width: 900px) {
  .about-story__title, .about-story__text { grid-column: 1 / -1; }
  .about-story__text { margin-top: 36px; }
}

@media (max-width: 600px) { .hide-sm { display: none; } }
.info .label { display: flex; }
.field .choice { font-size: inherit; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink); }

/* ------------------------------------------- Clickable project cues */
.feat, .card { cursor: pointer; }
.feat .frame::before, .card .frame::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: rgba(14, 13, 9, .16); opacity: 0; transition: opacity .6s var(--ease);
}
.feat:hover .frame::before, .card:hover .frame::before,
.feat:focus-visible .frame::before, .card:focus-visible .frame::before { opacity: 1; }

.more {
  display: inline-flex; align-items: center; gap: 14px; flex: none;
  font-size: 12.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ink);
  padding-bottom: 6px; border-bottom: 1px solid var(--line-strong);
  transition: border-color .4s var(--ease);
}
.feat:hover .more, .card:hover .more { border-color: var(--ink); }
.feat:hover .more .arrow, .card:hover .more .arrow { width: 38px; }
.feat:hover .feat__name, .card:hover .card__name { font-style: italic; }
@media (max-width: 800px) {
  .card__meta, .feat__meta { gap: 10px; }
}

/* Work page: get the first photos above the fold */
.page-work .phero { padding-top: calc(var(--header-h) + clamp(40px, 5vw, 80px)); padding-bottom: clamp(28px, 3vw, 44px); }
.page-work .phero .h1 { font-size: clamp(2.6rem, 5vw, 5.2rem); }
.page-work .phero__aside p { max-width: 30ch; }
.page-work .filters { margin-bottom: clamp(28px, 3vw, 44px); gap: 8px 36px; }
@media (max-width: 600px) { .page-work .filters { gap: 10px 22px; } }


.featured__more { margin-top: clamp(44px, 5.2vw, 80px); display: flex; justify-content: center; }
.frame img.pos-right { object-position: 68% 50%; }

@media (max-width: 760px) {
  .hero__shade {
    background:
      linear-gradient(180deg, rgba(14,13,9,.58) 0%, rgba(14,13,9,.2) 14%, rgba(14,13,9,0) 24%),
      linear-gradient(0deg, rgba(14,13,9,.8) 0%, rgba(14,13,9,.55) 45%, rgba(14,13,9,0) 75%);
  }
}

/* Hero: link to the work */
.hero__link { margin-top: 22px; }
.link--light { color: var(--ivory); border-color: rgba(244,240,233,.45); }
.link--light:hover { border-color: var(--ivory); }


/* Hero headline: one phrase per line */
.hero__title { max-width: none; }
.hero__title .line { display: block; white-space: nowrap; }
@media (max-width: 600px) { .hero__title .line { white-space: normal; } .hero__title { font-size: clamp(2.2rem, 10.6vw, 2.6rem); line-height: 1.04; } }
.story__text .h2 { margin-top: 0; }
.cta .h1 { margin-top: 0; }

@media (max-width: 700px) {
  .craft__imgs figure { grid-column: 1 / -1; }
  .craft__imgs figure .frame { aspect-ratio: 4 / 3; }
}

/* Project name + arrow on one line */
.feat__meta, .card__meta { display: block; }
.name-arrow { width: 30px; margin-left: 18px; vertical-align: middle; position: relative; top: -2px; }
.feat:hover .name-arrow, .card:hover .name-arrow { width: 46px; }

/* Keep the menu readable over any photo, however bright */
.header:not(.header--solid)::before {
  content: ""; position: absolute; inset: 0 0 -40px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(14,13,9,.55) 0%, rgba(14,13,9,.25) 55%, rgba(14,13,9,0) 100%);
  transition: opacity .5s var(--ease);
}
.page-light .header::before, .menu-open .header::before { opacity: 0; }

/* Quote banner: one phrase per line */
.quote { max-width: none; }
.quote .line { display: block; }
@media (max-width: 600px) { .quote { font-size: clamp(1.55rem, 7.3vw, 2.1rem); line-height: 1.12; } }

/* Room list on touch screens: no "active" row, names never break mid-word */
@media (max-width: 900px) {
  .room.is-active .room__t, .room:hover .room__t { transform: none; font-style: normal; }
  .room__t { font-size: clamp(1.35rem, 5.6vw, 1.7rem); }
}

/* Closing buttons: equal width when stacked on phones */
@media (max-width: 600px) {
  .cta__actions { flex-direction: column; align-items: stretch; max-width: 340px; margin-left: auto; margin-right: auto; }
  .cta__actions .btn { justify-content: center; }
}
