/* ==========================================================
   Homagica — editorial interior design studio
   Photography-led, generous whitespace, hairline rules.
   Display: Fraunces (italic). Body: Inter.
   Neutral parchment + ink, one muted rust accent used sparingly.
   ========================================================== */

:root {
  --paper: #ffffff;
  --paper-dim: #f4f2ed;
  --ink: #201C18;
  --ink-soft: #6B6459;
  --line: #D9D0BE;
  --rust: #A6432B;
  --gold: #C08A2E;
  --sage: #5C6B4F;
  --plum: #3A2542;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --wrap: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Subtle paper grain for a tactile, premium feel */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Scroll-reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  line-height: 1.08;
  margin: 0 0 0.4em;
  color: var(--ink);
}

h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.3rem; font-style: normal; font-weight: 500; }

p { margin: 0 0 1em; color: var(--ink-soft); max-width: 58ch; }
a { color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 18px;
}

.section-label {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 48px;
}
.section-label::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--line);
  align-self: center;
  min-width: 24px;
}
.section-label .num { color: var(--rust); font-family: var(--font-display); font-style: italic; font-size: 1rem; }
.num--gold { color: var(--gold) !important; }
.num--sage { color: var(--sage) !important; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }

/* ---------- Links / buttons ---------- */
.btn-line {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  padding-bottom: 4px;
}
.btn-line::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--ink);
  transform-origin: right;
  transition: transform 0.3s ease, background 0.3s ease;
}
.btn-line:hover::after { background: var(--rust); }
.btn-line:hover { color: var(--rust); }
.btn-line--light { color: var(--paper); }
.btn-line--light::after { background: var(--paper); }
.btn-line--light:hover { color: var(--paper); opacity: 0.8; }

.btn-solid {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  background: var(--ink);
  color: var(--paper);
  border: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(32,28,24,0.18); }
.btn-solid:active { transform: translateY(0) scale(0.97); box-shadow: none; }
.btn-solid:hover { background: var(--rust); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  border-top: 3px solid var(--rust);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 16px; }
.brand {
  display: flex;
  align-items: center;
  flex: none;
  text-decoration: none;
  color: var(--ink);
}
.brand img { display: block; height: 46px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a {
  text-decoration: none; color: var(--ink-soft);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: color 0.2s ease;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a.is-active { color: var(--rust); }
.main-nav a.nav-cta { color: var(--ink); border-bottom: 1.5px solid var(--rust); padding-bottom: 3px; }
.main-nav a.nav-cta.is-active { color: var(--ink); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 44px; height: 44px; background: none; border: none; cursor: pointer;
}
.nav-toggle span { display: block; height: 1.5px; width: 22px; background: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 82vh; min-height: 520px; overflow: hidden; }
.hero-photo { position: absolute; inset: 0; overflow: hidden; }
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover;
  animation: heroZoom 13s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}
.hero-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
  padding-bottom: 64px;
  background: linear-gradient(0deg, rgba(20,16,12,0.72) 0%, rgba(20,16,12,0.15) 55%, rgba(20,16,12,0.05) 100%);
}
.hero-overlay .eyebrow { color: #E9C8B8; opacity: 0; animation: heroRise 0.7s ease forwards; animation-delay: 0.15s; }
.hero-overlay h1 { color: var(--paper); opacity: 0; animation: heroRise 0.7s ease forwards; animation-delay: 0.28s; }

.hero-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: end;
}
.hero-copy { min-width: 0; }

/* Open form card sitting right inside the hero — real white, not the paper cream */
.hero-form-card {
  position: relative;
  background: #FFFFFF;
  border-radius: 8px;
  padding: 30px 30px 26px;
  box-shadow: 0 24px 50px rgba(20,16,12,0.35);
  opacity: 0;
  animation:
    heroFormRise 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.4s,
    heroFormFloat 5s ease-in-out 1.3s infinite;
  transition: box-shadow 0.35s ease;
}
.hero-form-card:hover { box-shadow: 0 30px 64px rgba(20,16,12,0.42); }

