/* ==========================================================================
   DesignVista — Kolkata interior design studio
   Hand-authored stylesheet. No framework, no build step.
   ========================================================================== */

:root {
  --bg: #FAF7F2;
  --bg-alt: #F3EEE5;
  --surface: #FFFFFF;
  --ink: #1C1917;
  --ink-2: #4A443E;
  --ink-soft: #6B635A;
  --on-dark: #F3ECE0;
  --deep: #16130F;
  --brass: #C6A25E;
  --brass-deep: #A67C34;
  --brass-soft: #D9BC85;
  --line: #E4DCCE;
  --line-2: #D6CBB8;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 4px;
  --dur: .45s;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --wrap: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.12; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 2px solid var(--brass-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
@media (max-width: 640px) { .wrap { width: min(100% - 28px, var(--wrap)); } }

.section { padding: clamp(64px, 9vw, 132px) 0; }
.section--tight { padding: clamp(44px, 6vw, 76px) 0; }
.bg-alt { background: var(--bg-alt); }
.bg-deep { background: var(--deep); color: var(--on-dark); }
.bg-deep p { color: rgba(243, 236, 224, .74); }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 5.4vw, 4.2rem);
  letter-spacing: -.015em;
}

.lead { font-size: clamp(1.12rem, 2vw, 1.42rem); line-height: 1.5; color: var(--ink-2); }

.eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brass-deep);
}
.eyebrow.center { display: block; text-align: center; }

.section-head { max-width: 62ch; margin-bottom: clamp(34px, 4.6vw, 60px); }
.section-head h2 { margin: 16px 0 16px; }
.section-head p { color: var(--ink-soft); }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  --bc: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid var(--bc);
  border-radius: var(--radius);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  background: none;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn--light { --bc: var(--on-dark); color: var(--on-dark); }
.btn--light:hover { background: var(--on-dark); color: var(--ink); }
.btn .ar { transition: transform var(--dur) var(--ease); }
.btn:hover .ar { transform: translateX(4px); }

.tlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass-deep);
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}
.tlink span { transition: transform var(--dur) var(--ease); }
.tlink:hover span { transform: translateX(4px); }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  padding: 20px 0;
  transition: background var(--dur) var(--ease), padding var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header.on-dark { color: var(--on-dark); }
.header.scrolled {
  background: rgba(250, 247, 242, .94);
  backdrop-filter: blur(12px);
  color: var(--ink);
  padding: 12px 0;
  box-shadow: 0 1px 0 var(--line);
}

.brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.32rem;
  letter-spacing: .2em;
  line-height: 1;
}
.brand__tag {
  display: block;
  margin-top: 5px;
  font-size: .56rem;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--brass);
}

.nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); }
.nav a {
  position: relative;
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.nav a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur) var(--ease);
}
.nav a:not(.nav__cta):hover::after,
.nav a[aria-current="page"]:not(.nav__cta)::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { padding: 11px 20px; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; }
.burger span { width: 24px; height: 1.5px; background: currentColor; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: flex; }
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--deep);
  color: var(--on-dark);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.m-link {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 7vw, 2.6rem);
  padding: 8px 0;
}
.m-link:hover { color: var(--brass-soft); }
.m-contact { margin-top: 30px; font-size: .82rem; color: rgba(243, 236, 224, .66); text-align: center; }
.m-contact a:hover { color: var(--brass-soft); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--on-dark);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,19,15,.62) 0%, rgba(22,19,15,.42) 45%, rgba(22,19,15,.78) 100%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; padding-top: 90px; }
.hero__sub { max-width: 54ch; margin-top: 22px; font-size: clamp(1rem, 1.7vw, 1.2rem); color: rgba(243,236,224,.82); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero .ln { display: block; overflow: hidden; }
.hero .ln > span { display: block; }
html.dv-ready .hero .ln > span { animation: heroLine 1s var(--ease) both; }
html.dv-ready .hero .ln:nth-child(2) > span { animation-delay: .12s; }
@keyframes heroLine { from { transform: translateY(105%); } to { transform: translateY(0); } }

html.dv-ready .hero .eyebrow,
html.dv-ready .hero__sub,
html.dv-ready .hero__cta { animation: heroRise .9s var(--ease) both; }
html.dv-ready .hero__sub { animation-delay: .3s; }
html.dv-ready .hero__cta { animation-delay: .42s; }
@keyframes heroRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

.hero__scroll {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .66rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(243,236,224,.72);
}
.hero__scroll .line { width: 42px; height: 1px; background: currentColor; transform-origin: left; animation: scrollLine 2.2s var(--ease) infinite; }
@keyframes scrollLine { 0%,100% { transform: scaleX(.3); } 50% { transform: scaleX(1); } }

/* ---------- Intro / split ---------- */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: start; }
.intro-grid .body { color: var(--ink-2); }
@media (max-width: 860px) { .intro-grid { grid-template-columns: 1fr; } }

