/* Frontrunner Insight
   Brand tokens come from the FrontRunner brand kit (Media/). Teal is the single accent. */

:root {
  --navy: #002038;
  --navy-deep: #00182b;
  --cream: #fbf6ef;
  --sand: #efdcc2;
  --charcoal: #403f41;
  --teal: #33a0c1;
  --teal-deep: #1d7390;

  --text-on-navy: var(--cream);
  --muted-on-navy: rgba(251, 246, 239, 0.74);
  --rule-on-navy: rgba(239, 220, 194, 0.22);
  --text-on-cream: var(--charcoal);
  --muted-on-cream: #5d5a57;
  --rule-on-cream: rgba(64, 63, 65, 0.18);

  --font: "Newsreader", Georgia, "Times New Roman", serif;

  --gutter: 16px;
  --measure: 34rem;
  --container: 1240px;
  --space-section: clamp(6rem, 14vw, 11rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --reveal-duration: 1100ms;

  color-scheme: dark;
}

@media (min-width: 768px) {
  :root { --gutter: 40px; }
}
@media (min-width: 1280px) {
  :root { --gutter: 56px; }
}

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

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

body {
  margin: 0;
  background: var(--navy);
  color: var(--text-on-navy);
  font-family: var(--font);
  font-size: 1.125rem;
  font-weight: 350;
  line-height: 1.65;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--teal);
  color: var(--navy);
}

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

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

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Accent rule: a short teal line that opens each section. */
.accent {
  display: block;
  width: 48px;
  height: 2px;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--teal);
  transform-origin: left center;
}

.offices .accent { background: var(--teal-deep); }

/* Header ------------------------------------------------------------- */

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  padding-block: 28px;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--cream);
  white-space: nowrap;
}

@media (min-width: 768px) {
  .wordmark { font-size: 1.4375rem; }
}

.site-header__note {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--sand);
  white-space: nowrap;
}

.site-header__note::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

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

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 120px;
  padding-bottom: clamp(2.5rem, 7vh, 6rem);
  overflow: hidden;
}

.hero__title {
  font-size: clamp(3.25rem, min(11vw, 18vh), 9.5rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero__lede {
  margin-top: clamp(2.5rem, 7vh, 4.5rem);
  max-width: 40rem;
  font-size: clamp(1.1875rem, 1.6vw, 1.375rem);
  line-height: 1.6;
  color: var(--muted-on-navy);
}

/* Image band --------------------------------------------------------- */

.band {
  position: relative;
  height: clamp(320px, 64vh, 760px);
  background: var(--sand);
  overflow: hidden;
  isolation: isolate;
}

.band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
  filter: grayscale(1) contrast(1.15) brightness(1.05);
  mix-blend-mode: multiply;
}

/* Lighten with navy so the shadows become brand navy: a navy / sand duotone. */
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--navy);
  mix-blend-mode: lighten;
  pointer-events: none;
}

/* Practice ----------------------------------------------------------- */

.practice {
  padding-block: var(--space-section);
}

.practice__grid {
  display: grid;
  gap: 3.5rem;
}

@media (min-width: 960px) {
  .practice__grid {
    grid-template-columns: 5fr 6fr;
    gap: 6rem;
    align-items: start;
  }
}

.section-title {
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.practice__intro {
  max-width: var(--measure);
  color: var(--muted-on-navy);
}

.tenets {
  margin-top: 3.5rem;
  border-top: 1px solid var(--rule-on-navy);
}

.tenet {
  display: grid;
  gap: 0.5rem;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--rule-on-navy);
}

@media (min-width: 640px) {
  .tenet {
    grid-template-columns: 11rem 1fr;
    gap: 2rem;
  }
}

.tenet dt {
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--teal);
}

.tenet dd {
  max-width: 30rem;
  color: var(--muted-on-navy);
}

.practice__close {
  margin-top: 2.5rem;
  max-width: var(--measure);
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--cream);
}

/* Offices ------------------------------------------------------------ */

.offices {
  background: var(--cream);
  color: var(--text-on-cream);
  padding-block: var(--space-section);
  color-scheme: light;
}

.offices ::selection {
  background: var(--navy);
  color: var(--cream);
}

.offices .section-title { color: var(--navy); }

.offices__intro {
  margin-top: 1.5rem;
  max-width: var(--measure);
  color: var(--muted-on-cream);
}

.cities {
  display: grid;
  gap: 0;
  margin-top: clamp(3.5rem, 8vw, 6rem);
  border-top: 1px solid var(--rule-on-cream);
}

@media (min-width: 768px) {
  .cities { grid-template-columns: 1fr 1fr; }
}

.city {
  padding-block: 2rem 0.5rem;
}

@media (min-width: 768px) {
  .city + .city {
    padding-left: 2.5rem;
    border-left: 1px solid var(--rule-on-cream);
  }
}

.city__name {
  font-size: clamp(2.5rem, 5.25vw, 4.5rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.city__time {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--teal-deep);
  font-variant-numeric: tabular-nums;
}

/* Closed ------------------------------------------------------------- */

.closed {
  padding-block: var(--space-section);
}

.closed__title {
  max-width: 14ch;
  font-size: clamp(2.75rem, 7vw, 6rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.closed__body {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  max-width: 30rem;
  font-size: clamp(1.1875rem, 1.6vw, 1.375rem);
  line-height: 1.6;
  color: var(--muted-on-navy);
}

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

.site-footer {
  background: var(--navy-deep);
  padding-block: 3rem;
  font-size: 0.9375rem;
  color: var(--muted-on-navy);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}

.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 2rem;
}

/* Motion ------------------------------------------------------------- */
/* Content is fully visible without JS or with reduced motion; the .js class opts in. */

@media (prefers-reduced-motion: no-preference) {
  /* Page load: header, headline and lede settle in, the accent line draws. */
  .js .site-header,
  .js .hero__title,
  .js .hero__lede {
    opacity: 0;
    animation: rise var(--reveal-duration) var(--ease-out) forwards;
  }
  .js .site-header { animation-name: fade; animation-delay: 100ms; }
  .js .hero__title { animation-delay: 250ms; }
  .js .hero__lede { animation-delay: 550ms; }
  .js .hero .accent {
    transform: scaleX(0);
    animation: draw 900ms var(--ease-out) 150ms forwards;
  }

  /* Scroll: sections rise gently once as they enter the viewport. */
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition:
      opacity var(--reveal-duration) var(--ease-out),
      transform var(--reveal-duration) var(--ease-out);
    transition-delay: var(--delay, 0ms);
  }
  .js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }

  .js [data-reveal] .accent {
    transform: scaleX(0);
    transition: transform 900ms var(--ease-out) 200ms;
  }
  .js [data-reveal].is-visible .accent { transform: scaleX(1); }

  /* The photo eases back from a slight zoom as it comes into view. */
  .js .band img {
    transform: scale(1.08);
    transition: transform 2400ms var(--ease-out);
  }
  .js .band.is-visible img { transform: none; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes draw {
  to { transform: scaleX(1); }
}
