/* ============================================================
   GROUPEADF.COM — Anthony Delli Fraine, Mortgage Broker
   Style system per ADF Style Tile v2
   Editorial-minimal · Bold · Young · Professional
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  --ink:        #0F0F0F;
  --ink-80:     #2b2b2b;
  --paper:      #F7F5F2;
  --paper-2:    #FBFAF8;   /* subtle card lift */
  --paper-3:    #EFEBE5;   /* recessed panels  */
  --accent:     #C8531F;   /* burnt orange — one moment per screen */
  --accent-ink: #A8430F;
  --muted:      #6B6B6B;
  --line:       #D9D9D9;
  --line-soft:  #E7E3DD;

  --ff-display: "Inter Tight", "Helvetica Now", Helvetica, Arial, sans-serif;
  --ff-body:    "Inter", Helvetica, Arial, sans-serif;

  --container: 1320px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --section-y: clamp(4.5rem, 11vh, 9.5rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --dur: 0.7s;

  --radius: 2px;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}
body {
  font-family: var(--ff-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--paper); }

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.display-xl {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(2.7rem, 1.6rem + 5.4vw, 6.6rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.display-l {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 1.4rem + 3.6vw, 4.5rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
}
.display-m {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.lead {
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.45rem);
  line-height: 1.45;
  color: var(--ink-80);
  max-width: 46ch;
}
.muted { color: var(--muted); }
.accent { color: var(--accent); }
em { font-style: italic; }

.eyebrow {
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.eyebrow::before {
  content: "";
  width: 1.6em;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow--plain::before { display: none; }

/* ---------- 4. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 7vh, 5.5rem); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink .muted { color: #9a9a9a; }
.divider { height: 1px; background: var(--line); border: 0; }

.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 6vh, 4.5rem);
}
.section-head__index {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding-top: 0.6em;
  font-variant-numeric: tabular-nums;
}
.section-head__index .accent { color: var(--accent); }
.section-head__title { grid-column: 2; }
.section-head__title h2 { margin-top: 0.5rem; }
.section-head__aside {
  grid-column: 2;
  max-width: 42ch;
  color: var(--muted);
  margin-top: 1.1rem;
}

/* ---------- 5. Buttons & links ---------- */
.btn {
  --bg: var(--ink);
  --fg: var(--paper);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 1.5em;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--fg);
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
  white-space: nowrap;
}
.btn .btn__label { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 0.55em; }
.btn .arrow { transition: transform 0.45s var(--ease); }
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
  z-index: 0;
}
.btn:hover { color: var(--paper); }
.btn:hover::after { transform: translateY(0); }
.btn:hover .arrow { transform: translate(0.25em, -0.05em); }

.btn--accent { --bg: var(--accent); --fg: var(--paper); }
.btn--accent::after { background: var(--ink); }

.btn--ghost {
  --bg: transparent;
  --fg: var(--ink);
  border: 1px solid var(--ink);
}
.btn--ghost::after { background: var(--ink); }
.btn--ghost:hover { color: var(--paper); border-color: var(--ink); }

.section--ink .btn--ghost { --fg: var(--paper); border-color: rgba(247,245,242,0.4); }
.section--ink .btn--ghost::after { background: var(--paper); }
.section--ink .btn--ghost:hover { color: var(--ink); }
.section--ink .btn { --bg: var(--paper); --fg: var(--ink); }
.section--ink .btn::after { background: var(--accent); }
.section--ink .btn:hover { color: var(--paper); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  width: fit-content;
  padding-bottom: 2px;
}
.link-arrow::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover::after { transform: scaleX(1); transform-origin: left; }
.link-arrow .arrow { transition: transform 0.4s var(--ease); }
.link-arrow:hover .arrow { transform: translateX(0.3em); }

/* ---------- 6. Navbar ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: transform 0.5s var(--ease), background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 1.1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  line-height: 1;
}
.brand .dot { color: var(--accent); }
.brand__mark {
  height: 34px;
  width: 34px;
  display: block;
  transition: transform 0.75s var(--ease);
  will-change: transform;
}
.brand:hover .brand__mark { transform: rotate(90deg); }
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.5vw, 2.4rem);
}
.nav__link {
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.3em 0;
  color: var(--ink);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__link.is-active { color: var(--ink); }

.nav__right { display: flex; align-items: center; gap: 1.4rem; }

.lang {
  display: inline-flex;
  align-items: center;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  border: 1px solid var(--line);
  border-radius: 100px;
  overflow: hidden;
}
.lang button {
  padding: 0.4em 0.7em;
  color: var(--muted);
  transition: color 0.3s, background 0.3s;
  line-height: 1;
}
.lang button.is-active { background: var(--ink); color: var(--paper); }

.nav__cta { display: inline-flex; }

/* burger */
.burger {
  display: none;
  width: 30px; height: 18px;
  position: relative;
  z-index: 120;
}
.burger span {
  position: absolute; left: 0;
  width: 100%; height: 2px;
  background: var(--ink);
  transition: transform 0.45s var(--ease), opacity 0.3s;
}
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 8px; }
.burger span:nth-child(3) { top: 16px; }
body.menu-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* mobile drawer */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 110;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease-in-out);
  pointer-events: none;
}
body.menu-open .mobile-menu { clip-path: inset(0 0 0 0); pointer-events: auto; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 0.4rem; }
.mobile-menu nav a {
  display: block;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 11vw, 4rem);
  letter-spacing: -0.04em;
  line-height: 1.12;
  color: var(--ink);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.mobile-menu nav a .idx {
  font-size: 0.85rem;
  color: var(--accent);
  vertical-align: super;
  margin-right: 0.5rem;
  font-family: var(--ff-body);
  letter-spacing: 0;
}
body.menu-open .mobile-menu nav a { opacity: 1; transform: translateY(0); }
body.menu-open .mobile-menu nav a:nth-child(1) { transition-delay: 0.15s; }
body.menu-open .mobile-menu nav a:nth-child(2) { transition-delay: 0.22s; }
body.menu-open .mobile-menu nav a:nth-child(3) { transition-delay: 0.29s; }
body.menu-open .mobile-menu nav a:nth-child(4) { transition-delay: 0.36s; }
.mobile-menu__foot {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.5s 0.45s var(--ease);
}
.mobile-menu__foot a {
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0;
  color: var(--muted);
}
.mobile-menu__foot a:hover { color: var(--accent); }
body.menu-open .mobile-menu__foot { opacity: 1; }

