/* ===== Tokens ===== */
:root {
  --bg: #f6f4ef;          /* warm cream */
  --bg-2: #efece5;
  --ink: #16140f;         /* near-black */
  --muted: #6f6a60;
  --line: #d9d4c9;
  --accent: #16140f;
  --maxw: 1320px;
  --pad: clamp(20px, 5vw, 72px);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Shared section bits ===== */
.section__label {
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.1rem;
}
.section__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.2vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -.01em;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  transition: background .35s ease, color .35s ease;
}
.hero .btn { color: #fff; }
.hero .btn:hover { background: #fff; color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--bg); border-color: var(--ink); cursor: pointer; }
.btn--dark:hover { background: transparent; color: var(--ink); }

/* ===== Nav ===== */
.nav {
  position: fixed; inset: 0 0 auto 0;
  z-index: 50;
  transition: background .4s ease, box-shadow .4s ease;
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.4rem var(--pad);
  display: flex; align-items: center; justify-content: space-between;
}
.nav__logo {
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: #fff;
  transition: color .4s ease;
}
.nav__logo span { font-family: var(--sans); font-size: .8rem; font-weight: 500; letter-spacing: .3em; margin-left: .6rem; opacity: .85; }
.nav__links { display: flex; gap: 2.2rem; }
.nav__links a {
  font-size: .82rem; letter-spacing: .1em; text-transform: uppercase;
  color: #fff; position: relative; transition: color .4s ease; padding: .3rem 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: currentColor; transition: width .35s ease;
}
.nav__links a:hover::after { width: 100%; }

/* scrolled state */
.nav.is-scrolled { background: var(--bg); box-shadow: 0 1px 0 var(--line); }
.nav.is-scrolled .nav__logo,
.nav.is-scrolled .nav__links a { color: var(--ink); }
.nav.is-scrolled .nav__toggle span { background: var(--ink); }

/* solid nav for inner pages (no dark hero behind it) */
.nav--solid { background: var(--bg); box-shadow: 0 1px 0 var(--line); }
.nav--solid .nav__logo,
.nav--solid .nav__links a { color: var(--ink); }
.nav--solid .nav__toggle span { background: var(--ink); }
.nav__links a.is-current::after { width: 100%; }

/* inner-page content clears the fixed nav */
.page { padding-top: clamp(64px, 8vh, 88px); }
.page--flush { padding-top: 0; } /* dark full-bleed pages sit under the nav */
.contact--page .contact__head { padding-top: clamp(110px, 16vh, 180px); }
.walk { padding-top: 0; }
.page__head { max-width: var(--maxw); margin: 0 auto; padding: clamp(40px,8vh,90px) var(--pad) 0; }
.page__head .section__title { margin-top: .6rem; }

.nav__toggle { display: none; flex-direction: column; gap: 6px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 26px; height: 2px; background: #fff; transition: transform .3s ease, opacity .3s ease, background .4s ease; }

/* ===== Hero ===== */
.hero { position: relative; height: 100svh; min-height: 600px; display: flex; align-items: flex-end; }
.hero__slides { position: absolute; inset: 0; background: #16181d; }
.hero__slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.03);
  transition: opacity 1.4s ease;
}
.hero__slide.is-active { opacity: 1; }
.hero__slide.is-active { animation: heroZoom 6s ease-out forwards; }
@keyframes heroZoom {
  from { transform: scale(1.03); }
  to   { transform: scale(1.12); }
}
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,.55) 100%); }
.hero__content { position: relative; z-index: 2; color: #fff; padding: 0 var(--pad) clamp(70px, 12vh, 130px); max-width: var(--maxw); margin: 0 auto; width: 100%; }
.hero__eyebrow { font-size: .75rem; letter-spacing: .28em; text-transform: uppercase; opacity: .85; margin-bottom: 1.4rem; }
.hero__title { font-family: var(--serif); font-weight: 300; font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: 1.02; letter-spacing: -.015em; }
.hero__sub { max-width: 42ch; margin: 1.6rem 0 2.4rem; font-size: clamp(1rem, 1.4vw, 1.18rem); opacity: .92; font-weight: 300; }
.hero__scroll { position: absolute; right: var(--pad); bottom: clamp(70px,12vh,130px); z-index: 2; color: #fff; font-size: .7rem; letter-spacing: .25em; text-transform: uppercase; writing-mode: vertical-rl; opacity: .8; }
.hero__scroll::after { content: ""; display: block; width: 1px; height: 46px; background: currentColor; margin: 12px auto 0; }

/* ===== Intro ===== */
.intro { max-width: var(--maxw); margin: 0 auto; padding: clamp(80px,14vh,170px) var(--pad); }
.intro__label { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.8rem; }
.intro__statement { font-family: var(--serif); font-weight: 300; font-size: clamp(1.5rem, 3.6vw, 2.9rem); line-height: 1.28; letter-spacing: -.01em; max-width: 24ch; }
@media (min-width: 720px) { .intro__statement { max-width: 22ch; } }

/* ===== Featured (marquee projects) ===== */
.featured { max-width: var(--maxw); margin: 0 auto; padding: clamp(70px,13vh,160px) var(--pad) clamp(20px,4vh,40px); }
.featured__head { margin-bottom: clamp(28px,4vh,52px); }
.feat { position: relative; display: block; overflow: hidden; color: #fff; }
.feat--lg { aspect-ratio: 21/9; margin-bottom: clamp(14px,1.8vw,26px); }
.featured__row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px,1.8vw,26px); }
.featured__row .feat { aspect-ratio: 4/3; }
.feat__img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .9s cubic-bezier(.16,1,.3,1); }
.feat:hover .feat__img { transform: scale(1.05); }
.feat__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,0) 38%, rgba(0,0,0,.68) 100%); }
.feat__meta { position: absolute; left: 0; bottom: 0; z-index: 2; padding: clamp(20px,3vw,42px); }
.feat__tag { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; opacity: .92; }
.feat__meta h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(1.6rem,3.2vw,2.9rem); line-height: 1.04; margin-top: .5rem; }
@media (max-width: 700px) {
  .featured__row { grid-template-columns: 1fr; }
  .feat--lg { aspect-ratio: 16/10; }
  .featured__row .feat { aspect-ratio: 16/10; }
}

