/* =============================================================
   Faraan Cheema Law Chambers
   Palette is three families only: navy (the exact logo #002454),
   a single gold accent, and warm paper. No third hue.
   Zero border-radius throughout is a deliberate stance: the site
   is built from rules and whitespace, not from boxes.
   ============================================================= */

:root {
  /* Navy family — --ink is the exact background colour of both logo files */
  --ink:        #002454;
  --ink-deep:   #001A3D;
  --ink-soft:   #123A6E;
  --ink-line:   rgba(255, 255, 255, 0.16);
  --ink-muted:  rgba(233, 238, 246, 0.74);

  /* Gold family — one accent. --gold-deep exists only so gold-toned
     text on paper can clear WCAG AA; same hue, darker value. */
  --gold:       #C5A55A;
  --gold-bright:#D9BE7C;
  --gold-deep:  #7E6224;

  /* Paper family */
  --paper:      #F7F4EE;
  --paper-warm: #EFEAE0;
  --paper-line: #DCD5C7;
  /* Secondary text on paper is navy held back, not a warm grey — keeping the
     palette to three families. 7.2:1 on --paper. */
  --paper-muted:#365276;

  --serif: "Libre Caslon Text", "Times New Roman", Times, serif;
  --sans:  "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 74rem;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(4.5rem, 9vw, 8.5rem);

  --step--1: clamp(0.8125rem, 0.79rem + 0.11vw, 0.875rem);
  --step-0:  clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);
  --step-1:  clamp(1.125rem, 1.06rem + 0.3vw, 1.3125rem);
  --step-2:  clamp(1.375rem, 1.24rem + 0.62vw, 1.75rem);
  --step-3:  clamp(1.75rem, 1.5rem + 1.15vw, 2.5rem);
  --step-4:  clamp(2.25rem, 1.75rem + 2.3vw, 3.75rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.15em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Focus: one visible treatment, never removed ---------- */

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.section--paper :focus-visible { outline-color: var(--gold-deep); }

.skip-link {
  position: absolute;
  top: 0; left: 50%;
  transform: translate(-50%, -120%);
  z-index: 200;
  background: var(--gold);
  color: var(--ink-deep);
  font-family: var(--mono);
  font-size: var(--step--1);
  padding: 0.7rem 1.25rem;
  text-decoration: none;
  transition: transform 0.18s var(--ease);
}
.skip-link:focus-visible { transform: translate(-50%, 0); outline-offset: -4px; }

/* ---------- Placeholder flags: impossible to ship by accident ---------- */

.flag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.6875rem;
  line-height: 1.3;
  letter-spacing: 0.02em;
  padding: 0.15em 0.45em;
  background: #FFE9A8;
  color: #6B4B00;
  border: 1px dashed #B8860B;
  vertical-align: baseline;
}
.flag::before { content: "\2691\00a0"; }

/* =============================================================
   Masthead — always navy, so the logo PNG never shows a seam
   ============================================================= */

.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid var(--ink-line);
}

.masthead__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0.85rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.masthead__logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 0 0 auto;
  line-height: 0;
  text-decoration: none;
}
/* The lockup scales with the viewport — pinned at one size it reads as small
   and lost on a large monitor. */
.masthead__logo-full { width: auto; height: clamp(2.5rem, 2rem + 1.2vw, 3.15rem); }
.masthead__logo-mark { display: none; width: auto; height: 2.4rem; }
.masthead__wordmark { display: none; }

