/* ============================================================
   Studio Manfredi design system
   Palette and type are fixed brand tokens. See context/brand.md
   ============================================================ */

:root {
  --ink: #2B2620;
  --ink-soft: #4A423A;
  --stone: #8A8074;
  --bronze: #8A6A3B;
  --gold: #B79A6B;
  --cream: #F1EBE0;
  --parchment: #E9E1D2;
  --bone: #EFE7D8;
  --line: rgba(43, 38, 32, 0.16);
  --line-soft: rgba(43, 38, 32, 0.08);
  --line-dark: rgba(239, 231, 216, 0.18);
  --bone-60: rgba(239, 231, 216, 0.6);
  --bone-85: rgba(239, 231, 216, 0.85);

  --serif: 'Bodoni Moda', 'Didot', 'Bodoni MT', serif;
  --sans: 'Jost', 'Futura', 'Century Gothic', sans-serif;

  --fs-body: 17px;
  --fs-copy: 16.5px;
  --fs-small: 15.5px;
  --fs-label: 12px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 118px;
  --pad-x: clamp(24px, 6.5vw, 96px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

/* sticky nav would otherwise cover the top of any linked section */
[id] { scroll-margin-top: var(--nav-h); }

body {
  font-family: var(--sans);
  font-weight: 400;
  background: var(--cream);
  color: var(--ink-soft);
  line-height: 1.9;
  font-size: var(--fs-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--bronze); color: var(--bone); }

/* ---------- page fade transitions ---------- */

body { opacity: 1; transition: opacity 0.45s ease; }
body.is-loading { opacity: 0; }
body.is-leaving { opacity: 0; transition: opacity 0.28s ease; }

/* ---------- type roles ---------- */

.eyebrow {
  font-size: var(--fs-label);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--bronze);
  font-weight: 400;
}

.caption {
  font-size: var(--fs-label);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 400;
}

.serif-title {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
}

.wordmark {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  font-size: clamp(52px, 8vw, 104px);
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.statement {
  font-family: var(--serif);
  font-weight: 500;
  font-variation-settings: "opsz" 11;
  color: var(--ink);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.6;
  max-width: 860px;
  margin-inline: auto;
  text-wrap: pretty;
}

/* ---------- shared atoms ---------- */

.rule {
  width: 52px;
  height: 1px;
  background: var(--bronze);
  border: 0;
}

.link-line {
  display: inline-block;
  font-size: var(--fs-label);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--ink);
  border-bottom: 1px solid var(--bronze);
  padding-bottom: 8px;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.link-line:hover { color: var(--bronze); }

.btn-line {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 400;
  padding: 18px 44px;
  background: transparent;
  border: 1px solid rgba(239, 231, 216, 0.4);
  color: var(--bone);
  cursor: pointer;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}

.btn-line:hover {
  background: var(--bone);
  border-color: var(--bone);
  color: var(--ink);
}

.btn-line--dark {
  border-color: rgba(43, 38, 32, 0.45);
  color: var(--ink);
}

.btn-line--dark:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bone);
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--ink);
  transition: box-shadow 0.4s ease;
}

.nav.is-scrolled {
  box-shadow: 0 1px 0 rgba(239, 231, 216, 0.08);
}

.nav__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--nav-h);
  padding: 0 clamp(24px, 4vw, 56px);
  max-width: 1600px;
  margin: 0 auto;
}

.nav__group {
  display: flex;
  gap: clamp(28px, 3.6vw, 52px);
  font-size: var(--fs-label);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-weight: 400;
}

.nav__group--left { justify-content: flex-end; }
.nav__group--right { justify-content: flex-start; }

.nav__link {
  position: relative;
  color: var(--bone-85);
  padding: 6px 0;
  transition: color 0.3s ease;
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transform: translateX(-50%);
  transition: width 0.4s var(--ease);
}

.nav__link:hover { color: var(--bone); }
.nav__link:hover::after, .nav__link.is-active::after { width: 100%; }
.nav__link.is-active { color: var(--bone); }

.nav__logo {
  display: block;
  margin: 0 clamp(20px, 3vw, 44px);
}

