/* =====================================================================
   Guarnieri & Partners — Editorial rebuild
   Design system + layout. Modern editorial: large serif display,
   generous whitespace, ordered grids, restrained gold accent.
   ===================================================================== */

/* ---------- Fonts (real brand typefaces) ---------- */
@font-face {
  font-family: "Freight";
  src: url("../assets/fonts/FreightDispProBook-Regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Freight";
  src: url("../assets/fonts/FreightDispProBold-Regular.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Freight";
  src: url("../assets/fonts/FreightDispProBlack-Regular.ttf") format("truetype");
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: "Neue Haas";
  src: url("../assets/fonts/NeueHaasGrotText-55Roman.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Neue Haas";
  src: url("../assets/fonts/NeueHaasGrotText-65Medium.otf") format("opentype");
  font-weight: 500;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #f6f4ef;
  --paper-2: #efece4;
  --ink: #17150f;
  --ink-soft: #4a473f;
  --muted: #8a8578;
  --line: #d9d4c8;
  --gold: #b0842a;
  --gold-hi: #c8982a;
  --white: #fffef9;

  --serif: "Freight", Georgia, "Times New Roman", serif;
  --sans: "Neue Haas", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --container: 1280px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --header-h: 92px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  /* Stop iOS from auto-inflating text in landscape */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Hide the native browser scrollbar — the gold progress bar on the right
     replaces it. Scrolling (wheel / trackpad / touch / keyboard) still works. */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* legacy Edge/IE */
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none; /* Chrome / Safari / Edge */
}
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
  scrollbar-width: none;
}
/* No grey flash on tap (touch devices); custom cursor handles pointer feedback */
a,
button,
[role="button"],
.person,
.parea {
  -webkit-tap-highlight-color: transparent;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
::selection {
  background: var(--gold);
  color: var(--white);
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: clamp(4.5rem, 10vw, 9rem);
}
.divider {
  height: 1px;
  background: var(--line);
  border: 0;
}

/* Editorial section label: 01 — LABEL */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow--num {
  color: var(--muted);
}
.eyebrow--num b {
  color: var(--gold);
  font-weight: 500;
}

/* Display typography */
.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.01em;
}
h1.display {
  font-size: clamp(2.8rem, 7vw, 6rem);
}
h2.display {
  font-size: clamp(2.1rem, 4.6vw, 3.9rem);
}
h3.display {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
}
.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.6;
  color: var(--ink-soft);
}
.italic-gold {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
}

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 1rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: var(--pad-y) 2rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  overflow: hidden;
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease);
  z-index: 0;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
  z-index: -1;
}
.btn:hover {
  color: var(--white);
}
.btn:hover::after {
  transform: translateY(0);
}
.btn .arrow {
  transition: transform 0.4s var(--ease);
}
.btn:hover .arrow {
  transform: translateX(4px);
}
.btn--gold {
  border-color: var(--gold);
  color: var(--white);
  background: var(--gold);
}
.btn--gold::after {
  background: var(--ink);
}
.btn--gold:hover {
  border-color: var(--ink);
}

.link-underline {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-bottom: 3px;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  transition: background-size 0.45s var(--ease), color 0.3s;
}
.link-underline .arrow {
  transition: transform 0.4s var(--ease);
}
.link-underline:hover {
  color: var(--gold);
}
.link-underline:hover .arrow {
  transform: translateX(5px);
}

/* =====================================================================
   Header
   ===================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: height 0.4s var(--ease), background 0.4s, border-color 0.4s,
    box-shadow 0.4s;
}
/* When scrolled the header goes solid and DROPS the blur — this removes the
   per-frame backdrop repaint during scrolling (the state where most scrolling
   happens), keeping scroll perfectly smooth. */