.site-nav { margin-left: auto; }
.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.1rem);
  margin: 0;
  padding: 0;
}
.site-nav a {
  font-size: var(--step--1);
  letter-spacing: 0.01em;
  color: var(--ink-muted);
  text-decoration: none;
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
  white-space: nowrap;
}
.site-nav a:hover { color: #fff; border-bottom-color: var(--gold); }
.site-nav a[aria-current="true"] { color: #fff; border-bottom-color: var(--gold); }

.site-nav__cta {
  color: var(--gold) !important;
  border: 1px solid var(--gold);
  padding: 0.45rem 1rem !important;
}
.site-nav__cta:hover {
  background: var(--gold);
  color: var(--ink-deep) !important;
  border-bottom-color: var(--gold) !important;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 0.6rem;
  background: none;
  border: 1px solid var(--ink-line);
  color: #fff;
  font-family: var(--mono);
  font-size: var(--step--1);
  padding: 0.5rem 0.85rem;
  cursor: pointer;
}
.nav-toggle__bars { display: grid; gap: 4px; width: 18px; }
.nav-toggle__bars span {
  display: block; height: 1.5px; background: var(--gold);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:first-child { transform: translateY(2.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:last-child  { transform: translateY(-2.75px) rotate(-45deg); }

/* =============================================================
   Buttons — square, ruled, never arrow-suffixed
   ============================================================= */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.015em;
  padding: 0.95rem 1.75rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.btn--gold {
  background: var(--gold);
  color: var(--ink-deep);
  border-color: var(--gold);
}
.btn--gold:hover { background: var(--gold-bright); border-color: var(--gold-bright); }

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: var(--ink-line);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

/* =============================================================
   Sections
   ============================================================= */

.section { padding-block: var(--section-y); }
.section--ink   { background: var(--ink); color: #fff; }
.section--paper { background: var(--paper); color: var(--ink); }

.section__head { max-width: 46rem; margin-bottom: clamp(2.75rem, 5vw, 4.25rem); }

.section__title {
  font-size: var(--step-3);
  margin-bottom: 1.1rem;
  position: relative;
  padding-top: 1.6rem;
}
.section__title::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 3.25rem; height: 2px;
  background: var(--gold);
}

.section__lede {
  font-size: var(--step-1);
  line-height: 1.62;
}
.section--ink .section__lede   { color: var(--ink-muted); }
.section--paper .section__lede { color: var(--paper-muted); }

/* =============================================================
   Hero
   ============================================================= */

.hero {
  background: var(--ink);
  color: #fff;
  padding-block: clamp(3.5rem, 7vw, 6.5rem) 0;
  overflow: hidden;
}

.hero__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: end;
}

.hero__text { padding-bottom: clamp(3.5rem, 7vw, 6rem); }

/* Four levels, each clearly separated by size so the stack never reads as a
   pile-up: name, credential, positioning line, then the promise. */
.hero__name {
  font-size: var(--step-2);
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.hero__credential {
  font-family: var(--mono);
  font-size: clamp(0.75rem, 0.7rem + 0.14vw, 0.875rem);
  letter-spacing: 0.07em;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 1.9rem;
}

.hero__statement {
  font-family: var(--serif);
  font-size: var(--step-4);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.018em;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}

.hero__lede {
  font-family: var(--serif);
  font-size: var(--step-2);
  line-height: 1.42;
  color: rgba(255, 255, 255, 0.94);
  max-width: 31rem;
  margin-bottom: 2.5rem;
  text-wrap: pretty;
}
.hero__lede-em {
  display: block;
  font-style: italic;
  color: var(--gold);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1.4rem 2rem;
  margin: 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--ink-line);
}
.hero__facts dt {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.hero__facts dd {
  margin: 0;
  font-size: var(--step--1);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

/* Portrait: his suit is already navy, so the grey studio ground is
   pulled toward --ink with gradients and the lower edge is masked
   away entirely. No hard rectangle, no visible seam. */

.hero__portrait {
  position: relative;
  margin: 0;
  align-self: stretch;
  min-width: 0;
  min-height: clamp(26rem, 46vw, 40rem);
}
.hero__portrait::before {
  content: "";
  position: absolute;
  inset: 3.5rem -1.5rem 5rem 3rem;
  border: 1px solid var(--gold);
  opacity: 0.45;
  pointer-events: none;
}
.hero__portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  filter: saturate(0.96) contrast(1.05) brightness(0.99);
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, rgba(0,0,0,0.55) 84%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 60%, rgba(0,0,0,0.55) 84%, transparent 100%);
}
/* Layered navy wash: the studio grey is neutral, so a flat 32% tint plus
   directional falloff carries it to navy while his skin keeps its warmth.
   The suit is already close to --ink, so the figure dissolves into the field. */
.hero__portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top,   var(--ink) 0%, rgba(0,36,84,0.52) 20%, rgba(0,36,84,0) 48%),
    linear-gradient(to right, rgba(0,36,84,0.90) 0%, rgba(0,36,84,0) 32%),
    linear-gradient(to left,  rgba(0,36,84,0.55) 0%, rgba(0,36,84,0) 20%),
    linear-gradient(rgba(0,36,84,0.10), rgba(0,36,84,0.10));
}

/* =============================================================
   Practice areas — rules and whitespace, no cards
   ============================================================= */

/* An odd item count leaves the final block alone in its row, where a per-item
   border would draw a stub rule across one column only. The container carries
   the closing rule instead, so it runs full width at every column count. */
.areas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: 0;
  border-top: 1px solid var(--paper-line);
  border-bottom: 1px solid var(--paper-line);
}
.area:last-child { border-bottom: none; }

.area {
  padding: clamp(2rem, 3.2vw, 2.75rem) clamp(1.5rem, 2.6vw, 2.5rem) clamp(2rem, 3.2vw, 2.75rem) 0;
  border-bottom: 1px solid var(--paper-line);
  position: relative;
}
.area::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold-deep);
  transition: width 0.35s var(--ease);
}
.area:hover::after, .area:focus-within::after { width: 3.25rem; }

