/* ─────────────────────────────────────────────────────────────
   STYLED BY KARI · v3 — shared system
   Editorial, founder-forward, motion-rich. Mobile-first.
   ───────────────────────────────────────────────────────────── */

:root {
  --ivory:  #FAF7F2;
  --bone:   #F4F0E8;
  --taupe:  #B7AFA0;
  --ink:    #1A1818;
  --muted:  #756F66;
  --white:  #FFFFFF;
  --accent:   #8C5A3F; /* warm bronze for sparing accents */
  --cognac:   #5E2F1C; /* deep oxblood-cognac — heritage labels */
  --bronze:   #B7864A; /* warmer brass-bronze — dividers, est. */
  --warm-ink: #2A1F18; /* warmer almost-black for headlines */

  --hair:        rgba(26, 24, 24, 0.12);
  --hair-soft:   rgba(26, 24, 24, 0.06);
  --hair-light:  rgba(255, 255, 255, 0.30);

  --display: "Cormorant Garamond", "Times New Roman", serif;
  --body:    "Work Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --script:  "Sacramento", "Cormorant Garamond", cursive;

  --ease: cubic-bezier(0.2, 0.6, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --pad-x: clamp(20px, 5vw, 64px);
  --section-y: clamp(80px, 12vw, 168px);

  --max: 1480px;
  --max-tight: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--ink); color: var(--ivory); }

/* ─── Type ───────────────────────────────────────────────── */

.eyebrow {
  font-family: var(--body); font-weight: 500;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 14px;
}
.eyebrow::before {
  content: ""; display: inline-block; width: 28px; height: 1px;
  background: var(--taupe);
}
.eyebrow.no-rule::before { display: none; }
.eyebrow.on-dark { color: rgba(255,255,255,0.78); }
.eyebrow.on-dark::before { background: rgba(255,255,255,0.55); }

.display {
  font-family: var(--display);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.018em;
  color: var(--warm-ink);
  margin: 0;
  text-wrap: balance;
}
.display em { font-style: italic; font-weight: 300; }

h1.display { font-size: clamp(48px, 9.4vw, 132px); letter-spacing: -0.025em; }
h2.display { font-size: clamp(38px, 6.6vw, 84px); }
h3.display { font-size: clamp(26px, 3.6vw, 44px); }

.lede {
  font-family: var(--display); font-weight: 300; font-style: italic;
  font-size: clamp(18px, 1.95vw, 23px);
  line-height: 1.5; color: var(--muted);
  max-width: 52ch; text-wrap: pretty;
}

.num-marker {
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: clamp(13px, 1.1vw, 15px);
  color: var(--taupe); letter-spacing: 0.04em;
}

/* ─── CTA ─────────────────────────────────────────────────── */

.cta {
  --cta-fg: var(--ink);
  --cta-bg: transparent;
  --cta-line: var(--ink);
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 28px 18px 0;
  font-family: var(--body); font-weight: 500;
  font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--cta-fg);
  background: var(--cta-bg);
  border: 0;
  position: relative;
  transition: gap 320ms var(--ease), color 320ms var(--ease);
  cursor: pointer;
}
.cta::before {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--cta-line);
  transform-origin: left;
  transform: scaleX(0.34);
  transition: transform 600ms var(--ease-out);
}
.cta:hover::before { transform: scaleX(1); }
.cta:hover { gap: 18px; }
.cta__arrow {
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: 18px; letter-spacing: 0;
  transition: transform 320ms var(--ease);
}
.cta:hover .cta__arrow { transform: translateX(4px); }

.cta--solid {
  --cta-fg: var(--ivory);
  --cta-bg: var(--ink);
  --cta-line: var(--ivory);
  padding: 18px 28px;
  border: 1px solid var(--ink);
}
.cta--solid::before { left: 28px; bottom: 14px; width: calc(100% - 56px); }

.cta--ghost-light { --cta-fg: var(--white); --cta-line: var(--white); }
.cta--solid-light {
  --cta-fg: var(--ink); --cta-bg: var(--white); --cta-line: var(--ink);
  padding: 18px 28px; border: 1px solid var(--white);
}
.cta--solid-light::before { left: 28px; bottom: 14px; width: calc(100% - 56px); }