.header.is-scrolled {
  height: 68px;
  background: var(--paper);
  backdrop-filter: none;
  border-bottom-color: var(--line);
  box-shadow: 0 10px 40px -28px rgba(0, 0, 0, 0.4);
}
.header__inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand img {
  height: 56px;
  width: auto;
  transition: height 0.4s var(--ease);
}
.header.is-scrolled .brand img {
  height: 44px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 2.5vw, 2.75rem);
}
.nav a {
  position: relative;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0.4rem 0;
  transition: color 0.3s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.4s var(--ease);
}
.nav a:hover,
.nav a.is-active {
  color: var(--ink);
}
.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
}

.header__right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Language switcher */
.lang {
  position: relative;
}
.lang__btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}
.lang__btn span {
  border-block: 2px solid var(--gold);
  padding: 2px 4px;
  line-height: 1;
}
.lang__menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  background: var(--white);
  border: 1px solid var(--line);
  min-width: 96px;
  padding: 0.4rem;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  box-shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.35);
}
.lang.is-open .lang__menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.lang__menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: background 0.2s, color 0.2s;
}
.lang__menu button:hover,
.lang__menu button.is-active {
  background: var(--paper-2);
  color: var(--gold);
}

/* Hamburger — mobile only */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.mobile-open .burger span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.mobile-open .burger span:nth-child(2) {
  opacity: 0;
}
.mobile-open .burger span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile menu panel */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 90;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-2%);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.mobile-open .mobile-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.mobile-menu a {
  font-family: var(--serif);
  font-size: clamp(2rem, 9vw, 3rem);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

/* =====================================================================
   Hero
   ===================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-h);
}
/* Dark scrim over the imagery so the overlaid heading stays legible */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
      95deg,
      rgba(12, 11, 8, 0.82) 0%,
      rgba(12, 11, 8, 0.5) 44%,
      rgba(12, 11, 8, 0.12) 78%,
      rgba(12, 11, 8, 0.28) 100%
    ),
    linear-gradient(
      0deg,
      rgba(12, 11, 8, 0.58) 0%,
      rgba(12, 11, 8, 0.14) 52%,
      rgba(12, 11, 8, 0) 80%
    );
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(2.5rem, 7vw, 5rem) var(--gutter);
  color: var(--white);
}
.hero__content .eyebrow {
  color: var(--gold-hi);
}
.hero__title {
  margin: 1.75rem 0;
}
.hero__title .l2 {
  color: var(--gold);
  font-style: italic;
}

/* Masked line reveal — each headline line slides up out of its own clip */
.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em; /* keep descenders inside the clip */
  margin-bottom: -0.08em;
}
.hero__title .line__in {
  display: block;
  transform: translateY(115%);
  animation: hero-line 1.1s var(--ease) forwards;
}
.hero__title .line:nth-child(2) .line__in {
  animation-delay: 0.18s;
}
@keyframes hero-line {
  to {
    transform: none;
  }
}

.hero__sub {
  max-width: 32em;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.86);
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Cinematic slideshow: slow crossfade + Ken Burns drift on active slide */
.hero__slide {
  opacity: 0;
  transition: opacity 1.4s ease;
  /* Promote to its own GPU layer so the crossfade + Ken Burns stay smooth */
  will-change: opacity, transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.hero__slide.is-active {
  opacity: 1;
}
@media (prefers-reduced-motion: no-preference) {
  .hero__slide.is-active {
    animation: hero-zoom 8s ease-out forwards;
  }
}
@keyframes hero-zoom {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.1);
  }
}