/* Blueprint-style corner registration marks — a small architectural signature */
.hero-form-card::before,
.hero-form-card::after {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  border-color: var(--rust);
  border-style: solid;
  opacity: 0.55;
  pointer-events: none;
}
.hero-form-card::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; border-radius: 4px 0 0 0; }
.hero-form-card::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; border-radius: 0 0 4px 0; }
.hero-form-kicker {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 10px;
}
.hero-form-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.55rem;
  color: var(--ink);
  margin: 0 0 6px;
}
.hero-form-sub {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--ink-soft);
  margin: 0 0 20px;
  max-width: none;
}
.hero-form { display: flex; flex-direction: column; gap: 16px; }
.hero-form .form-row {
  opacity: 0;
  animation: heroRise 0.6s ease forwards;
}
.hero-form .form-row:nth-child(1) { animation-delay: 0.55s; }
.hero-form .form-row:nth-child(2) { animation-delay: 0.62s; }
.hero-form .form-row:nth-child(3) { animation-delay: 0.69s; }
.hero-form-submit {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
  opacity: 0;
  animation: heroRise 0.6s ease forwards;
  animation-delay: 0.76s;
}
.hero-form-success {
  text-align: center;
  padding: 10px 0 6px;
  animation: formPopIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-form-success[hidden] { display: none; }
.hero-form-success-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--sage); color: #fff; margin-bottom: 10px;
}
.checkmark-path {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: drawCheck 0.5s ease forwards 0.15s;
}
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
.hero-form-success p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink);
  margin: 0;
  max-width: none;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-form-card { max-width: 420px; }
}

@keyframes heroRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

@keyframes heroFormRise {
  from { opacity: 0; transform: translateX(28px) translateY(14px) scale(0.96); }
  to { opacity: 1; transform: translateX(0) translateY(0) scale(1); }
}

@keyframes heroFormFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes formPopIn {
  from { opacity: 0; transform: scale(0.9) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ---------- Marquee: scrolling text strip below hero ---------- */
.marquee {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding: 18px 0;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  animation: scroll-left 26s linear infinite;
}
.marquee-track span { padding: 0 4px; }
.dot-sep { color: var(--gold); font-style: normal; font-size: 0.6rem; }

@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Statement ---------- */
.statement { padding: 110px 0 70px; text-align: center; }
.statement--page-top { padding-top: 160px; }
.statement--tight { padding-top: 40px; padding-bottom: 100px; }
.statement-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  color: var(--ink);
  max-width: 780px;
  margin: 0 auto 36px;
  line-height: 1.4;
}
.statement-actions { display: flex; justify-content: center; gap: 36px; flex-wrap: wrap; }

.palette-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 70px;
  padding-top: 44px;
  border-top: 1px solid var(--line);
}
.palette-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.palette-swatches { display: flex; gap: 34px; flex-wrap: wrap; justify-content: center; }
.swatch-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.swatch-dot { width: 22px; height: 22px; border-radius: 50%; display: inline-block; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08); }
.swatch-dot--rust { background: var(--rust); }
.swatch-dot--gold { background: var(--gold); }
.swatch-dot--sage { background: var(--sage); }

/* ---------- Stats: solid colour block, full-bleed ---------- */
.stats-block { background: var(--rust); }
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 40px 12px;
  text-align: center;
  border-left: 1px solid rgba(255,255,255,0.25);
  display: flex; flex-direction: column; gap: 6px;
}
.stat:first-child { border-left: none; }
.stat-num { font-family: var(--font-display); font-style: italic; font-size: 2.1rem; color: var(--paper); font-variant-numeric: tabular-nums; }
.stat-num--gold, .stat-num--sage { color: var(--paper); }
.stat-label { font-size: 0.82rem; color: rgba(247,243,236,0.8); }

section { padding: 120px 0; }