/* ─── Layout ──────────────────────────────────────────────── */

.wrap { padding-inline: var(--pad-x); }
.section { padding-block: var(--section-y); }
.section--bone { background: var(--bone); }
.section--ink { background: var(--ink); color: var(--ivory); }
.section--ink .display { color: var(--ivory); }
.max { max-width: var(--max); margin-inline: auto; }
.max-tight { max-width: var(--max-tight); margin-inline: auto; }

.img-frame { position: relative; overflow: hidden; background: var(--bone); }
.img-frame img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1300ms var(--ease-out), filter 800ms var(--ease);
  will-change: transform;
}
.img-frame:hover img { transform: scale(1.045); }
.ratio-3-4 { aspect-ratio: 3 / 4; }
.ratio-4-5 { aspect-ratio: 4 / 5; }
.ratio-2-3 { aspect-ratio: 2 / 3; }
.ratio-1-1 { aspect-ratio: 1 / 1; }
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-21-9 { aspect-ratio: 21 / 9; }

/* ─── Reveal ──────────────────────────────────────────────── */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); }
.reveal[data-delay="1"] { transition-delay: 90ms; }
.reveal[data-delay="2"] { transition-delay: 180ms; }
.reveal[data-delay="3"] { transition-delay: 270ms; }
.reveal[data-delay="4"] { transition-delay: 360ms; }
.reveal[data-delay="5"] { transition-delay: 450ms; }
.reveal.in { opacity: 1; transform: none; }
.reveal.is-shown, .reveal-wipe.is-shown { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }

.reveal-wipe { clip-path: inset(0 0 30% 0); opacity: 0.001; transition: clip-path 1200ms var(--ease-out), opacity 600ms var(--ease-out); }
.reveal-wipe.in { clip-path: inset(0 0 0 0); opacity: 1; }

/* Letter-by-letter reveal for big display headlines */
.reveal-words { display: inline-block; }
.reveal-words .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(36%) scale(1.005);
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
}
.reveal-words.in .w { opacity: 1; transform: none; }
.reveal-words.is-shown .w { opacity: 1 !important; transform: none !important; transition: none !important; }
.reveal-words.in .w:nth-child(2)  { transition-delay: 60ms; }
.reveal-words.in .w:nth-child(3)  { transition-delay: 120ms; }
.reveal-words.in .w:nth-child(4)  { transition-delay: 180ms; }
.reveal-words.in .w:nth-child(5)  { transition-delay: 240ms; }
.reveal-words.in .w:nth-child(6)  { transition-delay: 300ms; }
.reveal-words.in .w:nth-child(7)  { transition-delay: 360ms; }
.reveal-words.in .w:nth-child(8)  { transition-delay: 420ms; }
.reveal-words.in .w:nth-child(9)  { transition-delay: 480ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal[data-delay] { opacity: 1; transform: none; transition: none; }
  .reveal-wipe { clip-path: none !important; transition: none; }
  .reveal-words .w { opacity: 1; transform: none; transition: none; }
  .img-frame img { transition: none !important; }
  .marquee__track { animation: none !important; }
  .ken { animation: none !important; }
}

/* ─── NAV ─────────────────────────────────────────────────── */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 20px var(--pad-x);
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 24px;
  transition: background 420ms var(--ease), color 320ms var(--ease),
              border-color 320ms var(--ease), padding 320ms var(--ease);
  background: rgba(26, 24, 24, 0.30);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.nav.is-scrolled,
.nav--light {
  background: rgba(250, 247, 242, 0.88);
  color: var(--ink);
  border-bottom-color: var(--hair);
  padding-block: 14px;
}
.nav__left  { justify-self: start; }
.nav__center { justify-self: center; }
.nav__right { justify-self: end; display: inline-flex; align-items: center; gap: clamp(14px, 2.4vw, 28px); }

