:root {
  --red: #922b2e;
  --red-deep: #6d1c20;
  --red-dark: #2c0b0e;
  --black: #141112;
  --ink: #1c1819;
  --muted: #6b6365;
  --white: #ffffff;
  --paper: #f7f4f2;
  --line: rgba(20, 17, 18, 0.14);
  --line-light: rgba(255, 255, 255, 0.22);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(16px, 4vw, 64px);
  --stagger: 90ms;
}

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

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

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p,
dl,
dd,
ol,
figure,
fieldset {
  margin: 0;
  padding: 0;
}

ol {
  list-style: none;
}

fieldset {
  border: 0;
  min-width: 0;
}

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

.wrap {
  width: 100%;
  max-width: 1600px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(72px, 9vw, 150px);
}

.h2 {
  font-size: clamp(32px, 3.7vw, 60px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.body {
  max-width: 34em;
  font-size: clamp(15px, 1.15vw, 18px);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.body--muted {
  color: var(--muted);
}

.eyebrow {
  font-size: 14px;
  letter-spacing: -0.01em;
}

.eyebrow--line {
  display: flex;
  align-items: center;
  gap: 14px;
}

.eyebrow--line::before {
  content: "";
  width: 48px;
  height: 1px;
  background: currentColor;
}

/* Backdrop: an out-of-focus colonnade, echoing the pillar in the logo */
.columns {
  position: absolute;
  inset: -6%;
  background: var(--red-dark) url("assets/colonnade.svg") center / cover no-repeat;
  filter: blur(5px);
  animation: columns-drift 26s ease-in-out infinite alternate;
}

.columns--dark {
  filter: blur(6px) saturate(0.45) brightness(0.32);
}

@keyframes columns-drift {
  from { transform: scale(1.04) translateX(-1.5%); }
  to { transform: scale(1.1) translateX(1.5%); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border: 0;
  font: inherit;
  font-size: 15px;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}

.btn__arrow {
  display: inline-block;
  transition: transform 0.35s var(--ease);
}

.btn:hover .btn__arrow {
  transform: translate(3px, -3px);
}

.btn--red {
  background: var(--red);
  color: var(--white);
}

.btn--red:hover {
  background: var(--black);
}

.btn--light {
  background: var(--white);
  color: var(--black);
}

.btn--light:hover {
  background: var(--red);
  color: var(--white);
}

/* Navigation */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--white);
  transition: background-color 0.4s ease;
}

.nav--solid {
  background: rgba(20, 17, 18, 0.92);
  backdrop-filter: blur(10px);
}

section[id] {
  scroll-margin-top: 24px;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1600px;
  margin-inline: auto;
  padding: 14px var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  line-height: 1;
}

.brand__name {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand__tagline {
  font-size: 14px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.78);
}

.brand__mark {
  width: 56px;
  height: 56px;
  margin: -6px 0 -6px -8px;
}

.nav__links {
  display: flex;
  gap: clamp(18px, 2.4vw, 40px);
  font-size: 15px;
  letter-spacing: -0.01em;
}

.nav__links a {
  position: relative;
  padding-block: 4px;
}

.nav__links a::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.nav__links a:hover::after {
  transform: scaleX(1);
}

.nav__links-cta,
.nav__links-meta {
  display: none;
}

.nav__toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.nav__toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}

.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 26px; }

.nav__toggle[aria-expanded="true"] span { top: 21px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

/* Hero: full-bleed portico photo under an ivory wash, bold headline on the left */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
}

.hero__backdrop {
  position: absolute;
  inset: -6% 0;
  overflow: hidden;
  will-change: transform;
}

.hero__backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #cfc8c0 url("assets/hero-columns.webp") 85% 100% / cover no-repeat;
  filter: grayscale(0.9) sepia(0.1) contrast(1.05);
}

/* Even wash keeps the photo present but quiet; slightly stronger on the text side */
.hero__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(247, 244, 242, 0.9) 0%, rgba(247, 244, 242, 0.82) 50%, rgba(247, 244, 242, 0.62) 100%);
}

.hero__content {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  padding-block: 120px 64px;
}

.hero__title {
  max-width: 13em;
  font-family: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  font-size: clamp(40px, min(5.4vw, 10.5vh), 100px);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
}

/* Two weights in one headline, the first phrase carrying the emphasis */
.hero__title-strong {
  font-weight: 700;
}

.hero__title-light {
  font-weight: 400;
  color: var(--red);
}

