:root {
  --navy: #1f2c47;
  --navy-deep: #162038;
  --gold: #a88450;
  --gold-hi: #bb9760;
  --cream: #efeee7;
  --stone: #a8a49b;

  --paper: #f2f0e9;
  --paper-alt: #e8e5da;
  --ink: #1f2c47;
  --muted: #5a6275;
  --rule: rgba(31, 44, 71, .2);
  --gold-text: #7a5d31;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --header-h: 76px;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #131b2e;
    --paper-alt: #19233b;
    --ink: #ece9df;
    --muted: #a5a9b3;
    --rule: rgba(236, 233, 223, .18);
    --gold-text: #c9a56e;
  }
}
:root[data-theme="dark"] {
  --paper: #131b2e;
  --paper-alt: #19233b;
  --ink: #ece9df;
  --muted: #a5a9b3;
  --rule: rgba(236, 233, 223, .18);
  --gold-text: #c9a56e;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  height: 100%;
  background: var(--navy-deep);
  scroll-padding-top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); font-weight: 300; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.5rem; line-height: 1.2; }
p { max-width: 62ch; }
a { color: inherit; }
[tabindex="-1"]:focus { outline: none; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 56px);
}
.rule-gold { display: block; width: 56px; height: 2px; background: var(--gold); border: 0; margin: 0 0 28px; }
.lead {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  line-height: 1.4;
  font-weight: 300;
  max-width: 34em;
}
.muted { color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--navy-deep);
  color: var(--cream);
  border-bottom: 1px solid rgba(168, 132, 80, .35);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--cream); }
.brand svg { width: 44px; height: 44px; flex: none; }
.lockup { display: flex; flex-direction: column; gap: 5px; width: max-content; }
.lockup .name { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; letter-spacing: .07em; line-height: 1; }
.lockup .gold-line { height: 1.5px; background: var(--gold); }
.lockup .sub { font-size: .62rem; letter-spacing: .5em; color: var(--stone); line-height: 1; padding-left: .1em; }
.lockup .tag { font-family: var(--sans); font-style: italic; font-size: .8rem; color: var(--stone); letter-spacing: 0; margin-top: 5px; }

