/* OSP Incorporated — site styles. Plain CSS, no build step. */

@font-face { font-family: "Libre Caslon Display"; src: url("../fonts/libre-caslon-display-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url("../fonts/libre-caslon-text-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url("../fonts/libre-caslon-text-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url("../fonts/libre-caslon-text-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Albert Sans"; src: url("../fonts/albert-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --navy-950: #06101f;
  --navy-900: #0a1a33;
  --navy-800: #10264a;
  --navy-700: #1a3560;
  --gold: #c6a052;
  --gold-soft: #e3c98c;
  --gold-ink: #86682b;
  --paper: #f7f8fa;
  --mist: #eceff4;
  --ink: #0a1a33;
  --slate: #4b5871;
  --slate-light: #aab4c8;
  --line: rgba(10, 26, 51, 0.13);
  --line-dark: rgba(227, 201, 140, 0.2);
  --display: "Libre Caslon Display", "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "Albert Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(20px, 4.2vw, 56px);
  --section: clamp(84px, 10vw, 148px);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
svg { flex-shrink: 0; }
::selection { background: var(--gold-soft); color: var(--navy-950); }

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

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--gold); color: var(--navy-950); padding: 10px 16px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

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

/* ---------- Type ---------- */
.display { font-family: var(--display); font-size: clamp(2.6rem, 5.4vw, 5.4rem); line-height: 1.04; letter-spacing: -0.012em; }
.h2 { font-family: var(--display); font-size: clamp(2.1rem, 3.7vw, 3.5rem); line-height: 1.08; letter-spacing: -0.008em; }
.h3 { font-family: var(--serif); font-size: 1.45rem; line-height: 1.25; }
.lead { font-family: var(--serif); font-size: clamp(1.2rem, 1.6vw, 1.42rem); line-height: 1.6; }
.label {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.muted { color: var(--slate); }
.on-dark .muted, .on-dark .muted p { color: var(--slate-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px;
  font: 600 0.95rem/1 var(--sans); letter-spacing: 0.02em;
  text-decoration: none; border: 1px solid transparent; border-radius: 2px;
  cursor: pointer; transition: background-color .2s, border-color .2s, color .2s;
}
.btn svg { width: 19px; height: 19px; }
.btn-gold { background: var(--gold); color: var(--navy-950); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-line { border-color: rgba(255, 255, 255, 0.45); color: #fff; background: transparent; }
.btn-line:hover { border-color: var(--gold); color: var(--gold-soft); }
.btn-navy { background: var(--navy-900); color: #fff; }
.btn-navy:hover { background: var(--navy-700); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--gold-ink); color: var(--gold-ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.text-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  color: var(--ink); border-bottom: 1px solid var(--gold); padding-bottom: 4px;
}
.text-link svg { width: 18px; height: 18px; transition: transform .2s; }
.text-link:hover svg { transform: translateX(3px); }
.text-link:hover { color: var(--gold-ink); }
.on-dark .text-link { color: #fff; }
.on-dark .text-link:hover { color: var(--gold-soft); }

/* ---------- Lockup (logo) ---------- */
.lockup { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; }
.lockup .logo { display: block; height: 64px; width: auto; }
.footer-brand .lockup .logo { height: 96px; }
.lockup .mark { width: 74px; height: auto; }
.lockup .words { display: flex; flex-direction: column; gap: 3px; border-left: 1px solid var(--line-dark); padding-left: 14px; }
.lockup .words b { font: 500 0.78rem/1 var(--sans); letter-spacing: 0.3em; }
.lockup .words span { font: 400 0.62rem/1 var(--sans); letter-spacing: 0.32em; color: var(--gold-soft); }
.mark .swoosh { fill: url(#osp-gold); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  color: #fff; transition: background-color .35s, box-shadow .35s, height .35s;
}
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-dark), transparent); opacity: 0; transition: opacity .35s; }
.site-header.is-solid { background: rgba(6, 16, 31, 0.96); }
.site-header.is-solid::after { opacity: 1; }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links > li { position: relative; }
.nav-links a, .nav-links button {
  font: 500 0.92rem/1 var(--sans); color: rgba(255, 255, 255, 0.86); text-decoration: none;
  background: none; border: 0; padding: 10px 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.nav-links a:hover, .nav-links button:hover, .nav-links [aria-current="page"] { color: #fff; }
.nav-links [aria-current="page"] { box-shadow: inset 0 -1px 0 var(--gold); }
.nav-links button svg { width: 10px; height: 10px; transition: transform .2s; }
.dropdown {
  position: absolute; top: calc(100% + 14px); left: -28px; width: 330px;
  background: var(--navy-950); border: 1px solid var(--line-dark); padding: 14px 0;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -15px; height: 15px; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown, .has-dropdown.is-open .dropdown { opacity: 1; visibility: visible; transform: none; }
.has-dropdown:hover button svg, .has-dropdown.is-open button svg { transform: rotate(180deg); }
.dropdown a { display: flex; padding: 11px 28px; width: 100%; font-size: 0.93rem; }
.dropdown a:hover { background: rgba(255, 255, 255, 0.04); color: var(--gold-soft); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { min-height: 44px; padding: 10px 20px; font-size: 0.88rem; }
.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3); color: #fff; background: none; cursor: pointer; transition: border-color .2s, color .2s;
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold-soft); }
.icon-btn svg { width: 19px; height: 19px; }
.menu-toggle { display: none; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 60; background: var(--navy-950); color: #fff;
  display: flex; flex-direction: column; padding: 0 var(--gutter) 32px; overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu .top { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.mobile-menu nav { margin-top: 18px; }
.mobile-menu nav > a { display: block; font: 400 1.9rem/1.2 var(--display); text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line-dark); }
.mobile-menu .sub { padding: 10px 0 14px; border-bottom: 1px solid var(--line-dark); }
.mobile-menu .sub p { color: var(--gold-soft); margin: 10px 0 6px; }
.mobile-menu .sub a { display: block; padding: 8px 0; text-decoration: none; color: rgba(255, 255, 255, 0.82); }
.mobile-menu .btn-row { margin-top: 28px; }
.mobile-menu .btn { flex: 1 1 100%; }
.mobile-menu .contact-mini { margin-top: 28px; color: var(--slate-light); font-size: 0.95rem; }
.mobile-menu .contact-mini a { color: #fff; text-decoration: none; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: var(--navy-950); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; transform: scale(1.06); transition: transform 2.8s cubic-bezier(.2, .7, .1, 1); }
.is-loaded .hero-media img { transform: scale(1); }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 16, 31, 0.62) 0%, rgba(6, 16, 31, 0) 22%, rgba(6, 16, 31, 0) 40%, rgba(6, 16, 31, 0.7) 66%, rgba(6, 16, 31, 0.96) 100%),
    linear-gradient(90deg, rgba(6, 16, 31, 0.55) 0%, rgba(6, 16, 31, 0) 60%);
}
.hero-inner { position: relative; padding-top: calc(var(--header-h) + 40px); padding-bottom: 36px; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4.9rem); }
@media (min-width: 901px) { .hero h1 .line > span { white-space: nowrap; } }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero h1 .line > span { display: block; transform: translateY(105%); transition: transform 1.1s cubic-bezier(.2, .7, .1, 1); }
.is-loaded .hero h1 .line > span { transform: none; }
.is-loaded .hero h1 .line:nth-child(2) > span { transition-delay: .12s; }
.is-loaded .hero h1 .line:nth-child(3) > span { transition-delay: .24s; }
.hero-swoosh { display: block; width: min(560px, 82vw); height: auto; margin: 22px 0 26px -6px; overflow: visible; }
.hero-swoosh path { fill: none; stroke: url(#swoosh-grad); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 700; stroke-dashoffset: 700; transition: stroke-dashoffset 2s cubic-bezier(.6, .1, .2, 1) .5s; }
.is-loaded .hero-swoosh path { stroke-dashoffset: 0; }
.hero-sub { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 56px; align-items: end; }
.hero-sub p { max-width: 46ch; color: rgba(255, 255, 255, 0.84); font-size: 1.1rem; margin: 0; }
.hero-sub p em { font-family: var(--serif); font-style: italic; color: var(--gold-soft); font-size: 1.25rem; display: block; margin-bottom: 8px; }
.hero-fade { opacity: 0; transform: translateY(14px); transition: opacity 1s ease .7s, transform 1s ease .7s; }
.is-loaded .hero-fade { opacity: 1; transform: none; }
.hero-strip { position: relative; border-top: 1px solid var(--line-dark); margin-top: 48px; }
.hero-strip .wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hero-strip a, .hero-strip div.cell { display: flex; flex-direction: column; gap: 6px; padding: 22px 28px 26px 0; text-decoration: none; color: #fff; }
.hero-strip .cell + .cell { padding-left: 28px; border-left: 1px solid var(--line-dark); }
.hero-strip .label { color: var(--gold-soft); font-size: 0.68rem; white-space: nowrap; }
.hero-strip strong { font-weight: 400; font-size: 1.02rem; }
.hero-strip a:hover strong { color: var(--gold-soft); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; min-height: 64vh; min-height: 64svh; display: flex; align-items: flex-end; color: #fff; background: var(--navy-950); overflow: hidden; }
.page-hero .hero-media img { transform: none; object-position: 50% 50%; }
.page-hero .hero-media::after {
  background: linear-gradient(180deg, rgba(6, 16, 31, 0.7) 0%, rgba(6, 16, 31, 0.35) 35%, rgba(6, 16, 31, 0.92) 100%), linear-gradient(90deg, rgba(6, 16, 31, 0.6), rgba(6, 16, 31, 0) 70%);
}
.page-hero .wrap { position: relative; padding-top: calc(var(--header-h) + 60px); padding-bottom: clamp(48px, 6vw, 80px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0 0 22px; padding: 0; font-size: 0.86rem; color: rgba(255, 255, 255, 0.7); }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--gold); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--gold-soft); }
.page-hero h1 { max-width: 18ch; }
.page-hero .tagline { font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 1.6vw, 1.4rem); color: var(--gold-soft); margin: 18px 0 0; }
.page-hero .rule { display: block; width: 64px; height: 1px; background: var(--gold); margin: 26px 0 28px; }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section.tight { padding: clamp(64px, 7vw, 100px) 0; }
.bg-paper { background: var(--paper); }
.bg-mist { background: var(--mist); }
.bg-white { background: #fff; }
.bg-navy { background: var(--navy-900); color: #fff; }
.bg-deep { background: var(--navy-950); color: #fff; }

.section-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head p { margin: 0; max-width: 44ch; }
.on-dark .section-head p { color: var(--slate-light); }
.kicker { display: block; color: var(--gold-ink); margin-bottom: 18px; }
.on-dark .kicker { color: var(--gold); }

/* Intro */
.intro-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 40px clamp(48px, 7vw, 120px); }
.intro-grid .h2 { max-width: 15ch; }
.intro-body p { color: var(--slate); max-width: 58ch; }
.intro-body .lead { color: var(--ink); }
.intro-body .text-link { margin-top: 12px; }

.triad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(64px, 8vw, 112px); border-top: 1px solid var(--line); }
.triad > div { padding: 34px 40px 0 0; }
.triad > div + div { padding-left: 40px; border-left: 1px solid var(--line); }
.triad h3 { font-family: var(--display); font-size: 2rem; margin-bottom: 10px; }
.triad p { color: var(--slate); margin: 0; max-width: 34ch; }
.on-dark .triad { border-color: var(--line-dark); }
.on-dark .triad > div + div { border-color: var(--line-dark); }
.on-dark .triad p { color: var(--slate-light); }

/* Practice index */
.practice { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.practice-media { margin: 0; position: sticky; top: calc(var(--header-h) + 32px); aspect-ratio: 4 / 5; }
.practice-media::before { content: ""; position: absolute; inset: 0; transform: translate(16px, 16px); border: 1px solid var(--gold); opacity: 0.55; }
.practice-media .frame { position: absolute; inset: 0; overflow: hidden; background: var(--navy-800); }
.practice-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .6s ease, transform 1.2s ease; }
.practice-media img.is-active { opacity: 1; transform: none; }
.practice-media .frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 16, 31, 0) 50%, rgba(6, 16, 31, 0.75)); }
.practice-media figcaption { position: absolute; left: 28px; right: 28px; bottom: 24px; z-index: 1; color: var(--gold-soft); font-family: var(--serif); font-style: italic; font-size: 1.15rem; }
.practice-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-dark); }
.practice-list a {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) 24px; gap: 22px; align-items: start;
  padding: 28px 8px 28px 0; text-decoration: none; color: #fff; border-bottom: 1px solid var(--line-dark);
  transition: background-color .3s, padding .3s;
}
.practice-list .ico { width: 52px; height: 52px; border: 1px solid var(--line-dark); border-radius: 50%; display: grid; place-items: center; color: var(--gold); transition: border-color .3s; }
.practice-list .ico svg { width: 24px; height: 24px; }
.practice-list h3 { font-family: var(--serif); font-size: clamp(1.3rem, 1.9vw, 1.6rem); line-height: 1.25; margin: 4px 0 8px; transition: color .3s; }
.practice-list p { margin: 0; color: var(--slate-light); font-size: 0.98rem; max-width: 52ch; }
.practice-list .arrow { width: 22px; height: 22px; color: var(--gold); margin-top: 12px; opacity: 0.45; transition: opacity .3s, transform .3s; }
.practice-list a:hover, .practice-list a.is-active { background: linear-gradient(90deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)); padding-left: 14px; }
.practice-list a:hover h3, .practice-list a.is-active h3 { color: var(--gold-soft); }
.practice-list a:hover .ico, .practice-list a.is-active .ico { border-color: var(--gold); }
.practice-list a:hover .arrow, .practice-list a.is-active .arrow { opacity: 1; transform: translateX(4px); }
.on-light .practice-list { border-color: var(--line); }
.on-light .practice-list a { color: var(--ink); border-color: var(--line); }
.on-light .practice-list p { color: var(--slate); }
.on-light .practice-list .ico { border-color: var(--line); color: var(--gold-ink); }
.on-light .practice-list a:hover h3, .on-light .practice-list a.is-active h3 { color: var(--gold-ink); }
.on-light .practice-list a:hover, .on-light .practice-list a.is-active { background: linear-gradient(90deg, rgba(10, 26, 51, 0.035), rgba(10, 26, 51, 0)); }