.nav__logo img {
  width: clamp(108px, 10vw, 136px);
  height: auto;
}

/* mobile menu */

.nav__toggle {
  display: none;
  grid-column: 3;
  justify-self: end;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 12px 0 12px 12px;
}

.nav__toggle span {
  display: block;
  width: 26px;
  height: 1px;
  background: var(--bone);
  margin: 8px 0;
  transition: transform 0.35s var(--ease), opacity 0.3s ease;
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}

.menu a {
  font-family: var(--serif);
  font-size: clamp(34px, 9vw, 48px);
  color: var(--bone);
  padding: 8px 0;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.menu .menu__contact {
  font-family: var(--sans);
  font-size: var(--fs-label);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 28px;
}

body.menu-open { overflow: hidden; }

body.menu-open .menu {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s ease;
}

body.menu-open .menu a {
  opacity: 1;
  transform: translateY(0);
}

body.menu-open .menu a:nth-child(1) { transition-delay: 0.1s; }
body.menu-open .menu a:nth-child(2) { transition-delay: 0.16s; }
body.menu-open .menu a:nth-child(3) { transition-delay: 0.22s; }
body.menu-open .menu a:nth-child(4) { transition-delay: 0.28s; }
body.menu-open .menu a:nth-child(5) { transition-delay: 0.34s; }

body.menu-open .nav__toggle span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
body.menu-open .nav__toggle span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* ---------- hero (home) ---------- */

.hero {
  position: relative;
  height: calc(100vh - var(--nav-h));
  height: calc(100svh - var(--nav-h));
  min-height: 660px;
  overflow: hidden;
  background: var(--cream);
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: hero-settle 2.6s var(--ease) 0.15s forwards;
}

@keyframes hero-settle {
  to { transform: scale(1); }
}

.hero__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(241, 235, 224, 0.35) 0%,
    rgba(241, 235, 224, 0.05) 35%,
    rgba(241, 235, 224, 0.30) 100%);
}

.hero__arch-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hero__arch {
  width: min(400px, 82vw);
  height: min(520px, 62vh);
  border: 1px solid rgba(43, 38, 32, 0.5);
  border-radius: 200px 200px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
  padding: 56px 40px 0;
  background: rgba(241, 235, 224, 0.30);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  transform: translateY(26px);
  animation: arch-rise 1.6s var(--ease) 0.7s forwards;
}

@keyframes arch-rise {
  to { opacity: 1; transform: translateY(0); }
}

.hero__motto {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(26px, 3.4vw, 32px);
  color: var(--ink);
}

.hero__arch .rule { background: var(--bronze); width: 40px; }

.hero__tag {
  font-size: var(--fs-label);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  line-height: 2.1;
  color: var(--ink-soft);
  font-weight: 400;
}

.hero__cta { margin-top: 12px; pointer-events: auto; }

.hero__scroll {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--bronze);
  font-weight: 400;
  opacity: 0;
  animation: fade-in 1.2s ease 1.9s forwards;
}

.hero__scroll span { animation: drift 2.6s ease-in-out infinite; }

@keyframes fade-in { to { opacity: 1; } }

@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ---------- page heroes (interior pages) ---------- */

.folio__eyebrow { margin-bottom: 30px; }

/* photo hero on inner pages: text sits over a blurred, cream-washed left side */

.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  height: min(calc(100svh - var(--nav-h)), 820px);
  min-height: 560px;
  overflow: hidden;
  background: var(--parchment);
}

