/* ============================================================
   Eleglam - Redesign
   ============================================================ */

:root {
  --bg: #f4f1eb;
  --paper: #fbf7ef;
  --ivory: #fffcf7;
  --ink: #191821;
  --ink-soft: #2a2934;
  --muted: #6d675c;
  --muted-soft: #8d8679;
  --line: #d8d0c1;
  --line-strong: #c6bcab;
  --line-hair: #e4ddcf;
  --accent: #a2865a;
  --accent-deep: #7f6741;

  --font-display: "Fraunces", "Bodoni Moda", serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-script: "Allura", cursive;

  --container: 1120px;
  --container-narrow: 780px;

  --section-pad: clamp(4rem, 8vw, 7.5rem);
  --header-h: 90px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  letter-spacing: 0.002em;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  padding: 0.65rem 1rem;
  background: var(--ink);
  color: #fff;
  z-index: 999;
}

.skip-link:focus {
  left: 0;
}

/* Visually hidden but available to search engines & screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─────────── SHARED LAYOUT ─────────── */

.wrap {
  width: min(var(--container), calc(100% - 2.4rem));
  margin-inline: auto;
}

/* ─────────── TOPBAR ─────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 241, 235, 0.9);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-hair);
}

.topbar-shell {
  width: min(1280px, calc(100% - 2.4rem));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: grid;
  text-decoration: none;
  line-height: 1;
}

.brand-script {
  font-family: var(--font-script);
  font-size: clamp(2.1rem, 3vw, 2.7rem);
  color: var(--ink);
  letter-spacing: 0.01em;
  line-height: 0.95;
}

.brand-meta {
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.35rem;
  font-weight: 400;
}

.nav {
  display: flex;
  align-items: center;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
}

.nav-list li {
  display: flex;
  align-items: center;
}

.nav-list a {
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.3rem 0;
  position: relative;
  transition: color 0.3s ease;
  font-weight: 400;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-list a:hover,
.nav-list a:focus-visible,
.nav-list a.is-active {
  color: var(--ink);
}

.nav-list a:hover::after,
.nav-list a:focus-visible::after,
.nav-list a.is-active::after {
  width: 100%;
}

.nav-list a.nav-cta {
  padding: 0.55rem 1.2rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.nav-list a.nav-cta::after {
  display: none;
}

.nav-list a.nav-cta:hover,
.nav-list a.nav-cta:focus-visible {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  gap: 0.6rem;
  align-items: center;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
}

.nav-toggle-mark {
  display: block;
  width: 16px;
  height: 10px;
  position: relative;
}

.nav-toggle-mark::before,
.nav-toggle-mark::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--ink);
}

.nav-toggle-mark::before {
  top: 2px;
}

.nav-toggle-mark::after {
  bottom: 2px;
}

/* ─────────── TYPE ─────────── */

.kicker {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
  font-weight: 400;
}

.display {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144, "wght" 400;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

.display em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "wght" 400;
  color: var(--accent-deep);
}

h2.display {
  font-size: clamp(2.6rem, 5.8vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.022em;
}

.display-hero {
  font-size: clamp(3.8rem, 10vw, 8rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
}

/* ─────────── SECTION HEAD (shared, centered) ─────────── */

.section-head {
  width: min(var(--container), calc(100% - 2.4rem));
  margin-inline: auto;
  margin-bottom: clamp(2.8rem, 5vw, 4.2rem);
  text-align: center;
  display: grid;
  gap: 1.2rem;
  justify-items: center;
}

.section-lede {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 48ch;
  margin: 0;
  line-height: 1.6;
}

/* ─────────── BUTTONS ─────────── */

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 400;
  padding: 1rem 1.5rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--ink-soft);
}

.btn-primary .btn-arrow {
  transition: transform 0.3s ease;
  letter-spacing: 0;
  font-size: 0.95rem;
}

.btn-primary:hover .btn-arrow,
.btn-primary:focus-visible .btn-arrow {
  transform: translateX(4px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--ink);
}

/* ─────────── HERO ─────────── */

.hero {
  padding: 0;
}

/* ─────────── HERO SLIDER ─────────── */

.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.slider-track {
  display: grid;
  width: 100%;
  height: calc(100svh - var(--header-h));
  background: var(--ink);
}

.slide {
  grid-area: 1 / 1;
  margin: 0;
  min-height: 0;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.slide.is-active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  filter: saturate(0.9) contrast(1.02);
}

.slide.is-active img {
  animation: slider-kenburns 8s ease-out forwards;
}