/* Slide indicators */
.hero__dots {
  position: absolute;
  right: var(--gutter);
  bottom: 2rem;
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}
.hero__dots span {
  width: 26px;
  height: 2px;
  background: rgba(255, 255, 255, 0.4);
  transition: background 0.4s;
}
.hero__dots span.is-active {
  background: var(--gold-hi);
}
.hero__scroll {
  position: absolute;
  left: var(--gutter);
  bottom: 2rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.hero__scroll .dot {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: grid;
  place-items: center;
}

/* =====================================================================
   About / Firm intro (two column editorial)
   ===================================================================== */
.two-col {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.two-col__aside {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}
.prose > * + * {
  margin-top: 1.5rem;
}
.prose p {
  color: var(--ink-soft);
  max-width: 60ch;
}
.pullquote {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.25;
  color: var(--ink);
  border-left: 2px solid var(--gold);
  padding-left: 1.5rem;
  margin-block: 2.5rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.stat__num {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--gold);
  line-height: 1;
}
.stat__label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* =====================================================================
   Practice areas (index list — editorial rows)
   ===================================================================== */
.parea-list {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
}
.parea {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.4s var(--ease);
}
.parea:hover {
  padding-left: 1rem;
}
.parea__num {
  font-size: 0.8rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.parea__title {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.4vw, 1.9rem);
  transition: color 0.3s;
}
.parea:hover .parea__title {
  color: var(--gold);
}
.parea__title span {
  display: block;
  font-family: var(--sans);
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 62ch;
  margin-top: 0.5rem;
}
.parea__plus {
  font-size: 1.4rem;
  color: var(--gold);
  transition: transform 0.4s var(--ease);
}
.parea:hover .parea__plus {
  transform: rotate(90deg);
}

/* =====================================================================
   People (team grid)
   ===================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 3rem;
}
.person {
  cursor: pointer;
}
.person__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-2);
}
.person__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: transform 0.9s var(--ease), filter 0.6s var(--ease);
}
.person:hover .person__photo img {
  transform: scale(1.05);
  filter: grayscale(0);
}
.person__mono {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 3.5rem;
  color: var(--muted);
  background: linear-gradient(160deg, var(--paper-2), var(--line));
}
.person__name {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin-top: 1.1rem;
}
.person__role {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.35rem;
}
.person__spec {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 0.5rem;
}

/* =====================================================================
   Press & News (two feature cards)
   ===================================================================== */
.press-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 3rem;
}
.press-card {
  display: block;
}
.press-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-2);
}
.press-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.press-card:hover .press-card__media img {
  transform: scale(1.04);
}
.press-card__tag {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 1.25rem;
}
.press-card__title {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  line-height: 1.2;
  margin-top: 0.6rem;
}
.press-card__excerpt {
  color: var(--ink-soft);
  margin-top: 0.75rem;
  max-width: 46ch;
}

/* =====================================================================
   Person modal
   ===================================================================== */
body.modal-open {
  overflow: hidden;
}
.person-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background: rgba(15, 14, 10, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.person-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.person-modal__panel {
  position: relative;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  max-width: 900px;
  width: 100%;
  max-height: 88vh;
  max-height: 88dvh;
  background: var(--paper);
  overflow: hidden;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.5s var(--ease);
}
.person-modal.is-open .person-modal__panel {
  transform: none;
}
.person-modal__photo {
  background: var(--paper-2);
  aspect-ratio: 4 / 5;
  height: 100%;
}
.person-modal__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.2);
}
.person-modal__body {
  padding: clamp(1.5rem, 4vw, 3rem);
  overflow-y: auto;
}
.person-modal__body h3 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}
.person-modal__role {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.5rem;
}
.person-modal__meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.35rem;
}
.person-modal__bio {
  margin-top: 1.5rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.person-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.2rem;
  z-index: 2;
}
@media (max-width: 700px) {
  .press-grid {
    grid-template-columns: 1fr;
  }
  .person-modal__panel {
    grid-template-columns: 1fr;
    max-height: 90vh;
    max-height: 90dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .person-modal__photo {
    aspect-ratio: 16 / 10;
  }
}

/* =====================================================================
   CTA band
   ===================================================================== */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}
.cta-band .container {
  position: relative;
  z-index: 1;
  text-align: center;
}
.cta-band h2 {
  color: var(--white);
  margin-bottom: 1.5rem;
}
.cta-band .btn {
  border-color: var(--white);
  color: var(--white);
}
.cta-band .btn::after {
  background: var(--white);
}
.cta-band .btn:hover {
  color: var(--ink);
}

