/* OAK Interio — editorial stylesheet
   Tailwind (CDN) handles utility layout; this file owns tokens + components. */

:root {
  /* Palette: Peat Soil / Orion Grey / Weathered Driftwood Bark / Soft Grey Brown / Ancestral Water */
  --teal: #383C33;
  --teal-2: #545759;
  --bone: #D0D0CF;
  --bone-2: #b9b5b2;
  --panel: #c4c2bf;
  --oak: #9B9390;
  --oak-deep: #594A41;
  --ink: #383C33;
  --muted: #545759;
  --line: rgba(56, 60, 51, 0.2);
  --line-light: rgba(208, 208, 207, 0.24);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(20px, 4vw, 64px);
  --safe-top: env(safe-area-inset-top, 0px);
  --font-display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --font-gallery: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --font-ui: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --font-body: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --font-hand: "Fraunces", "Cormorant Garamond", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.svc-desc { display: none; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body.site {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--oak); outline-offset: 3px; }

.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 200;
  background: var(--bone); color: var(--teal); padding: 10px 16px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
}
.h-xl { font-size: clamp(2.6rem, 7vw, 7rem); }
.h-lg { font-size: clamp(2.1rem, 4.6vw, 4.4rem); }
.h-md { font-size: clamp(1.9rem, 3.4vw, 3.2rem); }
.label {
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.lead { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.7rem, 3.3vw, 3.1rem); line-height: 1.2; }
.copy { max-width: 62ch; color: inherit; opacity: .82; }

/* ---------- layout ---------- */
.wrap { padding-inline: var(--pad); }
.section { padding-block: clamp(72px, 11vw, 168px); }
.dark { background: var(--teal); color: var(--bone); }
.dark .line { border-color: var(--line-light); }
.line { border-color: var(--line); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: calc(var(--safe-top) + 12px) clamp(10px, 2vw, 28px) auto clamp(10px, 2vw, 28px); z-index: 90;
  padding: 12px clamp(16px, 2.4vw, 32px);
  display: flex; align-items: center; justify-content: space-between;
  color: #f4f4f3;
  border-radius: 999px; border: 0; overflow: hidden;
  /* borderless liquid glass: tint + blur + drifting light, no rim */
  background: linear-gradient(120deg, rgba(255,255,255,.20), rgba(255,255,255,.06) 45%, rgba(56,60,51,.16));
  -webkit-backdrop-filter: blur(24px) saturate(200%) brightness(1.05);
  backdrop-filter: blur(24px) saturate(200%) brightness(1.05);
  box-shadow: none;
  text-shadow: 0 1px 10px rgba(30,32,27,.4);
  transition: transform .7s var(--ease), opacity .5s;
}
.site-header::before { content: ""; position: absolute; inset: -60% -10%; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,255,255,.34), transparent 70%); width: 38%; height: 220%;
  filter: blur(14px); mix-blend-mode: soft-light; animation: liquid 9s ease-in-out infinite alternate; }
@keyframes liquid { from { transform: translateX(-10%); } to { transform: translateX(260%); } }
@media (prefers-reduced-motion: reduce) { .site-header::before { animation: none; } }
.site-header > * { position: relative; }
.site-header.is-hidden { transform: translateY(calc(-100% - 40px)); opacity: 0; pointer-events: none; }
.menu-open .site-header { background: rgba(208,208,207,.08); }
.brand { display: inline-flex; flex-direction: column; line-height: 1; }
.brand b { font-family: var(--font-display); font-weight: 400; font-size: 1.8rem; letter-spacing: .1em; }
.brand span { font-size: 9px; letter-spacing: .5em; text-transform: uppercase; opacity: .75; margin-top: 5px; padding-left: 2px; }
.menu-btn { display: inline-flex; align-items: center; gap: 12px; }
.menu-btn .bars { width: 28px; height: 10px; position: relative; }
.menu-btn .bars::before, .menu-btn .bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform .5s var(--ease); }
.menu-btn .bars::before { top: 0; } .menu-btn .bars::after { bottom: 0; }
.menu-open .menu-btn .bars::before { transform: translateY(4.5px) rotate(20deg); }
.menu-open .menu-btn .bars::after { transform: translateY(-4.5px) rotate(-20deg); }