/* ---------- Services ---------- */
.service-list { border-top: 1px solid var(--line); }
.service-row {
  display: grid;
  grid-template-columns: 60px 1fr 220px;
  gap: 30px;
  align-items: center;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}
.service-index {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--paper);
  background: var(--rust);
  border-radius: 6px;
}
.service-index--gold { background: var(--gold); color: var(--paper); }
.service-index--sage { background: var(--sage); color: var(--paper); }
.service-body h3 { margin-bottom: 8px; }
.service-body p { margin: 0; max-width: 48ch; }
.service-meta {
  display: flex; flex-direction: column; gap: 8px;
  font-size: 0.85rem; color: var(--ink-soft); text-align: right;
}
.service-tile {
  position: relative;
  width: 100%;
  height: 92px;
  overflow: hidden;
  margin-bottom: 2px;
}
.tile-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.tile-slide.is-active { opacity: 1; }
.tile-slide::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,16,12,0) 50%, rgba(20,16,12,0.6) 100%);
}
.tile-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.05);
  transition: transform 6s ease;
}
.tile-slide.is-active img { transform: scale(1.16); }
.service-row:hover .tile-slide.is-active img { transform: scale(1.3); transition-duration: 1.2s; }
.tile-slide-label {
  position: absolute;
  left: 10px; bottom: 7px;
  z-index: 2;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
}

/* ---------- Portfolio: colour-block backdrop, matted photos ---------- */
.portfolio { padding-bottom: 60px; background: #EFDCB8; }
.work-block {
  display: grid;
  grid-template-columns: 62% 1fr;
  align-items: end;
  margin-bottom: 70px;
}
.work-block--reverse { grid-template-columns: 1fr 62%; }
.work-block--reverse .work-photo { order: 2; }
.work-photo {
  position: relative;
  background: var(--paper);
  padding: 14px;
  box-shadow: 0 10px 30px rgba(32,28,24,0.12);
  overflow: hidden;
}
.work-photo::before,
.work-photo::after {
  content: "";
  position: absolute;
  width: 20px; height: 20px;
  border-color: var(--rust);
  border-style: solid;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 2;
}
.work-photo::before { top: 8px; left: 8px; border-width: 2px 0 0 2px; }
.work-photo::after { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; }
.work-block:hover .work-photo::before,
.work-block:hover .work-photo::after { opacity: 0.7; }
.work-photo img { width: 100%; display: block; height: 460px; object-fit: cover; transition: transform 0.6s ease; }
.work-block:hover .work-photo img { transform: scale(1.03); }
.work-caption { padding: 20px 32px; max-width: none; }
.work-caption h3 { margin-bottom: 6px; }
.work-caption span {
  font-size: 0.85rem;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.work-caption span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rust);
  display: inline-block;
}
.work-block--gold .work-caption span::before { background: var(--gold); }
.work-block--sage .work-caption span::before { background: var(--sage); }

.photo-credit { font-size: 0.78rem; color: var(--ink-soft); opacity: 0.75; margin-top: 10px; }

/* ---------- Studio ---------- */
.studio-inner { display: grid; grid-template-columns: 1fr 0.85fr; gap: 70px; align-items: center; }
.studio-photo img { width: 100%; display: block; height: 420px; object-fit: cover; }

/* ---------- About page: values ---------- */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.value-card { padding: 32px 26px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper-dim); }
.value-card .value-num { font-family: var(--font-display); font-style: italic; color: var(--rust); font-size: 1.4rem; display: block; margin-bottom: 14px; }
.value-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.value-card p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }

/* ---------- About page: team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.team-card { text-align: left; }
.team-card img { width: 100%; height: 220px; object-fit: cover; display: block; border-radius: 4px; margin-bottom: 14px; }
.team-card h4 { margin: 0 0 2px; font-size: 1rem; }
.team-card span { display: block; color: var(--ink-soft); font-size: 0.82rem; }

@media (max-width: 900px) {
  .value-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Closing CTA ---------- */