.wordmark {
  display: inline-flex; align-items: center; justify-content: center;
  color: currentColor; line-height: 1;
  text-decoration: none;
  overflow: visible;
  width: max-content;
  --logo-base: calc(72px * var(--logo-scale, 1));
}
.wordmark__img {
  height: var(--logo-base);
  width: auto;
  display: block;
  /* The supplied lockup carries generous internal padding; trim it visually */
  margin-block: -0.18em;
}
.nav.is-scrolled .wordmark, .nav--light .wordmark { --logo-base: calc(72px * var(--logo-scale, 1)); }
.footer .wordmark { --logo-base: calc(108px * var(--logo-scale, 1) * var(--footer-logo-boost, 1)); }

@media (max-width: 720px) {
  .wordmark { --logo-base: calc(58px * var(--logo-scale, 1)); }
  .nav.is-scrolled .wordmark, .nav--light .wordmark { --logo-base: calc(56px * var(--logo-scale, 1)); }
  .footer .wordmark { --logo-base: calc(84px * var(--logo-scale, 1) * var(--footer-logo-boost, 1)); }
}

.nav__link {
  font-family: var(--body); font-weight: 500;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  color: currentColor;
  opacity: 0.86; transition: opacity 220ms var(--ease);
  position: relative; padding-bottom: 4px;
}
.nav__link:hover { opacity: 1; }
.nav__link.is-current { opacity: 1; }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor; opacity: 0;
  transform: scaleX(0); transform-origin: left;
  transition: transform 320ms var(--ease), opacity 320ms var(--ease);
}
.nav__link:hover::after, .nav__link.is-current::after { transform: scaleX(1); opacity: 0.8; }

.nav__cta {
  font-family: var(--body); font-weight: 500;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  padding: 10px 0; position: relative; color: currentColor;
}
.nav__cta::before {
  content: ""; position: absolute; left: 0; bottom: 6px;
  width: 100%; height: 1px; background: currentColor;
  transform-origin: left; transform: scaleX(1); opacity: 0.6;
  transition: transform 600ms var(--ease-out), opacity 320ms var(--ease);
}
.nav__cta:hover::before { transform: scaleX(1); opacity: 1; }
.nav__cta .cta__arrow {
  font-family: var(--display); font-style: italic;
  margin-left: 10px; font-size: 16px;
  transition: transform 320ms var(--ease);
}
.nav__cta:hover .cta__arrow { transform: translateX(4px); }

@media (max-width: 640px) {
  .nav__link.collapsible { display: none; }
  .nav__cta { font-size: 10.5px; letter-spacing: 0.2em; }
  /* iPhone: a centered logo collides with the notch — anchor it left */
  .nav { grid-template-columns: 1fr auto; }
  .nav__left { display: none; }
  .nav__center { justify-self: start; }
}

/* ─── MARQUEE (press) ────────────────────────────────────── */

.marquee-strip {
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  overflow: hidden; padding: 22px 0; background: var(--ivory);
}
.marquee {
  display: flex; gap: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex; align-items: center; gap: clamp(40px, 6vw, 88px);
  flex-shrink: 0; animation: marquee 38s linear infinite;
  padding-right: clamp(40px, 6vw, 88px);
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.marquee__item {
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: clamp(16px, 1.6vw, 20px);
  color: var(--muted); white-space: nowrap; letter-spacing: 0.005em;
}
.marquee__sep { width: 4px; height: 4px; border-radius: 50%; background: var(--taupe); }

/* ─── FOOTER ──────────────────────────────────────────────── */

.footer {
  background: var(--ivory);
  border-top: 1px solid var(--hair);
  padding: clamp(64px, 9vw, 116px) var(--pad-x) clamp(26px, 3.5vw, 40px);
}
.footer__inner { max-width: 980px; margin-inline: auto; }

/* Brand sign-off — centered, logo as the anchor */
.footer__brand { display: grid; justify-items: center; text-align: center; gap: clamp(16px, 2vw, 24px); }
.footer__eyebrow {
  font-family: var(--body); font-weight: 500;
  font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--bronze);
}
.footer .wordmark { --logo-base: calc(118px * var(--logo-scale, 1) * var(--footer-logo-boost, 1)); justify-content: center; }
.footer__tag {
  font-family: var(--display); font-style: italic; font-weight: 300;
  font-size: clamp(17px, 1.9vw, 23px); line-height: 1.45; color: var(--muted);
  margin: 0; max-width: 52ch; text-wrap: balance;
}