/* ---------- full screen menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 85; background: var(--teal); color: var(--bone);
  display: grid; grid-template-columns: 1fr; align-content: center;
  padding: calc(var(--safe-top) + 110px) var(--pad) 48px;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .9s var(--ease), visibility 0s linear .9s;
  overflow-y: auto;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .9s var(--ease), visibility 0s; }
.menu-grid { display: grid; gap: 48px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .menu-grid { grid-template-columns: 1.4fr 1fr; align-items: end; } }
.menu-links { list-style: none; margin: 0; padding: 0; }
.mask { display: block; overflow: hidden; }
.mask > span { display: block; transform: translateY(105%); }
.menu-open .menu .mask > span { transform: none; transition: transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 60ms + 260ms); }
.menu-links a { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.6rem, 7vw, 6rem); line-height: 1.08; display: inline-block; transition: color .3s, transform .5s var(--ease); }
.menu-links a:hover, .menu-links a[aria-current="page"] { color: var(--oak); }
.menu-side { font-size: 14px; opacity: .85; display: grid; gap: 22px; }
.menu-side a:hover { color: var(--oak); }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; color: var(--bone); background: var(--teal); }
.hero-media { position: absolute; inset: -8% 0; will-change: transform; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.hero-slide.is-active img { animation: drift 14s ease-out forwards; }
@keyframes drift { from { transform: scale(1.08); } to { transform: scale(1.0); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(56,60,51,.55) 0%, rgba(56,60,51,.1) 38%, rgba(56,60,51,.78) 100%); }
.hero-copy { position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(36px, 8vh, 96px); display: grid; gap: 28px; }
.hero-foot { display: flex; flex-wrap: wrap; gap: 20px 48px; justify-content: space-between; align-items: end; }
.hero-count { display: flex; gap: 10px; }
.hero-count button { width: 34px; height: 2px; background: rgba(208,208,207,.35); position: relative; overflow: hidden; }
.hero-count button::after { content: ""; position: absolute; inset: 0; background: var(--bone); transform: scaleX(0); transform-origin: left; }
.hero-count button.is-active::after { animation: fill 6s linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }
.scroll-cue { display: inline-flex; align-items: center; gap: 14px; }
.scroll-cue i { width: 1px; height: 42px; background: rgba(208,208,207,.4); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -100%; width: 1px; height: 100%; background: var(--bone); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

/* ---------- reveal helpers ---------- */
.line-mask { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.line-mask > span { display: block; will-change: transform; }
.js [data-split] { visibility: visible; }
.js [data-fade] { opacity: 0; transform: translateY(24px); }
.frame { position: relative; overflow: hidden; background: var(--bone-2); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame.parallax img { height: 118%; margin-top: -9%; will-change: transform; }
.js [data-clip] { clip-path: inset(100% 0 0 0); }

/* ---------- links / buttons ---------- */
.link { display: inline-flex; align-items: center; gap: 14px; padding-bottom: 6px; position: relative; }
.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: right; transition: transform .7s var(--ease); }
.link:hover::after { transform: scaleX(.0); transform-origin: left; }
.link svg { width: 22px; height: 10px; transition: transform .5s var(--ease); }
.link:hover svg { transform: translateX(6px); }
.btn { display: inline-flex; align-items: center; justify-content: center; border: 1px solid currentColor; padding: 16px 30px; transition: background-color .5s, color .5s, border-color .5s; }
.btn:hover { background: var(--bone); color: var(--teal); border-color: var(--bone); }
.btn.solid { background: var(--oak); border-color: var(--oak); color: var(--teal); }
.btn.solid:hover { background: var(--bone); border-color: var(--bone); }
.btn.ink:hover { background: var(--teal); color: var(--bone); border-color: var(--teal); }

/* ---------- featured (pinned cross fade) ---------- */
.feature { position: relative; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; background: var(--teal); color: var(--bone); }
.feature-stack { position: absolute; inset: 0; }
.feature-stack figure { position: absolute; inset: 0; margin: 0; opacity: 0; }
.feature-stack figure:first-child { opacity: 1; }
.feature-stack img { width: 100%; height: 100%; object-fit: cover; }
.feature-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(56,60,51,.78) 0%, rgba(56,60,51,.15) 60%), linear-gradient(0deg, rgba(56,60,51,.6), transparent 40%); }
.feature-copy { position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(32px, 7vh, 80px); display: grid; gap: 22px; max-width: 760px; }
.feature-meta { display: flex; flex-wrap: wrap; gap: 8px 36px; }
.feature-meta div { display: grid; gap: 2px; }
.feature-meta dt { opacity: .6; } .feature-meta dd { margin: 0; }
.feature-cap { position: absolute; right: var(--pad); bottom: clamp(32px, 7vh, 80px); text-align: right; display: grid; gap: 10px; }
.feature-ticks { display: flex; gap: 8px; justify-content: flex-end; }
.feature-ticks i { width: 26px; height: 2px; background: rgba(208,208,207,.3); transition: background-color .5s, width .6s var(--ease); }
.feature-ticks i.on { background: var(--bone); width: 44px; }
@media (max-width: 700px) { .feature-cap { left: var(--pad); text-align: left; bottom: auto; top: 110px; } .feature-ticks { justify-content: flex-start; } }