@keyframes slider-kenburns {
  from { transform: scale(1.06); }
  to   { transform: scale(1); }
}

.slider-nav {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  z-index: 5;
}

.slider-dot {
  width: 24px;
  height: 13px;
  padding: 6px 0;
  background-color: transparent;
  background-image: linear-gradient(rgba(255, 252, 247, 0.38), rgba(255, 252, 247, 0.38));
  background-clip: content-box;
  border: none;
  cursor: pointer;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              background-image 0.4s ease;
}

.slider-dot.is-active {
  width: 42px;
  background-image: linear-gradient(rgba(255, 252, 247, 0.9), rgba(255, 252, 247, 0.9));
}

.marquee {
  width: min(var(--container), calc(100% - 2.4rem));
  margin-inline: auto;
  list-style: none;
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: center;
  gap: var(--marquee-gap);
  flex-wrap: wrap;
  font-size: clamp(0.56rem, 0.62vw, 0.62rem);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  --marquee-gap: clamp(0.8rem, 1.4vw, 1.2rem);
}

.marquee li {
  display: inline-flex;
  align-items: center;
  position: relative;
  white-space: nowrap;
}

.marquee li + li::before {
  content: "";
  position: absolute;
  left: calc(var(--marquee-gap) / -2);
  top: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

/* Phones can't hold six tags on two lines at a legible size; three is the floor */
@media (max-width: 640px) {
  .marquee {
    --marquee-gap: 0.7rem;
    font-size: 0.52rem;
    letter-spacing: 0.06em;
    row-gap: 0.5rem;
  }
}

@media (max-width: 380px) {
  .marquee {
    --marquee-gap: 0.5rem;
    font-size: 0.48rem;
    letter-spacing: 0.03em;
  }
}

/* ─────────── ABOUT ─────────── */

.about {
  padding: var(--section-pad) 0;
  text-align: center;
}

.about-inner {
  width: min(var(--container), calc(100% - 2.4rem));
  margin-inline: auto;
  display: grid;
  justify-items: center;
  gap: 1.2rem;
}

.about-portrait {
  width: min(260px, 75%);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin: 1rem 0;
}

.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: saturate(0.88);
}

.about-copy {
  max-width: 52ch;
  display: grid;
  gap: 1rem;
  justify-items: center;
}

.about-copy .lede {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 36, "wght" 400;
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: -0.003em;
  margin: 0;
}

.about-copy p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
}

.signature {
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: grid;
  justify-items: center;
  gap: 0.2rem;
}

.sig-line {
  display: none;
}

.sig-script {
  font-family: var(--font-script);
  font-size: 2.5rem;
  line-height: 1.1;
  color: var(--ink);
}

