/* =========================================================================
   DOLAK MANAGEMENT — "Modern. Luxury. Trusted."
   Deep navy canvas · gold accents · letter-spaced serif caps
   Type: Cormorant Garamond (display) / Josefin Sans (body)
   Radius system: all-sharp (0). One accent: gold.
   ========================================================================= */

:root {
  --navy: #0A1626;
  --navy-raise: #101F35;
  --noir: #060E1C;

  --ivory: #F2EDE1;
  --ink-soft: rgba(242, 237, 225, 0.85);
  --ink-mute: rgba(242, 237, 225, 0.72);

  --gold: #C9A24B;
  --gold-light: #E3C77F;

  --line: rgba(242, 237, 225, 0.14);
  --line-gold: rgba(201, 162, 75, 0.4);

  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Josefin Sans', -apple-system, BlinkMacSystemFont, sans-serif;

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

  --pad-x: clamp(1.5rem, 6vw, 8rem);
  --maxw: 1440px;

  /* z-scale: content 1 · nav 100 · mobile menu 200 · grain 900 */
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--ivory);
  font-weight: 400;
  line-height: 1.7;
  font-size: 20px; /* older ICP: large base type, JC-mandated July 2026 */
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 900;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--gold); color: var(--noir); }

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

:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 400;
  padding: 0.9rem 1.4rem;
  background: var(--gold);
  color: var(--noir);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  transition: top 0.2s ease-out;
}
.skip-link:focus { top: 1rem; }

#topSentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 48px;
  pointer-events: none;
}

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  text-wrap: balance;
}

.display {
  font-size: clamp(2.4rem, 5.2vw, 5rem);
  line-height: 1.22;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.h-section {
  font-size: clamp(2rem, 3.6vw, 3.3rem);
  line-height: 1.28;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  color: var(--gold);
  display: inline-block;
}

.sub-caps {
  font-size: clamp(0.95rem, 1.15vw, 1.15rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--ink-soft);
  line-height: 2;
}

.lede {
  font-size: 1.3rem;
  color: var(--ink-soft);
  max-width: 56ch;
}

.serif-statement {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.9vw, 2.55rem);
  font-weight: 500;
  line-height: 1.5;
  text-wrap: balance;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 1.1rem 2.4rem;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  background: transparent;
  transition:
    background-color 0.35s var(--ease-out),
    color 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out),
    transform 0.15s ease-out;
}
.btn:hover { background-color: var(--gold); color: var(--noir); }
.btn:active { transform: scale(0.98); }

.btn--solid {
  background-color: var(--gold);
  color: var(--noir);
}
.btn--solid:hover {
  background-color: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--noir);
}

/* Liquid glass, web approximation (not Apple's native material).
   Outline buttons only; the solid gold CTA keeps full contrast.
   #liquidGlass displacement filter is defined inline in each page. */
.btn:not(.btn--solid) {
  background-color: rgba(16, 31, 53, 0.26);
  -webkit-backdrop-filter: blur(10px) saturate(160%) brightness(1.06);
  backdrop-filter: blur(10px) saturate(160%) brightness(1.06);
  box-shadow:
    inset 0 1px 0 rgba(242, 237, 225, 0.18),
    inset 0 -1px 0 rgba(242, 237, 225, 0.06),
    0 10px 30px rgba(6, 14, 28, 0.35);
}
.btn:not(.btn--solid):hover {
  background-color: var(--gold);
  box-shadow:
    inset 0 1px 0 rgba(242, 237, 225, 0.3),
    0 10px 30px rgba(6, 14, 28, 0.35);
}

/* Refraction layer: Chromium only (same gate as the scroll-driven motion).
   Firefox/Safari keep the frosted fallback above. */
@supports (animation-timeline: view()) {
  .btn:not(.btn--solid) {
    backdrop-filter: url(#liquidGlass) blur(7px) saturate(160%) brightness(1.06);
  }
}

@media (prefers-reduced-transparency: reduce) {
  .btn:not(.btn--solid) {
    background-color: rgba(6, 14, 28, 0.92);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
  }
}

/* ---------- Inquiry form ---------- */

.form-head { max-width: 62ch; }
.form-head .lede { margin-top: 1rem; }

.inquiry-form { margin-top: clamp(2rem, 3.5vw, 3rem); }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem 2.2rem;
}