.closing-cta { background: var(--rust); text-align: center; }
.closing-cta-inner h2 { color: var(--paper); margin-bottom: 34px; }
.closing-cta .btn-line--light::after { background: var(--gold); }
.closing-cta .btn-line--light:hover { color: var(--gold); opacity: 1; }

/* ---------- Testimonials: solid colour block ---------- */
.testimonials { background: var(--sage); }
.testi-slider { max-width: 760px; margin: 0 auto; text-align: center; position: relative; }
.testi-mark {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 5rem;
  color: rgba(247,243,236,0.35);
  line-height: 1;
  margin-bottom: -20px;
}
.testi-track { position: relative; min-height: 200px; }
.testi { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity 0.4s ease; }
.testi.active { opacity: 1; visibility: visible; position: relative; }
.testi p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--paper);
  max-width: 100%;
  margin: 0 auto 26px;
  line-height: 1.4;
}
.testi cite { display: flex; flex-direction: column; gap: 2px; font-style: normal; }
.cite-name { color: var(--paper); font-size: 0.92rem; font-weight: 600; }
.cite-role { color: var(--gold); font-size: 0.8rem; letter-spacing: 0.04em; }
.cite-role--gold { color: #F0C875; }
.cite-role--sage { color: var(--paper); opacity: 0.75; }
.testi-dots { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.dot { position: relative; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid rgba(247,243,236,0.5); background: transparent; cursor: pointer; padding: 0; }
.dot::after { content: ''; position: absolute; inset: -14px; }
.dot.active { background: var(--gold); border-color: var(--gold); }
.dot:nth-child(2).active { background: var(--paper); border-color: var(--paper); }
.dot:nth-child(3).active { background: var(--rust); border-color: var(--rust); }

/* ---------- Contact ---------- */
.contact-inner { display: grid; grid-template-columns: 0.8fr 1.1fr; gap: 70px; }
.info-block { display: flex; flex-direction: column; gap: 8px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.info-block a { text-decoration: none; font-weight: 500; overflow-wrap: anywhere; }
.info-block a:hover { color: var(--rust); }

.contact-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 26px 24px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(32,28,24,0.08);
}
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row--full { grid-column: 1 / -1; }
.form-row label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.form-row input, .form-row select, .form-row textarea {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 10px 2px;
  border: none;
  border-bottom: 1.5px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 0;
  transition: border-color 0.25s ease;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--rust);
  box-shadow: 0 0 0 4px rgba(166,67,43,0.12);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-row input.is-invalid { border-color: #B3261E; }
.contact-form .btn-solid { grid-column: 1 / -1; justify-self: start; margin-top: 8px; }

/* ---------- Thank you ---------- */
.thankyou { padding: 150px 0; }
.thankyou-inner { max-width: 560px; }

/* ---------- Footer: gold block (matches portfolio accent) ---------- */
.site-footer { background: var(--gold); padding: 60px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-links { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-logo-chip {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  background: var(--paper);
  padding: 10px 16px;
  border-radius: 8px;
  margin-bottom: 10px;
  box-shadow: 0 6px 16px rgba(32,28,24,0.12);
}
.footer-logo-chip img { display: block; height: 28px; width: auto; }
.footer-col p { color: rgba(32,28,24,0.7); }
.footer-label { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); margin-bottom: 4px; }
.footer-col a { text-decoration: none; color: rgba(32,28,24,0.85); font-size: 0.92rem; }
.footer-col a:hover { color: var(--paper); }
.footer-col span { font-size: 0.92rem; color: rgba(32,28,24,0.7); }
.footer-bottom {
  display: flex; justify-content: space-between;
  border-top: 1px solid rgba(32,28,24,0.2);
  padding: 18px 0; font-size: 0.8rem; color: rgba(32,28,24,0.7);
  flex-wrap: wrap; gap: 8px;
}
.footer-admin-link {
  color: rgba(32,28,24,0.55);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}
.footer-admin-link:hover { color: var(--rust); }

/* ---------- Services: room-wise types ---------- */
.room-types-section { background: var(--paper-dim); }
.room-types-intro { text-align: left; font-size: 1.05rem; margin: 0 0 40px; max-width: 62ch; }
.room-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.room-card {
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 26px 26px 22px; transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.room-card:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(32,28,24,0.07); }
.room-card h3 { font-size: 1.15rem; margin: 0 0 16px; }
.room-type-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.room-type-list li { position: relative; padding-left: 18px; font-size: 0.88rem; color: var(--ink-soft); line-height: 1.45; }
.room-type-list li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--rust);
}

/* ---------- Gallery ---------- */
.gallery-section { padding: 20px 0 100px; }
.gallery-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.gallery-filter {
  padding: 9px 18px; border-radius: 20px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-soft); font-family: var(--font-body);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.03em; cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.gallery-filter:hover { border-color: var(--ink-soft); }
.gallery-filter.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gallery-item {
  margin: 0; position: relative; overflow: hidden;
  background: var(--paper-dim); aspect-ratio: 4 / 3;
}
.gallery-thumb {
  display: block; width: 100%; height: 100%; padding: 0; margin: 0;
  border: none; background: none; cursor: pointer;
}
.gallery-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.5s ease;
}
.gallery-item:hover .gallery-thumb img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; pointer-events: none;
  padding: 30px 18px 16px;
  background: linear-gradient(0deg, rgba(20,16,12,0.82) 0%, rgba(20,16,12,0) 100%);
  color: #fff; display: flex; flex-direction: column; gap: 3px;
}
.gallery-item figcaption span { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; }
.gallery-item figcaption small { font-size: 0.74rem; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.85; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15,12,10,0.94);
  display: flex; align-items: center; justify-content: center;
  gap: 10px; padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox-stage { max-width: 900px; width: 100%; text-align: center; }