.page-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.page-hero__blur {
  position: absolute;
  inset: 0;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  background: linear-gradient(90deg,
    rgba(241, 235, 224, 0.78) 0%,
    rgba(241, 235, 224, 0.6) 40%,
    rgba(241, 235, 224, 0) 72%);
  -webkit-mask-image: linear-gradient(90deg, #000 45%, transparent 72%);
  mask-image: linear-gradient(90deg, #000 45%, transparent 72%);
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(43, 38, 32, 0) 0%, rgba(43, 38, 32, 0.4) 100%);
  pointer-events: none;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.page-hero__inner .folio__lede { color: var(--ink); }

.band__caption.page-hero__caption {
  left: auto;
  right: var(--pad-x);
  text-align: right;
}

.folio__lede {
  max-width: 560px;
  margin-top: 34px;
  font-size: 18px;
}

/* ---------- sections ---------- */

.section { padding: clamp(90px, 13vh, 150px) var(--pad-x); }

.section--parchment { background: var(--parchment); }

.section__inner {
  max-width: 1248px;
  margin: 0 auto;
}

.section__inner--wide { max-width: 1440px; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding: 28px 4px 64px;
}

.centered { text-align: center; }

.statement-block {
  text-align: center;
  max-width: 1040px;
  margin: 0 auto;
}

.statement-block .rule { margin: 44px auto 0; }

/* ---------- imagery ---------- */

.frame {
  overflow: hidden;
  background: var(--parchment);
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}

/* portraits sit high in frame so the arch does not crop the face */
.frame img.portrait { object-position: 50% 22%; }

a.frame-link:hover .frame img,
.frame:hover img { transform: scale(1.035); }

.frame--arch {
  border-radius: 999px 999px 0 0;
}

.frame--arch img { border-radius: inherit; }

/* ---------- project grids (home + projects) ---------- */

.work-row {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: end;
  padding-bottom: clamp(70px, 10vw, 110px);
}

.work-row--flip {
  grid-template-columns: 5fr 7fr;
  align-items: start;
}

.work-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.work-item .frame--tall { height: clamp(360px, 42vw, 560px); }
.work-item .frame--short { height: clamp(300px, 32vw, 420px); }

.work-item__title {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  color: var(--ink);
  transition: color 0.35s ease;
}

a.work-item:hover .work-item__title { color: var(--bronze); }

.work-item__meta { margin-top: 6px; }

/* ---------- approach columns ---------- */

.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(36px, 4vw, 56px);
  margin-top: 80px;
}

.trio__cell {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0 12px;
}

.trio__numeral {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--bronze);
}

.trio__label {
  font-size: 13px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 400;
}

.trio__copy {
  font-size: var(--fs-copy);
  line-height: 1.85;
}

.intro-copy {
  max-width: 720px;
  margin: 28px auto 0;
  font-size: var(--fs-body);
  line-height: 1.85;
  text-wrap: pretty;
}

/* ---------- packages ---------- */

.tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px clamp(28px, 4vw, 56px);
  margin-top: 44px;
}

.tabs__tab {
  position: relative;
  background: none;
  border: 0;
  padding: 6px 0 10px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: var(--fs-label);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.35s var(--ease);
}

.tabs__tab::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--bronze);
  transition: width 0.45s var(--ease);
}

.tabs__tab:hover,
.tabs__tab[aria-selected="true"] { color: var(--ink); }

.tabs__tab[aria-selected="true"]::after { width: 100%; }

.tabs__tab:focus-visible { outline: 1px solid var(--bronze); outline-offset: 6px; }

#packages[data-active="remodel"] [data-view="fire"],
#packages[data-active="fire"] [data-view="remodel"] { display: none; }

#packages[data-active] [data-view] { animation: tab-fade 0.5s ease; }

@keyframes tab-fade { from { opacity: 0; } }

.packages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(36px, 4vw, 56px);
  margin-top: 80px;
}

.package {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.package__name {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
}

.package__tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--ink-soft);
}

.package .caption { color: var(--bronze); }

.package__copy {
  font-size: var(--fs-copy);
  line-height: 1.85;
}

.package__plus {
  font-size: var(--fs-label);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 6px;
}

.package__list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line-soft);
}

.package__list li {
  position: relative;
  padding: 12px 0 12px 24px;
  border-bottom: 1px solid var(--line-soft);
  font-size: var(--fs-small);
  line-height: 1.7;
}

.package__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 23px;
  width: 12px;
  height: 1px;
  background: var(--bronze);
}

.packages__note {
  max-width: 640px;
  margin: 80px auto 0;
  font-size: var(--fs-small);
  line-height: 1.85;
  color: var(--ink-soft);
}