/* ---------- 7. Hero ---------- */
.hero { padding-top: clamp(8rem, 18vh, 12rem); position: relative; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}
.hero__title { margin: 1.5rem 0 2rem; }
.line { display: block; overflow: hidden; padding-bottom: 0.16em; }
.line > span { display: block; }
.hero__title .line > span { will-change: transform; }
.js .hero__title .line > span { transform: translateY(110%); }
.js [data-hero-stagger] > * { opacity: 0; transform: translateY(22px); }
@media (prefers-reduced-motion: reduce) {
  .js .hero__title .line > span,
  .js [data-hero-stagger] > * { transform: none; opacity: 1; }
}
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 0.5rem; }
.hero__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-3);
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  will-change: transform;
}
.hero__tag {
  position: absolute;
  left: 1rem; bottom: 1rem;
  background: var(--paper);
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.hero__tag .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  position: relative;
}
.hero__tag .pulse::after {
  content: ""; position: absolute; inset: 0;
  border-radius: 50%; background: var(--accent);
  animation: ping 2.2s var(--ease) infinite;
}
@keyframes ping {
  0% { transform: scale(1); opacity: 0.7; }
  80%, 100% { transform: scale(2.6); opacity: 0; }
}

/* ---------- 8. Marquee (lenders) ---------- */
.marquee {
  border-block: 1px solid var(--line);
  padding-block: 1.4rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  gap: clamp(2.5rem, 6vw, 5rem);
  width: max-content;
  animation: scroll-x 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(1.1rem, 1.4vw, 1.6rem);
  letter-spacing: -0.02em;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.3s;
  opacity: 0.75;
}
.marquee__item:hover { color: var(--ink); opacity: 1; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ---------- 9. Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.stat {
  padding: clamp(1.5rem, 4vw, 2.6rem) 0;
  padding-right: 1rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.stat:not(:first-child) { padding-left: clamp(1rem, 2.5vw, 2rem); }
.stat:not(:last-child)::after {
  content: ""; position: absolute; right: 0; top: 0; bottom: 0;
  width: 1px; background: var(--line);
}
.stat__num {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 1.4rem + 3.4vw, 4.6rem);
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
}
.stat__num .suffix { color: var(--accent); }
.stat__label {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

/* ---------- 10. Cards / services ---------- */
.grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper);
  padding: clamp(1.6rem, 2.6vw, 2.4rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 230px;
  position: relative;
  isolation: isolate;
  transition: background 0.45s var(--ease), color 0.45s var(--ease);
}
.card__num {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.card__icon {
  width: 34px; height: 34px;
  color: var(--ink);
  transition: color 0.45s var(--ease), transform 0.55s var(--ease);
}
.card h3 { font-size: clamp(1.25rem, 1.6vw, 1.6rem); }
.card p { color: var(--muted); font-size: 0.95rem; flex-grow: 1; }
.card .link-arrow { margin-top: 0.5rem; }
.card::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 0;
  background: var(--ink);
  z-index: -1;
  transition: height 0.45s var(--ease);
}
.card:hover { color: var(--paper); }
.card:hover::after { height: 100%; }
.card:hover .card__num,
.card:hover p { color: rgba(247,245,242,0.7); }
.card:hover .card__icon { color: var(--accent); transform: rotate(-8deg) scale(1.06); }
.card:hover .link-arrow { color: var(--paper); }
.card:hover .link-arrow:hover { color: var(--accent); }

/* ---------- 11. Feature / split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.split--reverse .split__media { order: -1; }
.split__media {
  position: relative;
  aspect-ratio: 5 / 6;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-3);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.split__media--why img { object-position: 88% center; }
.hero__media--portrait img { object-position: 86% center; }
.feature-list { display: grid; gap: 0; margin-top: 2rem; border-top: 1px solid var(--line); }
.feature-list li {
  display: flex;
  gap: 1.2rem;
  align-items: baseline;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.feature-list .n {
  font-family: var(--ff-display);
  font-weight: 700;
  color: var(--accent);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.feature-list .t { font-size: clamp(1.05rem, 1.4vw, 1.25rem); font-weight: 500; }

/* signature / quote block */
.signature {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}
.signature small { display: block; font-family: var(--ff-body); font-weight: 500; font-size: 0.85rem; color: var(--muted); letter-spacing: 0; margin-top: 0.3rem; }

/* ---------- 12. Timeline ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  counter-reset: step;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 22px; left: 0; right: 0;
  height: 1px;
  background: var(--line);
}
.tl-step { position: relative; padding-top: 0; }
.tl-step__dot {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--ink);
  display: grid; place-items: center;
  font-family: var(--ff-display);
  font-weight: 700;
  position: relative;
  z-index: 1;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.tl-step.is-visible .tl-step__dot { background: var(--ink); color: var(--paper); }
.tl-step h4 { margin-top: 1.4rem; font-size: 1.2rem; }
.tl-step p { color: var(--muted); font-size: 0.92rem; margin-top: 0.5rem; }

/* ---------- 13. Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.quote {
  background: var(--paper);
  padding: clamp(1.6rem, 2.6vw, 2.4rem);
  display: flex; flex-direction: column; gap: 1.4rem;
}
.quote__mark {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 3rem;
  line-height: 0.6;
  color: var(--accent);
}
.quote p { font-size: 1.05rem; color: var(--ink-80); flex-grow: 1; }
.quote__by { display: flex; align-items: center; gap: 0.8rem; }
.quote__avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  font-family: var(--ff-display); font-weight: 700; font-size: 0.95rem;
}
.quote__name { font-weight: 600; font-size: 0.95rem; }
.quote__meta { font-size: 0.82rem; color: var(--muted); }
.quote__stars { color: var(--accent); letter-spacing: 0.1em; font-size: 0.85rem; }

/* ---------- 14. Accordion (FAQ) ---------- */
.accordion { border-top: 1px solid var(--line); }
.acc {
  border-bottom: 1px solid var(--line);
}
.acc__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.3rem, 2.4vw, 1.9rem) 0;
  text-align: left;
}
.acc__q {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 1.8vw, 1.6rem);
  letter-spacing: -0.02em;
  transition: color 0.3s;
}
.acc__head:hover .acc__q { color: var(--accent); }
.acc__icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  position: relative;
}
.acc__icon::before, .acc__icon::after {
  content: ""; position: absolute;
  background: var(--ink);
  transition: transform 0.4s var(--ease), background 0.3s;
  top: 50%; left: 50%;
}
.acc__icon::before { width: 16px; height: 2px; transform: translate(-50%,-50%); }
.acc__icon::after  { width: 2px; height: 16px; transform: translate(-50%,-50%); }
.acc.is-open .acc__icon::after { transform: translate(-50%,-50%) scaleY(0); }
.acc.is-open .acc__icon::before { background: var(--accent); }
.acc__body {
  overflow: hidden;
  height: 0;
  transition: height 0.5s var(--ease);
}
.acc__body-inner {
  padding-bottom: clamp(1.3rem, 2.4vw, 1.9rem);
  max-width: 64ch;
  color: var(--muted);
}