.lightbox-stage img {
  max-width: 100%; max-height: 74vh; object-fit: contain;
  display: block; margin: 0 auto; box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-caption { color: #fff; margin-top: 16px; display: flex; flex-direction: column; gap: 4px; }
.lightbox-caption span { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; }
.lightbox-caption small { font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.75; }
.lightbox-caption em { font-style: normal; font-size: 0.78rem; opacity: 0.6; }
.lightbox-close {
  position: absolute; top: 18px; right: 22px;
  background: none; border: none; color: #fff; font-size: 2rem; line-height: 1;
  cursor: pointer; z-index: 2;
}
.lightbox-nav {
  background: rgba(255,255,255,0.1); border: none; color: #fff;
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem;
  cursor: pointer; flex: none; transition: background 0.2s ease;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.22); }
.lightbox-nav[hidden] { visibility: hidden; }

@media (max-width: 720px) {
  .lightbox { padding: 16px; gap: 4px; }
  .lightbox-nav { width: 40px; height: 40px; font-size: 1.3rem; }
  .lightbox-close { top: 10px; right: 12px; font-size: 1.6rem; }
}

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ---------- Budget Calculator ---------- */
.material-block { margin-bottom: 64px; padding-bottom: 50px; border-bottom: 1px solid var(--line); }
.material-block:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.material-head h3 { margin-bottom: 4px; font-size: 1.4rem; }
.material-sub { font-family: var(--font-body); font-style: normal; font-size: 0.85rem; color: var(--ink-soft); font-weight: 400; }

.type-grid { display: flex; gap: 18px; flex-wrap: wrap; margin: 26px 0; }
.type-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  width: 140px; padding: 12px; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--paper); cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  font-family: var(--font-body);
}
.type-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(32,28,24,0.08); }
.type-card.is-selected { border-color: var(--rust); box-shadow: 0 8px 20px rgba(166,67,43,0.18); }
.type-img { width: 100%; height: 80px; border-radius: 6px; overflow: hidden; }
.type-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.type-name { font-size: 0.85rem; font-weight: 600; color: var(--ink); text-align: center; }