.area__title {
  font-size: var(--step-2);
  margin-bottom: 0.9rem;
}
.area p {
  color: var(--paper-muted);
  font-size: var(--step--1);
  line-height: 1.72;
  max-width: 34rem;
}

@media (min-width: 60rem) {
  .areas { column-gap: clamp(2rem, 4vw, 4rem); }
}

/* =============================================================
   The spine — the one place boldness is spent.
   Advisory sits above the line, litigation below it, and the
   gold rule runs straight through the point where other
   practices hand the file over.
   ============================================================= */

.spine {
  --spine-gap: clamp(3.5rem, 6vw, 5rem);
  /* Room under the rule for the handoff caption, so it never crowds the
     stage labels sitting below it. */
  --spine-below-pad: 4.75rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: auto minmax(var(--spine-gap), auto) auto;
  column-gap: clamp(1.25rem, 2.6vw, 2.5rem);
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.spine__rule {
  grid-row: 2;
  grid-column: 1 / -1;
  align-self: center;
  height: 1px;
  background: var(--ink-line);
  position: relative;
}
.spine__draw {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  background: var(--gold);
  transform-origin: left center;
}

.spine__stage {
  position: relative;
  min-width: 0;
}
.spine__stage--above { grid-row: 1; align-self: end; padding-bottom: 1.5rem; }
.spine__stage--below { grid-row: 3; align-self: start; padding-top: var(--spine-below-pad); }

.spine__stage[data-col="1"] { grid-column: 1; }
.spine__stage[data-col="2"] { grid-column: 2; }
.spine__stage[data-col="3"] { grid-column: 3; }
.spine__stage[data-col="4"] { grid-column: 4; }

/* connector from each stage down/up to the rule, ending in a node */
.spine__stage::after {
  content: "";
  position: absolute;
  left: 0;
  width: 1px;
  background: var(--ink-line);
}
.spine__stage--above::after {
  top: 100%;
  margin-top: -1.5rem;
  height: calc(1.5rem + var(--spine-gap) / 2);
}
.spine__stage--below::after {
  bottom: 100%;
  margin-bottom: calc(-1 * var(--spine-below-pad));
  height: calc(var(--spine-below-pad) + var(--spine-gap) / 2);
}

.spine__stage::before {
  content: "";
  position: absolute;
  left: -3px;
  width: 7px; height: 7px;
  background: var(--gold);
  z-index: 2;
}
.spine__stage--above::before { top: calc(100% + var(--spine-gap) / 2 - 3.5px); }
.spine__stage--below::before { bottom: calc(100% + var(--spine-gap) / 2 - 3.5px); }

.spine__side {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.spine__title {
  font-size: var(--step-2);
  margin-bottom: 0.55rem;
}
.spine__body {
  font-size: var(--step--1);
  line-height: 1.6;
  color: var(--ink-muted);
}

.spine__handoff {
  grid-row: 2;
  grid-column: 2 / 4;
  align-self: center;
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  text-align: center;
  max-width: 18rem;
  transform: translateY(calc(var(--spine-gap) / 2 + 1.15rem));
}
.spine__handoff-tick {
  width: 1px;
  height: calc(var(--spine-gap) / 2 + 0.6rem);
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.55) 0 3px,
    transparent 3px 6px
  );
  margin-top: calc(-1 * (var(--spine-gap) / 2 + 1.15rem));
}
.spine__handoff-text {
  font-family: var(--mono);
  font-size: 0.6875rem;
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.62);
}