.field { display: flex; flex-direction: column; gap: 0.65rem; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--ivory);
  background: rgba(16, 31, 53, 0.55);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0.95rem 1.1rem;
  width: 100%;
  transition: border-color 0.25s ease-out;
}
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--line-gold); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23C9A24B' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  padding-right: 2.8rem;
}
.field select option { background: var(--navy); color: var(--ivory); }

.field textarea { resize: vertical; min-height: 9rem; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-actions {
  margin-top: 2.2rem;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
}
.form-actions .btn { cursor: pointer; }
.form-actions .btn:disabled { opacity: 0.55; cursor: default; }

.form-status { font-size: 0.95rem; color: var(--gold-light); }

.form-success { margin-top: clamp(2rem, 3.5vw, 3rem); }
.form-success .lede { margin-top: 1.2rem; }

@media (max-width: 700px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 78px;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
  border-bottom: 1px solid transparent;
  background-color: transparent;
}
.nav.scrolled {
  background-color: rgba(6, 14, 28, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}
.brand-logo { height: 68px; width: auto; display: block; }
.footer .brand-logo { height: 64px; }
.monogram {
  width: 42px;
  height: 42px;
  flex: none;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  /* optical centering for spaced caps */
  padding-left: 0.08em;
}
.wordmark { line-height: 1.25; }
.wordmark .wm-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.wordmark .wm-sub {
  display: block;
  font-size: 0.52rem;
  font-weight: 500;
  letter-spacing: 0.52em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.4rem;
}
.nav-links a:not(.btn) {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0.4rem 0;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 0% 1px;
  transition: color 0.3s var(--ease-out), background-size 0.3s var(--ease-out);
}
.nav-links a:not(.btn):hover {
  color: var(--gold-light);
  background-size: 100% 1px;
}
.nav-cta { padding: 0.85rem 1.8rem; }

/* Dropdown nav */
.nav-item { position: relative; display: flex; align-items: center; align-self: stretch; }
.nav-drop-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0.4rem 0;
  transition: color 0.3s var(--ease-out);
}
.caret {
  width: 6px;
  height: 6px;
  margin-top: -4px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease-out), margin-top 0.3s var(--ease-out);
}
.nav-item:hover .nav-drop-toggle,
.nav-item:focus-within .nav-drop-toggle,
.nav-item.open .nav-drop-toggle { color: var(--gold-light); }
.nav-item:hover .caret,
.nav-item:focus-within .caret,
.nav-item.open .caret { transform: rotate(-135deg); margin-top: 2px; }
.nav-drop {
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 250px;
  padding: 0.8rem 0;
  background: rgba(6, 14, 28, 0.97);
  border: 1px solid var(--line);
  border-top-color: var(--line-gold);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(10px);
  transition: opacity 0.28s var(--ease-out), transform 0.28s var(--ease-out), visibility 0s linear 0.28s;
}
.nav-item:hover .nav-drop,
.nav-item:focus-within .nav-drop,
.nav-item.open .nav-drop {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0s;
}
.nav-links .nav-drop a:not(.btn) {
  display: block;
  padding: 0.6rem 1.7rem;
  font-size: 0.76rem;
  background-image: none;
  transition: color 0.25s var(--ease-out), background-color 0.25s var(--ease-out);
}
.nav-links .nav-drop a:not(.btn):hover {
  color: var(--gold-light);
  background-color: rgba(201, 162, 75, 0.07);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 4px;
  z-index: 300;
}
.nav-toggle span {
  width: 26px;
  height: 1px;
  background: var(--gold-light);
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}

/* ---------- Layout primitives ---------- */

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* Tightened July 2026: older ICP feedback, less dead space between sections */
.section { padding: clamp(4rem, 6.5vw, 6.5rem) 0; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(6,14,28,0.55) 0%, rgba(6,14,28,0.1) 30%, rgba(10,22,38,0.92) 100%),
    linear-gradient(100deg, rgba(6,14,28,0.9) 0%, rgba(6,14,28,0.55) 48%, rgba(6,14,28,0.2) 100%);
}
.hero-content {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 8rem var(--pad-x) 6rem;
}
.hero-content .display { max-width: 34ch; }
.hero-content .sub-caps {
  display: block;
  margin: 1.7rem 0 2.3rem;
  max-width: 44ch;
}

/* ---------- Marquee ---------- */