.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 72px); align-items: center; }
@media (max-width: 860px) { .about-split { grid-template-columns: 1fr; } }
.about-img { position: relative; }
.about-img img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); }
.about-img .badge {
  position: absolute;
  right: -14px; bottom: 26px;
  background: var(--deep);
  color: var(--on-dark);
  padding: 18px 24px;
  border-radius: var(--radius);
  text-align: center;
}
.about-img .badge b { display: block; font-family: var(--font-display); font-size: 1.6rem; }
.about-img .badge span { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brass-soft); }
@media (max-width: 520px) { .about-img .badge { right: 10px; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.stat { background: var(--bg-alt); padding: clamp(24px, 3vw, 40px) 18px; text-align: center; }
.stat__num { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); line-height: 1; }
.stat__num .suffix { color: var(--brass-deep); }
.stat__label { margin-top: 10px; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
@media (max-width: 720px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ---------- Work grid (home) ---------- */
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(12px, 1.6vw, 22px); }
.work-card { position: relative; grid-column: span 6; overflow: hidden; border-radius: var(--radius); }
.work-card.c-6 { grid-column: span 6; }
.work-card.c-4 { grid-column: span 4; }
.work-card a { display: block; position: relative; height: 100%; }
.work-card img { width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform 1s var(--ease); }
.work-card.tall img { aspect-ratio: 3/4; }
.work-card:hover img { transform: scale(1.045); }
.work-card__overlay {
  position: absolute; inset: auto 0 0 0;
  padding: clamp(18px, 2.4vw, 30px);
  color: var(--on-dark);
  background: linear-gradient(180deg, rgba(22,19,15,0) 0%, rgba(22,19,15,.82) 100%);
}
.work-card__cat { font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--brass-soft); }
.work-card__title { margin: 8px 0 4px; font-family: var(--font-display); font-size: clamp(1.15rem, 2vw, 1.6rem); }
.work-card__meta { font-size: .8rem; color: rgba(243,236,224,.72); }
@media (max-width: 800px) { .work-card, .work-card.c-6, .work-card.c-4 { grid-column: span 12; } }

/* ---------- Services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.svc { background: var(--bg); padding: clamp(26px, 3.4vw, 42px); transition: background var(--dur) var(--ease); }
.svc:hover { background: var(--bg-alt); }
.svc__num { font-family: var(--font-display); font-size: .9rem; color: var(--brass-deep); }
.svc h3 { margin: 14px 0 12px; font-family: var(--font-display); font-size: 1.3rem; }
.svc p { color: var(--ink-soft); font-size: .94rem; margin: 0; }

/* ---------- Trusted-by roster ---------- */
/* Column count is fluid: auto-fit recalculates from the live container width,
   so the grid always fits the window instead of jumping between breakpoints.
   Cell borders (not a background-gap trick) mean a partly filled last row
   never shows as a bare filler strip, whatever the number of names. */
.roster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.roster span {
  background: var(--bg);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(14px, 2.4vw, 24px) clamp(8px, 1.6vw, 18px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: clamp(60px, 9vw, 72px);
  font-family: var(--font-display);
  font-size: clamp(.8rem, 1.4vw, 1.05rem);
  line-height: 1.25;
  color: var(--ink-2);
  letter-spacing: .03em;
  text-wrap: balance;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.roster span:hover { background: var(--ink); color: var(--brass-soft); }

/* ---------- Clients marquee ---------- */
.clients { overflow: hidden; padding: clamp(30px, 4vw, 52px) 0; border-block: 1px solid var(--line); }
.clients__track { display: flex; gap: clamp(30px, 5vw, 72px); width: max-content; animation: marquee 46s linear infinite; }
.clients__track span { font-family: var(--font-display); font-size: clamp(1rem, 1.8vw, 1.4rem); color: var(--ink-soft); white-space: nowrap; }
.clients:hover .clients__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 30px); }
@media (max-width: 820px) { .team { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; } }
.member {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3.4vw, 40px) clamp(20px, 2.6vw, 30px);
  text-align: center;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.member:hover { transform: translateY(-5px); box-shadow: 0 24px 50px -32px rgba(28,25,23,.4); }
.member__mono {
  width: 84px; height: 84px; margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.6rem;
  color: var(--brass-deep); letter-spacing: .04em;
}
/* portrait variant — same footprint as the monogram so cards stay aligned */
.member__photo {
  width: 84px; height: 84px; margin: 0 auto 18px;
  border-radius: 50%; overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: 0 0 0 5px rgba(166,124,52,.06);
}
.member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.member h4 { font-family: var(--font-display); font-size: 1.25rem; }
.member .role { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brass-deep); margin: 8px 0 12px; }
.member p { color: var(--ink-soft); font-size: .92rem; margin: 0; }