.hero__sub {
  margin-top: clamp(10px, 1.8vh, 18px);
  font-family: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  font-size: clamp(20px, 1.9vw, 32px);
  font-weight: 500;
  line-height: 1.2;
  color: #3a3335;
}

/* Practice areas in one quiet run; wraps naturally across lines */
.hero__areas {
  display: flex;
  flex-wrap: wrap;
  row-gap: 2px;
  max-width: 62em;
  margin-block: clamp(18px, 3vh, 28px) clamp(22px, 3.6vh, 34px);
  font-size: clamp(12.5px, 0.95vw, 15px);
  line-height: 1.45;
  color: var(--ink);
}

/* The divider trails each item, so a wrapped line never starts with one */
.hero__areas span:not(:last-child)::after {
  content: "|";
  margin-inline: 0.4em;
}

/* Set by index.js on the last item of each wrapped line; hidden, not removed, so nothing reflows */
.hero__areas span.is-line-end::after {
  visibility: hidden;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.hero__actions .btn {
  min-width: 205px;
}

.btn--outline {
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
}

.btn--outline:hover {
  background: var(--ink);
  color: var(--white);
}

.btn__icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.js .hero-in {
  opacity: 0;
  animation: hero-in 1s var(--ease) var(--d, 0s) forwards;
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* Word-by-word heading reveal */
.word {
  display: inline-block;
}

.js [data-words] .word {
  opacity: 0;
  transform: translateY(0.45em) rotate(2.5deg);
  transform-origin: left bottom;
  transition:
    opacity 0.8s var(--ease) calc(var(--w) * 55ms),
    transform 0.9s var(--ease) calc(var(--w) * 55ms);
}

.js [data-words].is-in .word {
  opacity: 1;
  transform: none;
}

/* Generic reveals */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.9s var(--ease) calc(var(--i, 0) * var(--stagger) + 120ms),
    transform 1s var(--ease) calc(var(--i, 0) * var(--stagger) + 120ms);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.js [data-lift] {
  opacity: 0;
  transform: translateY(var(--lift, 60px));
  transition:
    opacity 0.8s ease calc(var(--i, 0) * var(--stagger)),
    transform 1.2s var(--ease) calc(var(--i, 0) * var(--stagger));
}

.js [data-lift].is-in {
  opacity: 1;
  transform: none;
}

/* The clip sits on the child: a fully clipped element never reports as intersecting */
.js [data-clip] > * {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.3s var(--ease);
}

.js [data-clip].is-in > * {
  clip-path: inset(0);
}

/* Serif section title, matching the logo wordmark */
.display-title {
  font-family: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  font-size: clamp(32px, 3.7vw, 60px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Lawyer's profile: text alongside a portrait that stays in view */
.profile {
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: clamp(96px, 8vw, 120px) clamp(48px, 5vw, 80px);
  background: var(--paper);
}

.profile__grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  width: 100%;
}

.profile__title {
  color: var(--red);
}

.profile__intro {
  max-width: 34em;
  margin-top: clamp(18px, 2vw, 28px);
  font-size: clamp(18px, 1.45vw, 23px);
  line-height: 1.32;
  letter-spacing: -0.02em;
}

.profile__bio {
  margin-top: clamp(18px, 2vw, 30px);
}

.profile__bio p {
  padding-block: clamp(12px, 1.2vw, 18px);
  border-top: 1px solid var(--line);
  font-size: clamp(14px, 0.95vw, 15.5px);
  font-weight: 300;
  line-height: 1.55;
  letter-spacing: -0.005em;
  color: #3d3537;
}

.profile__bio p:last-child {
  padding-bottom: 0;
}

.profile__media {
  position: sticky;
  top: 100px;
}

.profile__portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: calc(100svh - 200px);
  margin-inline: auto;
  overflow: hidden;
  /* warm greige studio backdrop: lighter than the page tone around it would wash out */
  background:
    radial-gradient(ellipse 70% 55% at 50% 35%, #efe9e1 0%, transparent 70%),
    linear-gradient(170deg, #e4ddd3 0%, #d3cac0 100%);
}

.profile__portrait img {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: auto;
  max-width: none;
  height: 96%;
  transform: translateX(-50%);
  transform-origin: bottom center;
  transition: scale 1.2s var(--ease);
}

.profile__portrait:hover img {
  scale: 1.04;
}

/* Services */
.services__head {
  margin-bottom: clamp(40px, 5vw, 72px);
}

.services__title {
  color: var(--red);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 1.1vw, 18px);
}

.card {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.4vw, 38px);
  background: var(--paper);
}

.js .card[data-lift].is-in {
  transition:
    opacity 0.8s ease calc(var(--i, 0) * var(--stagger)),
    transform 1.2s var(--ease) calc(var(--i, 0) * var(--stagger)),
    background-color 0.45s var(--ease),
    color 0.45s var(--ease);
}

.icon {
  width: 52px;
  height: 52px;
  fill: none;
  stroke: var(--red);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.45s var(--ease);
}

.icon--sm {
  width: 28px;
  height: 28px;
}

.card h3 {
  margin-block: clamp(18px, 1.6vw, 24px) 10px;
  font-size: clamp(20px, 1.65vw, 26px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.card p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.5;
}

.card:hover {
  background: var(--red);
  color: var(--white);
}

.card:hover .icon {
  stroke: var(--white);
}

/* Process: pinned backdrop with steps scrolling past */
.process {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--white);
  background: var(--black);
}

.process__bg {
  position: absolute;
  inset: 0;
}

.process__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.process__pin img {
  position: absolute;
  top: 50%;
  left: 22%;
  width: min(62vh, 620px);
  transform: translate(-50%, -50%);
  opacity: 0.07;
}

.process__grid {
  position: relative;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 6vw, 96px);
  width: 100%;
  padding-block: clamp(96px, 9vh, 120px) clamp(32px, 5vh, 56px);
}

.process__left {
  position: sticky;
  top: clamp(90px, 12vh, 140px);
  align-self: start;
}

.process__left .eyebrow {
  margin-bottom: 28px;
}

.process__left .h2 {
  max-width: 12em;
}

.step {
  padding: clamp(18px, 1.8vw, 26px) clamp(20px, 2vw, 30px);
  background: var(--white);
  color: var(--ink);
}

/* Step number sits beside the fields rather than above them, saving height */
.form .step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(16px, 1.8vw, 28px);
}