.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
.nav a.link {
  text-decoration: none;
  font-size: .98rem;
  padding: 6px 0;
  border-bottom: 1.5px solid transparent;
  color: #d9d8d1;
}
.nav a.link:hover { color: #fff; border-bottom-color: var(--gold); }
.nav a.link[aria-current="page"] { color: #fff; border-bottom-color: var(--gold); }
.menu-btn {
  display: none;
  background: none; border: 1px solid rgba(239, 238, 231, .4); color: var(--cream);
  font: inherit; font-size: .95rem; padding: 8px 14px; border-radius: 2px; cursor: pointer;
}

.btn {
  display: inline-block;
  font: 600 .98rem/1 var(--sans);
  padding: 15px 26px;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid var(--gold);
  background: var(--gold);
  color: #121a2e;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--gold-hi); border-color: var(--gold-hi); }
.btn.ghost { background: transparent; color: var(--cream); border-color: rgba(239, 238, 231, .55); }
.btn.ghost:hover { border-color: var(--cream); background: rgba(239, 238, 231, .08); }
.btn.small { padding: 11px 18px; font-size: .92rem; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: var(--cream); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  padding-block: clamp(48px, 8vw, 104px) clamp(40px, 6vw, 72px);
}
.hero h1 { color: #f6f5ef; }
.hero p.sub { margin-top: 26px; font-size: 1.2rem; color: #cdd0d8; max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-visual { position: relative; width: 100%; max-width: 330px; justify-self: center; }
.portrait-wrap { position: relative; }
.caption { margin-top: 26px; text-align: center; font-family: var(--serif); font-weight: 400; font-size: 1.45rem; letter-spacing: .03em; color: #f6f5ef; max-width: none; }
.portrait { border: 4px solid var(--cream); border-radius: 50%; padding: 10px; aspect-ratio: 1; }
.portrait img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #fff; }
.badge { position: absolute; left: -7%; bottom: -3%; width: 38%; aspect-ratio: 1; background: var(--navy); border-radius: 50%; padding: 6%; }
.badge .ring { stroke-width: 12; }
.hero-visual svg { display: block; width: 100%; height: auto; }
.hero-visual .ring, .hero-visual .shaft, .hero-visual .head {
  fill: none; stroke-dasharray: 1; stroke-dashoffset: 0;
}
.ring { stroke: var(--cream); stroke-width: 9; }
.shaft, .head { stroke: var(--gold); stroke-width: 24; stroke-linecap: round; stroke-linejoin: round; }
@keyframes draw {
  0% { stroke-dashoffset: 1; opacity: 0; }
  2% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}
.hero-visual .ring { animation: draw 1.7s cubic-bezier(.45, .05, .25, 1) backwards; }
.hero-visual .shaft { animation: draw .9s cubic-bezier(.4, 0, .2, 1) 1.05s backwards; }
.hero-visual .head { animation: draw .45s ease-out 1.85s backwards; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(168, 132, 80, .55);
}
.hero-stats div { padding: 26px 28px 30px 0; }
.hero-stats div + div { padding-left: 28px; border-left: 1px solid rgba(239, 238, 231, .14); }
.hero-stats strong { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(1.3rem, 2.3vw, 1.7rem); line-height: 1.3; color: #f6f5ef; max-width: 17em; text-wrap: balance; }
.hero-stats span { display: block; margin-top: 10px; font-size: .95rem; color: #b9bcc6; max-width: 24ch; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section.alt { background: var(--paper-alt); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split > .sticky { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 28px); }
.split h2 + p { margin-top: 20px; color: var(--muted); }

.rows { border-bottom: 1px solid var(--rule); }
.row { border-top: 1px solid var(--rule); padding-block: 30px; }
.row h3 { margin-bottom: 10px; }
.row p { color: var(--muted); }
.row .for { margin-top: 12px; font-size: .96rem; color: var(--ink); }
.row .for b { font-weight: 600; }

a.row-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  gap: 24px;
  align-items: center;
  text-decoration: none;
}
a.row-link h3 { transition: color .2s; }
a.row-link:hover h3 { color: var(--gold-text); }
a.row-link svg { width: 32px; height: 32px; color: var(--ink); opacity: .55; transition: opacity .2s, transform .25s; }
a.row-link:hover svg { opacity: 1; transform: translate(3px, -3px); }

.industries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; margin-top: 44px; }
.industries li {
  list-style: none;
  border-top: 1px solid var(--rule);
  padding-block: 18px 22px;
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.25;
}
.industries { padding: 0; }

.band { background: var(--navy); color: var(--cream); padding-block: clamp(56px, 8vw, 104px); }
.band blockquote { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(1.6rem, 3.2vw, 2.5rem); line-height: 1.25; max-width: 24em; text-wrap: balance; }
.band .facts { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 36px; color: #c4c7d0; font-size: .98rem; }
.band .facts b { color: var(--gold-hi); font-weight: 500; }
.band .btn { margin-top: 36px; }

/* page headers */
.page-head { padding-block: clamp(56px, 8vw, 104px) clamp(36px, 5vw, 64px); }
.page-head h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
.page-head .lead { margin-top: 26px; color: var(--muted); }

/* services */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 40px; margin-top: 56px; padding: 0; counter-reset: s; }
.steps li { list-style: none; }
.steps .num {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1.5px solid var(--ink);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.25rem; color: var(--gold-text);
  margin-bottom: 18px;
}
.steps h3 { font-size: 1.3rem; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 1rem; }

.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 88px); margin-top: 48px; }
.cols-2 h3 { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--gold); }
.cols-2 .item + .item { margin-top: 24px; }
.cols-2 .item b { display: block; font-weight: 600; margin-bottom: 4px; }
.cols-2 .item p { color: var(--muted); }

details { border-top: 1px solid var(--rule); }
details:last-of-type { border-bottom: 1px solid var(--rule); }
summary {
  cursor: pointer; list-style: none;
  font-family: var(--serif); font-size: 1.3rem; line-height: 1.3;
  padding: 22px 48px 22px 0; position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 6px; top: 50%;
  width: 11px; height: 11px;
  border-right: 2px solid var(--gold-text); border-bottom: 2px solid var(--gold-text);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .25s;
}
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details p { padding: 0 48px 24px 0; color: var(--muted); }

/* about */
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px clamp(32px, 6vw, 88px); margin-top: 48px; }
.principles > div { border-top: 2px solid var(--gold); padding-top: 20px; }
.principles h3 { margin-bottom: 10px; }
.principles p { color: var(--muted); }
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 6vw, 88px); margin-top: 48px; }
.person { border-top: 1px solid var(--rule); padding-block: 28px 32px; }
.person p { max-width: none; font-size: 1.05rem; line-height: 1.6; }