/* ---------- Page hero ---------- */
.pagehero { background: var(--deep); color: var(--on-dark); padding: clamp(130px, 16vw, 190px) 0 clamp(56px, 7vw, 92px); position: relative; overflow: hidden; }
.pagehero::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 480px; height: 480px; border-radius: 50%;
  border: 1px solid rgba(198,162,94,.16);
}
.pagehero p { max-width: 56ch; margin-top: 18px; color: rgba(243,236,224,.76); }
.crumbs { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(243,236,224,.6); margin-bottom: 22px; }
.crumbs a:hover { color: var(--brass-soft); }

/* ---------- Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(30px, 4vw, 52px); }
.filters[hidden] { display: none; }
.filter {
  padding: 10px 22px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: none;
  font-size: .74rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.filter:hover { border-color: var(--ink); }
.filter.active { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* ---------- Portfolio cover grid ----------
   Landing view for /portfolio: one photo + name per project. Selecting a
   card hides this grid and reveals that project's full gallery. */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: clamp(12px, 1.6vw, 22px);
}
.portfolio-grid[hidden] { display: none; }
.portfolio-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}
.portfolio-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.portfolio-card:hover img,
.portfolio-card:focus-visible img { transform: scale(1.06); }
.portfolio-card[hidden] { display: none; }
.portfolio-card__overlay {
  position: absolute; inset: auto 0 0 0;
  padding: clamp(16px, 2.2vw, 26px);
  color: var(--on-dark);
  background: linear-gradient(180deg, rgba(22,19,15,0) 0%, rgba(22,19,15,.85) 100%);
}
.portfolio-card__cat {
  display: block;
  font-size: .62rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--brass-soft);
}
.portfolio-card__title {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.9vw, 1.4rem);
}
.portfolio-card__count {
  display: block;
  margin-top: 4px;
  font-size: .74rem;
  color: rgba(243,236,224,.72);
}

