/* =========================================================================
   Warren Enskat Group
   Design system: refined institutional
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=IBM+Plex+Sans:wght@300;400;500;600&display=swap');

:root {
  /* Palette */
  --navy:        #1B3A57;
  --navy-deep:   #0F2438;
  --teal:        #2BA8A8;
  --teal-soft:   rgba(43, 168, 168, 0.08);
  --gold:        #B89968;
  --ink:         #161616;
  --ink-muted:   #4A4A4A;
  --ink-soft:    #6B6B6B;
  --paper:       #FAFAF7;
  --paper-pure:  #FFFFFF;
  --line:        #E5E2DA;
  --line-strong: #C4BFB2;

  /* Typography */
  --serif:    'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans:     'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --container: 1180px;
  --container-narrow: 880px;
  --gutter: 32px;

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

/* Reset --------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* Base ---------------------------------------------------------------- */

body {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

/* Page-load reveal */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rise { animation: rise 0.9s var(--ease) both; }
.rise-2 { animation-delay: 0.10s; }
.rise-3 { animation-delay: 0.20s; }
.rise-4 { animation-delay: 0.30s; }
.rise-5 { animation-delay: 0.40s; }

/* Layout helpers ------------------------------------------------------ */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--dark { background: var(--navy); color: var(--paper); }
.section--paper-pure { background: var(--paper-pure); }

.divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}
.divider--strong { background: var(--line-strong); }

/* Typography ---------------------------------------------------------- */

h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--paper); }

h1 { font-size: clamp(38px, 5.2vw, 64px); font-weight: 500; }
h2 { font-size: clamp(28px, 3.4vw, 42px); }
h3 { font-size: clamp(22px, 2.4vw, 28px); }
h4 { font-size: 20px; font-weight: 600; }

p { margin-bottom: 1.15em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 18px;
}
.section--dark .eyebrow { color: var(--teal); }

.lede {
  font-family: var(--serif);
  font-size: clamp(20px, 2.1vw, 24px);
  line-height: 1.45;
  color: var(--ink-muted);
  font-weight: 400;
  font-style: italic;
}
.section--dark .lede { color: rgba(250, 250, 247, 0.85); }

a.text-link {
  color: var(--navy);
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
  padding-bottom: 1px;
}
a.text-link:hover { color: var(--teal); border-color: var(--teal); }
.section--dark a.text-link { color: var(--paper); }
.section--dark a.text-link:hover { color: var(--teal); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--navy);
}
.brand__mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}
.brand__word {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1;
}
.brand__word small {
  display: block;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.22em;
  font-weight: 400;
  color: var(--teal);
  margin-top: 4px;
  text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: 36px; }
.nav a {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
  position: relative;
  padding: 6px 0;
  transition: color 0.3s var(--ease);
}
.nav a:hover { color: var(--navy); }
.nav a.is-current {
  color: var(--navy);
}
.nav a.is-current::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px;
  background: var(--teal);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; stroke: var(--navy); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px var(--gutter); width: 100%; border-top: 1px solid var(--line); }
  .nav a.is-current::after { display: none; }
}

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

.hero {
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero__corner {
  position: absolute;
  top: 0;
  left: 0;
  width: 220px;
  height: 220px;
  pointer-events: none;
  opacity: 0.65;
}
.hero__corner--right {
  left: auto;
  right: 0;
  bottom: 0;
  top: auto;
  transform: rotate(180deg);
}
.hero h1 {
  max-width: 16ch;
  margin-bottom: 26px;
}
.hero h1 em {
  font-style: italic;
  color: var(--teal);
  font-weight: 400;
}
.hero__sub {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 24px);
  font-style: italic;
  color: var(--ink-muted);
  max-width: 32ch;
}
@media (max-width: 760px) {
  .hero { padding: 64px 0 56px; }
  .hero__corner { width: 130px; height: 130px; }
}

