@charset "UTF-8";
/* ==========================================================================
   Malambo & Co. Advocates
   Design system implementing Website Requirements Document, section 24.
   Palette values are read from the firm's company profile (WRD s14.1).
   Single committed light theme; every colour painted explicitly.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Brand — sourced from the company profile */
  --ink:            #18122B;   /* dominant text colour in the profile */
  --ink-muted:      #4A4A5A;   /* profile secondary text */
  --ink-faint:      #7A7688;
  --navy:           #050428;   /* profile cover ground */
  --navy-alt:       #000E3D;
  --accent:         #FF3131;   /* profile accent — display type only */
  --accent-deep:    #C1291D;   /* AA-compliant red for links and small text */
  --accent-hover:   #D82C2C;
  --slate:          #8699A3;   /* profile cover geometry */

  /* Surfaces */
  --surface:        #FFFFFF;
  --surface-alt:    #F8F7F5;   /* profile card ground */
  --surface-warm:   #E3E1DA;   /* profile p7 band */
  --surface-cool:   #E1DDE4;   /* profile p11 ground */
  --rule:           #DEDAD2;
  --rule-soft:      #EDEAE4;
  --on-navy:        #FFFFFF;
  --on-navy-muted:  #B9BFD4;

  /* Semantic — deliberately distinct from the brand accent */
  --error:          #A32015;
  --error-bg:       #FBE9E7;
  --success:        #2E5B39;
  --success-bg:     #E7F0E9;

  /* Type */
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* Spacing scale — 4px base (WRD s24.3) */
  --s1: 4px;   --s2: 8px;   --s3: 12px;  --s4: 16px;
  --s5: 24px;  --s6: 32px;  --s7: 40px;  --s8: 56px;
  --s9: 72px;  --s10: 96px; --s11: 120px;

  /* Layout */
  --content-max: 1200px;
  --wide-max: 1440px;
  --page-pad: 20px;
  --measure: 68ch;

  /* Radius */
  --r-sm: 4px;
  --r-md: 6px;
  --r-pill: 999px;

  /* Shadows — two only */
  --shadow-card: 0 4px 16px rgba(24, 18, 43, .08);
  --shadow-pop:  0 8px 32px rgba(24, 18, 43, .10);

  /* Motion */
  --t-fast: 200ms cubic-bezier(.2, .8, .2, 1);
  --t-slow: 480ms cubic-bezier(.2, .8, .2, 1);

  --header-h: 88px;
  --header-h-condensed: 64px;
}

@media (min-width: 768px) {
  :root { --page-pad: 32px; }
}
@media (min-width: 1024px) {
  :root { --page-pad: 40px; }
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

@media (max-width: 767px) {
  body { font-size: 16px; }
}

img, svg, video { max-width: 100%; height: auto; display: block; }

/* Let the <img> participate in its container's layout directly, so that
   object-fit and percentage heights resolve against the real parent. */
picture { display: contents; }

h1, h2, h3, h4, h5 {
  margin: 0;
  font-weight: 600;
  text-wrap: balance;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

a { color: var(--accent-deep); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Skip link — first focusable element */
.skip-link {
  position: absolute;
  left: var(--s4);
  top: -100px;
  z-index: 200;
  background: var(--navy);
  color: var(--on-navy);
  padding: var(--s3) var(--s5);
  border-radius: var(--r-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top var(--t-fast);
}
.skip-link:focus { top: var(--s4); color: var(--on-navy); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY SCALE  (WRD s24.2)
   -------------------------------------------------------------------------- */
.t-display {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.30rem + 3.1vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -.015em;
  font-weight: 600;
}
.t-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.25rem + 1.55vw, 2.5rem);
  line-height: 1.16;
  letter-spacing: -.01em;
}
.t-h3 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.12rem + 0.55vw, 1.65rem);
  line-height: 1.26;
}
.t-h4 {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
}
.t-lede {
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.22rem);
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 60ch;
}
.t-body { max-width: var(--measure); }
.t-small { font-size: .9rem; line-height: 1.55; }

.t-eyebrow {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.t-eyebrow--light { color: var(--accent); }
.t-eyebrow--muted { color: var(--ink-faint); }

.t-mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: .85rem;
}