/* =====================================================================
   Footer
   ===================================================================== */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(3.5rem, 7vw, 6rem) 2.5rem;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer__brand img {
  height: 64px;
  filter: brightness(0) invert(1);
}
.footer__brand p {
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 32ch;
  font-size: 0.95rem;
}
.footer__col h4 {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-hi);
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.footer__col a,
.footer__col p {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  padding: 0.35rem 0;
  transition: color 0.3s;
}
.footer__col a:hover {
  color: var(--white);
}
.footer__watermark {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 11vw, 9rem);
  line-height: 1;
  color: rgba(255, 255, 255, 0.16);
  text-align: center;
  padding: 3rem 0 1rem;
  user-select: none;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.82rem;
}
.footer__bottom button {
  color: rgba(255, 255, 255, 0.7);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* =====================================================================
   Reveal-on-scroll animation
   ===================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* =====================================================================
   Custom cursor (SLR style, black, fine pointers only)
   ===================================================================== */
@media (pointer: fine) {
  html.cursor-on,
  html.cursor-on * {
    cursor: none !important;
  }
  .cursor-dot,
  .cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    /* Position is driven entirely by transform (GPU-composited, no reflow) —
       JS sets translate3d(x,y,0) translate(-50%,-50%) for instant tracking. */
    transform: translate3d(-50%, -50%, 0);
    z-index: 10001;
    will-change: transform;
    /* Difference blend: the cursor self-inverts against any background —
       dark on the light paper, light on the dark footer/CTA/cookie bar. */
    mix-blend-mode: difference;
  }
  .cursor-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    transition: width 0.3s var(--ease), height 0.3s var(--ease),
      background 0.3s, opacity 0.3s;
  }
  .cursor-ring {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    transition: width 0.4s var(--ease), height 0.4s var(--ease), opacity 0.3s;
  }
  .cursor-dot.on-link {
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.9);
  }
  .cursor-ring.on-link {
    width: 0;
    height: 0;
    opacity: 0;
  }
  .cursor-dot.is-off,
  .cursor-ring.is-off {
    opacity: 0 !important;
  }
}

/* Custom scrollbar — thin gold bar on the right you can GRAB and drag.
   The track is a wider invisible hit-area; only a 4px gold line shows. */