.packages__note .link-line { margin-top: 32px; }

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 clamp(36px, 4vw, 56px);
  margin-top: 64px;
}

.services__item {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}

.services__item p {
  font-size: var(--fs-copy);
  line-height: 1.85;
}

/* ---------- founder / split blocks ---------- */

.split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
}

.split--flip { grid-template-columns: 7fr 5fr; }

.split__portrait {
  display: flex;
  justify-content: center;
}

.split__portrait .frame--arch {
  width: min(440px, 100%);
  height: clamp(460px, 44vw, 600px);
}

.split__body {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 560px;
  margin-top: 36px;
}

.split h2.serif-title {
  font-size: clamp(32px, 3.2vw, 40px);
  line-height: 1.3;
  margin-top: 26px;
}

.split__role {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--stone);
  margin-top: 10px;
}

/* ---------- wide image band ---------- */

.band {
  position: relative;
  height: clamp(340px, 56vh, 560px);
  overflow: hidden;
}

.band img {
  width: 100%;
  height: 112%;
  object-fit: cover;
  will-change: transform;
}

.band::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(43, 38, 32, 0) 0%, rgba(43, 38, 32, 0.45) 100%);
  pointer-events: none;
}

.band__caption {
  z-index: 1;
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 11.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--bone-85);
  font-weight: 400;
  text-shadow: 0 1px 14px rgba(43, 38, 32, 0.5);
}

/* ---------- process steps (approach) ---------- */

.steps {
  max-width: 880px;
  margin: 0 auto;
}

.step {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: clamp(28px, 5vw, 64px);
  padding: 52px 4px;
  border-top: 1px solid var(--line);
  align-items: start;
}

.step:last-child { border-bottom: 1px solid var(--line); }

.step__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 30px;
  color: var(--bronze);
  line-height: 1.3;
}

.step__title {
  font-size: 13px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 400;
  margin-bottom: 12px;
}

.step p { max-width: 560px; }

/* ---------- values (studio) ---------- */

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(36px, 4vw, 56px);
  margin-top: 80px;
}

.values__word {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(26px, 2.6vw, 34px);
  color: var(--ink);
}

.values__cell {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 12px;
}

.values__cell .rule { margin: 4px auto; width: 34px; }

.values__cell p { font-size: var(--fs-copy); line-height: 1.85; }

/* ---------- inquire page ---------- */

.inquire-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(48px, 8vw, 120px);
  max-width: 1248px;
  margin: 0 auto;
  align-items: start;
}

.inquire-notes {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.inquire-notes__item {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.inquire-notes__item .caption { color: var(--bronze); }

.inquire-notes__item p { margin-top: 10px; font-size: var(--fs-copy); }

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.contact-list a {
  font-size: var(--fs-copy);
  letter-spacing: 0.04em;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  align-self: flex-start;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.contact-list a:hover { color: var(--bronze); border-color: var(--bronze); }

.form { display: flex; flex-direction: column; gap: 34px; }

.field { display: flex; flex-direction: column; gap: 10px; }

.field label {
  font-size: var(--fs-label);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 2px 14px;
  border-radius: 0;
  outline: none;
  transition: border-color 0.35s ease;
  -webkit-appearance: none;
  appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' fill='none'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%238A6A3B' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  cursor: pointer;
}

.field textarea { resize: vertical; min-height: 120px; line-height: 1.7; }

.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--bronze); }

.field input::placeholder,
.field textarea::placeholder { color: var(--stone); opacity: 0.7; }

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
}

.form__hint { font-size: var(--fs-small); color: var(--ink-soft); line-height: 1.7; }

/* ---------- footer ---------- */

.footer {
  background: var(--ink);
  color: var(--bone);
  padding: clamp(90px, 13vh, 130px) var(--pad-x) 60px;
}

.footer__inner { max-width: 1248px; margin: 0 auto; }

.footer__eyebrow {
  font-size: var(--fs-label);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
}

.footer__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 3.6vw, 44px);
  margin-top: 28px;
}

.footer__cta { margin-top: 40px; }

