:root {
  --ink: #12262c;
  --ink-2: #203a41;
  --paper: #f3f1eb;
  --paper-2: #e8e6df;
  --white: #fbfaf6;
  --accent: #759ba4;
  --accent-dark: #4e747d;
  --line: rgba(18, 38, 44, .16);
  --line-dark: rgba(236, 244, 245, .16);
  --shadow: 0 24px 70px rgba(0,0,0,.13);
  --radius: 2px;
  --shell: min(1180px, calc(100vw - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 16px; background: white; padding: 10px 14px; z-index: 999; }
.skip-link:focus { top: 16px; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  color: #e9f0f1;
  background: rgba(18, 38, 44, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-wrap { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,.38); font-size: 12px; letter-spacing: .12em; font-weight: 700;
}
.brand-name { font-size: 14px; letter-spacing: .04em; }
.site-nav { display: flex; gap: 28px; align-items: center; }
.site-nav a { text-decoration: none; font-size: 13px; color: rgba(255,255,255,.72); transition: color .2s ease; }
.site-nav a:hover { color: white; }
.menu-toggle { display: none; border: 0; background: transparent; width: 42px; height: 42px; padding: 10px; }
.menu-toggle span { display: block; height: 1px; background: white; margin: 7px 0; }

.hero {
  position: relative;
  min-height: 790px;
  padding: 165px 0 100px;
  background:
    radial-gradient(circle at 85% 25%, rgba(117,155,164,.22), transparent 26%),
    linear-gradient(135deg, #10242a 0%, #142e35 54%, #17343c 100%);
  color: #edf3f4;
  overflow: hidden;
}
.hero-grid {
  position: absolute; inset: 0; opacity: .22; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to right, transparent 0%, black 32%, black 100%);
}
.hero::after {
  content: ""; position: absolute; width: 560px; height: 560px; border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%; right: -220px; top: 96px;
}
.hero-layout { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: center; }
.eyebrow, .section-kicker {
  margin: 0 0 24px; font-size: 11px; font-weight: 700; letter-spacing: .19em; text-transform: uppercase;
}
.eyebrow { color: #a6c2c8; }
.hero h1 { margin: 0; max-width: 700px; font-size: clamp(48px, 5.5vw, 76px); line-height: .99; letter-spacing: -.045em; font-weight: 560; }
.hero h1 span { color: #adc7cc; font-weight: 430; }
.hero-lead { max-width: 670px; margin: 30px 0 0; font-size: 20px; line-height: 1.55; color: rgba(236,244,245,.74); }
.hero-actions { display: flex; gap: 12px; margin-top: 38px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px;
  border: 1px solid transparent; text-decoration: none; font-size: 13px; font-weight: 650; letter-spacing: .02em; cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-1px); }
.button.primary { background: #e9efef; color: #12262c; }
.button.secondary { background: transparent; border-color: rgba(255,255,255,.28); color: #edf3f4; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 48px; color: rgba(255,255,255,.48); font-size: 11px; text-transform: uppercase; letter-spacing: .10em; }
.hero-meta span + span::before { content: "·"; margin-right: 18px; }

.analysis-card { border: 1px solid rgba(255,255,255,.14); background: rgba(4, 18, 22, .36); box-shadow: var(--shadow); backdrop-filter: blur(4px); }
.analysis-topline, .analysis-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; color: rgba(255,255,255,.48); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.analysis-topline { border-bottom: 1px solid rgba(255,255,255,.10); }
.analysis-caption { border-top: 1px solid rgba(255,255,255,.10); justify-content: center; }
.analysis-card svg { display: block; width: 100%; height: auto; }

.section { padding: 112px 0; }
.two-col { display: grid; grid-template-columns: .85fr 1.15fr; gap: 100px; }
.profile-grid { display: grid; grid-template-columns: .85fr 1.15fr; column-gap: 100px; row-gap: 32px; align-items: start; }
.section-kicker { color: var(--accent-dark); }
.section h2 { margin: 0; font-size: clamp(36px, 4vw, 58px); line-height: 1.06; letter-spacing: -.035em; font-weight: 560; }
.section-intro h2 { max-width: 510px; }
.profile-copy { max-width: 720px; }
.profile-copy p { color: #385057; }
.profile-copy .large-copy { margin-top: 0; color: var(--ink); font-size: 23px; line-height: 1.55; }
.profile-facts { display: grid; grid-template-columns: 1fr 1fr; margin-top: 0; border-top: 1px solid var(--line); }
.profile-facts div { padding: 22px 20px 22px 0; border-bottom: 1px solid var(--line); }
.profile-facts div:nth-child(odd) { border-right: 1px solid var(--line); }
.profile-facts div:nth-child(even) { padding-left: 24px; }
.profile-facts strong, .profile-facts span { display: block; }
.profile-facts strong { font-size: 15px; }
.profile-facts span { margin-top: 4px; font-size: 13px; color: #64777c; }

.expertise { background: var(--white); border-block: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; gap: 50px; align-items: end; margin-bottom: 54px; }
.section-heading > p { max-width: 360px; margin: 0 0 6px; color: #62767b; }
.expertise-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.expertise-card { min-height: 330px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.expertise-card .num { font-size: 11px; letter-spacing: .14em; color: #809297; }
.expertise-card h3 { margin: auto 0 16px; font-size: 24px; line-height: 1.12; letter-spacing: -.02em; }
.expertise-card p { margin: 0; color: #60747a; font-size: 14px; }

.experience { background: #e8e6df; }
.timeline { border-top: 1px solid var(--line); }
.timeline-row { display: grid; grid-template-columns: 150px 1fr 1.3fr; gap: 36px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: start; }
.timeline-row .period { font-size: 12px; color: #6d7d81; letter-spacing: .04em; }
.timeline-row h3 { margin: 0; font-size: 18px; }
.timeline-row .role p { margin: 4px 0 0; color: #587078; font-size: 14px; }
.timeline-row .detail { color: #42595f; font-size: 14px; max-width: 520px; }

.work { background: #12262c; color: #edf3f4; }
.work .section-kicker { color: #94b7bf; }
.work-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 82px; }
.work .muted { margin-top: 24px; color: rgba(255,255,255,.48); max-width: 400px; font-size: 13px; }
.work-cards { border-top: 1px solid var(--line-dark); }
.work-card { padding: 28px 0 32px; border-bottom: 1px solid var(--line-dark); }
.work-tag { margin-bottom: 12px; font-size: 10px; letter-spacing: .15em; color: #90aeb5; }
.work-card h3 { margin: 0 0 10px; font-size: 27px; font-weight: 520; letter-spacing: -.02em; }
.work-card p { max-width: 690px; margin: 0; color: rgba(255,255,255,.64); }
.method-line { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 19px; }
.method-line span { padding: 5px 8px; border: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.52); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }

.com2s-band { background: #d7e1e2; }
.com2s-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 90px; align-items: end; }
.com2s-layout h2 { max-width: 690px; }
.com2s-layout p { margin: 0 0 22px; color: #3d555b; }
.text-link { font-size: 13px; font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(18,38,44,.35); padding-bottom: 3px; }

.contact { background: var(--paper); }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; }
.contact-panel { padding-top: 42px; }
.contact-panel > p { color: #52686e; max-width: 500px; }
.contact-actions { display: flex; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
.contact .button.primary { background: var(--ink); color: white; }
.contact .button.secondary { color: var(--ink); border-color: rgba(18,38,44,.26); }
.button.disabled { cursor: default; opacity: .55; }
.button.disabled:hover { transform: none; }
.microcopy { font-size: 11px; opacity: .62; }

.site-footer { padding: 30px 0; background: #0d2025; color: rgba(255,255,255,.56); font-size: 11px; letter-spacing: .04em; }
.footer-layout { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-footer a { color: rgba(255,255,255,.72); text-decoration: none; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  :root { --shell: min(100% - 34px, 760px); }
  .site-nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: #12262c; padding: 20px; border-top: 1px solid rgba(255,255,255,.08); flex-direction: column; align-items: flex-start; }
  .site-nav.open { display: flex; }
  .menu-toggle { display: block; }
  .brand-name { display: none; }
  .hero { min-height: auto; padding-top: 132px; }
  .hero-layout, .two-col, .profile-grid, .work-layout, .com2s-layout, .contact-layout { grid-template-columns: 1fr; gap: 54px; }
  .profile-portrait, .profile-facts { grid-column: 1; grid-row: auto; }
  .hero-visual { max-width: 670px; }
  .expertise-grid { grid-template-columns: 1fr 1fr; }
  .timeline-row { grid-template-columns: 100px 1fr; }
  .timeline-row .detail { grid-column: 2; }
  .section { padding: 86px 0; }
}

@media (max-width: 640px) {
  :root { --shell: calc(100vw - 28px); }
  .nav-wrap { height: 68px; }
  .site-nav { top: 68px; }
  .hero { padding: 116px 0 72px; }
  .hero h1 { font-size: 48px; }
  .hero-lead { font-size: 17px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-meta { display: none; }
  .analysis-card { margin-top: 8px; }
  .section { padding: 72px 0; }
  .section h2 { font-size: 38px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 18px; }
  .profile-facts { grid-template-columns: 1fr; }
  .profile-facts div:nth-child(odd) { border-right: 0; }
  .profile-facts div:nth-child(even) { padding-left: 0; }
  .expertise-grid { grid-template-columns: 1fr; }
  .expertise-card { min-height: 255px; }
  .timeline-row { grid-template-columns: 1fr; gap: 8px; }
  .timeline-row .detail { grid-column: auto; margin-top: 8px; }
  .footer-layout { flex-direction: column; align-items: flex-start; }
}

/* v3 content refinements */
.work-role { margin: -2px 0 10px !important; color: #9ab9c0 !important; font-size: 12px; font-weight: 650; letter-spacing: .02em; }
@media (min-width: 981px) {
  .expertise-grid { grid-template-columns: repeat(5, 1fr); }
  .expertise-card { min-height: 360px; padding: 24px; }
  .expertise-card h3 { font-size: 21px; }
}

/* v6: balanced profile composition — title/copy above, portrait/facts aligned below */
.profile-intro { align-self: start; }
.profile-portrait {
  grid-column: 1;
  grid-row: 2;
  width: 228px;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--paper-2);
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(18,38,44,.08);
}
.profile-portrait img {
  display: block;
  width: 100%;
  height: auto;
}
.profile-facts {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
}
@media (max-width: 980px) {
  .profile-portrait { width: 210px; }
}
@media (max-width: 640px) {
  .profile-portrait { width: min(58vw, 210px); margin-top: 28px; }
}