.scrollbar {
  position: fixed;
  top: 0;
  right: 0;
  width: 14px;
  height: 100vh;
  height: 100svh;
  z-index: 10000;
  pointer-events: none; /* only the thumb is interactive */
  opacity: 1;
  transition: opacity 0.3s ease;
}
.scrollbar__thumb {
  position: absolute;
  top: 0;
  right: 0;
  width: 14px; /* comfortable grab area */
  /* Only the right-most 4px are painted gold — keeps the minimal look */
  background: linear-gradient(180deg, var(--gold), var(--gold-hi));
  background-size: 4px 100%;
  background-position: right center;
  background-repeat: no-repeat;
  border-radius: 4px;
  pointer-events: auto;
  cursor: grab;
  will-change: transform, height;
  transition: background-size 0.2s ease;
}
.scrollbar__thumb:hover {
  background-size: 6px 100%;
}
body.scrollbar-dragging {
  cursor: grabbing;
  user-select: none;
}
body.scrollbar-dragging .scrollbar__thumb {
  cursor: grabbing;
  background-size: 6px 100%;
}
@media (pointer: coarse) {
  .scrollbar {
    display: none; /* touch devices scroll natively */
  }
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1024px) {
  /* Hero stacks: text first, then the slideshow as a proportioned banner —
     the imagery stays visible on tablets and phones. */
  .hero__content {
    padding-bottom: clamp(3rem, 10vw, 5rem);
  }
  .hero__scroll {
    display: none; /* the page obviously scrolls on touch devices */
  }
  .hero__dots {
    right: 1.25rem;
    bottom: 1.25rem;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .two-col__aside {
    position: static;
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer__top {
    grid-template-columns: 1fr 1fr;
  }
  .nav,
  .header__right .lang {
    display: none;
  }
  .burger {
    display: flex;
  }
  .header__right .burger {
    display: flex;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }
  :root {
    --header-h: 76px;
  }
  .brand img {
    height: 46px;
  }
  .header.is-scrolled .brand img {
    height: 40px;
  }

  h1.display {
    font-size: clamp(2.3rem, 11vw, 2.9rem);
  }
  h2.display {
    font-size: clamp(1.8rem, 8.5vw, 2.3rem);
  }
  .hero__sub {
    margin-bottom: 2rem;
  }

  /* Full-width primary actions = comfortable thumb targets */
  .hero__content .btn,
  .cta-band .btn {
    justify-content: center;
    width: 100%;
    max-width: 420px;
  }

  .section {
    padding-block: clamp(3.5rem, 14vw, 5rem);
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .footer__top {
    grid-template-columns: 1fr;
  }
  .parea {
    grid-template-columns: 1fr auto;
  }
  .parea__num {
    display: none;
  }
  .parea:hover {
    padding-left: 0;
  }
  .stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  .pullquote {
    padding-left: 1.1rem;
  }
  .press-card__media {
    aspect-ratio: 16 / 11;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
}

/* Comfortable touch targets wherever a coarse pointer is in use */
@media (pointer: coarse) {
  .nav a,
  .footer__col a,
  .lang__menu button,
  .link-underline {
    padding-block: 0.6rem;
  }
  .footer__bottom button {
    min-height: 44px;
  }
  .person-modal__close {
    width: 46px;
    height: 46px;
  }
}

/* Mobile menu language row */
.mobile-menu__langs {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
}
.mobile-menu__langs button {
  min-width: 56px;
  min-height: 44px;
  border: 1px solid var(--line);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.mobile-menu__langs button.is-active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(176, 132, 42, 0.07);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .hero__title .line__in {
    transform: none;
  }
  .cursor-dot,
  .cursor-ring,
  .progress {
    display: none;
  }
  html.cursor-on,
  html.cursor-on * {
    cursor: auto !important;
  }
}

/* =====================================================================
   Subpage head + Contact form (editorial)
   ===================================================================== */
.subpage main {
  padding-top: var(--header-h);
}
.subhead {
  padding-bottom: 2.5rem;
}
.subhead .display {
  margin: 0.5rem 0 1.25rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.35fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

/* Offices column */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}
.office h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}
.office p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.6;
}
.office a {
  display: inline-block;
  margin-top: 0.4rem;
  color: var(--gold);
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.office a:hover {
  border-color: var(--gold);
}
.office--mail a {
  font-size: 1.05rem;
}

/* Form */
.contact-form {
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}
.field {
  margin-bottom: 1.8rem;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 3vw, 2rem);
}
.field label {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.55rem 0;
  font-family: var(--sans);
  font-size: 1.05rem; /* >=16px prevents iOS zoom on focus */
  color: var(--ink);
  border-radius: 0;
  transition: border-color 0.35s var(--ease);
}
.field textarea {
  resize: vertical;
  min-height: 8rem;
  line-height: 1.6;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%238a8578' stroke-width='1.4'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.2rem center;
  padding-right: 1.8rem;
  cursor: pointer;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
}

.contact-form__submit {
  margin-top: 0.5rem;
}

/* Honeypot — hidden from humans */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Success / error states */
.form-status {
  margin-top: 1.5rem;
  padding: 1.5rem 1.75rem;
  border-left: 3px solid var(--gold);
  background: var(--paper-2);
}
.form-status--err {
  border-color: #b23b3b;
}
.form-status__title {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}
.form-status p {
  color: var(--ink-soft);
  line-height: 1.6;
}

@media (max-width: 860px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .contact-info {
    order: 2;
    border-top: 0;
    padding-top: 0;
  }
  .contact-form {
    order: 1;
    border-top: 0;
    padding-top: 0;
  }
}
@media (max-width: 540px) {
  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .contact-form__submit {
    width: 100%;
  }
}

/* =====================================================================
   Preloader (shown on every page load — SLR style)
   ===================================================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--paper);
  display: grid;
  place-items: center;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}
.preloader.done {
  opacity: 0;
  visibility: hidden;
}
/* The custom cursor is not even created while the preloader shows (see
   cursor() in main.js), so nothing appears over the loading screen. */
.preloader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.preloader__mark {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 5vw, 2.1rem);
  letter-spacing: 0.12em;
  color: var(--ink);
  white-space: nowrap;
}
.preloader__mark span {
  color: var(--gold-hi);
}
.preloader__line {
  width: 180px;
  max-width: 60vw;
  height: 1px;
  background: rgba(23, 21, 15, 0.12);
  overflow: hidden;
}
.preloader__fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gold-hi);
  transition: width 1.2s var(--ease);
}
.preloader.fill .preloader__fill {
  width: 100%;
}
.preloader__text {
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (prefers-reduced-motion: reduce) {
  .preloader__fill {
    transition: none;
    width: 100%;
  }
}

/* =====================================================================
   Subpage extras: narrow container, legal prose, feature press cards
   ===================================================================== */
.container--narrow {
  max-width: 820px;
}
.legal-body {
  border-top: 1px solid var(--line);
  padding-top: 2.5rem;
}
.legal-body h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
  color: var(--ink);
}
.legal-body h3:first-child {
  margin-top: 0;
}
.legal-body p {
  color: var(--ink-soft);
  margin-bottom: 1rem;
  line-height: 1.75;
}