/* Commitment quote */
.quote-band { position: relative; color: #fff; overflow: hidden; background: var(--navy-950); }
.quote-band .hero-media img { object-position: 80% 40%; transform: none; }
.quote-band .hero-media::after { background: linear-gradient(90deg, rgba(6, 16, 31, 0.97) 0%, rgba(6, 16, 31, 0.9) 45%, rgba(6, 16, 31, 0.55) 80%, rgba(6, 16, 31, 0.4) 100%); }
.quote-band .wrap { position: relative; }
.quote-band blockquote { margin: 0; max-width: 30ch; font-family: var(--display); font-size: clamp(1.9rem, 3.3vw, 3.1rem); line-height: 1.18; }
.quote-band blockquote::before { content: "\201C"; display: block; font-size: 5rem; line-height: 0.6; height: 0.45em; color: var(--gold); }
.quote-band .after { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 56px; align-items: end; margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--line-dark); }
.quote-band .after p { margin: 0; max-width: 60ch; color: var(--slate-light); }
.values { display: flex; flex-wrap: wrap; gap: 10px 0; color: var(--gold-soft); }
.values span { white-space: nowrap; padding: 0 18px; border-left: 1px solid var(--gold); line-height: 1; }
.values span:first-child { padding-left: 0; border-left: 0; }