.step__no {
  display: block;
  padding-top: 2px;
  min-width: 1.3em;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--red);
}

/* Full-bleed statement */
.statement {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--red-dark);
  color: var(--white);
}

/* Kept left of centre so the statue stays clear of the text column */
.statement__bg {
  position: absolute;
  inset: -12% 0;
  background: url("assets/practice.webp") 25% center / cover no-repeat;
}

.statement__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(44, 11, 14, 0.88) 0%,
    rgba(44, 11, 14, 0.74) 45%,
    rgba(44, 11, 14, 0.22) 75%
  );
}

.statement__inner {
  position: relative;
  display: grid;
  justify-items: start;
  width: 100%;
  padding-block: clamp(110px, 10vw, 150px) clamp(56px, 6vw, 96px);
}

.statement__head {
  display: grid;
  gap: 14px;
  margin-bottom: clamp(22px, 2.4vw, 34px);
}

.statement__eyebrow {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.statement__eyebrow::before {
  width: 40px;
  background: #c9585b;
}


.statement__copy {
  display: grid;
  gap: 14px;
  max-width: 36em;
  color: rgba(255, 255, 255, 0.82);
}

.statement__copy .body {
  max-width: none;
}

/* The firm's statement, set as a pull quote */
.statement__lead {
  position: relative;
  max-width: 21em;
  margin: clamp(30px, 3.2vw, 46px) 0 0;
  font-family: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  font-size: clamp(26px, 2.5vw, 40px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: 0;
  text-wrap: pretty;
}

/* Curly quotes in the brand red. The opening mark hangs into the margin
   so the first letter lines up with the paragraphs above. */
.statement__lead::before,
.statement__lead::after {
  color: #d4676a;
  font-style: normal;
}

.statement__lead::before {
  content: "\201C";
  position: absolute;
  right: 100%;
  margin-right: 0.06em;
}

.statement__lead::after {
  content: "\201D";
  margin-left: 0.04em;
}

.statement .btn {
  margin-top: clamp(30px, 3.2vw, 44px);
}

/* Appointment form */
.form {
  display: grid;
  gap: 10px;
}

.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px clamp(16px, 2vw, 28px);
}

.form__grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 4px;
  align-content: start;
  min-width: 0;
}

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

.field label,
.field legend,
.field__label {
  padding: 0;
  font-size: 14px;
}

.field input:not([type="radio"]):not([type="file"]),
.field textarea {
  width: 100%;
  min-height: 40px;
  padding: 6px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 300;
  transition: border-color 0.3s ease;
}

.field textarea {
  height: 72px;
  resize: vertical;
}

.field--upload {
  align-self: end;
}