/* Stat bar ------------------------------------------------------------ */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.stat {
  padding: 48px 32px;
  text-align: left;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat__num {
  font-family: var(--serif);
  font-size: clamp(44px, 5vw, 64px);
  font-weight: 500;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.01em;
  font-feature-settings: 'lnum' 1, 'tnum' 1;
}
.stat__num em {
  font-size: 0.55em;
  font-style: normal;
  color: var(--teal);
  vertical-align: top;
  margin-left: 4px;
}
.stat__label {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  line-height: 1.5;
  max-width: 22ch;
}
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); padding: 32px var(--gutter); }
  .stat:last-child { border-bottom: 0; }
}

/* Page header (interior pages) --------------------------------------- */

.page-header {
  position: relative;
  padding: 88px 0 64px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-header__corner {
  position: absolute;
  top: 0; right: 0;
  width: 180px;
  height: 180px;
  opacity: 0.5;
  pointer-events: none;
}
.page-header h1 { max-width: 22ch; margin-bottom: 18px; }
.page-header__lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(19px, 1.9vw, 22px);
  color: var(--ink-muted);
  max-width: 48ch;
  line-height: 1.5;
}
@media (max-width: 760px) {
  .page-header { padding: 56px 0 40px; }
  .page-header__corner { width: 110px; height: 110px; }
}

/* Service blocks ----------------------------------------------------- */

.service {
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
}
.service:last-child { border-bottom: 0; }
.service__head {
  display: grid;
  grid-template-columns: 0.6fr 1fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 40px;
}
.service__head h2 { margin-bottom: 0; }
.service__head .lede { margin-top: 4px; }
.service__body {
  display: grid;
  grid-template-columns: 0.6fr 1fr;
  gap: 64px;
}
.service__body h4 { margin-bottom: 8px; color: var(--navy); }
.service__body p + h4 { margin-top: 28px; }

.service__case {
  margin-top: 40px;
  padding: 32px 36px;
  background: var(--paper-pure);
  border-left: 2px solid var(--teal);
}
.service__case .eyebrow { margin-bottom: 10px; }
.service__case h4 { font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--navy); margin-bottom: 12px; }

@media (max-width: 860px) {
  .service__head, .service__body {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Track record list -------------------------------------------------- */

.decade {
  padding: 56px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  align-items: start;
}
.decade:first-of-type { border-top: 0; padding-top: 24px; }
.decade__label {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  color: var(--teal);
  letter-spacing: -0.01em;
  position: sticky;
  top: 100px;
}
.decade__label small {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 8px;
}
.deal {
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.deal:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.deal__year {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}
.deal h3 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: -0.005em;
}
.deal p { color: var(--ink-muted); }

@media (max-width: 860px) {
  .decade { grid-template-columns: 1fr; gap: 24px; }
  .decade__label { position: static; }
}

/* Partner cards ------------------------------------------------------- */

.partner {
  padding: 80px 0;
  border-top: 1px solid var(--line);
}
.partner:first-of-type { border-top: 0; padding-top: 24px; }
.partner__grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 64px;
  align-items: start;
}
.partner__photo-frame {
  position: sticky;
  top: 100px;
}
.partner__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--teal-soft);
  overflow: hidden;
  position: relative;
}
.partner__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.95);
}
.partner__photo--placeholder {
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.partner__photo--placeholder span {
  font-family: var(--serif);
  font-size: 88px;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  letter-spacing: -0.02em;
}
.partner__caption {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.partner__caption strong {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--navy);
  font-weight: 500;
  margin-bottom: 4px;
}
.partner__body h2 { margin-bottom: 8px; }
.partner__body .partner__title {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 24px;
}
.partner__body p { font-size: 17px; }

@media (max-width: 860px) {
  .partner__grid { grid-template-columns: 1fr; gap: 32px; }
  .partner__photo-frame { position: static; max-width: 280px; }
}

/* Contact ------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.contact-card h3 {
  font-size: 24px;
  margin-bottom: 8px;
}
.contact-card__detail {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.contact-card__detail a { color: var(--ink); }
.contact-card__detail a:hover { color: var(--teal); }
.contact-card__label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.contact-form {
  display: grid;
  gap: 18px;
  max-width: 520px;
}
.contact-form label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
  font-weight: 500;
}
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 12px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  transition: border-color 0.3s var(--ease);
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: 0;
  border-bottom-color: var(--teal);
}
.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}
.contact-form button {
  margin-top: 16px;
  padding: 14px 28px;
  background: var(--navy);
  color: var(--paper);
  border: 0;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s var(--ease);
  justify-self: start;
}
.contact-form button:hover { background: var(--teal); }
.contact-form button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.form-status {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-muted);
  max-width: 100%;
  min-height: 1.2em;
}
.form-status.is-success {
  color: var(--navy);
  font-weight: 500;
}
.form-status.is-error {
  color: #B23A3A;
}

/* Honeypot field — hidden from humans, visible to dumb bots */
.contact-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* Body intro on /what-we-do ------------------------------------------ */

.intro-prose {
  max-width: 60ch;
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-muted);
}
.intro-prose p { font-size: 19px; }

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