/* The profile's signature device: a short accent rule beneath a heading */
.rule-accent {
  width: 56px;
  height: 3px;
  background: var(--accent);
  border: 0;
  margin: var(--s4) 0 0;
}
.rule-accent--center { margin-left: auto; margin-right: auto; }

/* --------------------------------------------------------------------------
   4. LAYOUT
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--page-pad);
}
.wrap--wide { max-width: var(--wide-max); }
.wrap--narrow { max-width: 820px; }

.section { padding-block: var(--s8); }
@media (min-width: 768px) { .section { padding-block: var(--s9); } }
@media (min-width: 1024px) { .section { padding-block: var(--s10); } }

.section--tight { padding-block: var(--s7); }
.section--alt { background: var(--surface-alt); }
.section--warm { background: var(--surface-warm); }
.section--cool { background: var(--surface-cool); }
.section--navy { background: var(--navy); color: var(--on-navy); }
.section--navy .t-lede { color: var(--on-navy-muted); }
.section--navy .t-h2,
.section--navy .t-display { color: var(--on-navy); }

.stack { display: flex; flex-direction: column; }
.stack--2 { gap: var(--s2); }
.stack--3 { gap: var(--s3); }
.stack--4 { gap: var(--s4); }
.stack--5 { gap: var(--s5); }
.stack--6 { gap: var(--s6); }
.stack--7 { gap: var(--s7); }

.grid { display: grid; gap: var(--s5); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
/* auto-FILL, not auto-fit: a tier with one member keeps a card-sized track
   instead of stretching one portrait across the full row. */
.grid--people { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }

.section-head { display: flex; flex-direction: column; gap: var(--s3); margin-bottom: var(--s7); }
.section-head__title { display: flex; flex-direction: column; gap: var(--s2); }

/* --------------------------------------------------------------------------
   5. HEADER & NAVIGATION  (WRD s13.2)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.site-header.is-condensed {
  border-bottom-color: var(--rule-soft);
  box-shadow: 0 1px 12px rgba(24, 18, 43, .05);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
  height: var(--header-h);
  transition: height var(--t-fast);
}
.site-header.is-condensed .site-header__inner { height: var(--header-h-condensed); }

@media (max-width: 767px) {
  :root { --header-h: 68px; --header-h-condensed: 60px; }
}

.brand { display: flex; align-items: center; gap: var(--s3); text-decoration: none; flex-shrink: 0; }
.brand__logo { height: 52px; width: auto; transition: height var(--t-fast); }
.site-header.is-condensed .brand__logo { height: 40px; }
@media (max-width: 767px) { .brand__logo { height: 40px; } }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.01em;
}
.brand__sub {
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
}
@media (max-width: 340px) { .brand__text { display: none; } }
/* Keep the firm name legible on a phone by making the header CTA compact */
@media (max-width: 767px) {
  .header-actions .btn { padding: 10px 16px; min-height: 42px; font-size: .9rem; }
  .header-actions { gap: var(--s2); }
}

.nav { display: none; }
@media (min-width: 1024px) { .nav { display: block; } }

.nav__list { display: flex; align-items: center; gap: var(--s5); list-style: none; }
.nav__item { position: relative; }
.nav__link {
  display: inline-block;
  padding: var(--s2) 0;
  color: var(--ink);
  text-decoration: none;
  font-size: .97rem;
  font-weight: 500;
  position: relative;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-fast);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  background: none;
  border: 0;
  padding: var(--s2) 0;
  font: inherit;
  font-size: .97rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}
.nav__toggle .chev { transition: transform var(--t-fast); }
.nav__item.is-open .chev { transform: rotate(180deg); }

.nav__dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: -20px;
  min-width: 288px;
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-pop);
  padding: var(--s2);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast);
}
.nav__item.is-open .nav__dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__dropdown a {
  display: block;
  padding: 10px var(--s3);
  border-radius: var(--r-sm);
  color: var(--ink);
  text-decoration: none;
  font-size: .93rem;
}
.nav__dropdown a:hover { background: var(--surface-alt); color: var(--accent-deep); }
.nav__dropdown .is-divider { border-top: 1px solid var(--rule-soft); margin: var(--s2) var(--s3); }