/* The closing argument gets a resting point beside it — the spine above is all
   line and type, and the section needs somewhere for the eye to settle. */
.approach__close {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 40rem);
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: center;
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--ink-line);
}
.approach__photo { margin: 0; }

@media (max-width: 52rem) {
  .approach__close { grid-template-columns: 1fr; }
  .approach__photo { max-width: 14rem; }
}
.approach__close p {
  font-family: var(--serif);
  font-size: var(--step-1);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.94);
}

/* Spine reflow: below 62rem it becomes a single vertical line */
@media (max-width: 61.9375rem) {
  .spine {
    --spine-gap: 0rem;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    row-gap: 0;
    padding-left: 1.75rem;
    position: relative;
  }
  /* grid-row/column must stay auto: an absolutely positioned grid child with a
     definite grid position is laid out against that grid area, not the padding
     box, which would push the rule off its nodes. */
  .spine__rule {
    grid-row: auto;
    grid-column: auto;
    position: absolute;
    top: 0.5rem;
    bottom: 0.5rem;
    left: 0;
    right: auto;
    width: 1px;
    height: auto;
    align-self: auto;
  }
  .spine__draw { inset: 0 0 auto 0; width: 100%; height: 100%; }

  .spine__stage {
    grid-column: 1 !important;
    grid-row: auto !important;
    align-self: auto;
    padding: 0 0 2.25rem;
  }
  .spine__stage::after { display: none; }
  .spine__stage::before {
    left: calc(-1.75rem - 3px);
    top: 0.5rem;
    bottom: auto;
  }
  .spine__handoff {
    grid-column: 1;
    grid-row: auto;
    align-self: auto;
    justify-self: start;
    align-items: flex-start;
    text-align: left;
    transform: none;
    max-width: 28rem;
    padding-bottom: 2.25rem;
  }
  .spine__handoff-tick {
    width: 1.25rem;
    height: 1px;
    margin: 0.55rem 0 0.35rem calc(-1.75rem + 0.25rem);
    background: repeating-linear-gradient(
      to right,
      rgba(255,255,255,0.45) 0 3px,
      transparent 3px 6px
    );
  }
}

/* =============================================================
   Profile
   ============================================================= */

.profile {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--paper-line);
}

.profile__lead {
  font-family: var(--serif);
  font-size: var(--step-2);
  line-height: 1.4;
  margin-bottom: 1.5rem;
}
.profile__bio p { color: var(--paper-muted); max-width: 40rem; }
.profile__bio .profile__lead { color: var(--ink); }
.profile__bio strong { color: var(--ink); font-weight: 600; }

.profile__rail {
  border-top: 2px solid var(--gold-deep);
  padding-top: 1.6rem;
}
/* Sits above the credential list: the enrolment line is a claim, and this is
   the photograph of it. Held narrow so it supports the text, not competes. */