/* ---------- 15. CTA band ---------- */
.cta-band { text-align: center; position: relative; overflow: hidden; }
.cta-band__eyebrow { color: #9a9a9a; justify-content: center; }
.cta-band h2 { margin: 1.2rem 0 1.4rem; }
.cta-band p { color: #b5b5b5; max-width: 40ch; margin: 0 auto 2.2rem; }
.cta-band .btn { margin-inline: auto; }
.cta-watermark {
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 40vw;
  letter-spacing: -0.06em;
  color: rgba(247,245,242,0.03);
  pointer-events: none;
  line-height: 1;
  z-index: 0;
}
.cta-band .container { position: relative; z-index: 1; }

/* ---------- 16. Footer ---------- */
.footer { background: var(--ink); color: var(--paper); padding-top: clamp(4rem, 8vh, 6rem); padding-bottom: 2rem; }
.footer a { color: rgba(247,245,242,0.72); transition: color 0.3s; }
.footer a:hover { color: var(--accent); }
.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: clamp(3rem, 6vh, 5rem);
  border-bottom: 1px solid rgba(247,245,242,0.14);
}
.footer__brand .brand { color: var(--paper); font-size: 2.4rem; }
.footer__brand p { color: #9a9a9a; margin-top: 1rem; max-width: 30ch; }
.footer__col h5 {
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8a8a8a;
  margin-bottom: 1.2rem;
}
.footer__col ul { display: grid; gap: 0.7rem; }
.footer__col li { font-size: 0.98rem; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 2rem;
}
.footer__disclosure { color: #7c7c7c; font-size: 0.82rem; max-width: 62ch; line-height: 1.5; }
.footer__legal { color: #7c7c7c; font-size: 0.82rem; }

/* ---------- 17. Reveal animations ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
[data-reveal="fade"] { transform: none; }
[data-reveal].is-visible { opacity: 1; transform: none; }

[data-reveal-mask] { overflow: hidden; }
[data-reveal-mask] > * {
  transform: translateY(110%);
  transition: transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}
[data-reveal-mask].is-visible > * { transform: translateY(0); }

.media-reveal { position: relative; }
.media-reveal::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--paper-3);
  transform-origin: top;
  transition: transform 1.05s var(--ease-in-out);
  z-index: 2;
}
.section--ink .media-reveal::after { background: var(--ink); }
.media-reveal.is-visible::after { transform: scaleY(0); transform-origin: bottom; }
.media-reveal img { transform: scale(1.18); transition: transform 1.4s var(--ease); }
.media-reveal.is-visible img { transform: scale(1); }

/* ---------- 18. Custom cursor ---------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), background 0.3s, border-color 0.3s, opacity 0.3s;
  mix-blend-mode: difference;
  border-color: #fff;
  opacity: 0;
}
.cursor.is-active { opacity: 1; }
.cursor.is-hover { width: 64px; height: 64px; background: #fff; }
.cursor__dot {
  position: fixed; top: 0; left: 0;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  opacity: 0;
}
.cursor__dot.is-active { opacity: 1; }

/* ---------- 19. Grain + page transition ---------- */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%; height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.035;
  pointer-events: none;
  z-index: 9998;
  mix-blend-mode: multiply;
  animation: grain 0.6s steps(2) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); }
  50% { transform: translate(-3%, 2%); }
}

.curtain {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 9990;
  transform: translateY(100%);
  pointer-events: none;
}
.curtain.is-in { animation: curtain-in 0.6s var(--ease-in-out) forwards; }
.curtain.is-out { transform: translateY(0); animation: curtain-out 0.7s var(--ease-in-out) forwards; }
@keyframes curtain-in { to { transform: translateY(0); } }
@keyframes curtain-out { to { transform: translateY(-100%); } }
.curtain__mark {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 2rem;
  color: var(--paper);
  letter-spacing: -0.04em;
  opacity: 0;
}
.curtain__mark .dot { color: var(--accent); }
.curtain.is-in .curtain__mark { animation: mark 0.6s ease forwards; }
@keyframes mark { 40%,100% { opacity: 1; } }

/* page intro */
body.is-loading { overflow: hidden; }
.loader {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 9995;
  display: grid;
  place-items: center;
  transition: transform 0.9s var(--ease-in-out);
}
.loader.is-done { transform: translateY(-100%); }
.loader__inner {
  text-align: center;
  color: var(--paper);
}
.loader__mark {
  width: 68px;
  height: 68px;
  display: block;
  margin: 0 auto 1.6rem;
  animation: loader-spin 2.4s var(--ease) infinite;
  will-change: transform;
}
/* continuous loop of the header's eased 90° turn — aperture-shutter feel */
@keyframes loader-spin {
  0%   { transform: rotate(0deg); }
  18%  { transform: rotate(90deg); }
  27%  { transform: rotate(90deg); }
  45%  { transform: rotate(180deg); }
  54%  { transform: rotate(180deg); }
  72%  { transform: rotate(270deg); }
  81%  { transform: rotate(270deg); }
  100% { transform: rotate(360deg); }
}
.loader__brand {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 3.4rem);
  letter-spacing: -0.04em;
  overflow: hidden;
}
.loader__brand span { display: inline-block; transform: translateY(110%); animation: load-up 0.8s var(--ease) forwards; }
.loader__brand .dot { color: var(--accent); }
@keyframes load-up { to { transform: translateY(0); } }
.loader__bar {
  width: min(220px, 50vw);
  height: 2px;
  background: rgba(247,245,242,0.2);
  margin: 1.5rem auto 0;
  overflow: hidden;
}
.loader__bar i { display: block; height: 100%; width: 0; background: var(--accent); animation: load-bar 1.1s var(--ease) forwards; }
@keyframes load-bar { to { width: 100%; } }