.sig-note {
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ─────────── SERVICES ─────────── */

.services {
  padding: var(--section-pad) 0;
  background: linear-gradient(
    180deg,
    rgba(239, 232, 219, 0.5) 0%,
    rgba(244, 241, 235, 0) 100%
  );
  border-top: 1px solid var(--line-hair);
  border-bottom: 1px solid var(--line-hair);
}

.services-grid {
  list-style: none;
  width: min(var(--container), calc(100% - 2.4rem));
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.services-grid li {
  padding: 2rem 1.6rem 2.2rem;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  display: grid;
  gap: 0.6rem;
  align-content: start;
  min-height: 240px;
  transition: background 0.3s ease;
}

.services-grid li:nth-child(3n) {
  border-right: 0;
}

.services-grid li:hover {
  background: rgba(255, 252, 247, 0.5);
}

.svc-num {
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: "opsz" 24, "wght" 400;
  font-size: 0.9rem;
  color: var(--accent-deep);
  letter-spacing: 0.02em;
  margin-bottom: 0.3rem;
}

.services-grid h3 {
  margin: 0;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 72, "wght" 400;
  font-weight: 400;
  font-size: clamp(1.35rem, 1.9vw, 1.6rem);
  letter-spacing: -0.012em;
  line-height: 1.15;
  color: var(--ink);
}

.services-grid p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
  max-width: 34ch;
}

/* ─────────── INSTAGRAM ─────────── */

.instagram {
  padding: var(--section-pad) 0;
  background: linear-gradient(
    180deg,
    rgba(239, 232, 219, 0.5) 0%,
    rgba(244, 241, 235, 0) 100%
  );
  border-top: 1px solid var(--line-hair);
  border-bottom: 1px solid var(--line-hair);
}

.ig-embed-wrap {
  width: min(560px, calc(100% - 2.4rem));
  margin-inline: auto;
}

/* Override Instagram's white card to match site palette */
.ig-embed-wrap .instagram-media,
.ig-embed-wrap iframe.instagram-media {
  background: var(--paper) !important;
  box-shadow: none !important;
  border: 1px solid var(--line) !important;
  border-radius: 0 !important;
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

.ig-foot {
  width: min(var(--container), calc(100% - 2.4rem));
  margin-inline: auto;
  margin-top: clamp(2rem, 3vw, 2.8rem);
  display: flex;
  justify-content: center;
}

/* ─────────── PROCESS ─────────── */

.process {
  padding: var(--section-pad) 0;
  background: linear-gradient(
    180deg,
    rgba(239, 232, 219, 0.5) 0%,
    rgba(244, 241, 235, 0) 100%
  );
  border-top: 1px solid var(--line-hair);
  border-bottom: 1px solid var(--line-hair);
}

.steps {
  list-style: none;
  width: min(var(--container), calc(100% - 2.4rem));
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.steps li {
  padding: 2.2rem 1.8rem;
  border-right: 1px solid var(--line);
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.steps li:last-child {
  border-right: 0;
}

.step-num {
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: "opsz" 96, "wght" 400;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  line-height: 1;
  color: var(--accent-deep);
  letter-spacing: -0.01em;
}

.steps h3 {
  margin: 0;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 72, "wght" 400;
  font-weight: 400;
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  letter-spacing: -0.012em;
  line-height: 1.15;
  color: var(--ink);
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 34ch;
}

/* ─────────── FAQ ─────────── */

.faq {
  padding: var(--section-pad) 0;
}

.faq-list {
  width: min(780px, calc(100% - 2.4rem));
  margin-inline: auto;
  display: grid;
}

.faq-list details {
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}

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

.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 36, "wght" 400;
  font-size: clamp(1.05rem, 1.45vw, 1.2rem);
  letter-spacing: -0.008em;
  color: var(--ink);
  line-height: 1.4;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-mark {
  flex: none;
  position: relative;
  width: 14px;
  height: 14px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-mark::before,
.faq-mark::after {
  content: "";
  position: absolute;
  background: var(--ink);
}

.faq-mark::before {
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  transform: translateY(-50%);
}

.faq-mark::after {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  transition: opacity 0.25s ease;
}

.faq-list details[open] .faq-mark::after {
  opacity: 0;
}

.faq-list details[open] .faq-mark {
  transform: rotate(90deg);
}

.faq-list details p {
  margin-top: 0.9rem;
  color: var(--ink-soft);
  max-width: 62ch;
  font-size: 0.97rem;
  line-height: 1.6;
}

/* ─────────── CONTACT ─────────── */

.contact {
  padding: var(--section-pad) 0;
  background: linear-gradient(
    180deg,
    rgba(241, 235, 221, 0.6) 0%,
    rgba(244, 241, 235, 0) 100%
  );
  border-top: 1px solid var(--line-hair);
}

.letter {
  width: min(720px, calc(100% - 2.4rem));
  margin-inline: auto;
  display: grid;
  gap: 1.5rem;
}

.letter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3rem 1.8rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field-full {
  grid-column: 1 / -1;
}

.field-compact {
  max-width: 260px;
}

.field-label {
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}

.field-label em {
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--muted-soft);
}

.field input,
.field textarea {
  font: inherit;
  font-family: var(--font-body);
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 0.55rem 0.1rem 0.65rem;
  min-height: 38px;
  transition: border-color 0.25s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted-soft);
  font-style: italic;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.field textarea {
  min-height: 6.5rem;
  resize: vertical;
  line-height: 1.6;
  padding-top: 0.7rem;
}

.services-choice {
  border: 0;
  margin: 0;
  padding: 1.3rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1rem;
}

.services-choice legend {
  padding: 0;
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chip {
  position: relative;
  cursor: pointer;
}

.chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
  min-height: 0;
}

.chip span {
  display: inline-flex;
  align-items: center;
  padding: 0.48rem 0.95rem;
  font-size: 0.82rem;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.6);
  transition: all 0.22s ease;
}

.chip input:hover + span {
  border-color: var(--accent-deep);
  color: var(--accent-deep);
}

.chip input:checked + span {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.chip input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.services-hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
}

.services-choice.has-error legend {
  color: #8b3a3a;
}

.services-choice.has-error .chip span {
  border-color: #b56a6a;
}

.letter-foot {
  margin-top: 0.75rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.send-btn {
  font-size: 0.78rem;
}

.send-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.letter-note {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 28ch;
  text-align: right;
}

.form-status {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}

/* Error escalates to a prominent, unmissable alert (used for network /
   send failures; success replaces the whole form — see .inquiry-confirm). */
.form-status.is-error {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.5rem;
  padding: 0.9rem 1.15rem;
  border: 1px solid #c48b7f;
  border-left: 3px solid #8b3a3a;
  border-radius: 10px;
  background: #f5e7e2;
  color: #7a2f2f;
  font-size: 0.95rem;
  font-weight: 500;
}

.form-status.is-error::before {
  content: "!";
  flex: none;
  width: 1.4rem;
  height: 1.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #8b3a3a;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
}

/* The form and the panel both set an explicit `display`, which would
   otherwise beat the `hidden` attribute's `display: none`; keep `hidden`
   authoritative so the JS swap actually hides/shows them. */
.letter[hidden],
.inquiry-confirm[hidden] {
  display: none !important;
}

/* Success: the form is swapped out for this confirmation panel. */
.inquiry-confirm {
  width: min(600px, calc(100% - 2.4rem));
  margin-inline: auto;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.9rem;
  padding: clamp(2.75rem, 6vw, 4.5rem) clamp(1.6rem, 5vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: radial-gradient(125% 100% at 50% 0%, var(--paper), var(--bg));
  box-shadow: 0 34px 70px -46px rgba(25, 24, 33, 0.45);
  animation: inquiry-confirm-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.inquiry-confirm-mark {
  position: relative;
  width: 3.4rem;
  height: 3.4rem;
  margin-bottom: 0.35rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent-deep);
  animation: inquiry-mark-ring 0.9s ease 0.15s both;
}

.inquiry-confirm-mark::before {
  content: "✓";
  font-size: 1.4rem;
  line-height: 1;
}

.inquiry-confirm-kicker {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}

.inquiry-confirm-title {
  margin: 0;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144, "wght" 400;
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.022em;
  color: var(--ink);
}

.inquiry-confirm-title em {
  font-style: italic;
  color: var(--accent-deep);
}

.inquiry-confirm-note {
  max-width: 42ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.inquiry-confirm-sign {
  margin: 0.5rem 0 0;
}

.inquiry-confirm-sign .sig-script {
  font-size: 2.2rem;
  color: var(--accent-deep);
}

@keyframes inquiry-confirm-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes inquiry-mark-ring {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.honeypot {
  display: none;
}

.contact-meta {
  width: min(720px, calc(100% - 2.4rem));
  margin: clamp(2.5rem, 4vw, 3.5rem) auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-meta a {
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 0.1rem;
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.contact-meta a:hover,
.contact-meta a:focus-visible {
  color: var(--ink);
  border-color: var(--ink);
}

.contact-meta span[aria-hidden] {
  color: var(--accent);
  letter-spacing: 0;
}

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

.site-footer {
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--line);
}

.footer-shell {
  width: min(1280px, calc(100% - 2.4rem));
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.site-footer .brand-script {
  font-size: 1.5rem;
}

.footer-nav {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.footer-nav a {
  text-decoration: none;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s ease;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--ink);
}

.footer-meta {
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ─────────── FOCUS ─────────── */

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ─────────── REVEAL ─────────── */

[data-reveal] {
  opacity: 1;
  transform: none;
}

.reveal-enabled [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.6, 0.2, 1),
    transform 0.9s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.reveal-enabled [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ─────────── RESPONSIVE ─────────── */

@media (max-width: 960px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-grid li:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .services-grid li:nth-child(2n) {
    border-right: 0;
  }

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

  .steps li {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .steps li:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 720px) {
  :root {
    --section-pad: clamp(3rem, 10vw, 5rem);
  }

  .nav-list {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 1.2rem;
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 1rem 1.2rem;
    display: grid;
    gap: 0.9rem;
    align-items: flex-start;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.24s ease, transform 0.24s ease;
    box-shadow: 0 20px 40px -20px rgba(25, 22, 16, 0.25);
    min-width: 200px;
  }

  .nav-list.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-list a.nav-cta {
    align-self: flex-start;
  }

  .nav-toggle {
    display: inline-flex;
  }

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

  .services-grid li {
    border-right: 0;
    min-height: 0;
  }

  .services-grid li:nth-child(3n),
  .services-grid li:nth-child(2n) {
    border-right: 0;
  }

  .ig-cta-block {
    padding: 2.5rem 2rem;
  }

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

  .letter-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .letter-note {
    text-align: left;
  }

  .footer-shell {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