.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 1.35rem 0;
  background: var(--noir);
}
.strip-track {
  display: flex;
  width: max-content;
  animation: marquee 44s linear infinite;
}
.strip-track span {
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-mute);
  white-space: nowrap;
  padding-right: 3rem;
}
.strip-track .dot { color: var(--gold); font-style: normal; padding: 0 1.4rem; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Statement ---------- */

.statement {
  text-align: center;
  position: relative;
  width: min(1060px, calc(100% - 3rem));
  margin: 0 auto;
  padding: clamp(2.8rem, 5.5vw, 5rem) clamp(1.6rem, 4.5vw, 4.5rem);
  background: var(--navy-raise);
  border: 1px solid var(--line);
}
.statement::before,
.statement::after {
  content: "";
  position: absolute;
  width: 46px;
  height: 46px;
  pointer-events: none;
}
.statement::before {
  top: -1px;
  left: -1px;
  border-top: 1px solid var(--gold);
  border-left: 1px solid var(--gold);
}
.statement::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 1px solid var(--gold);
  border-right: 1px solid var(--gold);
}
.statement > div:first-child { margin-bottom: clamp(1.8rem, 3vw, 2.6rem); }
@media (max-width: 760px) { .statement .lb { display: none; } }
.statement .serif-statement { max-width: 46ch; margin: 0 auto; }
.statement .body-follow { margin-left: auto; margin-right: auto; }
.statement .eyebrow {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.36em;
}
.statement .body-follow {
  margin-top: 2rem;
  font-size: 1.25rem;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 58ch;
}

/* ---------- Services grid ---------- */

.services-head { margin-bottom: clamp(2.2rem, 3.5vw, 3.2rem); max-width: 62ch; }
.services-head .lede { margin-top: 1.6rem; }

.svc-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.svc {
  position: relative;
  background: var(--navy);
  padding: 2.8rem 2.4rem 2.4rem;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  transition: background-color 0.4s var(--ease-out);
}
.svc:nth-child(1) { grid-column: span 4; }
.svc:nth-child(2) { grid-column: span 2; }
.svc:nth-child(3), .svc:nth-child(4), .svc:nth-child(5) { grid-column: span 2; }

.svc-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.svc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.svc-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,14,28,0.94) 25%, rgba(6,14,28,0.55) 100%);
}
.svc:hover .svc-media img { transform: scale(1.04); }
.svc:not(:has(.svc-media)):hover { background-color: var(--navy-raise); }

.svc-num {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: auto;
}
.svc-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 2.2rem 0 0.8rem;
}
.svc-desc {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 44ch;
}
.svc-link {
  margin-top: 1.6rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-light);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.svc-link .arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease-out);
}
.svc:hover .svc-link .arrow { transform: translateX(6px); }

/* ---------- Stats ---------- */

.section.deep { background: var(--noir); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(2.2rem, 3.5vw, 3.2rem);
}
.stat {
  padding: 0.6rem 2.2rem;
  border-left: 1px solid var(--line);
}
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.4vw, 4rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
}
.stat .label {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1.9;
}

/* Credential seal — circular notarial mark in the stats row */
.seal {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  padding: 0.6rem 1rem;
}
.seal-svg {
  width: clamp(190px, 15vw, 230px);
  height: auto;
}

/* ---------- Feature split ---------- */

.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(3rem, 6vw, 6.5rem);
  align-items: center;
}
.split.reverse .split-img { order: 2; }
.split-img {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
}
.split-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.split .h-section { margin: 1.1rem 0 1.5rem; }

.checklist {
  list-style: none;
  margin-top: 2.2rem;
}
.checklist li {
  position: relative;
  padding: 0.55rem 0 0.55rem 2.6rem;
  color: var(--ink-soft);
  font-size: 1.2rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.25em;
  width: 1.5rem;
  height: 1px;
  background: var(--gold);
}

/* ---------- Process ---------- */