.footer__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line-dark);
  margin-top: clamp(70px, 10vw, 110px);
  padding-top: 36px;
  font-size: var(--fs-label);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bone-85);
  font-weight: 400;
}

.footer__links { display: flex; gap: clamp(20px, 3vw, 40px); flex-wrap: wrap; }

.footer__links a,
.footer__bar a { color: var(--bone-85); transition: color 0.3s ease; }

.footer__links a:hover,
.footer__bar a:hover { color: var(--bone); }

/* ---------- projects index + detail pages ---------- */

.project-group + .project-group { margin-top: clamp(70px, 9vw, 120px); }

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(48px, 5vw, 72px) clamp(28px, 3vw, 44px);
}

.project-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.project-card .frame { aspect-ratio: 4 / 5; }

a.project-card:hover .work-item__title { color: var(--bronze); }

div.project-card .frame:hover img { transform: none; }

.wordmark--project { font-size: clamp(44px, 6vw, 88px); }

.spec-line { margin-bottom: clamp(44px, 6vw, 70px); }

.gallery {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.4vw, 32px);
}

.gallery__row { display: grid; gap: clamp(20px, 2.4vw, 32px); }

.gallery__row--wide .frame { aspect-ratio: 16 / 9; }

.gallery__row--pair { grid-template-columns: 1fr 1fr; }

.gallery__row--pair .frame { aspect-ratio: 4 / 3; }

.next-home {
  margin-top: clamp(80px, 10vw, 130px);
  padding-top: 56px;
  border-top: 1px solid var(--line);
}

.next-home__link {
  display: inline-block;
  margin-top: 22px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(30px, 3.4vw, 44px);
  color: var(--ink);
  transition: color 0.35s var(--ease);
}

.next-home__link:hover { color: var(--bronze); }

.footer--compact { padding-top: 60px; }

.footer--compact .footer__bar { margin-top: 0; }

/* ---------- scroll reveals ---------- */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- focus visibility ---------- */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 1.5px solid var(--bronze);
  outline-offset: 4px;
}

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
  .work-row,
  .work-row--flip {
    grid-template-columns: 1fr;
    gap: 70px;
    align-items: stretch;
  }

  .work-item .frame--tall,
  .work-item .frame--short { height: clamp(320px, 56vw, 480px); }

  .split,
  .split--flip { grid-template-columns: 1fr; gap: 56px; }

  .trio { grid-template-columns: 1fr; gap: 60px; }

  .project-grid { grid-template-columns: 1fr 1fr; }

  .services { grid-template-columns: 1fr 1fr; }

  .packages { grid-template-columns: 1fr; gap: 64px; max-width: 640px; margin-left: auto; margin-right: auto; }

  .values { grid-template-columns: 1fr; gap: 54px; }

  .inquire-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --nav-h: 92px; }

  .nav__logo img { width: 102px; }

  .nav__group { display: none; }

  .nav__inner { grid-template-columns: 1fr auto 1fr; }

  .nav__logo { grid-column: 2; }

  .nav__toggle { display: block; }

  .section-head { flex-direction: column; gap: 14px; }

  .services { grid-template-columns: 1fr; }

  .project-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }

  .gallery__row--pair { grid-template-columns: 1fr; }

  .page-hero { min-height: 520px; }

  .page-hero__blur {
    background: rgba(241, 235, 224, 0.62);
    -webkit-mask-image: none;
    mask-image: none;
  }

  .band__caption.page-hero__caption { left: var(--pad-x); text-align: left; }

  .step { grid-template-columns: 1fr; gap: 10px; padding: 40px 4px; }

  .form__row { grid-template-columns: 1fr; }

  .footer__bar { flex-direction: column; align-items: flex-start; gap: 18px; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  body,
  body.is-loading,
  body.is-leaving { opacity: 1; transition: none; }

  .hero__media img,
  .hero__arch,
  .hero__scroll { animation: none; opacity: 1; transform: none; }

  .hero__scroll span { animation: none; }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .frame img { transition: none; }

  #packages[data-active] [data-view] { animation: none; }

  .band img { transform: none !important; }
}