/* ---------- drag slider ---------- */
.rail { display: flex; gap: clamp(14px, 2vw, 28px); overflow-x: auto; padding-inline: var(--pad); scroll-snap-type: x proximity; scroll-padding-inline: var(--pad); scrollbar-width: none; cursor: grab; -webkit-overflow-scrolling: touch; }
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.is-dragging a { pointer-events: none; }
.card { flex: 0 0 clamp(260px, 30vw, 440px); scroll-snap-align: start; display: grid; gap: 16px; }
.card .frame { aspect-ratio: 3 / 4; }
.card img { transition: transform 1.2s var(--ease); }
.card:hover img { transform: scale(1.05); }
.card h3 { margin: 0; font-family: var(--font-gallery); font-weight: 400; font-size: 1.35rem; line-height: 1.2; letter-spacing: .02em; }

/* ---------- services list ---------- */
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-light); }
.svc { border-bottom: 1px solid var(--line-light); transition: opacity .5s; }
.svc-head { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: baseline; text-align: left; padding-block: clamp(18px, 2.6vw, 34px); }
.svc-name { font-family: var(--font-display); font-weight: 300; font-size: clamp(2rem, 4.8vw, 4.4rem); line-height: 1.04; text-transform: lowercase; transition: transform .7s var(--ease), color .4s; }
.svc-desc { max-width: 56ch; opacity: .75; font-size: 15px; margin: 0; }
.svc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
.svc-body > div { overflow: hidden; }
.svc.is-open .svc-body { grid-template-rows: 1fr; }
.svc-body .frame { aspect-ratio: 16 / 10; margin-bottom: 24px; }
.svc-body p { margin: 0 0 24px; opacity: .8; }
@media (hover: hover) and (pointer: fine) {
  .svc-list:hover .svc { opacity: .35; }
  .svc-list .svc:hover { opacity: 1; }
  .svc:hover .svc-name { transform: translateX(14px); color: var(--oak); }
  .svc-body { display: none; }
  .svc.is-open .svc-body { display: grid; }
  .svc-desc { display: block; grid-column: 1; margin-top: -4px; }
  .svc-head .label { opacity: .6; }
}
.peek { position: fixed; left: 0; top: 0; width: clamp(240px, 24vw, 380px); aspect-ratio: 4 / 5; pointer-events: none; z-index: 60; overflow: hidden; opacity: 0; transform: translate(-50%, -50%) scale(.85); background: var(--teal-2); }
.peek img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; }
.peek img.on { opacity: 1; }

/* ---------- process / values ---------- */
.steps { display: grid; gap: 0; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } .steps li { border-left: 1px solid var(--line); } .steps li:first-child { border-left: 0; } }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { padding: 28px 24px 36px 0; display: grid; gap: 14px; align-content: start; }
@media (min-width: 900px) { .steps li { padding-left: 24px; } .steps li:first-child { padding-left: 0; } }
.steps .n { font-family: var(--font-display); font-size: 3.4rem; line-height: 1; color: var(--oak-deep); }
.steps h3 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; line-height: 1.15; }
.steps p { margin: 0; opacity: .78; font-size: 15px; }
.values { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .values { grid-template-columns: repeat(3, 1fr); gap: 56px; } }
.values h3 { margin: 0 0 12px; font-family: var(--font-display); font-weight: 300; font-size: 2rem; line-height: 1.1; }
.values p { margin: 0; opacity: .78; font-size: 15px; }

/* ---------- film ---------- */
.film { position: relative; width: min(100%, 380px); aspect-ratio: 478 / 850; margin-inline: auto; background: var(--teal-2); overflow: hidden; }
.film video { width: 100%; height: 100%; object-fit: cover; }
.film button { position: absolute; left: 14px; bottom: 14px; z-index: 2; width: 46px; height: 46px; border: 1px solid rgba(208,208,207,.7); border-radius: 50%; display: grid; place-items: center; color: var(--bone); background: rgba(56,60,51,.35); backdrop-filter: blur(6px); transition: background-color .4s; }
.film button:hover { background: rgba(56,60,51,.7); }