/* Link row */
.footer__links {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: clamp(12px, 1.8vw, 26px);
  margin-top: clamp(34px, 4.5vw, 56px);
  padding-bottom: clamp(34px, 4.5vw, 56px);
  border-bottom: 1px solid var(--hair);
}
.footer__links a {
  font-family: var(--body); font-weight: 500;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink); transition: color 220ms var(--ease); white-space: nowrap;
}
.footer__links a:hover { color: var(--bronze); }
.footer__sep { color: var(--taupe); font-size: 11px; }

.footer__bottom {
  margin-top: clamp(22px, 3vw, 30px);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  font-family: var(--body); font-weight: 400;
  font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted);
}
.footer__bottom span { white-space: nowrap; }
@media (max-width: 640px) {
  .footer__links { gap: 14px 20px; }
  .footer__sep { display: none; }
}
@media (max-width: 560px) {
  .footer__bottom { justify-content: center; text-align: center; gap: 6px; }
}

/* ─── MOBILE STICKY CTA ───────────────────────────────────── */

.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 12px var(--pad-x) calc(12px + env(safe-area-inset-bottom));
  background: rgba(250, 247, 242, 0.94);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--hair); display: none;
}
.mobile-cta a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 22px; background: var(--ink); color: var(--ivory);
  font-family: var(--body); font-weight: 500;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
}
.mobile-cta a .arrow { font-family: var(--display); font-style: italic; font-size: 15px; }
@media (max-width: 899px) {
  .mobile-cta { display: none; }
  body { padding-bottom: 0; }
}

/* ─── RAIL CTA ────────────────────────────────────────────── */

.rail-cta {
  position: fixed; right: 18px; top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl; z-index: 40;
  font-family: var(--body); font-weight: 500;
  font-size: 10.5px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--ink); padding: 14px 8px; display: none;
  transition: opacity 320ms var(--ease), color 320ms var(--ease);
}
.rail-cta::before {
  content: ""; position: absolute; left: 50%; top: -28px;
  width: 1px; height: 22px; background: var(--ink); opacity: 0.4;
  transition: height 380ms var(--ease), opacity 320ms var(--ease);
}
.rail-cta:hover::before { height: 36px; opacity: 1; }
.rail-cta.on-dark { color: var(--white); }
.rail-cta.on-dark::before { background: var(--white); }
@media (min-width: 1100px) { .rail-cta { display: inline-flex; } }

/* ─── PAGE BANNER (small page hero) ───────────────────────── */

.page-banner {
  padding: clamp(140px, 18vw, 220px) var(--pad-x) clamp(60px, 8vw, 96px);
  border-bottom: 1px solid var(--hair);
  display: grid; gap: 18px;
  position: relative;
}
.page-banner .max { display: grid; gap: 18px; }
.page-banner h1.display { font-size: clamp(56px, 9vw, 132px); }
.page-banner .lede { margin-top: 8px; }
.page-banner__meta {
  display: flex; gap: clamp(16px, 3vw, 32px); flex-wrap: wrap;
  margin-top: 18px; padding-top: 22px; border-top: 1px solid var(--hair);
  font-family: var(--body); font-weight: 500;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted);
}
.page-banner__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--taupe); align-self: center; }

/* ─── Heritage utilities (Alex. Brown gravity) ──────────── */