/* Why OSP */
.why { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
.why-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--navy-900); margin: 0; }
.why-media img { width: 100%; height: calc(100% - 64px); object-fit: cover; object-position: 28% 50%; }
.why-media .caption { position: absolute; left: 0; bottom: 0; right: 0; height: 64px; margin: 0; display: flex; align-items: center; padding: 0 28px; background: var(--navy-900); border-top: 2px solid var(--gold); color: var(--gold-soft); font-family: var(--serif); font-style: italic; font-size: 1.1rem; }
.why h2 { margin-bottom: 18px; }
.why-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 44px; border-top: 1px solid var(--line); }
.why-grid > div { padding: 32px 32px 32px 0; border-bottom: 1px solid var(--line); }
.why-grid > div:nth-child(even) { padding-left: 32px; padding-right: 0; border-left: 1px solid var(--line); }
.why-grid .ico { width: 54px; height: 54px; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-items: center; color: var(--gold-ink); margin-bottom: 20px; }
.why-grid .ico svg { width: 25px; height: 25px; }
.why-grid h3 { font-family: var(--serif); font-size: 1.28rem; margin-bottom: 8px; }
.why-grid p { margin: 0; color: var(--slate); font-size: 0.99rem; }

/* Contact band (from Omar's contact design) */
.contact-band { position: relative; background: var(--navy-900); color: #fff; overflow: hidden; }
.contact-band .band-photo { position: relative; height: clamp(220px, 32vw, 420px); }
.contact-band .band-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.contact-band .band-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 26, 51, 0.1) 0%, rgba(10, 26, 51, 0.2) 55%, var(--navy-900) 100%); }
.contact-band .band-photo::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; z-index: 1; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.contact-band .wrap { position: relative; padding-top: clamp(56px, 6vw, 80px); padding-bottom: var(--section); }
.contact-band h2 { text-align: center; }
.contact-band .sub { text-align: center; color: var(--slate-light); max-width: 52ch; margin: 18px auto 0; }
.offices { display: grid; grid-template-columns: 1fr 1fr; margin: 56px auto 0; max-width: 980px; }
.office { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 18px; padding: 6px 40px; }
.office + .office { border-left: 1px solid var(--gold); }
.office svg { width: 34px; height: 34px; color: var(--gold); }
.office h3 { color: var(--gold); font-family: var(--sans); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 10px; }
.office address { font-style: normal; font-size: 1.1rem; line-height: 1.55; }
.office .text-link { margin-top: 16px; font-size: 0.9rem; }
.switchboard {
  display: grid; grid-template-columns: 56px 1px minmax(0, 1fr); gap: 26px; align-items: center;
  max-width: 640px; margin: 52px auto 0; padding: 22px 32px; text-decoration: none; color: #fff;
  border: 1px solid var(--gold); border-radius: 6px;
  background: linear-gradient(110deg, rgba(198, 160, 82, 0.1), rgba(198, 160, 82, 0) 60%);
  transition: background-color .3s;
}
.switchboard:hover { background-color: rgba(198, 160, 82, 0.08); }
.switchboard svg { width: 44px; height: 44px; color: var(--gold); }
.switchboard i { width: 1px; height: 48px; background: var(--gold); opacity: 0.7; }
.switchboard .label { color: var(--gold); display: block; margin-bottom: 4px; }
.switchboard strong { font: 600 clamp(1.7rem, 3vw, 2.2rem)/1.1 var(--sans); letter-spacing: 0.04em; }
.contact-lines { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 56px; margin-top: 40px; }
.contact-lines a { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; }
.contact-lines svg { width: 26px; height: 26px; color: var(--gold); }
.contact-lines .label { display: block; color: var(--gold); font-size: 0.66rem; }
.contact-lines a:hover span:last-child { color: var(--gold-soft); }
.contact-band .btn-row { justify-content: center; margin-top: 48px; }
.motto { text-align: center; margin-top: clamp(64px, 7vw, 96px); padding-top: 40px; border-top: 1px solid var(--line-dark); }
.motto p { font-family: var(--serif); letter-spacing: 0.24em; text-transform: uppercase; font-size: clamp(0.9rem, 1.4vw, 1.1rem); margin: 0; line-height: 1.9; }