/* ---------- film (full-width background video) ---------- */
.film-bg { position: relative; width: 100%; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; background: var(--teal); color: var(--bone); display: flex; align-items: flex-end; }
.film-bg__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-bg__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(56,60,51,.78) 0%, rgba(56,60,51,.28) 50%, rgba(56,60,51,.08) 100%); pointer-events: none; }
.film-bg__copy { position: relative; z-index: 1; width: 100%; max-width: 720px; padding: clamp(24px,5vw,72px); padding-bottom: calc(clamp(24px,5vw,72px) + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: clamp(14px,1.6vw,22px); }
.film-bg__toggle { position: absolute; right: clamp(20px,3vw,48px); bottom: calc(clamp(24px,5vw,72px) + env(safe-area-inset-bottom, 0px)); z-index: 2; width: 46px; height: 46px; border: 1px solid rgba(208,208,207,.7); border-radius: 50%; display: grid; place-items: center; color: var(--bone); background: rgba(56,60,51,.35); backdrop-filter: blur(6px); transition: background-color .4s; }
.film-bg__toggle:hover { background: rgba(56,60,51,.7); }
.film-bg__sound { position: absolute; right: calc(clamp(20px,3vw,48px) + 58px); bottom: calc(clamp(24px,5vw,72px) + env(safe-area-inset-bottom, 0px)); z-index: 2; width: 46px; height: 46px; border: 1px solid rgba(208,208,207,.7); border-radius: 50%; display: grid; place-items: center; color: var(--bone); background: rgba(56,60,51,.35); backdrop-filter: blur(6px); transition: background-color .4s; }
.film-bg__sound:hover { background: rgba(56,60,51,.7); }
@media (prefers-reduced-motion: reduce) { .film-bg__video { display: none; } .film-bg { background: var(--teal) url("../assets/img/oak-film-poster.jpg") center / cover; } .film-bg__toggle, .film-bg__sound { display: none; } }

/* ---------- team ---------- */
.person { display: grid; gap: 16px; }
.person .frame { aspect-ratio: 4 / 5; }
.person img { filter: grayscale(1); transition: filter .8s var(--ease), transform 1.2s var(--ease); }
.person:hover img { filter: grayscale(0); transform: translateY(-6px) scale(1.02); }
.monogram { display: grid; place-items: center; width: 100%; height: 100%; background: var(--teal-2); color: var(--oak); font-family: var(--font-display); font-size: 6rem; font-weight: 300; }
.person h3 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 1.9rem; line-height: 1.1; }

/* ---------- projects index ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.filters button { padding: 8px 0; opacity: .5; border-bottom: 1px solid transparent; transition: opacity .3s, border-color .3s; }
.filters button:hover { opacity: 1; }
.filters button[aria-pressed="true"] { opacity: 1; border-color: currentColor; }
.grid-projects { display: grid; gap: clamp(28px, 4vw, 56px) clamp(16px, 2vw, 32px); grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid-projects { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .grid-projects { grid-template-columns: repeat(3, 1fr); } }
.pcard { display: grid; gap: 14px; align-content: start; }
.pcard .frame { aspect-ratio: 3 / 4; }
.pcard.wide .frame { aspect-ratio: 4 / 3; }
.pcard img { transition: transform 1.3s var(--ease); }
.pcard:hover img { transform: scale(1.05); }
.pcard h3 { margin: 0; font-family: var(--font-gallery); font-weight: 400; font-size: 1.4rem; line-height: 1.2; letter-spacing: .02em; }
.pcard .meta { display: flex; justify-content: space-between; gap: 12px; opacity: .7; }
.pcard .more { overflow: hidden; height: 1.4em; }
.pcard .more span { display: block; transition: transform .6s var(--ease); }
.pcard:hover .more span { transform: translateY(-110%); }
.pcard .more span + span { color: var(--oak-deep); }

/* ---------- gallery / lightbox ---------- */
.masonry { columns: 1; column-gap: clamp(12px, 1.6vw, 24px); }
@media (min-width: 600px) { .masonry { columns: 2; } }
@media (min-width: 1000px) { .masonry { columns: 3; } }
@media (min-width: 1500px) { .masonry { columns: 4; } }
.masonry button { display: block; width: 100%; break-inside: avoid; margin-bottom: clamp(12px, 1.6vw, 24px); overflow: hidden; background: var(--bone-2); position: relative; }
.masonry img { width: 100%; height: auto; transition: transform 1.2s var(--ease); min-height: 120px; }
.masonry button:hover img { transform: scale(1.04); }
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(8, 20, 21, .96); color: var(--bone); display: none; align-items: center; justify-content: center; }
.lightbox.is-open { display: flex; }
.lightbox figure { margin: 0; width: min(92vw, 1500px); height: 80vh; display: grid; grid-template-rows: 1fr auto; gap: 14px; justify-items: center; }
.lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; align-self: center; }
.lightbox figcaption { font-family: var(--font-gallery); opacity: .85; font-size: 13px; text-align: center; }
.lb-btn { position: absolute; width: 56px; height: 56px; display: grid; place-items: center; color: var(--bone); opacity: .8; transition: opacity .3s; }
.lb-btn:hover { opacity: 1; }
.lb-close { top: calc(var(--safe-top) + 14px); right: 14px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; left: var(--pad); top: calc(var(--safe-top) + 28px); }