.site-footer {
  padding: 56px 0 40px;
  background: var(--navy);
  color: rgba(250, 250, 247, 0.78);
  font-size: 14px;
}
.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.site-footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}
.site-footer__brand {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--paper);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 6px;
}
.site-footer__tag {
  font-style: italic;
  color: rgba(250, 250, 247, 0.7);
  font-family: var(--serif);
  font-size: 17px;
}
.site-footer__contact a { color: var(--paper); border-bottom: 1px solid rgba(250,250,247,0.3); padding-bottom: 1px; }
.site-footer__contact a:hover { border-bottom-color: var(--teal); color: var(--teal); }
.site-footer__bottom {
  border-top: 1px solid rgba(250,250,247,0.15);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: rgba(250, 250, 247, 0.55);
  letter-spacing: 0.02em;
}

/* CTA strip ----------------------------------------------------------- */

.cta-strip {
  padding: 48px 0;
  background: var(--navy);
  color: var(--paper);
}
.cta-strip__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-strip h3 {
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 500;
  margin: 0;
}
.cta-strip a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 26px;
  border: 1px solid rgba(250,250,247,0.4);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  transition: all 0.3s var(--ease);
}
.cta-strip a:hover {
  background: var(--teal);
  border-color: var(--teal);
}
.cta-strip a svg { width: 16px; height: 16px; }

/* Misc ---------------------------------------------------------------- */

.text-block { max-width: 65ch; }
.text-block p { font-size: 18px; }

.kicker-paragraphs p { font-size: 18px; line-height: 1.7; color: var(--ink-muted); }
.kicker-paragraphs p:first-child::first-line { font-variant-numeric: lining-nums; }

.outlinks {
  margin-top: 24px;
  font-size: 14px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.outlinks a { color: var(--teal); border-bottom: 1px solid var(--teal); padding-bottom: 1px; }
.outlinks a:hover { color: var(--navy); border-color: var(--navy); }

.firm-totals {
  background: var(--navy);
  color: var(--paper);
  padding: 64px 0;
}
.firm-totals h3 { color: var(--paper); margin-bottom: 24px; font-size: 26px; }
.firm-totals__lede {
  font-family: var(--serif);
  font-size: clamp(19px, 1.9vw, 22px);
  font-style: italic;
  line-height: 1.5;
  color: rgba(250, 250, 247, 0.92);
  max-width: 64ch;
  margin-bottom: 36px;
}
.firm-totals ul { list-style: none; max-width: 60ch; }
.firm-totals li {
  padding: 16px 0;
  border-bottom: 1px solid rgba(250,250,247,0.15);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  font-size: 16px;
  color: rgba(250, 250, 247, 0.88);
}
.firm-totals li:last-child { border-bottom: 0; }
.firm-totals li strong {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--teal);
  flex-shrink: 0;
}