/* ===== Stats ===== */
.stats {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad) clamp(80px,14vh,160px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border-block: 1px solid var(--line);
}
.stat { background: var(--bg); padding: 2.6rem 1.4rem; text-align: center; }
.stat__num { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: 1; }
.stat__label { display: block; margin-top: .7rem; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ===== About ===== */
.about { max-width: var(--maxw); margin: 0 auto; padding: clamp(40px,8vh,90px) var(--pad); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,6vw,90px); align-items: center; }
.about__media { aspect-ratio: 4/5; background: linear-gradient(135deg,#cbc6ba,#a9a294); background-image: linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.18)), url("assets/about.jpg"); background-size: cover; background-position: center; }
.about__body p { color: var(--muted); margin-top: 1.4rem; max-width: 46ch; }
.about__body .section__title { margin-bottom: .4rem; }

/* ===== Team ===== */
.team { max-width: var(--maxw); margin: 0 auto; padding: clamp(40px,8vh,90px) var(--pad); }
.team__head { max-width: 60ch; margin-bottom: clamp(36px,5vh,64px); }
.team__head .section__title { margin-bottom: 1.4rem; }
.team__lead { color: var(--muted); max-width: 56ch; font-size: 1.05rem; }
.team__grid { display: flex; flex-direction: column; gap: clamp(40px,6vw,72px); }
.team__tier { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(28px,3.4vw,56px); }
.team__tier--lead { gap: clamp(40px,5vw,80px); }
.member { flex: 0 1 200px; max-width: 240px; text-align: center; }
.member--lead { flex-basis: 280px; max-width: 320px; }
.member__rule { display: block; width: 34px; height: 2px; background: var(--ink); margin: 0 auto 18px; transition: width .4s ease; }
.member:hover .member__rule { width: 64px; }
.member--lead .member__rule { background: var(--accent, var(--ink)); }
.member h3 { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; line-height: 1.2; }
.member--lead h3 { font-size: 1.85rem; }
.member p { color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; margin-top: .7rem; line-height: 1.5; }
@media (max-width: 520px) { .member, .member--lead { flex-basis: 100%; max-width: 100%; } }

/* ===== News ===== */
.news { max-width: var(--maxw); margin: 0 auto; padding: clamp(60px,12vh,150px) var(--pad); }
.news__head { margin-bottom: clamp(36px,5vh,60px); }
.news__list { border-top: 1px solid var(--line); }
.news__item {
  display: grid; grid-template-columns: 120px 1fr auto; gap: 1.5rem; align-items: baseline;
  padding: 1.5rem 0; border-bottom: 1px solid var(--line);
  transition: padding-left .35s ease;
}
.news__item:hover { padding-left: .6rem; }
.news__date { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.news__title { font-family: var(--serif); font-size: clamp(1.05rem,1.6vw,1.35rem); line-height: 1.3; }
.news__src { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.news__all { display: inline-block; margin-top: 2rem; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; border-bottom: 1px solid currentColor; }
.news__all:hover { opacity: .6; }
@media (max-width: 720px) {
  .news__item { grid-template-columns: 1fr; gap: .4rem; }
  .news__src { order: -1; }
}

/* ===== Services ===== */
.services { max-width: var(--maxw); margin: 0 auto; padding: clamp(60px,12vh,150px) var(--pad); }
.services__head { margin-bottom: clamp(44px,7vh,90px); max-width: 52ch; }
.services__head .section__title { margin-bottom: 1.5rem; }
.services__intro { color: var(--muted); font-size: 1.1rem; max-width: 50ch; }

.services__layout { display: grid; grid-template-columns: 0.85fr 1fr; gap: clamp(40px,6vw,100px); align-items: start; }
.services__visual { position: sticky; top: 110px; aspect-ratio: 4/5; overflow: hidden; background: var(--bg-2); }
.services__img {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.06);
  transition: opacity .8s ease, transform 1.2s ease;
}
.services__img.is-active { opacity: 1; transform: scale(1); }

.services__list { list-style: none; }
.svc {
  display: flex; gap: clamp(1rem,2vw,2rem); align-items: baseline;
  padding: clamp(22px,3.2vh,40px) 0; border-bottom: 1px solid var(--line);
  transition: padding-left .4s cubic-bezier(.16,1,.3,1);
}
.svc:first-child { border-top: 1px solid var(--line); }
.svc:hover { padding-left: clamp(.4rem,1.5vw,1.4rem); }
.svc__no { font-family: var(--serif); font-size: .95rem; color: var(--muted); flex: none; }
.svc__text h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem,2.8vw,2.4rem); line-height: 1.1; transition: opacity .3s ease; }
.svc__text p { color: var(--muted); font-size: .98rem; margin-top: .6rem; max-width: 42ch; }
/* dim the others on hover for editorial focus */
.services__list:hover .svc:not(:hover) .svc__text h3 { opacity: .4; }

@media (max-width: 860px) {
  .services__layout { grid-template-columns: 1fr; gap: 32px; }
  .services__visual { position: relative; top: 0; aspect-ratio: 16/10; }
  .services__list:hover .svc:not(:hover) .svc__text h3 { opacity: 1; }
}

/* ===== Projects ===== */
.projects { max-width: var(--maxw); margin: 0 auto; padding: clamp(40px,8vh,90px) var(--pad) clamp(60px,12vh,150px); }
.projects__head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: clamp(36px,5vh,64px); }
.projects__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px,2.2vw,32px); }
.project { grid-column: span 1; cursor: pointer; }
.project--lg { grid-column: 1 / -1; }
.project__media {
  position: relative; aspect-ratio: 3/2; overflow: hidden;
  background-image: var(--img), linear-gradient(135deg,#3a3c44,#23242a);
  background-size: cover; background-position: center;
  display: grid; place-items: center;
  transition: transform .8s cubic-bezier(.16,1,.3,1);
}
.project--lg .project__media { aspect-ratio: 21/9; }
.project:hover .project__media { transform: scale(1.03); }
/* fallback label when no image present */
.project__media::after {
  content: attr(data-fallback);
  font-family: var(--serif); color: rgba(255,255,255,.5); font-size: 1.4rem; letter-spacing: .04em;
}
.project__meta { padding: 1.3rem .2rem 0; }
.project__meta h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.2rem,2vw,1.7rem); }
.project__meta p { color: var(--muted); font-size: .9rem; margin-top: .35rem; }