.portfolio-back {
  margin-bottom: clamp(20px, 2.6vw, 32px);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.portfolio-back span { display: inline-block; transition: transform var(--dur) var(--ease); }
.portfolio-back:hover span { transform: translateX(-4px); }

.project { padding-block: clamp(40px, 5vw, 70px); border-bottom: 1px solid var(--line); }
.project:last-child { border-bottom: 0; }
.project[hidden] { display: none; }
.project__head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: end; margin-bottom: clamp(20px, 2.6vw, 34px); }
@media (max-width: 780px) { .project__head { grid-template-columns: 1fr; } }
.project__title { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.3rem); }
.project__meta { margin-top: 8px; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brass-deep); }
.project__desc { color: var(--ink-soft); margin: 0; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: clamp(10px, 1.4vw, 18px); }
.gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-alt);
  cursor: zoom-in;
  /* keeps 1000+ offscreen images out of layout/paint until needed */
  content-visibility: auto;
  contain-intrinsic-size: auto 240px;
}
.gallery figure.hidden { display: none; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .9s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery-more-wrap { margin-top: clamp(18px, 2.4vw, 28px); text-align: center; }

/* One cover photo per project — every other shot stays in the DOM (hidden)
   so the lightbox can still page through the full set once the cover is
   clicked; see the group-selection change in main.js. */
.gallery--single { display: block; }
.gallery--single figure { position: relative; }
.gallery--single img { aspect-ratio: 16/9; }
@media (max-width: 640px) { .gallery--single img { aspect-ratio: 4/3; } }
.gallery__count {
  position: absolute; right: 14px; bottom: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(22, 19, 15, .72);
  backdrop-filter: blur(3px);
  color: var(--on-dark);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  pointer-events: none;
  transition: background var(--dur) var(--ease);
}
.gallery--single figure:hover .gallery__count { background: rgba(22, 19, 15, .88); }
.gallery__count svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.6; }

/* ---------- Site visits ---------- */
.sv-hero { position: relative; padding: clamp(70px, 9vw, 120px) 0; color: var(--on-dark); overflow: hidden; }
.sv-hero > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sv-hero::after { content: ""; position: absolute; inset: 0; background: rgba(22,19,15,.72); }
.sv-hero .wrap { position: relative; z-index: 2; }
.sv-hero .section-head p { color: rgba(243,236,224,.74); }

/* ---------- Lightbox ---------- */
.lb {
  position: fixed; inset: 0; z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(16,14,11,.94);
  padding: 24px;
}
.lb.open { display: flex; }
.lb img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: var(--radius); }
.lb__close, .lb__nav {
  position: absolute;
  background: none; border: 1px solid rgba(243,236,224,.4);
  color: var(--on-dark);
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.1rem;
  transition: background var(--dur) var(--ease);
}
.lb__close:hover, .lb__nav:hover { background: rgba(243,236,224,.16); }
.lb__close { top: 22px; right: 22px; }
.lb__nav.prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lb__nav.next { right: 22px; top: 50%; transform: translateY(-50%); }
.lb__count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); font-size: .76rem; letter-spacing: .16em; color: rgba(243,236,224,.7); }
@media (max-width: 640px) { .lb__nav { width: 40px; height: 40px; } .lb__nav.prev { left: 8px; } .lb__nav.next { right: 8px; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 70px); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info .ci { display: flex; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-info .ci:first-child { padding-top: 0; }
.contact-info .ci__ic { flex: none; width: 40px; height: 40px; color: var(--brass-deep); }
.contact-info .ci__ic svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.4; }
.contact-info .ci h4 { font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; font-family: var(--font-body); }
.contact-info .ci a, .contact-info .ci p { font-size: 1.05rem; color: var(--ink); margin: 0; }
.contact-info .ci a { display: block; }
.contact-info .ci a:hover { color: var(--brass-deep); }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: inherit; font-size: 1rem;
  color: var(--ink); background: var(--bg);
  border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 13px 15px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brass-deep);
  box-shadow: 0 0 0 3px rgba(166,124,52,.13);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: .82rem; color: var(--ink-soft); margin-top: 14px; }
.hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* ---------- Meeting booking ---------- */
.booking-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 3.4vw, 46px); align-items: start; }
@media (max-width: 900px) { .booking-layout { grid-template-columns: 1fr; } }

.booking {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 44px);
}
.field-hint { margin: 8px 0 0; font-size: .8rem; color: var(--ink-soft); }
.booking-note { margin-top: 14px; font-size: .82rem; color: var(--ink-soft); }

.booking-step { margin-bottom: 18px; }
.booking-step--divided {
  margin-top: clamp(28px, 3.4vw, 40px);
  padding-top: clamp(24px, 3vw, 32px);
  border-top: 1px solid var(--line);
}
.booking-step__num {
  display: inline-block;
  font-size: .64rem; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--brass-deep);
}
.booking-step__title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  margin: 8px 0 6px;
}
.booking-step__lead { margin: 0; font-size: .9rem; color: var(--ink-soft); line-height: 1.5; }

/* Two ways to book: the live calendar, or a request for your own time. */
.booking-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.booking-tab {
  flex: 1 1 auto;
  padding: 12px 18px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: none;
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.booking-tab:hover { border-color: var(--ink); }
.booking-tab.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.booking-panel { margin-top: 20px; }
.booking-panel[hidden] { display: none; }
.booking-form { margin: 0; }

/* Sets expectations before the enquiry form: this route cannot hold a slot. */
.booking-callout {
  margin-bottom: 22px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border-left: 3px solid var(--brass-deep);
  background: var(--bg-alt);
}
.booking-callout p { margin: 0; font-size: .88rem; line-height: 1.55; color: var(--ink-2); }
.booking-callout strong { color: var(--ink); font-weight: 600; }

/* Cal.com mounts its calendar into this element; min-height stops the
   page jumping while the embed script loads. */
.cal-embed { margin-top: 20px; min-height: 220px; }
.cal-embed__fallback {
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
  text-align: center;
  color: var(--ink-soft);
}
.cal-embed__fallback p { margin: 0 0 10px; font-size: .92rem; }
.cal-embed__fallback strong { color: var(--ink); }
.cal-embed__actions {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; margin-top: 16px !important;
}

.booking-summary {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 34px);
  position: sticky; top: 96px;
}
@media (max-width: 900px) { .booking-summary { position: static; } }
.booking-summary__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.booking-summary__list { margin: 0 0 4px; display: grid; gap: 12px; }
.booking-summary__list > div {
  display: grid; grid-template-columns: 8.5rem 1fr; gap: 10px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.booking-summary__list dt {
  font-size: .68rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-soft);
}
.booking-summary__list dd { margin: 0; font-size: .94rem; color: var(--ink); }
@media (max-width: 420px) { .booking-summary__list > div { grid-template-columns: 1fr; gap: 4px; } }