.header-actions { display: flex; align-items: center; gap: var(--s4); }
.header-phone {
  display: none;
  align-items: center;
  gap: var(--s2);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  white-space: nowrap;
}
.header-phone:hover { color: var(--accent-deep); }
@media (min-width: 768px) { .header-phone { display: inline-flex; } }
@media (min-width: 1024px) and (max-width: 1140px) { .header-phone { display: none; } }

.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
@media (min-width: 1024px) { .burger { display: none; } }
.burger span {
  display: block;
  height: 2px;
  background: var(--ink);
  transition: transform var(--t-fast), opacity var(--t-fast);
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--t-slow);
  overflow-y: auto;
  visibility: hidden;
}
.mobile-menu.is-open { transform: translateX(0); visibility: visible; }
.mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s4) var(--page-pad);
  border-bottom: 1px solid var(--rule-soft);
  min-height: 68px;
}
.mobile-menu__close {
  width: 44px; height: 44px;
  background: none; border: 0;
  font-size: 1.6rem; line-height: 1;
  color: var(--ink);
  cursor: pointer;
}
.mobile-menu__body { padding: var(--s5) var(--page-pad) var(--s10); }
.mobile-menu__list { list-style: none; display: flex; flex-direction: column; }
.mobile-menu__list > li { border-bottom: 1px solid var(--rule-soft); }
.mobile-menu__list a,
.mobile-menu__list .m-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--s4) 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
}
.mobile-menu__sub { list-style: none; display: none; padding: 0 0 var(--s4) var(--s4); }
.mobile-menu__sub.is-open { display: block; }
.mobile-menu__sub a {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  padding: 10px 0;
  color: var(--ink-muted);
}

/* Fixed mobile action bar (WRD NAV-04) */
.action-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--navy);
  transform: translateY(100%);
  transition: transform var(--t-slow);
  padding-bottom: env(safe-area-inset-bottom);
}
.action-bar.is-visible { transform: translateY(0); }
@media (min-width: 768px) { .action-bar { display: none; } }
.action-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 54px;
  color: var(--on-navy);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
}
.action-bar a + a { background: var(--accent-deep); }

/* --------------------------------------------------------------------------
   6. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 48px;
  padding: 13px 26px;
  border-radius: var(--r-sm);
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-size: .97rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.btn--primary { background: var(--accent-deep); color: #fff; border-color: var(--accent-deep); }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }

.btn--secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: #fff; }

.btn--on-navy { background: #fff; color: var(--navy); border-color: #fff; }
.btn--on-navy:hover { background: var(--surface-warm); color: var(--navy); }

.btn--ghost-navy { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--ghost-navy:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }

.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  color: var(--accent-deep);
}
.link-arrow .arw { transition: transform var(--t-fast); }
.link-arrow:hover .arw { transform: translateX(4px); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); }

/* --------------------------------------------------------------------------
   7. HERO
   -------------------------------------------------------------------------- */
.hero { position: relative; background: var(--navy); overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(5, 4, 40, .93) 0%, rgba(5, 4, 40, .82) 45%, rgba(5, 4, 40, .62) 100%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(64px, 11vw, 132px);
  color: var(--on-navy);
}
.hero__content { max-width: 720px; display: flex; flex-direction: column; gap: var(--s5); }
.hero__title { color: var(--on-navy); }
.hero__lede { color: #DDE0EE; max-width: 56ch; font-size: clamp(1.05rem, 1rem + 0.35vw, 1.22rem); line-height: 1.6; }

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3) var(--s5);
  margin-top: var(--s3);
  padding-top: var(--s5);
  border-top: 1px solid rgba(255, 255, 255, .18);
  list-style: none;
}
.trust-strip li {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: .84rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  color: #C9CEE8;
}
.trust-strip li::before { content: ""; width: 6px; height: 6px; background: var(--accent); flex-shrink: 0; }