/* ===== Walkthrough (cinematic) ===== */
.walk {
  position: relative;
  height: 100svh; min-height: 620px;
  background: #0d0d0f; color: #fff;
  overflow: hidden;
}
.walk__stage { position: absolute; inset: 0; }
.walk__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.walk__slide.is-active { opacity: 1; }
.walk__img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.02);
}
/* Ken Burns: slow zoom/pan only while active */
.walk__slide.is-active .walk__img { animation: kenburns 7s ease-out forwards; }
@keyframes kenburns {
  from { transform: scale(1.02) translate(0, 0); }
  to   { transform: scale(1.14) translate(-1.5%, -1.5%); }
}
.walk__vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,0) 45%, rgba(0,0,0,.78) 100%),
    linear-gradient(90deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 40%);
}
.walk__top { position: absolute; top: 0; left: 0; right: 0; z-index: 3; padding: clamp(90px,13vh,140px) var(--pad) 0; max-width: var(--maxw); margin-inline: auto; }
.walk__eyebrow { font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; color: rgba(255,255,255,.8); }

.walk__ui { position: absolute; left: 0; right: 0; bottom: clamp(56px,9vh,96px); z-index: 3; padding-inline: var(--pad); max-width: var(--maxw); margin-inline: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.walk__caption { max-width: 60ch; }
.walk__caption .c-area { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.7); display: block; margin-bottom: .7rem; }
.walk__caption .c-name { font-family: var(--serif); font-weight: 300; font-size: clamp(2rem, 5vw, 4rem); line-height: 1.02; letter-spacing: -.01em; }
.walk__caption .c-meta { margin-top: .8rem; font-size: clamp(.95rem,1.3vw,1.1rem); color: rgba(255,255,255,.82); font-weight: 300; }
/* caption text animates in on slide change */
.walk__caption.is-anim .c-area,
.walk__caption.is-anim .c-name,
.walk__caption.is-anim .c-meta { animation: capIn .8s cubic-bezier(.16,1,.3,1) both; }
.walk__caption.is-anim .c-name { animation-delay: .06s; }
.walk__caption.is-anim .c-meta { animation-delay: .12s; }
@keyframes capIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.walk__controls { display: flex; align-items: center; gap: .6rem; }
.walk__btn {
  width: 46px; height: 46px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.4);
  color: #fff; font-size: 1rem; cursor: pointer;
  display: grid; place-items: center;
  backdrop-filter: blur(6px);
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.walk__btn:hover { background: #fff; color: #111; border-color: #fff; }
.walk__btn--play { font-size: .7rem; letter-spacing: .05em; }
.walk__count { margin-left: 1rem; font-size: .8rem; letter-spacing: .12em; color: rgba(255,255,255,.85); font-variant-numeric: tabular-nums; }

.walk__progress { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 3px; background: rgba(255,255,255,.18); }
.walk__progress span { display: block; height: 100%; width: 0; background: #fff; }
.walk__progress span.run { transition: width linear; }

.walk__dots { position: absolute; right: var(--pad); top: 50%; transform: translateY(-50%); z-index: 3; display: flex; flex-direction: column; gap: .55rem; }
.walk__dots button { width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0; background: rgba(255,255,255,.35); cursor: pointer; transition: transform .3s ease, background .3s ease; }
.walk__dots button.is-active { background: #fff; transform: scale(1.5); }

@media (max-width: 720px) {
  .walk__dots { display: none; }
  .walk__ui { flex-direction: column; align-items: flex-start; gap: 1.3rem; }
}

/* ===== Index ===== */
.index { max-width: var(--maxw); margin: 0 auto; padding: clamp(70px,12vh,150px) var(--pad); }
.index__head { margin-bottom: clamp(40px,6vh,70px); }
.index__groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px,4vw,60px); }
.index__group h3 { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding-bottom: 1rem; border-bottom: 1px solid var(--line); margin-bottom: .4rem; }
.index__item { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); cursor: pointer; transition: padding-left .3s ease, color .3s ease; }
.index__item:hover { padding-left: .5rem; }
.index__item .i-name { font-family: var(--serif); font-size: 1.05rem; }
.index__item .i-tag { font-size: .8rem; color: var(--muted); text-align: right; align-self: center; }
@media (max-width: 920px) { .index__groups { grid-template-columns: 1fr; gap: 36px; } }