/* Contextual notices — chargeable visit, two-day trip, closed day. */
.booking-flag {
  margin-top: 14px;
  padding: 13px 15px;
  border-radius: var(--radius);
  border-left: 3px solid var(--brass-deep);
  background: var(--bg-alt);
  font-size: .88rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.booking-flag strong { color: var(--ink); font-weight: 600; }
.booking-flag--warn { border-left-color: #B4462F; }

.booking-rules { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.booking-rules h4 {
  font-size: .68rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 12px;
  font-family: var(--font-body);
}
.booking-rules ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.booking-rules li { font-size: .86rem; color: var(--ink-soft); line-height: 1.5; }

.map-wrap { margin-top: clamp(40px, 5vw, 70px); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.map-wrap iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; max-width: 62ch; margin-inline: auto; }
.cta-band .btn { margin-top: 26px; }

/* ---------- Footer ---------- */
.footer { background: var(--deep); color: var(--on-dark); padding: clamp(56px, 7vw, 92px) 0 34px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: clamp(28px, 4vw, 56px); }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer .brand__name { font-size: 1.4rem; }
.footer__about { margin-top: 16px; color: rgba(243,236,224,.66); font-size: .92rem; max-width: 38ch; }
.footer h4 { font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--brass-soft); margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer li, .footer a { font-size: .92rem; color: rgba(243,236,224,.72); }
.footer a:hover { color: var(--brass-soft); }
.footer__base {
  margin-top: clamp(38px, 5vw, 60px);
  padding-top: 24px;
  border-top: 1px solid rgba(243,236,224,.14);
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center; justify-content: space-between;
  font-size: .82rem; color: rgba(243,236,224,.56);
}
.footer__social { display: flex; gap: 18px; }

/* ---------- Floating WhatsApp ---------- */
.wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 70;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 30px -10px rgba(37,211,102,.7);
  transition: transform var(--dur) var(--ease);
}
.wa:hover { transform: translateY(-3px); }
.wa svg { width: 27px; height: 27px; fill: currentColor; }

/* ---------- Reveal on scroll ----------
   Scoped to html.js (set by loader.js) so that if scripting is unavailable or
   errors out, everything renders visible instead of an invisible page. */
html.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
html.js [data-reveal].in { opacity: 1; transform: none; }
html.js [data-reveal-stagger] > * { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
html.js [data-reveal-stagger].in > * { opacity: 1; transform: none; }
[data-reveal-stagger].in > *:nth-child(2) { transition-delay: .08s; }
[data-reveal-stagger].in > *:nth-child(3) { transition-delay: .16s; }
[data-reveal-stagger].in > *:nth-child(4) { transition-delay: .24s; }
[data-reveal-stagger].in > *:nth-child(5) { transition-delay: .32s; }
[data-reveal-stagger].in > *:nth-child(6) { transition-delay: .4s; }

/* ---------- Loader ----------
   The studio mark is a perspective line drawing whose floor slabs stack
   upward. It is revealed bottom-up so it reads as the building assembling
   itself, with a thin brass survey line riding the leading edge. */
.loader {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  /* matches the mark artwork's own ground (#E6E5DA) exactly, so the image
     sits seamlessly instead of reading as a pasted rectangle */
  background: #E6E5DA;
  transition: opacity .7s var(--ease), visibility .7s var(--ease);
}
.loader.done { opacity: 0; visibility: hidden; }
.loader__mark { text-align: center; width: min(88vw, 620px); }

.loader__logo { position: relative; overflow: hidden; }
.loader__logo img {
  width: 100%; height: auto; display: block;
  clip-path: inset(100% 0 0 0);
  animation: markStack 1.55s cubic-bezier(.32, .72, .3, 1) forwards;
}
/* leading edge that travels up with the reveal */
.loader__logo::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--brass-deep);
  transform-origin: left;
  animation: markLine 1.55s cubic-bezier(.32, .72, .3, 1) forwards;
}
@keyframes markStack {
  from { clip-path: inset(100% 0 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}
@keyframes markLine {
  0%   { bottom: 0;    opacity: 0; }
  12%  { opacity: .9; }
  85%  { opacity: .9; }
  100% { bottom: 100%; opacity: 0; }
}

.loader__name {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3.4vw, 1.8rem);
  letter-spacing: .34em;
  text-indent: .34em;
  color: var(--ink);
  margin-top: 18px;
  opacity: 0;
  animation: markFade .7s var(--ease) 1.15s forwards;
}
.loader__tag {
  margin-top: 8px;
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--brass-deep);
  opacity: 0;
  animation: markFade .7s var(--ease) 1.35s forwards;
}
@keyframes markFade { to { opacity: 1; } }

/* Reduced motion: show the mark outright, no build-up. */
@media (prefers-reduced-motion: reduce) {
  .loader__logo img { clip-path: none; animation: none; }
  .loader__logo::after { display: none; }
  .loader__name, .loader__tag { opacity: 1; animation: none; }
}