/* ---------- project sequence ---------- */
.seq { display: grid; gap: clamp(20px, 3vw, 48px); }
.seq .row { display: grid; gap: clamp(16px, 2vw, 32px); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 800px) {
  .seq .two { grid-template-columns: 1fr 1fr; }
  .seq .offset { grid-template-columns: 7fr 5fr; }
  .seq .offset.flip { grid-template-columns: 5fr 7fr; }
  .seq .offset > :nth-child(2) { margin-top: 18vh; }
  .seq .offset.flip > :nth-child(1) { margin-top: 18vh; }
  .seq .offset.flip > :nth-child(2) { margin-top: 0; }
}
.seq button { display: block; width: 100%; text-align: left; }
.seq .frame { width: 100%; }
.ar-land { aspect-ratio: 4 / 3; } .ar-port { aspect-ratio: 3 / 4; } .ar-wide { aspect-ratio: 16 / 9; } .ar-sq { aspect-ratio: 1; }
.seq figcaption { margin-top: 10px; opacity: .65; font-size: 13px; }
.credits { display: grid; gap: 18px 40px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.credits dt { opacity: .55; margin-bottom: 4px; } .credits dd { margin: 0; }
.next { position: relative; display: block; height: 70vh; min-height: 420px; overflow: hidden; color: var(--bone); }
.next img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.next:hover img { transform: scale(1.04); }
.next::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(56,60,51,.72), rgba(56,60,51,.2)); }
.next .in { position: absolute; z-index: 1; left: var(--pad); right: var(--pad); bottom: clamp(28px, 6vh, 70px); }

/* ---------- forms ---------- */
.field { display: grid; gap: 8px; }
.field input, .field textarea, .field select { width: 100%; background: transparent; color: inherit; border: 0; border-bottom: 1px solid currentColor; padding: 12px 0; font: inherit; border-radius: 0; }
.field input::placeholder, .field textarea::placeholder { color: inherit; opacity: .45; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--oak); }
.form-note { font-size: 13px; opacity: .65; }
.form-status { min-height: 1.5em; color: var(--oak); }

/* ---------- footer ---------- */
.footer { position: relative; overflow: hidden; background: var(--teal); color: var(--bone); isolation: isolate; }
.footer-bg { position: absolute; inset: 0; z-index: -1; }
.footer-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease; }
.footer-bg img.on { opacity: .32; }
.footer-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--teal) 0%, rgba(56,60,51,.55) 40%, rgba(56,60,51,.9) 100%); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; }
.footer-links a { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.4rem, 6vw, 5.6rem); line-height: 1.12; display: inline-block; transition: transform .6s var(--ease), color .3s; }
.footer-links a:hover { transform: translateX(14px); color: var(--oak); }
.footer small, .footer .small { font-size: 13px; opacity: .7; }
.social { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.social a:hover { color: var(--oak); }
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 70; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(208,208,207,.5); background: rgba(56,60,51,.85); color: var(--bone); display: grid; place-items: center; opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .5s, transform .6s var(--ease), background-color .3s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--oak); color: var(--teal); }
.whatsapp { position: fixed; left: 18px; bottom: 18px; z-index: 70; display: none; }
@media (max-width: 700px) { .whatsapp { display: inline-flex; } }

/* ---------- cursor + transitions ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 300; width: 78px; height: 78px; margin: -39px 0 0 -39px; border-radius: 50%; pointer-events: none; display: grid; place-items: center; background: var(--bone); color: var(--teal); mix-blend-mode: normal; transform: translate(-100px, -100px) scale(0); transition: opacity .3s; }
.cursor span { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.cursor-dot { position: fixed; left: 0; top: 0; z-index: 301; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--oak); pointer-events: none; transform: translate(-100px, -100px); }
@media (hover: none), (pointer: coarse) { .cursor, .cursor-dot, .peek { display: none !important; } }
.wipe { position: fixed; inset: 0; z-index: 500; background: var(--teal); transform: scaleY(0); transform-origin: bottom; pointer-events: none; display: grid; place-items: center; color: var(--bone); }
.js .wipe { transform: scaleY(0); transform-origin: top; }
.wipe b { font-family: var(--font-display); font-weight: 400; font-size: 2.2rem; letter-spacing: .3em; opacity: .9; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { min-height: 62vh; display: grid; align-content: end; padding: calc(var(--safe-top) + 170px) var(--pad) clamp(40px, 7vw, 96px); background: var(--teal); color: var(--bone); }

/* The site carries the quiet precision of an editorial interiors journal:
   pale mineral surfaces, deep teal, warm metal and high-contrast serif type. */
.home-note {
  max-width: 760px;
  margin: clamp(54px, 9vw, 128px) auto 0;
  padding: clamp(26px, 5vw, 64px);
  background: var(--panel);
  border-left: 1px solid var(--oak);
}
.home-note .label { color: var(--oak-deep); }
.home-note h2 { margin: 24px 0 14px; max-width: 15ch; }
.home-note > p:not(.label) { max-width: 60ch; opacity: .78; }
.faq-section { background: var(--panel); }
.faq-section h2 { margin: 0 0 26px; }
.faq-item { border-top: 1px solid var(--line); padding: 19px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.15;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--oak-deep); font-family: var(--font-ui); font-size: 1rem; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { max-width: 66ch; margin: 14px 0 0; opacity: .75; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-split], .js [data-fade], .js [data-clip] { visibility: visible; opacity: 1; transform: none; clip-path: none; }
  .js .wipe { transform: scaleY(0); }
}
@media print { .site-header, .menu, .to-top, .wipe, .cursor, .cursor-dot { display: none !important; } }