/* ===== Portfolio grid (filterable) ===== */
.portfolio { max-width: var(--maxw); margin: 0 auto; padding: clamp(60px,12vh,150px) var(--pad); }
.portfolio__head { margin-bottom: clamp(30px,4vh,52px); }
.portfolio__head .section__title { margin-bottom: 1.6rem; }
.portfolio__bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.portfolio__filters { display: flex; flex-wrap: wrap; gap: .55rem; }
.pf-filter {
  font-size: .76rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .6rem 1.15rem; border: 1px solid var(--line); border-radius: 999px;
  background: transparent; color: var(--muted); cursor: pointer;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.pf-filter:hover { color: var(--ink); border-color: var(--ink); }
.pf-filter.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.portfolio__count { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

.portfolio__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px,1.8vw,26px); }
.pf-card { cursor: pointer; }
.pf-card.is-hidden { display: none; }
.pf-card__img { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-2); }
.pf-card__img > div { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .8s cubic-bezier(.16,1,.3,1); }
.pf-card:hover .pf-card__img > div { transform: scale(1.05); }
.pf-card__type {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-size: .64rem; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(246,244,239,.92); color: var(--ink); padding: .42rem .7rem; border-radius: 999px;
}
.pf-card__body { padding: 1rem .15rem 0; }
.pf-card__body h3 { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; line-height: 1.15; }
.pf-card__body p { color: var(--muted); font-size: .85rem; margin-top: .35rem; }
@media (max-width: 900px) { .portfolio__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .portfolio__grid { grid-template-columns: 1fr; } }