/* Page header for interior pages */
.page-head { background: var(--navy); color: var(--on-navy); padding-block: var(--s8) var(--s8); }
.page-head__inner { display: flex; flex-direction: column; gap: var(--s4); max-width: 780px; }
.page-head h1 { color: var(--on-navy); }
.page-head .t-lede { color: #C9CEE8; }

.breadcrumb { padding-block: var(--s3) 0; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--s2); list-style: none; font-size: .84rem; }
.breadcrumb li { display: flex; align-items: center; gap: var(--s2); color: rgba(255, 255, 255, .62); }
.breadcrumb li + li::before { content: "/"; color: rgba(255, 255, 255, .38); }
.breadcrumb a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb [aria-current] { color: #fff; }

/* --------------------------------------------------------------------------
   8. CARDS
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  padding: var(--s5) var(--s5) var(--s6);
  background: var(--surface-alt);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-md);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.card::before {
  content: "";
  position: absolute;
  top: var(--s5);
  left: 0;
  width: 3px;
  height: 22px;
  background: var(--accent);
}
.card:hover { border-color: var(--rule); box-shadow: var(--shadow-card); transform: translateY(-1px); }
.card__title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; line-height: 1.25; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__title a:hover { color: var(--accent-deep); }
.card__desc { color: var(--ink-muted); font-size: .95rem; line-height: 1.55; }
.card__more { margin-top: auto; font-size: .88rem; font-weight: 600; color: var(--accent-deep); }

/* Person card */
.person-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.person-card:hover { border-color: var(--rule); box-shadow: var(--shadow-card); }
.person-card__media { position: relative; background: var(--navy); aspect-ratio: 3 / 4; }
.person-card__media img { width: 100%; height: 100%; object-fit: cover; }
.person-card__body { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s4) var(--s5) var(--s5); }
.person-card__name { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; line-height: 1.25; }
.person-card__name a { color: var(--ink); text-decoration: none; }
.person-card__name a::after { content: ""; position: absolute; inset: 0; }
.person-card__name a:hover { color: var(--accent-deep); }
.person-card__role { font-size: .82rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--accent-deep); }
.person-card__meta { font-size: .85rem; color: var(--ink-faint); }
/* Sits above the card's full-bleed title overlay so the tags stay clickable */
.person-card__tags { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: var(--s1) var(--s2); margin-top: var(--s1); }

.photo-flag {
  position: absolute;
  left: var(--s3); bottom: var(--s3);
  z-index: 2;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, .93);
  color: var(--ink-muted);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  padding: 3px 7px;
}

.tag {
  display: inline-block;
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .03em;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: var(--surface-alt);
  border: 1px solid var(--rule-soft);
  color: var(--ink-muted);
  text-decoration: none;
}
a.tag:hover { border-color: var(--accent-deep); color: var(--accent-deep); }

/* Sector row (echoes profile p7) */
.sector-list { list-style: none; display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); column-gap: var(--s7); }
.sector-row { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s4) 0; border-bottom: 1px solid var(--rule); }
.sector-row__name { display: flex; align-items: center; gap: var(--s3); font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; }
.sector-row__name::before { content: ""; width: 9px; height: 9px; background: var(--accent); flex-shrink: 0; }
.sector-row__links { display: flex; flex-wrap: wrap; gap: var(--s2); padding-left: 21px; }
/* Practice-area list rows: names only, no descriptor (firm's instruction) */
.sector-row__name a { color: var(--ink); text-decoration: none; }
.sector-row__name a:hover,
.sector-row__name a:focus-visible { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   9. NUMBERED SEQUENCES
   -------------------------------------------------------------------------- */
/* Differentiators — a list, not a sequence: numerals stay quiet (WRD s14.3) */
.reason { display: flex; gap: var(--s4); padding: var(--s4) 0; border-top: 1px solid var(--rule-soft); }
.reason__num { font-family: var(--font-mono); font-size: .8rem; color: var(--accent-deep); padding-top: 5px; flex-shrink: 0; }
.reason__body { display: flex; flex-direction: column; gap: var(--s1); }
.reason__title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; }
.reason__text { color: var(--ink-muted); font-size: .95rem; }