.profile__photo { margin: 0 0 1.9rem; max-width: 14rem; }

.rail-list { margin: 0; display: grid; gap: 1.15rem; }
.rail-list dt {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--gold-deep);
  margin-bottom: 0.3rem;
}
.rail-list dd {
  margin: 0;
  font-size: var(--step--1);
  line-height: 1.5;
  color: var(--ink);
}

.competencies { padding-top: clamp(3rem, 6vw, 4.5rem); }
.competencies__title {
  font-size: var(--step-2);
  margin-bottom: 2rem;
}
.competencies__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: clamp(1.75rem, 3.5vw, 3rem);
}
.comp-group h4 {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  line-height: 1.4;
  color: var(--gold-deep);
  padding-bottom: 0.7rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid var(--paper-line);
}
.comp-group ul { list-style: none; margin: 0; padding: 0; }
.comp-group li {
  font-size: var(--step--1);
  line-height: 1.5;
  color: var(--paper-muted);
  padding: 0.5rem 0 0.5rem 0.95rem;
  position: relative;
}
.comp-group li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.05em;
  width: 4px; height: 1px;
  background: var(--gold-deep);
}

/* =============================================================
   Public legal education
   ============================================================= */

.public__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.public__text p { color: var(--ink-muted); max-width: 40rem; }
.public__lede {
  font-family: var(--serif);
  font-size: var(--step-2);
  line-height: 1.42;
  color: #fff !important;
  margin-bottom: 1.5rem;
}
.public__note {
  font-size: var(--step--1);
  line-height: 1.6;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ink-line);
  color: rgba(255,255,255,0.5) !important;
}

.public__channels { border-top: 2px solid var(--gold); padding-top: 1.75rem; }

/* A still from the legal-awareness content. The photograph's own ground is
   already dark, so it needs no keying — only a soft foot so the frame settles
   into the section instead of ending on a hard line. */
.public__still {
  margin: -0.5rem 0 1.5rem;
  max-width: 15rem;
}
/* ---- Photographs set into the page -------------------------------------
   Each one dissolves into the colour of the section it actually sits in:
   navy in the dark sections, paper in the light one. Faces are untouched —
   the falloff only reaches the outer edges. */

.approach__photo,
.public__still,
.profile__photo { position: relative; }

.approach__photo img,
.public__still img,
.profile__photo img {
  width: 100%;
  display: block;
  -webkit-mask-image: linear-gradient(to bottom, #000 66%, rgba(0, 0, 0, 0.45) 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 66%, rgba(0, 0, 0, 0.45) 88%, transparent 100%);
}

.approach__photo::after,
.public__still::after,
.profile__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.approach__photo::after,
.public__still::after {
  background:
    linear-gradient(to top,   var(--ink) 0%, rgba(0, 36, 84, 0.42) 16%, rgba(0, 36, 84, 0) 44%),
    linear-gradient(to right, rgba(0, 36, 84, 0.48) 0%, rgba(0, 36, 84, 0) 22%),
    linear-gradient(to left,  rgba(0, 36, 84, 0.40) 0%, rgba(0, 36, 84, 0) 18%);
}

/* The Background section is paper, so this one fades to paper. Fading it to
   navy would leave a dark halo on a light ground. */
.profile__photo::after {
  background:
    linear-gradient(to top,   var(--paper) 0%, rgba(247, 244, 238, 0.42) 16%, rgba(247, 244, 238, 0) 44%),
    linear-gradient(to right, rgba(247, 244, 238, 0.45) 0%, rgba(247, 244, 238, 0) 22%),
    linear-gradient(to left,  rgba(247, 244, 238, 0.38) 0%, rgba(247, 244, 238, 0) 18%);
}

.public__stat { display: block; margin-bottom: 1.75rem; }
.public__stat-num {
  display: block;
  font-family: var(--serif);
  font-size: var(--step-3);
  line-height: 1;
  color: var(--gold);
  letter-spacing: -0.02em;
}
.public__stat-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: var(--ink-muted);
  margin-top: 0.6rem;
}