/* ===== Property map (stylized dark) ===== */
.map { background: var(--ink); color: var(--bg); }
.map__head { max-width: var(--maxw); margin-inline: auto; padding: clamp(60px,11vh,140px) var(--pad) clamp(26px,4vh,46px); }
.map .section__label { color: rgba(246,244,239,.55); }
.map__head .section__title { color: var(--bg); margin-bottom: 1.5rem; }
.map__toggle { display: flex; gap: .5rem; }
.map__btn {
  font-size: .76rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .55rem 1.15rem; border: 1px solid rgba(246,244,239,.3); border-radius: 999px;
  background: transparent; color: rgba(246,244,239,.7); cursor: pointer; transition: all .3s ease;
}
.map__btn:hover { color: var(--bg); border-color: var(--bg); }
.map__btn.is-active { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.map__canvas { height: clamp(440px, 66vh, 720px); width: 100%; }
.map__canvas.leaflet-container { background: #0d0d0f; font-family: var(--sans); }

/* glowing markers */
.pin { display: block; width: 14px; height: 14px; border-radius: 50%; background: #f6f4ef;
  box-shadow: 0 0 0 4px rgba(246,244,239,.15), 0 0 14px rgba(246,244,239,.55); transition: transform .25s ease; }
.pin-wrap:hover .pin { transform: scale(1.4); }
.pin--dev { background: #e8c27a; box-shadow: 0 0 0 4px rgba(232,194,122,.2), 0 0 16px rgba(232,194,122,.7); animation: pinpulse 2.2s ease-in-out infinite; }
@keyframes pinpulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(232,194,122,.2), 0 0 10px rgba(232,194,122,.5); }
  50%     { box-shadow: 0 0 0 9px rgba(232,194,122,.06), 0 0 24px rgba(232,194,122,.85); }
}

/* dark leaflet chrome */
.leaflet-popup-content-wrapper { background: #16140f; color: #f6f4ef; border-radius: 3px; box-shadow: 0 24px 70px rgba(0,0,0,.6); }
.leaflet-popup-tip { background: #16140f; }
.leaflet-popup-content { margin: 14px 16px; }
.map-pop b { font-family: var(--serif); font-weight: 400; font-size: 1.1rem; display: block; margin-bottom: .15rem; }
.map-pop span { color: rgba(246,244,239,.6); font-size: .82rem; }
.map-pop__view { display: inline-block; margin-top: .6rem; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #f6f4ef; border-bottom: 1px solid rgba(246,244,239,.5); cursor: pointer; }
.leaflet-popup-close-button { color: rgba(246,244,239,.6) !important; }
.leaflet-popup-close-button:hover { color: #fff !important; }
.leaflet-bar a { background: #16140f !important; color: #f6f4ef !important; border-color: rgba(246,244,239,.15) !important; }
.leaflet-bar a:hover { background: #26231c !important; }
.leaflet-control-attribution { background: rgba(0,0,0,.55) !important; color: rgba(246,244,239,.45) !important; }
.leaflet-control-attribution a { color: rgba(246,244,239,.7) !important; }

/* ===== Contact ===== */
.contact { background: var(--ink); color: var(--bg); }
.contact > * { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.contact__head { padding-top: clamp(70px,12vh,150px); }
.contact .section__label { color: rgba(246,244,239,.55); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px,6vw,100px); padding-block: clamp(40px,6vh,72px) clamp(70px,12vh,150px); }
.contact__block { padding: 1.6rem 0; border-top: 1px solid rgba(246,244,239,.16); }
.contact__block:first-child { border-top: 0; }
.contact__block h4 { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(246,244,239,.55); font-weight: 500; margin-bottom: .7rem; }
.contact__block a:hover { text-decoration: underline; }

/* form */
.contact__form { display: flex; flex-direction: column; gap: 1.6rem; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(246,244,239,.3);
  color: var(--bg); font-family: var(--sans); font-size: 1rem; padding: .9rem 0; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--bg); }
.field label {
  position: absolute; left: 0; top: .9rem; color: rgba(246,244,239,.5);
  font-size: 1rem; pointer-events: none; transition: transform .25s ease, font-size .25s ease, color .25s ease;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  transform: translateY(-1.5rem); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(246,244,239,.6);
}
.contact__form .btn--dark { background: var(--bg); color: var(--ink); border-color: var(--bg); align-self: flex-start; }
.contact__form .btn--dark:hover { background: transparent; color: var(--bg); }
.form__note { font-size: .85rem; color: rgba(246,244,239,.7); min-height: 1.2em; }

/* select fields (Interested page) */
.field--select { padding-top: 1.5rem; }
.field__top { position: static; display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(246,244,239,.6); margin-bottom: .2rem; }
.field select {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(246,244,239,.3);
  color: var(--bg); font-family: var(--sans); font-size: 1rem; padding: .8rem 1.6rem .8rem 0;
  appearance: none; -webkit-appearance: none; cursor: pointer; border-radius: 0;
}
.field select:focus { outline: none; border-color: var(--bg); }
.field select option { color: #16140f; } /* dropdown list renders on white */
.field--select::after {
  content: "▾"; position: absolute; right: .1rem; bottom: .7rem;
  pointer-events: none; color: rgba(246,244,239,.6); font-size: .9rem;
}
.interest__lead { color: rgba(246,244,239,.85); font-size: 1.05rem; line-height: 1.6; margin-bottom: 2rem; max-width: 46ch; }

/* ===== Footer ===== */
.footer { background: var(--ink); color: var(--bg); border-top: 1px solid rgba(246,244,239,.14); }
.footer__inner { max-width: var(--maxw); margin: 0 auto; padding: 2.4rem var(--pad); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.2rem; }
.footer__logo { font-family: var(--serif); letter-spacing: .04em; }
.footer__links { display: flex; gap: 1.8rem; }
.footer__links a { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(246,244,239,.7); }
.footer__links a:hover { color: var(--bg); }
.footer__copy { font-size: .78rem; color: rgba(246,244,239,.5); }

/* ===== Index item affordance ===== */
.index__item::after { content: "→"; color: var(--muted); opacity: 0; transition: opacity .3s ease, transform .3s ease; align-self: center; }
.index__item:hover::after { opacity: 1; }

/* ===== Walkthrough "View details" ===== */
.c-more {
  margin-top: 1.4rem; display: inline-block;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.45); color: #fff;
  font-family: var(--sans); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  padding: .7rem 1.4rem; border-radius: 999px; cursor: pointer; backdrop-filter: blur(6px);
  transition: background .3s ease, color .3s ease;
}
.c-more:hover { background: #fff; color: #111; }

/* ===== Project view (full-screen rich detail) ===== */
.pv { position: fixed; inset: 0; z-index: 100; display: none; }
.pv.is-open { display: block; }
.pv__backdrop { position: absolute; inset: 0; background: rgba(10,10,12,.7); backdrop-filter: blur(4px); animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes panelIn { from { opacity: 0; transform: translateY(26px) scale(.99); } to { opacity: 1; transform: none; } }
.pv__panel {
  position: absolute; inset: 0; margin: auto;
  width: min(1120px, 95vw); height: min(880px, 93vh);
  background: var(--bg); overflow-y: auto; overflow-x: hidden;
  box-shadow: 0 40px 120px rgba(0,0,0,.5);
  animation: panelIn .45s cubic-bezier(.16,1,.3,1);
}
.pv__close {
  position: fixed; top: max(20px, calc((100vh - 93vh)/2 + 14px)); right: max(20px, calc((100vw - 95vw)/2 + 14px)); z-index: 3;
  width: 44px; height: 44px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.9); color: #111; font-size: 1.6rem; line-height: 1;
  display: grid; place-items: center; transition: background .25s ease;
}
.pv__close:hover { background: #fff; }

/* hero */
.pv__hero { position: relative; height: clamp(280px, 46%, 460px); overflow: hidden; }
.pv__heroimg { position: absolute; inset: 0; background-size: cover; background-position: center; animation: kenburns 12s ease-out forwards; }
.pv__herooverlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,.7) 100%); }
.pv__herometa { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; color: #fff; padding: clamp(24px,4vw,52px); }
.pv__area { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; opacity: .85; }
.pv__name { font-family: var(--serif); font-weight: 300; font-size: clamp(1.9rem,4vw,3.2rem); line-height: 1.04; margin: .6rem 0 .4rem; }
.pv__meta { font-size: 1rem; opacity: .9; font-weight: 300; }
.pv__nav { position: absolute; top: 18px; left: 18px; z-index: 2; display: flex; gap: .5rem; }
.pv__nav button {
  width: 44px; height: 44px; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.5); color: #fff;
  font-size: 1rem; display: grid; place-items: center; backdrop-filter: blur(6px);
  transition: background .3s ease, color .3s ease;
}
.pv__nav button:hover { background: #fff; color: #111; }

/* gallery thumbnails */
.pv__thumbs { position: absolute; right: clamp(16px,3vw,30px); bottom: clamp(16px,3vw,30px); z-index: 3; display: flex; gap: .5rem; max-width: 55%; flex-wrap: wrap; justify-content: flex-end; }
.pv__thumb {
  width: 58px; height: 42px; border-radius: 4px; padding: 0;
  background-size: cover; background-position: center; cursor: pointer;
  opacity: .55; border: 2px solid transparent;
  transition: opacity .25s ease, border-color .25s ease;
}
.pv__thumb:hover { opacity: 1; }
.pv__thumb.is-active { opacity: 1; border-color: #fff; }
@media (max-width: 640px) { .pv__thumbs { display: none !important; } }

/* body */
.pv__body { display: grid; grid-template-columns: 1.4fr .9fr; gap: clamp(28px,4vw,64px); padding: clamp(32px,4vw,60px); }
.pv__desc { font-size: 1.1rem; line-height: 1.75; color: var(--ink); }
.pv__cta { margin-top: 2.2rem; display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
.pv__link { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid currentColor; }
.pv__link:hover { opacity: .6; }
.pv__facts h4 { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.pv__facts ul { list-style: none; }
.pv__facts li { display: flex; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.pv__facts li::before { content: "—"; color: var(--muted); }
@media (max-width: 760px) {
  .pv__body { grid-template-columns: 1fr; gap: 28px; }
  .pv__panel { width: 100vw; height: 100svh; }
  .pv__close { top: 16px; right: 16px; }
}

/* ===== Responsive ===== */
@media (max-width: 920px) {
  .about { grid-template-columns: 1fr; }
  .about__media { aspect-ratio: 16/10; }
  .services__grid { grid-template-columns: 1fr 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    background: var(--bg); flex-direction: column; justify-content: center; gap: 1.6rem;
    padding: var(--pad); transform: translateX(100%); transition: transform .45s cubic-bezier(.16,1,.3,1);
    box-shadow: -20px 0 60px rgba(0,0,0,.12);
  }
  .nav__links.is-open { transform: none; }
  .nav__links a { color: var(--ink); font-size: 1.1rem; }
  .nav__toggle { display: flex; z-index: 60; }
  .nav.is-menu-open .nav__toggle span { background: var(--ink); }
  .nav.is-menu-open .nav__toggle span:first-child { transform: translateY(8px) rotate(45deg); }
  .nav.is-menu-open .nav__toggle span:last-child { transform: translateY(-8px) rotate(-45deg); }
  .stats { grid-template-columns: 1fr 1fr; }
  .services__grid { grid-template-columns: 1fr; }
  .projects__grid { grid-template-columns: 1fr; }
  .project--lg { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  /* keep slideshows cycling, just drop the zoom motion */
  .hero__slide.is-active { animation: none; transform: scale(1.03); }
  .walk__slide.is-active .walk__img { animation: none; transform: scale(1.02); }
  .walk__slide { transition: opacity .35s ease; }
  .walk__caption.is-anim .c-area,
  .walk__caption.is-anim .c-name,
  .walk__caption.is-anim .c-meta { animation: none; }
}