/* Software band */
.software { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 64px; align-items: center; padding: clamp(36px, 4vw, 56px); background: #fff; border: 1px solid var(--line); position: relative; }
.software::before { content: ""; position: absolute; left: -1px; top: -1px; width: 88px; height: 2px; background: var(--gold); }
.software .kicker { margin-bottom: 12px; }
.software h2 { font-family: var(--display); font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.15; margin-bottom: 12px; }
.software p { margin: 0; color: var(--slate); max-width: 56ch; }
.software .btn-row { justify-content: flex-end; }

/* ---------- Practice page ---------- */
.article { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.article .lead { margin-bottom: 1.4em; }
.article .body p { color: var(--slate); max-width: 64ch; }
.article h2 { font-family: var(--display); font-size: clamp(1.8rem, 2.6vw, 2.4rem); margin: clamp(48px, 5vw, 64px) 0 24px; }
.help-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.help-list li { padding: 18px 20px 18px 30px; border-bottom: 1px solid var(--line); position: relative; }
.help-list li:nth-child(even) { border-left: 1px solid var(--line); }
.help-list li::before { content: ""; position: absolute; left: 6px; top: 31px; width: 12px; height: 1px; background: var(--gold); }
.help-list li:nth-child(even)::before { left: 6px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.steps li:first-child { border-top: 1px solid var(--line); }
.steps li::before { content: counter(step); font-family: var(--display); font-size: 2.2rem; line-height: 1; color: var(--gold-ink); }
.steps h3 { font-family: var(--serif); font-size: 1.15rem; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--slate); }
.aside { position: sticky; top: calc(var(--header-h) + 28px); background: var(--navy-900); color: #fff; padding: 36px 32px; }
.aside::before { content: ""; position: absolute; top: 0; left: 0; width: 72px; height: 2px; background: var(--gold); }
.aside h2 { font-family: var(--display); font-size: 1.7rem; line-height: 1.2; margin: 0 0 12px; }
.aside p { color: var(--slate-light); font-size: 0.97rem; }
.aside .btn { width: 100%; margin-top: 10px; }
.aside dl { margin: 28px 0 0; padding-top: 24px; border-top: 1px solid var(--line-dark); display: grid; gap: 16px; }
.aside dt { color: var(--gold); font-size: 0.66rem; }
.aside dd { margin: 2px 0 0; }
.aside dd a { text-decoration: none; }
.aside dd a:hover { color: var(--gold-soft); }

.others { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.others a { display: flex; flex-direction: column; gap: 14px; padding: 26px 24px 28px 0; text-decoration: none; border-bottom: 1px solid var(--line); }
.others a:not(:nth-child(4n + 1)) { padding-left: 24px; border-left: 1px solid var(--line); }
.others .ico { color: var(--gold-ink); }
.others .ico svg { width: 26px; height: 26px; }
.others span { font-family: var(--serif); font-size: 1.1rem; line-height: 1.3; }
.others a:hover span { color: var(--gold-ink); }

/* ---------- Contact page ---------- */
.office-cards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 40px); }
.office-card { background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; }
.office-card .ph { aspect-ratio: 16 / 9; overflow: hidden; position: relative; }
.office-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.office-card .ph::after { content: ""; position: absolute; inset: auto 0 0 0; height: 2px; background: var(--gold); }
.office-card .bd { padding: 32px 34px 36px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.office-card .label { color: var(--gold-ink); margin-bottom: 6px; }
.office-card h2 { font-family: var(--display); font-size: clamp(1.7rem, 2.4vw, 2.2rem); margin-bottom: 6px; }
.office-card address { font-style: normal; color: var(--slate); font-size: 1.05rem; margin-bottom: 22px; }
.office-card .btn-row { margin-top: auto; }

.details { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 0; margin-top: clamp(40px, 5vw, 64px); border: 1px solid var(--line); background: #fff; }
.details a { display: flex; align-items: center; gap: 18px; padding: 26px 30px; text-decoration: none; }
.details a + a { border-left: 1px solid var(--line); }
.details svg { width: 30px; height: 30px; color: var(--gold-ink); }
.details .label { display: block; color: var(--gold-ink); font-size: 0.66rem; margin-bottom: 3px; }
.details strong { font-weight: 600; font-size: 1.12rem; }
.details a:first-child strong { font-size: 1.45rem; letter-spacing: 0.03em; }
.details a:hover strong { color: var(--gold-ink); }

.book { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.book-copy .h2 { margin-bottom: 22px; }
.book-copy p { color: var(--slate-light); max-width: 46ch; }
.how { list-style: none; padding: 0; margin: 36px 0 0; counter-reset: how; border-top: 1px solid var(--line-dark); }
.how li { counter-increment: how; display: grid; grid-template-columns: 44px minmax(0, 1fr); padding: 18px 0; border-bottom: 1px solid var(--line-dark); color: rgba(255, 255, 255, 0.86); }
.how li::before { content: counter(how); font-family: var(--display); color: var(--gold); font-size: 1.5rem; line-height: 1.1; }
.form-card { background: #fff; color: var(--ink); padding: clamp(28px, 4vw, 52px); position: relative; }
.form-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--gold), var(--gold-soft) 60%, transparent); }
.form-card h3 { font-family: var(--display); font-size: 1.9rem; margin-bottom: 6px; }
.form-card > p { color: var(--slate); margin-bottom: 28px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 0.84rem; font-weight: 600; color: var(--ink); padding: 0; }
.field label .opt { font-weight: 400; color: var(--slate); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--ink);
  padding: 14px 16px; min-height: 52px; background: var(--paper); border: 1px solid rgba(10, 26, 51, 0.2); border-radius: 2px;
  transition: border-color .2s, background-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
.field select { 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 1.5l5 5 5-5' fill='none' stroke='%2386682b' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-ink); background: #fff; box-shadow: 0 0 0 3px rgba(198, 160, 82, 0.22); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #b3261e; }
.field .hint { font-size: 0.82rem; color: var(--slate); }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choices label { position: relative; font-weight: 500; font-size: 0.93rem; }
.choices input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choices span { display: inline-flex; align-items: center; min-height: 46px; padding: 10px 18px; border: 1px solid rgba(10, 26, 51, 0.2); border-radius: 2px; cursor: pointer; background: var(--paper); transition: all .2s; }
.choices input:checked + span { border-color: var(--navy-900); background: var(--navy-900); color: #fff; }
.choices input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.form-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.btn-wa { background: #1f7a4d; color: #fff; }
.btn-wa:hover { background: #17633e; }
.form-note { font-size: 0.84rem; color: var(--slate); margin: 18px 0 0; }
.form-error { display: none; color: #b3261e; font-size: 0.9rem; margin: 16px 0 0; }
.form-error.is-shown { display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, 0.82); padding: clamp(72px, 8vw, 104px) 0 0; font-size: 0.96rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.6fr)); gap: 40px; }
.footer-grid h2 { color: var(--gold); margin-bottom: 18px; font-size: 0.7rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--gold-soft); }
.footer-brand p { margin: 24px 0 0; max-width: 34ch; color: var(--slate-light); }
.footer-grid address { font-style: normal; line-height: 1.6; }
.footer-grid address + address { margin-top: 16px; }
.footer-grid address b { display: block; color: #fff; font-weight: 600; }
.footer-motto { margin-top: clamp(56px, 6vw, 80px); border-top: 1px solid var(--line-dark); padding: 30px 0 34px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 32px; align-items: center; font-size: 0.86rem; color: var(--slate-light); }
.footer-motto .serifcaps { font-family: var(--serif); letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.9); font-size: 0.82rem; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  display: inline-flex; align-items: center; gap: 10px; padding: 0 20px 0 16px; height: 54px;
  border-radius: 999px; background: var(--navy-950); color: #fff; text-decoration: none;
  border: 1px solid var(--gold); font: 600 0.92rem/1 var(--sans);
  box-shadow: 0 18px 40px -12px rgba(6, 16, 31, 0.55);
  transition: transform .25s, background-color .25s;
}
.wa-float svg { width: 24px; height: 24px; color: #25d366; }
.wa-float:hover { transform: translateY(-2px); background: var(--navy-800); }

/* 404 */
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; color: #fff; position: relative; }
.notfound .wrap { position: relative; padding-top: var(--header-h); }
.notfound p { color: var(--slate-light); margin: 20px auto 32px; max-width: 44ch; }
.notfound .btn-row { justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links, .nav-cta .btn, .nav-cta .icon-btn.wa { display: none; }
  .menu-toggle { display: inline-grid; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .others { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .others a:not(:nth-child(4n + 1)) { padding-left: 0; border-left: 0; }
  .others a:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  body { font-size: 1.02rem; }
  .lockup .mark { width: 62px; }
  .lockup .logo { height: 48px; }
  .section-head, .intro-grid, .practice, .why, .article, .book, .software, .hero-sub { grid-template-columns: minmax(0, 1fr); }
  .practice-media { display: none; }
  .triad { grid-template-columns: 1fr; }
  .triad > div, .triad > div + div { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .on-dark .triad > div { border-bottom-color: var(--line-dark); }
  .hero-strip .wrap { grid-template-columns: 1fr; }
  .hero-strip a, .hero-strip div.cell, .hero-strip .cell + .cell { padding: 14px 0; border-left: 0; border-bottom: 1px solid var(--line-dark); flex-direction: row; justify-content: space-between; align-items: baseline; gap: 16px; }
  .hero-strip .cell:last-child { border-bottom: 0; }
  .hero-strip { margin-top: 32px; }
  .quote-band .after { grid-template-columns: 1fr; }
  .why-media { aspect-ratio: 16 / 10; }
  .offices { grid-template-columns: 1fr; max-width: 520px; }
  .office { padding: 22px 0; }
  .office + .office { border-left: 0; border-top: 1px solid var(--line-dark); }
  .office-cards { grid-template-columns: 1fr; }
  .details { grid-template-columns: 1fr; }
  .details a + a { border-left: 0; border-top: 1px solid var(--line); }
  .aside { position: static; }
  .software .btn-row { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .hero-inner { padding-bottom: 20px; }
  .hero-sub .btn-row .btn { flex: 1 1 100%; }
  .hero-strip strong { font-size: 0.95rem; text-align: right; }
  .why-grid { grid-template-columns: 1fr; }
  .why-grid > div, .why-grid > div:nth-child(even) { padding: 26px 0; border-left: 0; }
  .help-list { grid-template-columns: 1fr; }
  .help-list li:nth-child(even) { border-left: 0; }
  .fields { grid-template-columns: 1fr; }
  .form-actions { grid-template-columns: 1fr; }
  .practice-list a { grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding-right: 0; }
  .practice-list .ico { width: 44px; height: 44px; }
  .practice-list .ico svg { width: 21px; height: 21px; }
  .practice-list .arrow { display: none; }
  .switchboard { grid-template-columns: 40px minmax(0, 1fr); gap: 18px; padding: 20px 22px; }
  .switchboard i { display: none; }
  .switchboard svg { width: 34px; height: 34px; }
  .contact-lines { flex-direction: column; align-items: flex-start; max-width: 520px; margin-left: auto; margin-right: auto; }
  .contact-band .btn-row .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .others { grid-template-columns: 1fr; }
  .others a, .others a:nth-child(even) { padding: 20px 0; border-left: 0; flex-direction: row; align-items: center; }
  .wa-float { padding: 0; width: 56px; justify-content: center; right: 16px; bottom: 16px; }
  .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .values { flex-direction: column; gap: 10px; }
  .values span, .values span:first-child { padding: 0 0 0 14px; border-left: 1px solid var(--gold); }
  .lockup .words b { font-size: 0.7rem; letter-spacing: 0.26em; }
  .lockup .words span { font-size: 0.56rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; animation: none !important; }
  .hero-media img { transform: none; }
  .hero h1 .line > span, .hero-fade { transform: none; opacity: 1; }
  .hero-swoosh path { stroke-dashoffset: 0; }
}

@media print {
  .site-header, .wa-float, .mobile-menu { display: none !important; }
}

@media (min-width: 901px) { .quote-band .values { flex-wrap: nowrap; } }

/* ---------- Home: the firm's logo leads the hero, centred ---------- */
.hero-inner { text-align: center; }
.hero-logo { display: block; width: clamp(300px, min(44vw, 58vh), 620px); height: auto; margin: 0 auto clamp(26px, 3vw, 44px); filter: drop-shadow(0 8px 34px rgba(6, 16, 31, 0.6)); opacity: 0; transform: translateY(10px); transition: opacity 1.2s ease, transform 1.2s cubic-bezier(.2, .7, .1, 1); }
.is-loaded .hero-logo { opacity: 1; transform: none; }
.hero h1 { font-size: clamp(2.1rem, 3.7vw, 3.6rem); }
.hero-swoosh { margin: 20px auto 24px; }
.hero-sub { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 28px; }
.hero-sub p { margin: 0 auto; }
.hero-sub .btn-row { justify-content: center; }
.hero > .hero-media::after {
  background:
    radial-gradient(ellipse 55% 50% at 50% 40%, rgba(6, 16, 31, 0.45), rgba(6, 16, 31, 0) 72%),
    linear-gradient(180deg, rgba(6, 16, 31, 0.62) 0%, rgba(6, 16, 31, 0) 22%, rgba(6, 16, 31, 0) 40%, rgba(6, 16, 31, 0.7) 66%, rgba(6, 16, 31, 0.96) 100%);
}
/* The big logo replaces the header logo at the top of the home page; it returns once the header turns solid. */
.is-home .site-header .lockup { transition: opacity .35s; }
.is-home .site-header:not(.is-solid) .lockup:not(:focus-visible) { opacity: 0; pointer-events: none; }
@media (max-width: 900px) { .hero-logo { width: min(82vw, 360px); } }
@media (prefers-reduced-motion: reduce) { .hero-logo { opacity: 1; transform: none; } }