.channel-list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.channel-list li {
  border-top: 1px solid var(--ink-line);
  padding: 0.75rem 0;
  font-size: var(--step--1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
/* WCAG 2.2 AA Target Size: these need to clear 24px. Padding on an inline-block
   gives the hit area; the rule moves to text-decoration so the gold underline
   stays tight against the text instead of drifting to the padding edge. */
.channel-list a {
  display: inline-block;
  padding-block: 0.3rem;
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 0.16s var(--ease);
}
.channel-list a:hover { color: var(--gold); }

.public__tv {
  font-size: var(--step--1);
  line-height: 1.6;
  color: var(--ink-muted);
  padding-top: 1.25rem;
  border-top: 1px solid var(--ink-line);
}

/* =============================================================
   Contact
   ============================================================= */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.field { margin-bottom: 1.5rem; }
.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0 1.5rem;
}

.field label {
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 0.55rem;
}
.req {
  color: var(--gold-deep);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
}
.req::before { content: "\00b7\00a0"; }

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: var(--step-0);
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--paper-line);
  border-radius: 0;
  padding: 0.85rem 0.9rem;
  transition: border-color 0.16s var(--ease), background-color 0.16s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 9rem; line-height: 1.6; }
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--gold-deep) 50%),
                    linear-gradient(135deg, var(--gold-deep) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 1.35rem, calc(100% - 0.8rem) 1.35rem;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--paper-muted); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold-deep);
  background: #fff;
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #9B2C1E; background: #FDF3F1; }

.field__help {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--paper-muted);
  margin: 0.5rem 0 0;
}
.field__error {
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.4;
  color: #9B2C1E;
  margin: 0.45rem 0 0;
  min-height: 0;
}
.field__error:empty { display: none; }

.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn--submit { margin-top: 0.5rem; }
.btn--submit[disabled] { opacity: 0.55; cursor: progress; }

.form__status {
  font-family: var(--mono);
  font-size: var(--step--1);
  line-height: 1.55;
  margin: 1.1rem 0 0;
  padding: 0.85rem 1rem;
  border-left: 2px solid var(--gold-deep);
  background: var(--paper-warm);
}
.form__status:empty { display: none; }
.form__status[data-state="error"] { border-left-color: #9B2C1E; color: #7A2216; }

.form__privacy {
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--paper-muted);
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--paper-line);
}

.contact__direct { border-top: 2px solid var(--gold-deep); padding-top: 1.75rem; }
.contact__direct-title {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--gold-deep);
  margin-bottom: 1.5rem;
}
.direct-list { list-style: none; margin: 0 0 1.75rem; padding: 0; }
.direct-list li {
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--paper-line);
  font-size: var(--step--1);
  line-height: 1.55;
}
.direct-list__label {
  display: block;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  color: var(--paper-muted);
  margin-bottom: 0.35rem;
}
.direct-list__value { display: block; color: var(--ink); }
.direct-list a {
  display: inline-block;
  padding-block: 0.3rem;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--gold-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  word-break: break-word;
  transition: color 0.16s var(--ease);
}
.direct-list a:hover { color: var(--gold-deep); }

.contact__hours {
  font-size: 0.75rem;
  line-height: 1.65;
  color: var(--paper-muted);
}

/* =============================================================
   Footer
   ============================================================= */

.site-footer {
  background: var(--ink-deep);
  color: #fff;
  padding-block: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid var(--ink-soft);
}
.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 2.5rem clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.site-footer__contact {
  font-style: normal;
  font-size: var(--step--1);
  line-height: 1.75;
  color: var(--ink-muted);
}
.site-footer__contact a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  display: inline-block;
  padding-block: 0.15rem;
  transition: color 0.16s var(--ease);
}
.site-footer__contact a:hover { color: var(--gold); }
.site-footer__brand img { width: auto; height: clamp(2.7rem, 2.2rem + 1.2vw, 3.35rem); }
.site-footer__tag {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  margin-top: 1rem;
}
.site-footer__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  text-align: right;
}
.site-footer__nav a {
  display: inline-block;
  padding-block: 0.3rem;
  font-size: var(--step--1);
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.16s var(--ease);
}
.site-footer__nav a:hover { color: var(--gold); }