/* Approach — a real sequence: numerals are large (WRD s7.9) */
.steps { display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); position: relative; }
.step { display: flex; flex-direction: column; gap: var(--s3); padding-top: var(--s5); border-top: 2px solid var(--rule); position: relative; }
.step::after {
  content: "";
  position: absolute;
  top: -2px; left: 0;
  height: 2px;
  width: 100%;
  background: var(--accent);
  transition: width 700ms cubic-bezier(.2, .8, .2, 1);
}
.js .step::after { width: 0; }
.js .step.is-active::after { width: 100%; }
.step__num { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; font-weight: 600; color: var(--accent); }
.step__title { font-size: .88rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.step__text { color: var(--ink-muted); font-size: .95rem; }

/* Service groups (profile p9) */
.service-group { display: grid; grid-template-columns: auto 1fr; gap: var(--s4) var(--s5); padding: var(--s6) 0; border-top: 1px solid var(--rule); align-items: start; }
.service-group__num { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; color: var(--accent); font-weight: 600; }
.service-group__body { display: flex; flex-direction: column; gap: var(--s3); }
.service-group__title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.service-list { list-style: none; display: flex; flex-direction: column; gap: var(--s2); }
.service-list li { display: flex; gap: var(--s3); color: var(--ink-muted); }
.service-list li::before { content: ""; width: 7px; height: 7px; background: var(--accent); margin-top: 10px; flex-shrink: 0; }

/* --------------------------------------------------------------------------
   10. TIMELINE  (WRD ABT-02)
   -------------------------------------------------------------------------- */
.timeline { position: relative; list-style: none; padding-left: var(--s6); }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--rule); }
.timeline__item { position: relative; padding-bottom: var(--s7); }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: calc(var(--s6) * -1 + 1px);
  top: 10px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--surface);
}
.timeline__year { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; line-height: 1.1; }
.timeline__text { color: var(--ink-muted); margin-top: var(--s1); max-width: 56ch; }
.timeline__item--now .timeline__year { color: var(--accent-deep); }

.year-mark {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(6rem, 16vw, 13rem);
  line-height: .82;
  font-weight: 600;
  color: var(--rule-soft);
  letter-spacing: -.03em;
  user-select: none;
}

/* Reveal-on-scroll — decorative only.
   Content is visible by default and only hidden once JS has confirmed it can
   reveal it again, so a script failure can never leave the page blank. */
.reveal { transition: opacity var(--t-slow), transform var(--t-slow); }
.js .reveal { opacity: 0; transform: translateY(14px); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   11. FILTERS  (WRD TEA-02 / TEA-03)
   -------------------------------------------------------------------------- */
.filters { display: flex; flex-direction: column; gap: var(--s4); padding: var(--s5); background: var(--surface-alt); border: 1px solid var(--rule-soft); border-radius: var(--r-md); }
.filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
.filter-group__label { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-right: var(--s2); flex-basis: 100%; }
@media (min-width: 640px) { .filter-group__label { flex-basis: auto; min-width: 108px; } }

.chip {
  font-family: var(--font-body);
  font-size: .86rem;
  font-weight: 500;
  padding: 7px 14px;
  min-height: 36px;
  border-radius: var(--r-pill);
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--ink-muted);
  cursor: pointer;
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.chip:hover { border-color: var(--ink-faint); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

.filter-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); font-size: .9rem; color: var(--ink-muted); }
.filter-reset { background: none; border: 0; font: inherit; font-size: .88rem; font-weight: 600; color: var(--accent-deep); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: var(--s2); }

.no-results { padding: var(--s8) var(--s5); text-align: center; border: 1px dashed var(--rule); border-radius: var(--r-md); color: var(--ink-muted); }
[hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   12. FORMS  (WRD s19.1)
   -------------------------------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: var(--s5); }
.field { display: flex; flex-direction: column; gap: var(--s2); }
.field__label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.field__req { color: var(--accent-deep); }
.field__hint { font-size: .84rem; color: var(--ink-faint); }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--rule);
  border-radius: var(--r-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { min-height: 132px; resize: vertical; line-height: 1.55; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234A4A5A' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-deep);
  box-shadow: 0 0 0 3px rgba(193, 41, 29, .14);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--error); }

.field__error { display: none; align-items: center; gap: var(--s2); font-size: .85rem; font-weight: 500; color: var(--error); }
.field.has-error .field__error { display: flex; }
.field__error::before { content: "!"; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; background: var(--error); color: #fff; font-size: .68rem; font-weight: 700; flex-shrink: 0; }

.counter { align-self: flex-end; font-family: var(--font-mono); font-size: .78rem; color: var(--ink-faint); }
.counter.is-near { color: var(--error); }

.checkbox { display: grid; grid-template-columns: auto 1fr; gap: var(--s3); align-items: start; }
.checkbox input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent-deep); }
.checkbox label { font-size: .9rem; color: var(--ink-muted); line-height: 1.5; }

.confidentiality {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  padding: var(--s4) var(--s5);
  background: var(--surface-alt);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.confidentiality__title { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-deep); }