/* Capitalized section label, horizontal rules either side: — LABEL — */
.heritage-rule {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(14px, 2vw, 24px);
  font-family: var(--body); font-weight: 500;
  font-size: 11px; letter-spacing: 0.36em; text-transform: uppercase;
  color: var(--cognac);
  margin: 0 auto clamp(28px, 3.4vw, 48px);
  text-align: center;
}
.heritage-rule::before, .heritage-rule::after {
  content: ""; flex: 1; height: 1px; max-width: clamp(60px, 12vw, 180px);
  background: linear-gradient(90deg, transparent, var(--bronze) 40%, var(--bronze) 60%, transparent);
}
.heritage-rule.on-dark { color: rgba(255,236,210,0.85); }
.heritage-rule.on-dark::before, .heritage-rule.on-dark::after {
  background: linear-gradient(90deg, transparent, rgba(255,220,180,0.55) 40%, rgba(255,220,180,0.55) 60%, transparent);
}

/* Heritage est. badge */
.est-badge {
  display: inline-grid; gap: 6px; justify-items: center;
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: 13px; color: var(--cognac);
  letter-spacing: 0.04em; line-height: 1.2;
}
.est-badge__rule {
  width: 36px; height: 1px; background: var(--bronze);
}
.est-badge__loc {
  font-family: var(--body); font-style: normal; font-weight: 500;
  font-size: 9.5px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--muted);
}

/* Magazine-style drop cap — Cormorant italic, cognac */
.dropcap::first-letter {
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: 4.6em; line-height: 0.84;
  float: left; margin: 0.08em 0.12em 0 -0.04em;
  color: var(--cognac);
}

/* Italic caption under photos */
.caption {
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: 13.5px; line-height: 1.45; color: var(--muted);
  letter-spacing: 0.01em;
  margin-top: 10px;
}
.caption strong { font-weight: 500; font-style: normal; color: var(--ink);
  font-family: var(--body); font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase; margin-right: 10px; }

/* "In Frame" detail strip — three intimate crops */
.in-frame {
  display: grid; gap: clamp(16px, 1.6vw, 24px);
  grid-template-columns: repeat(3, 1fr);
  padding: clamp(40px, 6vw, 80px) var(--pad-x);
  background: var(--bone);
  border-top: 1px solid var(--hair-soft);
  border-bottom: 1px solid var(--hair-soft);
}
@media (max-width: 900px) {
  .in-frame {
    display: flex; grid-template-columns: none; flex-wrap: nowrap;
    gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    scroll-snap-type: x proximity; scroll-padding-left: var(--pad-x);
    padding-block: clamp(34px, 9vw, 56px);
  }
  .in-frame::-webkit-scrollbar { display: none; }
  .in-frame__item { flex: 0 0 76%; scroll-snap-align: start; }
  .in-frame__item:last-child { margin-inline-end: var(--pad-x); }
}
.in-frame__item { position: relative; aspect-ratio: 4/5; overflow: hidden; margin: 0; }
.in-frame__item img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform 1400ms var(--ease-out), filter 800ms var(--ease);
  filter: saturate(1.02);
}
.in-frame__item:hover img { transform: scale(1.04); filter: saturate(1.1) brightness(1.02); }
.in-frame__item::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 50%;
  background: linear-gradient(180deg, rgba(8,5,3,0) 0%, rgba(8,5,3,0.40) 55%, rgba(8,5,3,0.72) 100%);
  pointer-events: none; z-index: 1;
}
.in-frame__cap {
  position: absolute; left: 16px; bottom: 15px; right: 16px; z-index: 2;
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: 15px; color: var(--ivory);
  text-shadow: 0 1px 16px rgba(0,0,0,0.6);
  letter-spacing: 0.02em;
}

/* Photo hover: warm-tint shift */
.img-frame:hover img { filter: saturate(1.06) brightness(1.02) sepia(0.04); }

/* ─────────────────────────────────────────────────────────────
   INQUIRY MODAL — editorial, brand-matched. Reusable across pages:
   any [data-inquire] trigger (or link to inquire.html) opens #inquiry.
   ───────────────────────────────────────────────────────────── */
.inq-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  padding: clamp(14px, 4vw, 40px);
  background: rgba(20, 14, 10, 0.52);
  -webkit-backdrop-filter: blur(9px) saturate(120%);
          backdrop-filter: blur(9px) saturate(120%);
  opacity: 0; visibility: hidden;
  transition: opacity 460ms var(--ease), visibility 460ms var(--ease);
}
.inq-overlay.is-open { opacity: 1; visibility: visible; }
body.inq-locked { overflow: hidden; }