.process {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}
.process-intro .lede { margin-top: 1.6rem; }
.step {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step-n {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
}
.step h3 {
  font-size: 1.3rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.step p { color: var(--ink-soft); font-size: 1.2rem; max-width: 52ch; }

/* ---------- Quote ---------- */

.quote-wrap {
  max-width: 880px;
  text-align: center;
}
.quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.55;
}
.quote-by {
  margin-top: 1.8rem;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Trust band ---------- */
.trust-wrap { max-width: 880px; text-align: center; }
.trust-statement {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.55;
  margin-top: 1.8rem;
}
.trust-marks {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.9rem 1.2rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.trust-marks .dot { font-style: normal; opacity: 0.7; }

#founder, #mission { scroll-margin-top: 90px; }

/* ---------- Client letters (testimonials page) ---------- */
.letter {
  max-width: 880px;
  margin: 0 auto;
  padding: 3.2rem 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 96px;
}
.letter:first-of-type { border-top: none; padding-top: 0.5rem; }
details.letter > summary.letter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem;
  cursor: pointer;
  list-style: none;
}
details.letter > summary.letter-head::-webkit-details-marker { display: none; }
.letter-title { display: flex; align-items: baseline; gap: 1.1rem; }
.letter-caret {
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease-out);
}
details.letter[open] .letter-caret { transform: rotate(225deg); }
details.letter > summary.letter-head:hover .letter-name { color: var(--ivory); }
.letter-body { margin-top: 1.7rem; }
.letter-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  color: var(--gold-light);
}
.letter-sep { color: var(--gold); opacity: 0.6; }
.letter-loc {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}
.letter-body p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.65;
  color: var(--ink-soft);
}
.letter-body p + p { margin-top: 1.3rem; }

@media (max-width: 700px) {
  .letter-title { flex-direction: column; align-items: flex-start; gap: 0.45rem; }
  .letter-sep { display: none; }
  .letter-name { font-size: 1.65rem; }
}

/* ---------- Testimonials (home) ---------- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testi {
  border: 1px solid var(--line);
  background: var(--navy-raise);
  padding: 2.5rem 2.3rem;
  display: flex;
  flex-direction: column;
  gap: 1.7rem;
}
.testi blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.testi figcaption {
  margin-top: auto;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}
@media (max-width: 1024px) {
  .testi-grid { grid-template-columns: 1fr; }
}

/* ---------- Services summary (home) ---------- */
.svc-index { margin-top: 0.5rem; border-top: 1px solid var(--line); }
.svc-row {
  display: grid;
  grid-template-columns: 3.2rem minmax(15rem, 19rem) 1fr auto;
  align-items: baseline;
  column-gap: 1.6rem;
  padding: 1.7rem 0.4rem;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s var(--ease-out);
}
.svc-row:hover { background-color: rgba(201, 162, 75, 0.05); }
.svc-row-num { font-family: var(--font-display); font-size: 1.05rem; color: var(--gold); }
.svc-row-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 1.8vw, 1.6rem);
  color: var(--ivory);
  transition: color 0.3s var(--ease-out);
}
.svc-row:hover .svc-row-title { color: var(--gold-light); }
.svc-row-desc { color: var(--ink-mute); font-size: 1.02rem; line-height: 1.6; }
.svc-row .arrow { color: var(--gold); transition: transform 0.3s var(--ease-out); }
.svc-row:hover .arrow { transform: translateX(6px); }
.svc-index-cta { margin-top: 2.8rem; }

@media (max-width: 760px) {
  .svc-row { grid-template-columns: 2.4rem 1fr auto; row-gap: 0.5rem; }
  .svc-row-desc { grid-column: 2 / 3; }
}

/* ---------- About ---------- */

.about-card {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
  background: var(--navy-raise);
  border: 1px solid var(--line);
  padding: clamp(2rem, 4vw, 4.5rem);
}
.about-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}
.about-card .h-section { margin: 1.1rem 0 1.5rem; }
.about-sign {
  margin-top: 2.2rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.7rem;
  color: var(--gold-light);
}

/* ---------- CTA ---------- */

.cta {
  background: var(--noir);
  border-top: 1px solid var(--line-gold);
  text-align: center;
}
.cta .h-section { margin: 1.4rem 0 1.5rem; }
.cta .lede { margin: 0 auto; }
.cta-actions {
  margin-top: 2.4rem;
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: clamp(3rem, 5vw, 4.5rem) 0 2.5rem;
  background: var(--noir);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 2.8rem;
}
.footer-top p {
  margin-top: 1.4rem;
  font-size: 1.1rem;
  color: var(--ink-mute);
}
.footer .foot-h {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.3rem;
}
.footer ul { list-style: none; }
.footer li {
  font-size: 1.1rem;
  color: var(--ink-soft);
  padding: 0.3rem 0;
}
.footer li a { transition: color 0.3s var(--ease-out); }
.footer li a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 2.2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
}

/* ---------- Services page ---------- */