.confidentiality p { font-size: .92rem; color: var(--ink-muted); line-height: 1.55; }

.form-alert { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s4) var(--s5); border-radius: var(--r-sm); font-size: .93rem; }
.form-alert--error { background: var(--error-bg); border: 1px solid #EFC3BC; color: var(--error); }
.form-alert--success { background: var(--success-bg); border: 1px solid #B9D2BE; color: var(--success); }

.honeypot { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --------------------------------------------------------------------------
   13. CONTACT
   -------------------------------------------------------------------------- */
.contact-band { background: var(--navy); color: var(--on-navy); }
.contact-band__grid { display: grid; gap: var(--s7); align-items: start; grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact-band__grid { grid-template-columns: 1.15fr .85fr; gap: var(--s10); } }
.contact-band h2 { color: var(--on-navy); }
.contact-band p { color: var(--on-navy-muted); }

.contact-list { list-style: none; display: flex; flex-direction: column; gap: var(--s4); }
.contact-list li { display: grid; grid-template-columns: 22px 1fr; gap: var(--s3); align-items: start; }
.contact-list .ico { color: var(--accent); margin-top: 3px; }
.contact-list a { color: inherit; text-decoration: none; font-weight: 500; }
.contact-list a:hover { color: #fff; text-decoration: underline; }
.contact-list address { font-style: normal; line-height: 1.55; }

.map-holder { position: relative; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--rule-soft); background: var(--surface-alt); }
.map-holder__placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s4); min-height: 300px; padding: var(--s6); text-align: center; }
.map-holder iframe { display: block; width: 100%; height: 380px; border: 0; }

/* --------------------------------------------------------------------------
   14. PROSE
   -------------------------------------------------------------------------- */
.prose { max-width: var(--measure); display: flex; flex-direction: column; gap: var(--s4); }
.prose > h2 { font-family: var(--font-display); font-size: 1.6rem; margin-top: var(--s5); }
.prose > h3 { font-family: var(--font-display); font-size: 1.25rem; margin-top: var(--s4); }
.prose ul, .prose ol { padding-left: 1.2em; display: flex; flex-direction: column; gap: var(--s2); }
.prose li::marker { color: var(--accent-deep); }

.value-item { display: flex; flex-direction: column; gap: var(--s1); }
.value-item__term { font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.value-item__def { color: var(--ink-muted); }

.profile-header { display: grid; gap: var(--s7); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 860px) { .profile-header { grid-template-columns: 320px 1fr; gap: var(--s9); } }
.profile-header__media { position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--navy); aspect-ratio: 3 / 4; }
.profile-header__media img { width: 100%; height: 100%; object-fit: cover; }

.spec-list { list-style: none; display: flex; flex-direction: column; gap: var(--s3); }
.spec-list li { display: flex; gap: var(--s3); }
.spec-list li::before { content: ""; width: 7px; height: 7px; background: var(--accent); margin-top: 10px; flex-shrink: 0; }

.notice {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  padding: var(--s5);
  background: var(--surface-alt);
  border: 1px solid var(--rule-soft);
  border-left: 3px solid var(--slate);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: .93rem;
  color: var(--ink-muted);
}
.notice__title { font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }

.pending {
  border-left-color: var(--accent);
  background: #FDF6F4;
}

/* --------------------------------------------------------------------------
   15. FOOTER
   -------------------------------------------------------------------------- */
.site-footer { background: var(--navy); color: var(--on-navy-muted); padding-block: var(--s9) var(--s6); }
.site-footer__grid { display: grid; gap: var(--s7); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-footer h2 { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: var(--s4); }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: var(--s2); }
.site-footer a { color: var(--on-navy-muted); text-decoration: none; font-size: .93rem; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
/* flex-start, not the default stretch: a column flex container would
   otherwise pull the square logo out to the full column width. */
.site-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s4); }
.site-footer__brand img { height: 150px; width: 150px; margin-left: -6px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3) var(--s5);
  justify-content: space-between;
  align-items: center;
  margin-top: var(--s8);
  padding-top: var(--s5);
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: .84rem;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--s4); list-style: none; }

/* --------------------------------------------------------------------------
   16. MOTION PREFERENCE
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .js .step::after { width: 100%; }
}