.quality-panel:not(.is-open) { display: none; }
.quality-label { display: block; font-size: 0.8rem; color: var(--ink-soft); margin-bottom: 14px; }
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tier-card {
  text-align: left; padding: 18px; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--paper-dim); cursor: pointer; display: flex; flex-direction: column; gap: 6px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.tier-card:hover { border-color: var(--gold); }
.tier-card.is-selected { border-color: var(--rust); background: var(--paper); box-shadow: 0 8px 20px rgba(166,67,43,0.15); }
.tier-name { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; }
.tier-life { font-size: 0.78rem; color: var(--ink-soft); }
.tier-rate { font-size: 1.1rem; font-weight: 700; color: var(--rust); margin-top: 6px; font-variant-numeric: tabular-nums; }
.tier-rate small { font-size: 0.7rem; font-weight: 500; color: var(--ink-soft); margin-left: 2px; }

.calc-items-hint { color: var(--ink-soft); margin-bottom: 30px; }
.item-list { border-top: 1px solid var(--line); }
.item-group-title {
  font-family: var(--font-display); font-style: italic; font-size: 1.15rem;
  color: var(--rust); padding: 22px 0 6px;
}
.item-list > .item-group-title:first-child { padding-top: 4px; }
.item-row {
  display: grid; grid-template-columns: 1fr 160px 140px; gap: 20px; align-items: center;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.item-check { display: flex; align-items: center; gap: 12px; font-weight: 600; cursor: pointer; }
.item-check input { width: 18px; height: 18px; accent-color: var(--rust); flex: none; }
.item-check span { display: flex; flex-direction: column; gap: 2px; }
.addon-rate { font-weight: 400; font-size: 0.76rem; color: var(--ink-soft); }
.item-area { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--ink-soft); }
.item-area input {
  width: 70px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 6px;
  font-family: var(--font-body); font-size: 0.9rem; color: var(--ink); background: var(--paper);
}
.item-area input:focus { outline: none; border-color: var(--rust); }
.item-cost { text-align: right; font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.calc-items--addons { background: var(--paper-dim); }

.calc-summary { background: var(--paper-dim); }
.summary-card {
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 16px;
  padding: 40px; max-width: 640px; margin: 0 auto;
}
.summary-row { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; }
.summary-row span { color: var(--ink-soft); font-size: 0.9rem; }
.summary-row strong { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.summary-row--total { border-top: 1.5px solid var(--line); margin-top: 6px; padding-top: 20px; }
.summary-row--total strong { font-size: 2.2rem; color: var(--rust); }
.summary-note { font-size: 0.82rem; color: var(--ink-soft); margin: 18px 0 26px; }
.summary-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .service-row { grid-template-columns: 1fr; gap: 10px; }
  .service-meta { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 14px; text-align: left; }
  .service-tile { width: 70px; height: 56px; flex: none; order: -1; margin-bottom: 0; }
  .work-block, .work-block--reverse { grid-template-columns: 1fr; }
  .work-block--reverse .work-photo { order: 0; }
  .work-photo img { height: 320px; }
  .studio-inner { grid-template-columns: 1fr; }
  .studio-photo img { height: 280px; }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .contact-form { gap: 20px; padding: 28px 24px; }
  .contact-form .btn-solid { width: 100%; justify-self: stretch; justify-content: center; }
  .contact-form { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px 20px; }

  /* Hero stacks here too (grid goes 1fr above) — move to normal document flow
     so the fixed-height absolute layout doesn't clip the stacked content */
  .hero { height: auto; min-height: 0; overflow: visible; background: var(--ink); }
  .hero-photo { position: relative; height: 40vh; min-height: 260px; background: var(--ink); display: block; }
  .hero-photo img { display: block; }
  .hero-overlay { position: relative; padding: 26px 0 30px; background: var(--ink); }
  .hero-grid { gap: 20px; }
  .hero-overlay .eyebrow { margin-bottom: 10px; }
  .hero-overlay h1 { margin-bottom: 0; }

  section { padding: 80px 0; }
  .statement { padding: 70px 0 46px; }
  .statement--page-top { padding-top: 110px; }
  .statement--tight { padding-top: 30px; padding-bottom: 70px; }
  .thankyou { padding: 100px 0; }

  .room-grid { grid-template-columns: repeat(2, 1fr); }

  .tier-grid { grid-template-columns: 1fr; }
  .item-row { grid-template-columns: 1fr; gap: 10px; text-align: left; }
  .item-cost { text-align: left; }
  .summary-card { padding: 28px 24px; }
  .summary-row--total strong { font-size: 1.8rem; }

  .thankyou { padding: 100px 0; }

  /* Hamburger kicks in from here instead of 720px — the full desktop
     nav (5 links + logo) doesn't actually fit in anything narrower
     than ~900px, so between 721-900px it was overflowing/crushed. */
  .header-inner { height: 68px; }
  .brand img { height: 38px; }
  .main-nav {
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start;
    padding: 12px 20px 20px; gap: 4px;
    display: none;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    box-shadow: 0 16px 30px rgba(32,28,24,0.1);
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line);
    font-size: 0.85rem;
  }
  .main-nav a:last-child { border-bottom: none; }
  .main-nav a.nav-cta {
    margin-top: 6px;
    padding: 15px 18px;
    background: var(--ink);
    color: var(--paper);
    border-bottom: none;
    text-align: center;
  }
  body.nav-open { overflow: hidden; }

  .nav-toggle {
    display: flex;
    width: 48px; height: 48px;
    position: relative;
    z-index: 60;
  }
  .nav-toggle span {
    transition: transform 0.25s ease, opacity 0.2s ease;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

@media (max-width: 720px) {
  .statement-actions { flex-direction: column; gap: 16px; align-items: center; }
  .statement-text { font-size: clamp(1.3rem, 5vw, 1.7rem); }

  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 28px 10px; }
  .stat-num { font-size: 1.7rem; }
  .stat-label { font-size: 0.76rem; }

  section { padding: 60px 0; }
  .statement { padding: 56px 0 40px; }
  .statement--page-top { padding-top: 92px; }
  .thankyou { padding: 70px 0; }

  .work-photo img { height: 240px; }
  .work-caption { padding: 16px 0; }
  .work-block { margin-bottom: 44px; }

  .studio-photo img { height: 220px; }

  .testi p { font-size: 1.2rem; }
  .testi-mark { font-size: 3.6rem; }

  .site-footer { padding: 44px 0 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-bottom: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-links { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-col a, .footer-col span { padding: 3px 0; display: inline-block; overflow-wrap: anywhere; }
  .footer-bottom {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px 16px;
    padding: 16px 0 20px;
  }
  .footer-bottom > span:first-child { flex: 1 1 100%; }

  .wrap { padding-left: 20px; padding-right: 20px; }
  .form-row input, .form-row select, .form-row textarea { font-size: 16px; }
  .item-area input { font-size: 16px; width: 64px; }

  .summary-actions { flex-direction: column; align-items: stretch; gap: 14px; }
  .summary-actions .btn-solid { justify-content: center; }
  .summary-actions .btn-line { text-align: center; }

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

@media (max-width: 420px) {
  .hero-form-card { padding: 22px 20px 18px; }
  .hero-photo { height: 38vh; min-height: 240px; }
  .stat-num { font-size: 1.5rem; }
  .type-card { width: calc(50% - 9px); }
}

/* Touch devices: skip hover-only motion so cards/photos don't feel stuck mid-effect */
@media (hover: none) {
  .hero-form-card { animation: heroFormRise 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.4s; }
  .btn-solid:hover { transform: none; box-shadow: none; }
  .work-block:hover .work-photo img { transform: none; }
  .work-block:hover .work-photo::before,
  .work-block:hover .work-photo::after { opacity: 0; }
}