/* ---------- layout helpers (kept in CSS so the page holds together even if the Tailwind CDN is blocked) ---------- */
.cols { display: grid; gap: clamp(28px, 5vw, 80px); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) {
  .cols.c-2 { grid-template-columns: 1fr 1fr; }
  .cols.c-5-7 { grid-template-columns: 5fr 7fr; }
  .cols.c-7-5 { grid-template-columns: 7fr 5fr; }
  .cols.c-4-8 { grid-template-columns: 4fr 8fr; }
  .cols.center { align-items: center; }
}
.team { display: grid; gap: clamp(20px, 3vw, 48px); grid-template-columns: repeat(auto-fit, minmax(240px, 340px)); }
.why { display: grid; gap: 0; grid-template-columns: 1fr; border-top: 1px solid var(--line); list-style: none; margin: 0; padding: 0; }
@media (min-width: 800px) { .why { grid-template-columns: 1fr 1fr; column-gap: clamp(28px, 5vw, 80px); } }
.why li { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.why b { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; line-height: 1.15; }
.why span { opacity: .75; font-size: 15px; }
.facts { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.facts dt { opacity: .55; margin-bottom: 2px; } .facts dd { margin: 0; }
.tick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.tick-list li { padding-left: 30px; position: relative; }
.tick-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 16px; height: 1px; background: var(--oak); }
.stack-s > * + * { margin-top: 20px !important; } .stack-m > * + * { margin-top: 32px !important; } .stack-l > * + * { margin-top: 56px !important; }
.row-between { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: end; }
.actions { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.hr { height: 1px; background: var(--line); border: 0; margin: 0; }
.dark .hr { background: var(--line-light); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.bg-alt { background: var(--bone-2); }
.bg-teal2 { background: var(--teal-2); color: var(--bone); }
.hero .h-xl { max-width: 15ch; }
.page-hero .h-xl { max-width: 16ch; }
@media (max-width: 700px) {
  .page-hero { min-height: 54vh; }
  .home-note { margin-inline: 0; }
  .faq-section .cols { gap: 24px; }
}


/* ================= Phase 2 additions ================= */
.lead { font-family: var(--font-display); font-weight: 400; line-height: 1.3; }
.svc-name, .menu-links a, .footer-links a, .steps h3, .values h3, .why b, .person h3, .faq-item summary { font-weight: 400; }
.footer-links a, .menu-links a { letter-spacing: .01em; }

/* gallery card borders */
.card .frame, .pcard .frame, .gallery-grid figure, .seq .frame { outline: 1px solid rgba(56,60,51,.35); outline-offset: -1px; box-shadow: 0 0 0 6px var(--bone), 0 0 0 7px rgba(89,74,65,.55); }
.card .frame, .pcard .frame { margin: 7px 7px 14px; }
.dark .card .frame, .bg-teal2 .card .frame { box-shadow: 0 0 0 6px var(--teal), 0 0 0 7px rgba(155,147,144,.6); }

/* ---- Work across Bangalore: large, bold ---- */
.across { padding: clamp(64px, 10vw, 150px) var(--pad); background: var(--oak-deep); color: var(--bone); position: relative; overflow: hidden; text-align: left; }
.across .label { opacity: .75; margin: 0 0 clamp(14px,2vw,28px); }
.across-title { margin: 0; font-family: var(--font-ui); font-weight: 700; text-transform: uppercase; line-height: .92; letter-spacing: -.035em; font-size: clamp(3.1rem, 12.4vw, 13.5rem); }
.across-title span { display: block; }
.across-title .accent { color: var(--oak); -webkit-text-stroke: 0; }
.across-sub { margin: clamp(22px,3vw,44px) 0 0; max-width: 62ch; font-size: clamp(1rem,1.5vw,1.25rem); opacity: .85; }
.across::after { content: ""; position: absolute; right: -4vw; bottom: -6vw; width: clamp(180px, 34vw, 520px); aspect-ratio: 1; border: 1px solid rgba(208,208,207,.22); border-radius: 50%; box-shadow: 0 0 0 clamp(18px,3vw,44px) rgba(208,208,207,.05), 0 0 0 clamp(40px,6vw,88px) rgba(208,208,207,.04); pointer-events: none; }
.across-mini { font-family: var(--font-ui); font-weight: 700; text-transform: uppercase; letter-spacing: -.02em; font-size: clamp(1.4rem, 3.4vw, 3rem); line-height: 1; margin: 0 0 18px; }

/* ---- Who we are: long-form story rows, 16:9 images, no cards ---- */
.story { display: grid; gap: clamp(56px, 8vw, 128px); margin-top: clamp(56px, 8vw, 120px); }
.story-row { display: grid; gap: clamp(24px, 4vw, 64px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .story-row { grid-template-columns: 7fr 5fr; }
  .story-row.flip { grid-template-columns: 5fr 7fr; }
  .story-row.flip .story-media { order: 2; }
}
.story-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bone-2); position: relative; }
.story-media img { width: 100%; height: 100%; object-fit: cover; }
.story-copy .label { color: var(--oak-deep); margin: 0 0 14px; }
.story-copy h2 { margin: 0 0 20px; }
.story-copy p { margin: 0 0 16px; max-width: 62ch; opacity: .86; }
.story-wide { display: grid; gap: clamp(24px, 4vw, 64px); }
@media (min-width: 900px) { .story-wide { grid-template-columns: 1fr 1fr; } }
.story-wide p { margin: 0 0 16px; opacity: .86; }

/* ---- Interior-design flourishes for empty space ---- */
.deco-host { position: relative; overflow: hidden; }
.deco-host > *:not(.deco) { position: relative; z-index: 1; }
.deco { position: absolute; pointer-events: none; z-index: 0; color: var(--oak-deep); opacity: .22; }
.deco svg { width: 100%; height: 100%; display: block; fill: none; stroke: currentColor; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.deco svg * { vector-effect: non-scaling-stroke; }
.deco-arch { right: 3vw; top: 6%; width: clamp(110px, 18vw, 280px); aspect-ratio: 1/1.6; }
.deco-pendant { left: 22vw; top: 0; width: clamp(60px, 9vw, 130px); aspect-ratio: 1/2.4; opacity: .28; }
.deco-plan { right: 2vw; bottom: 3%; width: clamp(160px, 26vw, 400px); aspect-ratio: 4/3; }
.deco-herring { inset: 0; opacity: .07; background:
  repeating-linear-gradient(45deg, var(--oak-deep) 0 1px, transparent 1px 28px),
  repeating-linear-gradient(-45deg, var(--oak-deep) 0 1px, transparent 1px 28px); }
.dark .deco, .bg-teal2 .deco, .across .deco { color: var(--bone); opacity: .16; }
.dark .deco-herring, .bg-teal2 .deco-herring { opacity: .06; background:
  repeating-linear-gradient(45deg, var(--bone) 0 1px, transparent 1px 28px),
  repeating-linear-gradient(-45deg, var(--bone) 0 1px, transparent 1px 28px); }
@media (max-width: 700px) { .deco-arch, .deco-plan { opacity: .12; } }

/* ---- Testimonials ---- */
.testimonials { background: var(--panel); }
.testimonials h2 { margin: 0 0 clamp(28px,4vw,56px); }
.t-grid { display: grid; gap: clamp(28px, 4vw, 56px); grid-template-columns: 1fr; }
@media (min-width: 900px) { .t-grid { grid-template-columns: repeat(3, 1fr); } }
.quote { margin: 0; padding: 0 0 0 clamp(14px,2vw,26px); border-left: 1px solid var(--oak-deep); }
.quote blockquote { margin: 0 0 16px; font-family: var(--font-hand); font-size: clamp(1.7rem, 2.6vw, 2.35rem); line-height: 1.2; color: var(--oak-deep); }
.quote figcaption { font-family: var(--font-ui); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.t-invite { font-family: var(--font-hand); font-size: clamp(1.9rem, 3.2vw, 3rem); line-height: 1.2; color: var(--oak-deep); max-width: 30ch; margin: 0 0 22px; }


/* ================= Fraunces: one family, many voices ================= */
body.site { font-variation-settings: "opsz" 14, "SOFT" 30, "WONK" 0; font-weight: 400; }
.display { font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 1; font-weight: 300; letter-spacing: -.02em; }
.h-xl { font-weight: 250; font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 1; }
.h-xl em, .h-lg em { font-style: italic; }
.h-lg { font-weight: 450; font-variation-settings: "opsz" 120, "SOFT" 60, "WONK" 0; }
.h-md { font-weight: 600; font-variation-settings: "opsz" 72, "SOFT" 100, "WONK" 0; letter-spacing: -.01em; }
.lead { font-style: italic; font-weight: 300; font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }
.label { font-weight: 650; font-variation-settings: "opsz" 9, "SOFT" 0, "WONK" 0; letter-spacing: .16em; }
.btn, .link { font-weight: 600; font-variation-settings: "opsz" 14, "SOFT" 100; }
.brand b { font-weight: 800; font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 0; letter-spacing: .12em; }
.brand span { font-weight: 600; }
.menu-links a { font-weight: 200; font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 1; }
.menu-links a:hover { font-style: italic; }
.footer-links a { font-weight: 300; font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }
.svc-name { font-weight: 350; font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 1; }
.svc:hover .svc-name { font-style: italic; }
.card h3, .pcard h3 { font-style: italic; font-weight: 650; font-variation-settings: "opsz" 48, "SOFT" 100, "WONK" 1; letter-spacing: 0; font-size: 1.6rem; }
.lightbox figcaption, .feature-caption { font-style: italic; font-weight: 500; font-variation-settings: "opsz" 24, "SOFT" 100, "WONK" 1; }
.steps .n { font-weight: 900; font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 1; }
.steps h3, .values h3, .why b, .person h3 { font-weight: 600; font-variation-settings: "opsz" 48, "SOFT" 80, "WONK" 0; }
.faq-item summary { font-weight: 500; font-variation-settings: "opsz" 36, "SOFT" 100, "WONK" 0; }
.across-title { font-family: var(--font-ui); font-weight: 900; font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0; letter-spacing: -.04em; line-height: .9; }
.across-title .accent { font-style: italic; font-weight: 800; font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; text-transform: none; }
.across-mini { font-weight: 900; }
.across-sub { font-style: italic; font-weight: 300; font-variation-settings: "opsz" 36, "SOFT" 100; }
.story-copy p, .story-wide p { font-variation-settings: "opsz" 14, "SOFT" 20; font-weight: 380; }
.quote blockquote, .t-invite { font-style: italic; font-weight: 300; font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; font-size: clamp(1.6rem, 2.5vw, 2.3rem); line-height: 1.25; }
.quote figcaption { font-weight: 650; font-variation-settings: "opsz" 9; }


/* ---- Step numbers on the grey section: warm sand instead of dark brown ---- */
.bg-teal2 .steps .n, .dark .steps .n { color: #D9B88F; }

/* ---- Appointment CTA: arched doorway + cove-light glow ---- */
.appt { --appt-gold: #D9B88F; position: relative; display: inline-flex; align-items: center; gap: 18px; align-self: flex-start; padding: 12px 26px 12px 12px; background: var(--teal); color: var(--bone); text-decoration: none; isolation: isolate; border-radius: 2px; box-shadow: 0 0 0 5px var(--bone), 0 0 0 6px rgba(89,74,65,.7), 0 14px 30px -14px rgba(56,60,51,.55); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.appt::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--oak-deep); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); border-radius: inherit; }
.appt-arch { flex: none; width: 52px; height: 62px; display: grid; place-items: center; border: 1px solid rgba(217,184,143,.7); border-radius: 26px 26px 0 0; color: var(--appt-gold); transition: background-color .5s, color .5s, border-color .5s; }
.appt-arch svg { width: 24px; height: 24px; }
.appt-text { display: grid; gap: 2px; line-height: 1.15; }
.appt-text small { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--appt-gold); font-weight: 650; }
.appt-text b { font-weight: 500; font-size: 1.25rem; letter-spacing: .005em; font-variation-settings: "opsz" 48, "SOFT" 100, "WONK" 1; font-style: italic; }
.appt-go { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(208,208,207,.45); border-radius: 50%; margin-left: 6px; transition: transform .6s var(--ease), background-color .5s, color .5s, border-color .5s; }
.appt-go svg { width: 18px; height: 9px; }
.appt-glow { position: absolute; left: 12%; right: 12%; bottom: 0; height: 2px; z-index: 1; background: linear-gradient(90deg, transparent, var(--appt-gold), transparent); box-shadow: 0 0 14px 3px rgba(217,184,143,.55); opacity: .55; transition: opacity .5s, left .7s var(--ease), right .7s var(--ease); }
.appt:hover, .appt:focus-visible { transform: translateY(-3px); box-shadow: 0 0 0 5px var(--bone), 0 0 0 6px var(--oak-deep), 0 22px 36px -16px rgba(56,60,51,.7); }
.appt:hover::before, .appt:focus-visible::before { transform: scaleX(1); }
.appt:hover .appt-arch, .appt:focus-visible .appt-arch { background: var(--appt-gold); color: var(--teal); border-color: var(--appt-gold); }
.appt:hover .appt-go, .appt:focus-visible .appt-go { transform: translateX(6px); background: var(--bone); color: var(--teal); border-color: var(--bone); }
.appt:hover .appt-glow, .appt:focus-visible .appt-glow { opacity: 1; left: 0; right: 0; }
.appt:focus-visible { outline: 2px solid var(--appt-gold); outline-offset: 8px; }
@media (max-width: 480px) { .appt { gap: 12px; padding-right: 16px; } .appt-text b { font-size: 1.05rem; } .appt-go { display: none; } }
@media (prefers-reduced-motion: reduce) { .appt, .appt::before, .appt-arch, .appt-go, .appt-glow { transition: none; } }