.form__submit {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.field input:not([type="radio"]):not([type="file"]):focus,
.field textarea:focus {
  outline: 0;
  border-bottom-color: var(--red);
  box-shadow: 0 1px 0 var(--red);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

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

.pill input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.pill span {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 16px;
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 300;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.pill:hover span {
  border-color: var(--red);
}

.pill input:checked + span {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
}

.pill input:focus-visible + span {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.upload {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 16px;
  border: 1px dashed rgba(20, 17, 18, 0.35);
  font-size: 15px;
  font-weight: 300;
  cursor: pointer;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.upload:hover {
  border-color: var(--red);
  background: var(--paper);
}

.upload .icon {
  flex: none;
  stroke-width: 2.4;
}

.upload span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.form__error {
  padding: 10px 14px;
  border-left: 2px solid var(--red);
  background: var(--paper);
  font-size: 14px;
  color: var(--red);
}

.form__error[hidden] {
  display: none;
}

/* Spam trap: present for bots, invisible to people */
.form__trap {
  position: absolute;
  width: 1px;
  height: 1px;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.upload__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload__input:focus-visible ~ .upload,
.field:has(.upload__input:focus-visible) .upload {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.thanks[hidden],
.form[hidden] {
  display: none;
}

.thanks:focus {
  outline: 0;
}

.thanks img {
  width: 96px;
  height: 96px;
  margin: 0 0 12px -12px;
}

.thanks__text {
  max-width: 34em;
  font-size: clamp(16px, 1.25vw, 19px);
  font-weight: 300;
  line-height: 1.55;
  letter-spacing: -0.01em;
}


/* Contact banner: centered text over a darkened photo */
.contact {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  color: var(--black);
  text-align: center;
}

.contact__bg {
  position: absolute;
  inset: -14% 0;
  background:
    linear-gradient(90deg, rgba(247, 244, 242, 0.84) 0%, rgba(247, 244, 242, 0.76) 72%, rgba(247, 244, 242, 0.5) 100%),
    url("assets/contact-banner.webp") 62% center / cover no-repeat;
}

.contact__inner {
  position: relative;
  display: grid;
  justify-items: center;
  padding-block: clamp(72px, 7.5vw, 120px);
}

.contact__title {
  color: var(--red);
}

.contact__location h3,
.contact__item h3 {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: rgba(20, 17, 18, 0.78);
}

.contact__location {
  margin-top: clamp(24px, 2.6vw, 40px);
  font-size: clamp(16px, 1.3vw, 20px);
  font-weight: 300;
  letter-spacing: -0.015em;
}

.contact__location address {
  display: grid;
  gap: 6px;
  font-style: normal;
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: center;
  gap: 24px clamp(28px, 4vw, 72px);
  margin-block: clamp(28px, 3vw, 44px) clamp(32px, 3.4vw, 48px);
}

.contact__item {
  min-width: 0;
  font-size: clamp(16px, 1.3vw, 20px);
  font-weight: 300;
  letter-spacing: -0.015em;
}

.contact a:not(.btn) {
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.3s ease;
}

.contact a:not(.btn):hover {
  text-decoration-color: currentColor;
}

.btn--pill {
  gap: 14px;
  padding: 8px 28px 8px 8px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
}

.btn--pill:hover {
  background: var(--black);
  color: var(--white);
}

.btn__circle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  color: var(--red);
  font-size: 18px;
  line-height: 1;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease);
}

.btn--pill:hover .btn__circle {
  background: var(--red);
  color: var(--white);
  transform: translateX(3px);
}

.contact sup,
.footer sup {
  font-size: 0.65em;
  line-height: 0;
}

/* Footer */
.footer {
  background: var(--black);
  color: var(--white);
}

.footer__mid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px clamp(24px, 4vw, 64px);
  padding-block: clamp(40px, 4.5vw, 72px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__col {
  display: grid;
  gap: 10px;
  align-content: start;
  justify-items: start;
  font-size: 15px;
  font-weight: 300;
}

.footer__col p {
  max-width: 26em;
}

.footer__col h3 {
  margin-bottom: 8px;
  font-size: 19px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.footer__col a {
  overflow-wrap: anywhere;
  transition: color 0.3s ease;
}

.footer__col a:hover {
  color: #e29a9c;
}

.footer__legal {
  display: grid;
  gap: 18px;
  padding-block: 30px;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.62);
}

.footer__legal p:first-child {
  max-width: 92ch;
}

.footer__copy {
  color: rgba(255, 255, 255, 0.85);
}

/* Responsive */
@media (max-width: 1180px) {
  .nav__cta {
    display: none;
  }

  .nav__toggle {
    display: block;
    z-index: 2;
  }

  .nav__links {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100vh;
    height: 100dvh;
    gap: 0;
    padding: 96px var(--gutter) 32px;
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--black);
    counter-reset: menu;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.35s ease, visibility 0.35s;
  }

  /* Faint logo watermark, echoing the appointment section */
  .nav__links::before {
    content: "";
    position: absolute;
    right: -18%;
    bottom: -6%;
    width: min(90vw, 520px);
    aspect-ratio: 1;
    background: url("assets/LOGO%20(WHITE).webp") center / contain no-repeat;
    opacity: 0.045;
    pointer-events: none;
  }

  .nav__links.is-open {
    visibility: visible;
    opacity: 1;
  }

  /* Numbered serif rows with hairline dividers */
  .nav__links > a:not(.nav__links-cta) {
    counter-increment: menu;
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding-block: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-family: "Cormorant Garamond", Garamond, "Times New Roman", serif;
    font-size: clamp(28px, 7.4vw, 42px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: 0.01em;
    color: var(--white);
  }

  .nav__links > a:not(.nav__links-cta):first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .nav__links > a:not(.nav__links-cta)::before {
    content: counter(menu, decimal-leading-zero);
    min-width: 1.6em;
    font-family: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: #e29a9c;
  }

  /* The desktop underline isn't needed on full-width rows */
  .nav__links > a:not(.nav__links-cta)::after {
    display: none;
  }

  .nav__links > a:not(.nav__links-cta):active {
    color: #e29a9c;
  }

  .nav__links-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    margin-top: 28px;
    padding: 14px 24px;
    background: var(--red);
    color: var(--white);
    font-size: 15px;
    letter-spacing: 0.01em;
  }

  .nav__links-cta::after {
    display: none;
  }

  .nav__links-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 28px;
    font-size: 14px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.62);
  }

  .nav__links-meta a {
    align-self: flex-start;
    color: rgba(255, 255, 255, 0.85);
  }

  .nav__links-meta a::after {
    display: none;
  }

  /* Rows rise in one after another when the menu opens */
  .nav__links > * {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  }

  .nav__links.is-open > * {
    opacity: 1;
    transform: none;
  }

  .nav__links.is-open > :nth-child(1) { transition-delay: 0.05s; }
  .nav__links.is-open > :nth-child(2) { transition-delay: 0.1s; }
  .nav__links.is-open > :nth-child(3) { transition-delay: 0.15s; }
  .nav__links.is-open > :nth-child(4) { transition-delay: 0.2s; }
  .nav__links.is-open > :nth-child(5) { transition-delay: 0.25s; }
  .nav__links.is-open > :nth-child(6) { transition-delay: 0.32s; }
  .nav__links.is-open > :nth-child(7) { transition-delay: 0.38s; }

  .brand {
    position: relative;
    z-index: 2;
  }

  /* backdrop-filter would make the fixed menu size itself to the header */
  .nav--open {
    background: none;
    backdrop-filter: none;
  }


  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .statement__bg {
    background-position: 60% center;
  }

  .statement__bg::after {
    background: rgba(44, 11, 14, 0.74);
  }




  .profile__grid,
  .process__grid {
    grid-template-columns: 1fr;
  }

  .profile__media {
    position: static;
    order: -1;
  }

  .profile__portrait {
    max-height: none;
  }

  .process__left {
    position: static;
  }

  .contact__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

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

  .footer__col:first-child {
    grid-column: 1 / -1;
  }
}

/* Upright tablets: bigger type */
@media (min-width: 561px) and (max-width: 1180px) and (orientation: portrait) {
  .hero__title {
    font-size: min(7.6vw, 78px);
  }

  .hero__sub {
    font-size: clamp(18px, 2.6vw, 26px);
  }
}

/* Mid widths: three fields in a row get too narrow, so the name takes its own line */
@media (min-width: 561px) and (max-width: 1180px) {
  .form__grid--3 {
    grid-template-columns: 1fr 1fr;
  }

  .form__grid--3 .field:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  /* Hero buttons stack full width instead of ragged */
  .hero__actions {
    flex-direction: column;
    align-self: stretch;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .brand__name {
    font-size: 20px;
  }

  .brand__tagline {
    font-size: 12px;
  }



  .cards,
  .form__grid,
  .footer__mid {
    grid-template-columns: 1fr;
  }

  .form .step {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .form__submit {
    justify-content: flex-start;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}