/* Feature press cards (Press & News page) */
.press-grid--feature {
  gap: clamp(2rem, 5vw, 4rem);
}
.press-card--lg .press-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.press-card--lg .press-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.press-card--lg:hover .press-card__media img {
  transform: scale(1.04);
}
.press-card--lg .press-card__title {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.4;
  margin-top: 1rem;
  font-weight: 400;
}

/* =====================================================================
   Cookie consent banner (once per session)
   ===================================================================== */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: clamp(1rem, 3vw, 2rem);
  transform: translate(-50%, calc(100% + 3rem));
  width: min(720px, calc(100vw - 2rem));
  z-index: 300;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  padding: 1.1rem 1.4rem;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: transform 0.7s var(--ease), opacity 0.5s var(--ease);
}
.cookie-banner[hidden] {
  display: none;
}
.cookie-banner.is-in {
  transform: translate(-50%, 0);
  opacity: 1;
}
.cookie-banner__text {
  font-size: 0.86rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}
.cookie-banner__text a {
  color: var(--gold-hi);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
  white-space: nowrap;
  margin-left: 0.35rem;
}
.cookie-banner__text a:hover {
  border-color: var(--gold-hi);
}
.cookie-banner__accept {
  flex-shrink: 0;
  padding: 0.7rem 1.5rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold-hi);
  border: 1px solid var(--gold-hi);
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.cookie-banner__accept:hover {
  background: transparent;
  color: var(--gold-hi);
}
@media (max-width: 560px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
  }
  .cookie-banner__accept {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-banner {
    transition: opacity 0.3s;
    transform: translate(-50%, 0);
  }
}

/* =====================================================================
   Page transition — smooth cross-fade between pages (Algave feel).
   Covers with paper colour on leave, fades out on arrival: no white flash.
   ===================================================================== */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: var(--paper);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.page-transition.is-active {
  opacity: 1;
  pointer-events: all;
}
.page-transition.no-anim {
  transition: none;
}
@media (prefers-reduced-motion: reduce) {
  .page-transition {
    display: none;
  }
}

/* Press card: source/date citation + external "read article" CTA */
.press-card__source {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 1.1rem;
  letter-spacing: 0.02em;
}
.press-card--lg .press-card__source {
  margin-top: 1.25rem;
}
.press-card__excerpt-text {
  color: var(--ink-soft);
  margin-top: 0.75rem;
  line-height: 1.65;
}
.press-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.1rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gold);
  transition: color 0.3s, gap 0.3s var(--ease);
}
.press-card--lg:hover .press-card__cta,
a.press-card:hover .press-card__cta {
  gap: 0.75rem;
  color: var(--gold-hi);
}
/* Citation-only card (no outbound link) — no pointer, no hover lift */
.press-card--static {
  cursor: default;
}
.press-card--static:hover .press-card__media img {
  transform: none;
}