.inq-panel {
  position: relative; width: min(660px, 100%);
  max-height: calc(100svh - 28px); overflow-y: auto;
  background: var(--ivory);
  border: 1px solid var(--hair);
  box-shadow: 0 44px 130px rgba(20, 12, 6, 0.42);
  padding: clamp(30px, 4.4vw, 56px) clamp(24px, 4vw, 56px) clamp(28px, 4vw, 48px);
  transform: translateY(22px) scale(0.984);
  transition: transform 560ms var(--ease-out);
}
.inq-overlay.is-open .inq-panel { transform: none; }
.inq-panel::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--cognac), var(--bronze) 70%, var(--cognac));
}

.inq-close {
  position: absolute; top: 14px; right: 14px;
  width: 42px; height: 42px; display: grid; place-items: center;
  font-family: var(--display); font-size: 26px; line-height: 1; color: var(--muted);
  transition: color 240ms var(--ease), transform 360ms var(--ease);
}
.inq-close:hover { color: var(--ink); transform: rotate(90deg); }

.inq-head { display: grid; gap: 10px; margin-bottom: clamp(22px, 3vw, 34px); }
.inq-eyebrow {
  font-family: var(--body); font-weight: 500;
  font-size: 10.5px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--bronze);
}
.inq-title {
  font-family: var(--display); font-style: italic; font-weight: 300;
  font-size: clamp(34px, 5vw, 54px); line-height: 1; color: var(--warm-ink); margin: 0;
  letter-spacing: -0.01em;
}
.inq-sub {
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: clamp(15px, 1.5vw, 17px); line-height: 1.5; color: var(--muted); margin: 0; max-width: 42ch;
}

.inq-form { display: grid; gap: clamp(16px, 2.3vw, 22px); }
.inq-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.3vw, 22px); }
@media (max-width: 560px) { .inq-row { grid-template-columns: 1fr; } }
.inq-field { display: grid; gap: 7px; position: relative; }
.inq-field > label {
  font-family: var(--body); font-weight: 500;
  font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted);
}
.inq-field .req { color: var(--cognac); }
.inq-input {
  font-family: var(--display); font-size: 18px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--hair);
  padding: 9px 0; width: 100%; border-radius: 0;
  transition: border-color 280ms var(--ease);
}
.inq-input::placeholder { color: var(--taupe); font-style: italic; }
.inq-input:focus { outline: none; border-bottom-color: var(--cognac); }
textarea.inq-input { resize: vertical; min-height: 76px; line-height: 1.5; }
select.inq-input { -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 24px; }
.inq-select::after {
  content: ""; position: absolute; right: 3px; bottom: 16px;
  width: 7px; height: 7px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg); pointer-events: none;
}

.inq-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 16px 20px;
  flex-wrap: wrap; margin-top: 8px;
}
.inq-note { font-family: var(--display); font-style: italic; font-size: 13.5px; color: var(--muted); }
.inq-submit {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 30px; background: var(--ink); color: var(--ivory);
  font-family: var(--body); font-weight: 500;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  border: 1px solid var(--ink); cursor: pointer;
  transition: background 320ms var(--ease), color 320ms var(--ease), gap 320ms var(--ease), border-color 320ms var(--ease);
}
.inq-submit:hover { gap: 17px; background: var(--cognac); border-color: var(--cognac); color: var(--ivory); }
.inq-submit--ghost { background: transparent; color: var(--ink); }
.inq-submit--ghost:hover { background: var(--ink); border-color: var(--ink); }

.inq-success { display: none; text-align: center; padding: clamp(12px, 3vw, 28px) 0 clamp(6px, 2vw, 14px); }
.inq-overlay.is-done .inq-form, .inq-overlay.is-done .inq-head { display: none; }
.inq-overlay.is-done .inq-success { display: grid; gap: 14px; justify-items: center; }
.inq-sign { font-family: "Allura", var(--script); font-size: 46px; line-height: 0.9; color: var(--cognac); }