.page-hero {
  padding: clamp(8.5rem, 14vh, 11rem) 0 clamp(3rem, 5vw, 4.5rem);
}
.page-hero .display {
  margin-top: 1.2rem;
  max-width: 40ch;
  font-size: clamp(2.2rem, 3.8vw, 3.6rem);
}
.page-hero .lede { margin-top: 1.6rem; }

.banner {
  position: relative;
  min-height: 54vh;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.banner-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.banner-bg img { width: 100%; height: 100%; object-fit: cover; }
.banner-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,14,28,0.94) 0%, rgba(6,14,28,0.35) 55%, rgba(6,14,28,0.25) 100%);
}
.banner-inner {
  width: 100%;
  padding: clamp(3rem, 6vw, 5rem) var(--pad-x);
  max-width: var(--maxw);
  margin: 0 auto;
}
.banner-inner .svc-num { font-size: 1.1rem; }
.banner-inner .h-section { margin-top: 1rem; }

.banner-detail {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
  /* keep .wrap's horizontal padding: a bare 0 here pushed text to the screen edge at <=1440px */
  padding: clamp(2.8rem, 4.5vw, 4rem) var(--pad-x);
}
.banner-detail .checklist { margin-top: 0; }

/* ---------- Service detail pages ---------- */

.banner--page {
  min-height: 62vh;
  border-top: 0;
}
.banner--page .h-section {
  font-size: clamp(2rem, 3.8vw, 3.6rem);
}

/* Standalone explore links (outside .svc cards) still get the arrow slide */
a.svc-link:hover .arrow,
a.svc-link:focus-visible .arrow { transform: translateX(6px); }

.next-svc {
  position: relative;
  display: block;
  isolation: isolate;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.next-svc-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.next-svc-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.next-svc-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(6, 14, 28, 0.84);
  transition: background-color 0.5s var(--ease-out);
}
.next-svc:hover .next-svc-bg img { transform: scale(1.04); }
.next-svc:hover .next-svc-bg::after { background-color: rgba(6, 14, 28, 0.7); }
.next-svc-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 4.5rem) var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.next-svc-label {
  display: block;
  margin-bottom: 0.9rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}
.next-svc-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2.4rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.next-svc .arrow {
  font-size: 1.6rem;
  color: var(--gold-light);
  transition: transform 0.3s var(--ease-out);
}
.next-svc:hover .arrow { transform: translateX(8px); }

/* ---------- A. Cinematic hero ---------- */

.hero-line { display: block; overflow: hidden; }
.hero-line-inner {
  display: inline-block;
  transform: translateY(112%);
  animation: hero-line-up 1.1s var(--ease-out) forwards;
}
.hero-line:nth-child(2) .hero-line-inner { animation-delay: 0.16s; }
@keyframes hero-line-up { to { transform: translateY(0); } }

.hero .d1 { transition-delay: 0.55s; }
.hero .d2 { transition-delay: 0.75s; }

.hero-content .sub-caps::after {
  content: "";
  display: block;
  width: 64px;
  height: 1px;
  background: var(--gold);
  margin-top: 1.7rem;
  transform: scaleX(0);
  transform-origin: left;
  animation: hairline-draw 0.8s var(--ease-out) 1.15s forwards;
}
@keyframes hairline-draw { to { transform: scaleX(1); } }

.hero-bg img { animation: kenburns 18s var(--ease-out) forwards; }
@keyframes kenburns {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

/* ---------- B. Living services grid ---------- */

@media (hover: hover) {
  .svc::after {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(201, 162, 75, 0.6), transparent 70%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
    pointer-events: none;
  }
  .svc:hover::after { opacity: 1; }
}

.svc--reveal .svc-media {
  opacity: 0;
  transition: opacity 0.55s var(--ease-out);
}
.svc--reveal:hover .svc-media,
.svc--reveal:focus-visible .svc-media { opacity: 1; }

/* ---------- C. Scroll choreography ---------- */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .split-img img,
    .banner-bg img {
      scale: 1.14;
      animation: parallax-drift linear both;
      animation-timeline: view();
    }

    .steps { position: relative; padding-left: 1.6rem; }
    .steps::before {
      content: "";
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 1px;
      background: var(--line);
    }
    .steps::after {
      content: "";
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 1px;
      background: var(--gold);
      transform-origin: top;
      transform: scaleY(0);
      animation: line-grow linear both;
      animation-timeline: view();
      animation-range: entry 30% cover 75%;
    }
  }
}
@keyframes parallax-drift {
  from { transform: translateY(-4.5%); }
  to { transform: translateY(4.5%); }
}
@keyframes text-fill { to { background-position: 0 0; } }
@keyframes line-grow { to { transform: scaleY(1); } }