.site-footer__legal {
  grid-column: 1 / -1;
  padding-top: 1.75rem;
  border-top: 1px solid var(--ink-soft);
}
.site-footer__legal p {
  font-size: 0.75rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.55);
  max-width: 52rem;
}
.site-footer__copy {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.03em;
  margin-top: 1rem;
}

/* =============================================================
   Responsive
   ============================================================= */

@media (max-width: 61.9375rem) {
  .hero__inner { grid-template-columns: 1fr; align-items: start; }
  .hero__text { padding-bottom: 3rem; order: 2; }
  .hero__portrait {
    order: 1;
    align-self: start;
    width: min(20rem, 62%);
    height: clamp(16rem, 52vw, 22rem);
    min-height: 0;
    margin-bottom: 1.5rem;
  }
  /* The offset frame is a desktop refinement; at this size it reads as
     clutter floating in the portrait's fade, so it goes. */
  .hero__portrait::before { display: none; }
  .hero__portrait img { object-position: 50% 14%; }

  .profile,
  .public__grid,
  .contact { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: minmax(0, 1fr) auto; }

  .site-footer__nav ul { text-align: left; grid-auto-flow: column; grid-auto-columns: max-content; gap: 1.25rem; flex-wrap: wrap; }
}

@media (max-width: 52rem) {
  .masthead__logo-full { display: none; }
  .masthead__logo-mark { display: block; }
  /* Uppercase and letterspaced to match the wordmark baked into logo_full.png,
     so the mobile header and the desktop logo read as the same mark. */
  .masthead__wordmark {
    display: block;
    font-family: var(--serif);
    font-weight: 700;
    font-size: 0.75rem;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.055em;
    color: #fff;
  }

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

  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--ink-deep);
    border-bottom: 1px solid var(--ink-line);
    margin-left: 0;
    display: none;
  }
  .site-nav[data-open="true"] { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
  }
  .site-nav li { border-bottom: 1px solid var(--ink-line); }
  .site-nav li:last-child { border-bottom: none; padding-top: 1rem; }
  .site-nav a { display: block; padding: 0.95rem 0; font-size: var(--step-0); }
  .site-nav__cta { display: inline-block !important; }

  .site-footer__nav ul { grid-auto-flow: row; grid-auto-columns: auto; gap: 0.6rem; }
}

@media (max-width: 34rem) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { text-align: center; }
  .site-footer__nav ul { grid-template-columns: repeat(2, 1fr); grid-auto-flow: row; }
}

/* =============================================================
   Motion — opt-in reveals, fully disabled on request
   ============================================================= */

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
}
.js-ready [data-reveal] {
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
[data-reveal][data-revealed="true"] { opacity: 1; transform: none; }

.js-ready .spine__draw { transform: scaleX(0); transition: transform 1.1s var(--ease) 0.15s; }
.spine[data-revealed="true"] .spine__draw { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .js-ready .spine__draw,
  .spine[data-revealed="true"] .spine__draw { transform: scaleX(1); }
}

/* Nothing renders before JS decides; keeps reveals from flashing */
html:not(.js-ready) [data-reveal] { opacity: 1; transform: none; }

/* =============================================================
   Print
   ============================================================= */

@media print {
  .masthead, .nav-toggle, .site-nav, .hero__actions, .form, .skip-link { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .section--ink, .hero, .site-footer { background: #fff !important; color: #000 !important; }
  .section--ink *, .hero *, .site-footer * { color: #000 !important; }
  .hero__portrait { display: none; }
  .section { padding-block: 1.5rem; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