/* training */
.training-title { font-size: clamp(1.9rem, 3.7vw, 3rem); font-weight: 300; max-width: 22em; }
.training-format { margin-top: 24px; font-size: 1.15rem; color: var(--gold-text); font-weight: 500; max-width: none; }
.goals .row { padding-block: 26px; }
.goals .row p { color: var(--ink); font-size: 1.15rem; max-width: none; }

/* cases */
.case { border-top: 1px solid var(--rule); padding-block: 40px 44px; }
.case:last-of-type { border-bottom: 1px solid var(--rule); }
.case .meta { display: flex; flex-wrap: wrap; gap: 8px 40px; margin-bottom: 26px; }
.case .meta span { display: block; font-size: .85rem; color: var(--muted); }
.case .meta b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.3rem; color: var(--ink); }
.case .triple { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.case h4 { font-size: .98rem; font-weight: 600; margin: 0 0 8px; color: var(--gold-text); }
.case .triple p { font-size: 1rem; color: var(--ink); }
.articles .row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: baseline; }
.articles .soon { color: var(--muted); font-size: .95rem; }

/* contact */
.contact { background: var(--navy-deep); color: var(--cream); padding-block: clamp(64px, 9vw, 112px); }
.contact h2 { color: #f6f5ef; }
.contact .grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 96px); }
.contact .intro p { margin-top: 20px; color: #c4c7d0; }
.contact dl { margin: 36px 0 0; display: grid; gap: 18px; }
.contact dt { font-size: .85rem; color: var(--stone); }
.contact dd { margin: 2px 0 0; font-size: 1.05rem; }
.contact dd a { text-decoration: none; border-bottom: 1px solid var(--gold); }
.contact .cv { margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(239, 238, 231, .18); color: #c4c7d0; font-size: .98rem; }
.contact .cv a { color: var(--cream); border-bottom: 1px solid var(--gold); text-decoration: none; }

form { display: grid; gap: 22px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
label { display: block; font-size: .9rem; color: #c4c7d0; margin-bottom: 6px; }
input[type=text], input[type=email], textarea {
  width: 100%;
  background: rgba(239, 238, 231, .06);
  border: 1px solid rgba(239, 238, 231, .28);
  border-radius: 2px;
  color: #f6f5ef;
  font: inherit;
  padding: 13px 14px;
}
input:focus-visible, textarea:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 1px; border-color: var(--gold-hi); }
textarea { min-height: 130px; resize: vertical; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: #c4c7d0; }
.consent input { margin-top: 4px; accent-color: var(--gold); flex: none; width: 17px; height: 17px; }
.consent label { margin: 0; }
.form-note { font-size: .88rem; color: var(--stone); min-height: 1.3em; }
form .btn { justify-self: start; }

/* footer */
.site-footer { background: #0f172b; color: #b9bcc6; padding-block: 44px; font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px; }
.site-footer .brand { align-items: flex-start; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.site-footer nav a { text-decoration: none; color: #d4d6dc; }
.site-footer nav a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; }
.site-footer .legal { width: 100%; padding-top: 24px; border-top: 1px solid rgba(239, 238, 231, .12); font-size: .85rem; color: #8f93a0; }

[hidden] { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .menu-btn { display: inline-block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-deep);
    border-bottom: 1px solid rgba(168, 132, 80, .35);
    padding: 8px clamp(20px, 5vw, 56px) 24px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a.link { padding: 14px 0; border-bottom: 1px solid rgba(239, 238, 231, .1); font-size: 1.05rem; }
  .nav .btn { margin-top: 18px; text-align: center; }
  .hero-grid, .split, .contact .grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 250px; order: -1; justify-self: start; margin-left: 12px; }
  .split > .sticky { position: static; }
  .industries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case .triple { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}
@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .brand svg { width: 38px; height: 38px; }
  .lockup .name { font-size: 1.25rem; }
  .lockup .tag { display: none; }
  .hero-stats { grid-template-columns: minmax(0, 1fr); }
  .hero-stats div, .hero-stats div + div { padding: 20px 0; border-left: 0; }
  .hero-stats div + div { border-top: 1px solid rgba(239, 238, 231, .14); }
  .steps, .cols-2, .principles, .team, .fields { grid-template-columns: minmax(0, 1fr); }
  .articles .row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  summary { font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-visual .ring, .hero-visual .shaft, .hero-visual .head { animation: none; }
  a.row-link svg, summary::after, .btn { transition: none; }
}

/* PHP version additions */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