/* ---------- D. Finishing details ---------- */

@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 0.35s; }

.quote-wrap { position: relative; }
.quote-wrap::before {
  content: "\201C" / "";
  position: absolute;
  top: -7rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19rem;
  line-height: 1;
  color: rgba(201, 162, 75, 0.09);
  pointer-events: none;
}

.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.cta::before {
  content: "DM" / "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(14rem, 28vw, 24rem);
  letter-spacing: 0.05em;
  color: rgba(201, 162, 75, 0.05);
  z-index: -1;
  pointer-events: none;
}

/* ---------- Reveal animations ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
[data-reveal].in {
  opacity: 1;
  transform: translateY(0);
}
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .strip-track { animation: none; }
  .svc-media img, .svc-link .arrow { transition: none; }
  .btn { transition: none; }
  .hero-line-inner { animation: none; transform: none; }
  .hero-bg img { animation: none; }
  .hero-content .sub-caps::after { animation: none; transform: scaleX(1); }
  .svc::after { display: none; }
  .svc--reveal .svc-media { transition: none; }
  .next-svc-bg img, .next-svc-bg::after, .next-svc .arrow { transition: none; }
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .svc:nth-child(1), .svc:nth-child(2) { grid-column: span 3; }
  .svc:nth-child(3), .svc:nth-child(4) { grid-column: span 3; }
  .svc:nth-child(5) { grid-column: span 6; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 3rem; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav { height: 68px; }
  .nav .brand-logo { height: 54px; }
  /* backdrop-filter turns the nav into the containing block for the fixed
     fullscreen menu, collapsing it to nav height. Solid fill on mobile instead. */
  .nav.scrolled {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background-color: rgba(6, 14, 28, 0.97);
  }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--noir);
    flex-direction: column;
    justify-content: center;
    gap: 2.2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--ease-out);
  }
  .nav-links.open { opacity: 1; pointer-events: auto; }
  .nav-links a:not(.btn) { font-size: 0.85rem; }
  /* Dropdowns flatten into labelled groups inside the fullscreen menu */
  .nav-links {
    justify-content: flex-start;
    overflow-y: auto;
    padding: 6rem 0 3rem;
    gap: 1.9rem;
  }
  .nav-item { flex-direction: column; align-self: center; }
  .nav-drop-toggle { font-size: 0.85rem; gap: 0.75rem; }
  .nav-item.open .nav-drop-toggle { color: var(--gold-light); }
  .nav-drop {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: none;
    border: none;
    min-width: 0;
    padding: 1.2rem 0 0.3rem;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
  }
  .nav-item.open .nav-drop,
  .nav-item:hover .nav-drop,
  .nav-item:focus-within .nav-drop { display: none; transform: none; }
  .nav-item.open .nav-drop { display: flex; }
  .nav-links .nav-drop a:not(.btn) { padding: 0; font-size: 0.78rem; color: var(--ink-mute); }
  .nav-links.open ~ .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-links.open ~ .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-links.open ~ .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .split,
  .split.reverse,
  .process,
  .about-card,
  .banner-detail { grid-template-columns: 1fr; }
  .split.reverse .split-img { order: 0; }
  .split-img { aspect-ratio: 4 / 3; }

  .svc:nth-child(n) { grid-column: span 6; min-height: 240px; }

  .hero-content { padding-top: 7rem; padding-bottom: 4rem; }
}

@media (max-width: 560px) {
  /* keep "EXTRAORDINARY" inside the hero line mask: it clips, not wraps, at the desktop scale */
  .display { font-size: clamp(1.6rem, 7.6vw, 2.2rem); }
  /* home hero: each phrase holds a single line on phones */
  .hero-content .display { font-size: clamp(1.3rem, 6.3vw, 2rem); letter-spacing: 0.06em; }
  .btn { padding: 1rem 1.2rem; letter-spacing: 0.18em; max-width: 100%; }
  .nav-cta { padding: 0.75rem 1.2rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .seal { max-width: 320px; }
  .stat { padding-left: 1.6rem; }
  .footer-top { grid-template-columns: 1fr; gap: 2.2rem; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .wordmark .wm-sub { display: none; }
}