/* ---------- 20. Misc ---------- */
.tag-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tag {
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0.45em 1em;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
}
.note-strip {
  display: flex; align-items: center; gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem; color: var(--muted);
}
.note-strip .dotsep { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }

/* form */
.form-grid { display: grid; gap: 1.6rem; }
.field { position: relative; display: flex; flex-direction: column; gap: 0.5rem; }
.field label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}
.field input, .field textarea, .field select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0;
  font-size: 1.05rem;
  transition: border-color 0.3s;
}
.field input::placeholder, .field textarea::placeholder { color: #b3aea6; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.form-success {
  display: none;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--accent);
  color: var(--accent-ink);
  font-weight: 500;
  border-radius: var(--radius);
}
.form-success.is-show { display: flex; }

.contact-card {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(1.8rem, 3vw, 2.8rem);
  border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 1.8rem;
  height: 100%;
}
.contact-card__row { display: flex; flex-direction: column; gap: 0.3rem; }
.contact-card__k { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: #8a8a8a; }
.contact-card__v { font-size: 1.12rem; font-weight: 500; font-family: var(--ff-display); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.contact-card a.contact-card__v:hover { color: var(--accent); }

/* page header (interior) */
.page-header { padding-top: clamp(8rem, 16vh, 12rem); }
.page-header__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
}
.page-header h1 { margin: 1.2rem 0 1.6rem; }

/* big index number watermark for sections */
.bg-index {
  position: absolute;
  top: -0.3em; right: var(--gutter);
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(6rem, 18vw, 16rem);
  color: var(--paper-3);
  letter-spacing: -0.05em;
  z-index: 0;
  pointer-events: none;
  line-height: 1;
}

/* areas chips */
.areas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.area {
  background: var(--paper);
  padding: clamp(1.4rem, 2.4vw, 2rem);
  display: flex; flex-direction: column; gap: 0.6rem;
  min-height: 150px;
  justify-content: space-between;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.area h4 { font-size: 1.4rem; }
.area:hover { background: var(--ink); color: var(--paper); }
.area:hover .link-arrow { color: var(--paper); }
.area small { color: var(--muted); }
.area:hover small { color: rgba(247,245,242,0.6); }

/* ---------- 21. Responsive ---------- */
@media (max-width: 1024px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .burger { display: block; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { aspect-ratio: 16 / 11; max-height: 60vh; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .page-header__grid { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .timeline::before { display: none; }
  .quotes { grid-template-columns: 1fr; }
  .areas { grid-template-columns: 1fr 1fr; }
  .contact-split { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2)::after { display: none; }
  .stat { padding-left: 0 !important; padding-right: 1rem; }
  .stat:nth-child(odd) { padding-left: 0; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .areas { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; }
  .section-head__index { padding-top: 0; }
  .section-head__title, .section-head__aside { grid-column: 1; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* contact layout */
.contact-split { display: grid; grid-template-columns: 1fr 0.85fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }

/* ---------- 22. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal], [data-reveal-mask] > * { opacity: 1 !important; transform: none !important; }
  .media-reveal::after { display: none; }
  .media-reveal img { transform: none; }
  .grain { display: none; }
  .cursor, .cursor__dot { display: none; }
  .loader { display: none; }
}
