@layer reset, base, layout, components, editorial, responsive;

@layer reset {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
    overflow-x: clip;
  }

  body,
  h1,
  h2,
  h3,
  h4,
  p,
  ol,
  ul,
  dl,
  dd {
    margin: 0;
  }

  body {
    min-width: 320px;
    overflow-x: clip;
  }

  img {
    display: block;
    max-width: 100%;
  }

  a {
    color: inherit;
  }
}

/* Unified profile shell: the concise home remains the visual source. */
body.profile-page .hero {
  min-height: auto;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  align-items: start;
  gap: clamp(40px, 6vw, 92px);
  padding-block: clamp(42px, 5vw, 68px);
}

body.profile-page .hero-copy {
  padding: 14px 0 0;
}

body.profile-page .hero::before { content: none; }

body.profile-page .hero h1 {
  max-width: 10ch;
  color: var(--fg);
  font-size: clamp(3.15rem, 5vw, 4.5rem);
  line-height: .98;
  letter-spacing: -.028em;
}

body.profile-page .hero-role {
  margin-top: 16px;
  color: var(--fg);
  font-size: clamp(1.35rem, 2.15vw, 1.9rem);
  line-height: 1.2;
}

body.profile-page .hero-lead {
  max-width: 66ch;
  margin-top: 26px;
  font-size: clamp(1rem, 1.25vw, 1.13rem);
  line-height: 1.52;
}

body.profile-page .hero-note {
  max-width: 66ch;
  color: var(--muted);
}

body.profile-page .hero-portrait {
  width: min(100%, 410px);
  aspect-ratio: 1;
  align-self: start;
  justify-self: end;
  overflow: hidden;
  border: 1px solid var(--border);
}

body.profile-page .hero-portrait img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
  filter: none;
}

body.profile-page .hero-portrait::after { display: none; }

body.profile-page main > section {
  padding-block: clamp(70px, 7vw, 112px);
  border-bottom-color: var(--border);
}

body.profile-page main > section > h2 {
  max-width: 17ch;
  color: var(--fg);
  font-size: clamp(2.1rem, 3.4vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -.022em;
}

body.profile-page .section-lead {
  max-width: 72ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
}

body.profile-page .metric-grid { margin-top: clamp(36px, 5vw, 58px); }
body.profile-page .metric-grid p { min-height: 160px; padding: 24px; }
body.profile-page .metric-grid strong {
  font-size: clamp(2.25rem, 3.1vw, 3rem);
}

/* Detailed profile facelift: keep the content, repair the editorial layout. */
body.profile-page .expertise-card {
  min-height: 330px;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  align-content: start;
  column-gap: clamp(18px, 2.5vw, 34px);
  row-gap: 28px;
}

body.profile-page .expertise-card h3 {
  max-width: 15ch;
  align-self: start;
  overflow-wrap: anywhere;
}

body.profile-page .expertise-card ul {
  grid-column: 2;
  min-width: 0;
}

body.profile-page .system-chain {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  counter-reset: system-step;
}

body.profile-page .system-chain li {
  position: relative;
  min-height: 152px;
  justify-content: flex-start;
  gap: 42px;
  padding: 20px;
  counter-increment: system-step;
  color: var(--fg);
  font-size: clamp(.82rem, 1vw, .96rem);
}

body.profile-page .system-chain li::before {
  color: var(--accent);
  content: counter(system-step, decimal-leading-zero);
  font: 600 .65rem/1 var(--font-mono);
  letter-spacing: .08em;
}

body.profile-page .system-chain li:not(:last-child)::after {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: -9px;
  width: 18px;
  margin: 0;
  color: var(--accent);
  background: var(--bg);
  line-height: 1;
  text-align: center;
  transform: translateY(-50%);
}

body.profile-page .system-chain li:nth-child(6)::after {
  top: auto;
  right: 50%;
  bottom: -9px;
  transform: translateX(50%) rotate(90deg);
}

body.profile-page .system-chain li:last-child {
  grid-column: span 2;
  color: var(--deep-fg);
  background: var(--deep);
}

body.profile-page .case-results li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  min-height: 150px;
}

body.profile-page .case-results li:last-child:nth-child(odd) strong {
  max-width: none;
  font-size: clamp(1.5rem, 2.25vw, 2.15rem);
  overflow-wrap: anywhere;
  text-wrap: balance;
}

body.profile-page .case-card-featured .case-header h3,
body.profile-page #data-system h2,
body.profile-page #data-system .ai-story h3,
body.profile-page .education-engineering h3 {
  color: var(--deep-fg);
}

body.profile-page #data-system .ai-story-signal h3 {
  color: var(--fg);
}

@media (max-width: 1180px) {
  body.profile-page .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  body.profile-page .hero {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  body.profile-page .hero-portrait {
    width: min(100%, 360px);
    justify-self: start;
  }

  body.profile-page .system-chain {
    grid-template-columns: 1fr;
  }

  body.profile-page .system-chain li,
  body.profile-page .system-chain li:last-child {
    grid-column: auto;
    min-height: 82px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
  }

  body.profile-page .system-chain li:not(:last-child)::after,
  body.profile-page .system-chain li:nth-child(6)::after {
    top: auto;
    right: 50%;
    bottom: -9px;
    transform: translateX(50%) rotate(90deg);
  }

}

@media (max-width: 560px) {
  body.profile-page .hero { padding-block: 30px 44px; }
  body.profile-page .hero h1 { font-size: clamp(2.7rem, 13vw, 3.4rem); }
  body.profile-page .hero-portrait { width: 100%; }
  body.profile-page main > section { padding-block: 64px; }
  body.profile-page .metric-grid { grid-template-columns: 1fr; }
  body.profile-page .expertise-card {
    min-height: auto;
    grid-template-columns: 36px minmax(0, 1fr);
    row-gap: 22px;
  }
  body.profile-page .expertise-card ul { grid-column: 1 / -1; }
}

@layer base {
  :root {
    --paper: oklch(0.965 0.012 82);
    --paper-deep: oklch(0.925 0.018 82);
    --ink: oklch(0.205 0.018 255);
    --ink-soft: oklch(0.46 0.025 255);
    --navy: oklch(0.24 0.045 255);
    --navy-light: oklch(0.31 0.052 255);
    --signal: oklch(0.49 0.095 47);
    --signal-dark: oklch(0.41 0.085 47);
    --line: rgba(16, 43, 61, 0.2);
    --white: #fffdf8;
    --page: min(1280px, calc(100vw - 64px));
    --serif: "Prata", Georgia, "Times New Roman", serif;
    --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  }

  body {
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.55;
    text-rendering: optimizeLegibility;
  }

  h1,
  h2,
  h3 {
    font-family: var(--serif);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 0.98;
  }

  h1 {
    font-size: clamp(4.2rem, 10vw, 9.5rem);
  }

  h2 {
    max-width: 900px;
    font-size: clamp(2.5rem, 5.2vw, 5.7rem);
  }

  ::selection {
    color: var(--white);
    background: var(--signal);
  }
}

@layer layout {
  main > section {
    width: var(--page);
    margin-inline: auto;
  }

  main > section {
    padding-block: clamp(88px, 11vw, 160px);
    border-bottom: 1px solid var(--line);
  }

  .hero {
    min-height: calc(100svh - 88px);
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    align-items: end;
    gap: clamp(32px, 7vw, 104px);
  }

  .hero-copy {
    padding-bottom: clamp(64px, 8vw, 112px);
  }

  .hero-portrait {
    align-self: end;
  }

  .hero-portrait img {
    width: 100%;
    max-height: 74svh;
    object-fit: contain;
    object-position: center bottom;
    filter: saturate(0.78) contrast(1.03);
  }

  .metric-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 72px;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }

  .metric-grid p {
    min-height: 210px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .engine-list,
  .system-chain {
    padding: 0;
    list-style: none;
  }

  .engine-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    margin-top: 72px;
    counter-reset: engines;
    border-top: 1px solid var(--line);
  }

  .engine-list li {
    min-height: 230px;
    padding: 24px;
    counter-increment: engines;
    border-right: 1px solid var(--line);
  }

  .engine-list li::before {
    display: block;
    margin-bottom: 80px;
    color: var(--signal);
    content: "0" counter(engines);
    font: 700 0.75rem/1 var(--sans);
    letter-spacing: 0.12em;
  }

  .system-chain {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 52px;
  }

}

@layer components {
  .skip-link {
    position: fixed;
    z-index: 100;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    color: var(--white);
    background: var(--navy);
    transform: translateY(-150%);
  }

  .skip-link:focus {
    transform: none;
  }

  .button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border: 1px solid var(--navy);
    text-decoration: none;
  }

  .button-primary {
    color: var(--white);
    background: var(--navy);
  }

  .eyebrow,
  .section-number {
    margin-bottom: 28px;
    color: var(--signal-dark);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  .hero-role {
    margin-top: 28px;
    font-size: clamp(1.5rem, 2.5vw, 2.7rem);
    font-weight: 700;
  }

  .hero-lead,
  .section-lead {
    max-width: 760px;
    color: var(--ink-soft);
    font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  }

  .hero-lead {
    margin-top: 22px;
  }

  .hero-system {
    margin-top: 24px;
    color: var(--signal-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
  }

  .section-lead {
    margin-top: 28px;
  }

  .metric-grid strong {
    font: 500 clamp(2.25rem, 4vw, 4.4rem)/1 var(--serif);
    letter-spacing: -0.04em;
  }

  .metric-grid span {
    color: var(--ink-soft);
    font-size: 0.88rem;
  }

  .engine-outcome {
    max-width: 700px;
    margin: 32px 0 0 auto;
    color: var(--ink-soft);
  }

  .system-chain li {
    padding: 12px 16px;
    border: 1px solid var(--line);
  }

  .system-chain li:not(:last-child)::after {
    margin-left: 20px;
    color: var(--signal);
    content: "→";
  }

  .contact-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 64px;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }

  .contact-actions a {
    min-height: 120px;
    display: flex;
    align-items: flex-end;
    padding: 24px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    text-decoration: none;
  }

  a:focus-visible,
  button:focus-visible {
    outline: 3px solid var(--signal);
    outline-offset: 4px;
  }
}

@layer editorial {
  .button,
  .contact-actions a,
  .case-link {
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
  }

  .button-primary:hover {
    background: var(--signal);
    border-color: var(--signal);
  }

  .button:not(.button-primary):hover {
    color: var(--paper);
    background: var(--navy);
  }

  .hero {
    position: relative;
    isolation: isolate;
  }

  .hero::before {
    position: absolute;
    z-index: -1;
    top: 5%;
    right: 3%;
    color: var(--paper-deep);
    content: "B2C";
    font: 400 clamp(8rem, 22vw, 22rem)/0.78 var(--serif);
    letter-spacing: -0.09em;
    writing-mode: vertical-rl;
  }

  .hero h1 {
    max-width: 880px;
    color: var(--navy);
  }

  .hero-role {
    max-width: 720px;
    color: var(--signal-dark);
  }

  .hero-lead {
    color: var(--ink);
  }

  .hero-note {
    max-width: 680px;
    margin-top: 14px;
    color: var(--ink-soft);
    font-size: clamp(0.96rem, 1.25vw, 1.14rem);
  }

  .hero-portrait {
    position: relative;
    background: var(--paper-deep);
    border-top: 1px solid var(--line);
    border-right: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }

  .hero-portrait::after {
    position: absolute;
    right: -1px;
    bottom: 0;
    padding: 9px 12px;
    color: var(--paper);
    background: var(--navy);
    content: "EXECUTIVE PROFILE / 2026";
    font: 500 0.58rem/1 var(--mono);
    letter-spacing: 0.1em;
  }

  .eyebrow,
  .section-number,
  .case-index,
  .case-company,
  .case-meta,
  .story-label,
  .foundation-period,
  .education-card > p,
  .expertise-card > p {
    font-family: var(--mono);
  }

  #engines,
  #expertise,
  #foundation {
    background: var(--paper-deep);
    box-shadow: 0 0 0 100vmax var(--paper-deep);
    clip-path: inset(0 -100vmax);
  }

  #data-system {
    color: var(--paper);
    background: var(--navy);
    box-shadow: 0 0 0 100vmax var(--navy);
    clip-path: inset(0 -100vmax);
  }

  #data-system h2,
  #foundation h2 {
    max-width: 1040px;
  }

  #data-system .section-lead {
    color: color-mix(in oklch, var(--paper) 68%, var(--navy));
  }

  #data-system .section-number {
    color: oklch(0.73 0.11 47);
  }

  .metric-grid p {
    position: relative;
  }

  .metric-grid p::before {
    position: absolute;
    top: -1px;
    left: -1px;
    width: 42px;
    height: 3px;
    background: var(--signal);
    content: "";
  }

  .metric-grid strong {
    color: var(--navy);
  }

  .engine-list li {
    color: var(--navy);
    font: 400 clamp(1.35rem, 2vw, 2.05rem)/1.15 var(--serif);
  }

  .system-chain {
    display: grid;
    grid-template-columns: repeat(11, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }

  .system-chain li {
    min-height: 132px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px 10px;
    border-top: 0;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-left: 0;
    font-size: clamp(0.68rem, 0.8vw, 0.78rem);
  }

  .system-chain li::before {
    color: var(--signal);
    content: "•";
  }

  .system-chain li:not(:last-child)::after {
    align-self: flex-end;
    margin: 0;
  }

  .case-list {
    margin-top: clamp(64px, 8vw, 112px);
  }

  .case-card {
    container-type: inline-size;
    padding-block: clamp(56px, 7vw, 96px);
    border-top: 1px solid var(--line);
  }

  .case-card-featured {
    margin-bottom: 24px;
    padding-inline: clamp(24px, 4vw, 56px);
    color: var(--paper);
    background: var(--navy);
    border-top: 4px solid var(--signal);
  }

  .case-header {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 24px;
  }

  .case-index,
  .case-company,
  .case-meta {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .case-index,
  .case-company {
    color: var(--signal-dark);
  }

  .case-card-featured .case-index,
  .case-card-featured .case-company {
    color: oklch(0.73 0.11 47);
  }

  .case-header h3 {
    max-width: 960px;
    margin-top: 14px;
    color: var(--navy);
    font-size: clamp(2rem, 4vw, 4.3rem);
    line-height: 1.06;
  }

  .case-card-featured .case-header h3 {
    color: var(--paper);
  }

  .case-meta {
    margin-top: 18px;
    color: var(--ink-soft);
    line-height: 1.6;
  }

  .case-card-featured .case-meta {
    color: color-mix(in oklch, var(--paper) 65%, var(--navy));
  }

  .case-body {
    display: grid;
    grid-template-columns: 0.8fr 1fr 1.35fr;
    gap: clamp(28px, 4vw, 60px);
    margin-top: clamp(44px, 6vw, 80px);
    padding-left: 112px;
  }

  .case-body h4 {
    margin-bottom: 18px;
    color: var(--signal-dark);
    font: 600 0.65rem/1.3 var(--mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .case-card-featured .case-body h4 {
    color: oklch(0.73 0.11 47);
  }

  .case-context p,
  .case-actions li {
    color: var(--ink-soft);
    font-size: 0.9rem;
  }

  .case-card-featured .case-context p,
  .case-card-featured .case-actions li {
    color: color-mix(in oklch, var(--paper) 72%, var(--navy));
  }

  .case-actions ul,
  .case-results ul,
  .expertise-card ul,
  .operating-steps,
  .career-line,
  .challenge-list {
    padding: 0;
    list-style: none;
  }

  .case-actions li {
    position: relative;
    padding: 9px 0 9px 18px;
    border-top: 1px solid var(--line);
  }

  .case-actions li::before {
    position: absolute;
    top: 11px;
    left: 0;
    color: var(--signal);
    content: "→";
  }

  .case-results ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }

  .case-results li {
    min-height: 126px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .case-card-featured .case-actions li,
  .case-card-featured .case-results ul,
  .case-card-featured .case-results li {
    border-color: rgba(255, 253, 248, 0.18);
  }

  .case-results strong {
    color: var(--navy);
    font: 400 clamp(1.45rem, 2.5vw, 2.45rem)/1.08 var(--serif);
  }

  .case-card-featured .case-results strong {
    color: var(--paper);
  }

  .case-results span {
    color: var(--ink-soft);
    font-size: 0.75rem;
  }

  .case-card-featured .case-results span {
    color: color-mix(in oklch, var(--paper) 65%, var(--navy));
  }

  .case-link {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 34px 0 0 112px;
    color: var(--signal-dark);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
  }

  .case-card-featured .case-link {
    color: oklch(0.73 0.11 47);
  }

  .case-link:hover {
    color: var(--signal);
  }

  .expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: clamp(64px, 8vw, 108px);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }

  body.profile-page .profile-section-route {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 28px;
    color: var(--signal-dark);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
  }

  body.profile-page .profile-section-route:hover {
    color: var(--signal);
  }

  .expertise-card {
    min-height: 300px;
    display: grid;
    grid-template-columns: 46px minmax(150px, 0.8fr) minmax(180px, 1.2fr);
    gap: 20px;
    padding: clamp(24px, 3vw, 42px);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .expertise-card > p {
    color: var(--signal-dark);
    font-size: 0.68rem;
  }

  .expertise-card h3 {
    color: var(--navy);
    font-size: clamp(1.35rem, 2vw, 2.05rem);
    line-height: 1.15;
  }

  .expertise-card h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 180ms ease;
  }

  .expertise-card h3 a span {
    display: inline-block;
    margin-left: 0.2em;
    color: var(--signal-dark);
    font-size: 0.65em;
    transition: transform 180ms ease;
  }

  .expertise-card h3 a:hover {
    color: var(--signal-dark);
  }

  .expertise-card h3 a:hover span {
    transform: translate(2px, -2px);
  }

  .expertise-card li {
    padding: 9px 0;
    color: var(--ink-soft);
    font-size: 0.84rem;
    border-top: 1px solid var(--line);
  }

  .data-loop {
    margin-top: clamp(54px, 8vw, 96px);
    padding-block: clamp(32px, 4vw, 52px);
    color: var(--paper);
    font: 400 clamp(1.8rem, 4vw, 4.4rem)/1.24 var(--serif);
    border-top: 1px solid rgba(255, 253, 248, 0.2);
    border-bottom: 1px solid rgba(255, 253, 248, 0.2);
  }

  .data-lenses {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 40px;
    border-top: 1px solid rgba(255, 253, 248, 0.18);
    border-left: 1px solid rgba(255, 253, 248, 0.18);
  }

  .data-lenses span {
    min-height: 92px;
    display: flex;
    align-items: flex-end;
    padding: 16px;
    color: color-mix(in oklch, var(--paper) 75%, var(--navy));
    font-size: 0.82rem;
    border-right: 1px solid rgba(255, 253, 248, 0.18);
    border-bottom: 1px solid rgba(255, 253, 248, 0.18);
  }

  .ai-story-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 72px;
    border-top: 1px solid rgba(255, 253, 248, 0.2);
    border-left: 1px solid rgba(255, 253, 248, 0.2);
  }

  .ai-story {
    min-height: 360px;
    padding: clamp(24px, 3vw, 38px);
    border-right: 1px solid rgba(255, 253, 248, 0.2);
    border-bottom: 1px solid rgba(255, 253, 248, 0.2);
  }

  .ai-story-signal {
    color: var(--ink);
    background: oklch(0.79 0.115 64);
  }

  .story-label {
    color: oklch(0.73 0.11 47);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .ai-story-signal .story-label {
    color: var(--signal-dark);
  }

  .ai-story h3 {
    margin-top: 60px;
    font-size: clamp(1.7rem, 2.6vw, 2.65rem);
    line-height: 1.08;
  }

  .ai-story > p:last-child {
    margin-top: 30px;
    color: color-mix(in oklch, var(--paper) 70%, var(--navy));
    font-size: 0.9rem;
  }

  .ai-story-signal > p:last-child {
    color: var(--ink);
  }

  .operating-steps {
    margin-top: clamp(62px, 8vw, 108px);
    border-top: 1px solid var(--line);
  }

  .operating-step {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 26px;
    padding-block: 30px;
    border-bottom: 1px solid var(--line);
  }

  .operating-step > span,
  .career-stage > span,
  .challenge-list span {
    color: var(--signal-dark);
    font: 500 0.68rem/1.4 var(--mono);
  }

  .operating-step > div {
    display: grid;
    grid-template-columns: minmax(220px, 0.75fr) minmax(260px, 1.25fr);
    gap: 40px;
  }

  .operating-step h3 {
    color: var(--navy);
    font-size: clamp(1.45rem, 2.4vw, 2.55rem);
    line-height: 1.12;
  }

  .operating-step p {
    max-width: 620px;
    color: var(--ink-soft);
  }

  .career-line {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    margin-top: clamp(64px, 8vw, 108px);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }

  .career-stage {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    padding: 20px 16px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .career-stage strong {
    margin-top: auto;
    color: var(--navy);
    font-size: 0.98rem;
    line-height: 1.3;
  }

  .career-stage small {
    min-height: 54px;
    margin-top: 12px;
    color: var(--ink-soft);
    font-size: 0.72rem;
  }

  .foundation-block {
    display: grid;
    grid-template-columns: 0.42fr 1.58fr;
    gap: clamp(32px, 6vw, 92px);
    margin-top: clamp(62px, 8vw, 108px);
    padding-top: 32px;
    border-top: 3px solid var(--navy);
  }

  .foundation-period {
    color: var(--signal-dark);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .foundation-content > div {
    display: grid;
    grid-template-columns: minmax(180px, 0.7fr) minmax(260px, 1.3fr);
    gap: 32px;
    padding-block: 28px;
    border-bottom: 1px solid var(--line);
  }

  .foundation-content h3 {
    color: var(--navy);
    font-size: clamp(1.4rem, 2.2vw, 2.3rem);
    line-height: 1.12;
  }

  .foundation-content p {
    color: var(--ink-soft);
    font-size: 0.9rem;
  }

  .foundation-content .foundation-role {
    grid-column: 1;
    color: var(--signal-dark);
    font-size: 0.72rem;
    font-weight: 700;
  }

  .education-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    margin-top: clamp(62px, 8vw, 108px);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }

  .education-card {
    min-height: 470px;
    padding: clamp(28px, 4vw, 54px);
    background: var(--paper-deep);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .education-engineering {
    color: var(--paper);
    background: var(--navy);
  }

  .education-card > p {
    color: var(--signal-dark);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .education-engineering > p {
    color: oklch(0.73 0.11 47);
  }

  .education-card h3 {
    max-width: 650px;
    margin-top: 70px;
    color: var(--navy);
    font-size: clamp(2rem, 3.5vw, 3.8rem);
    line-height: 1.08;
  }

  .education-engineering h3 {
    color: var(--paper);
  }

  .education-card dl {
    margin-top: 56px;
    border-top: 1px solid var(--line);
  }

  .education-engineering dl,
  .education-engineering dl > div {
    border-color: rgba(255, 253, 248, 0.18);
  }

  .education-card dl > div {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 22px;
    padding-block: 14px;
    border-bottom: 1px solid var(--line);
  }

  .education-card dt {
    color: var(--ink-soft);
    font-size: 0.68rem;
  }

  .education-engineering dt {
    color: color-mix(in oklch, var(--paper) 60%, var(--navy));
  }

  .education-card dd {
    font-size: 0.86rem;
  }

  .challenge-list {
    margin-top: clamp(62px, 8vw, 108px);
    border-top: 1px solid var(--line);
  }

  .challenge-list li {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr) 48px;
    gap: 24px;
    align-items: center;
    padding-block: clamp(22px, 3vw, 36px);
    border-bottom: 1px solid var(--line);
  }

  .challenge-list li::after {
    color: var(--signal);
    content: "↗";
    font: 400 1.6rem/1 var(--serif);
    text-align: right;
  }

  .challenge-list strong {
    color: var(--navy);
    font: 400 clamp(1.4rem, 2.6vw, 2.75rem)/1.12 var(--serif);
  }

  @container (max-width: 900px) {
    .case-body {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .case-results {
      grid-column: 1 / -1;
    }
  }
}

@layer responsive {
  @media (max-width: 1180px) {
    .case-body {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .case-results {
      grid-column: 1 / -1;
    }

    .expertise-card {
      grid-template-columns: 38px minmax(0, 0.75fr) minmax(0, 1.25fr);
    }

    .career-line {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }
  }

  @media (max-width: 820px) {
    :root {
      --page: min(100% - 40px, 760px);
    }

    .hero {
      min-height: auto;
      grid-template-columns: 1fr;
      padding-top: 80px;
    }

    .hero-copy {
      padding-bottom: 0;
    }

    .hero::before {
      top: 3%;
      right: -4%;
      font-size: 13rem;
      writing-mode: horizontal-tb;
    }

    .hero-portrait {
      width: min(100%, 500px);
      margin-inline: auto;
    }

    .metric-grid,
    .contact-actions,
    .data-lenses {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .engine-list {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .system-chain {
      grid-template-columns: 1fr;
    }

    .system-chain li {
      min-height: 64px;
      flex-direction: row;
      align-items: center;
    }

    .system-chain li:not(:last-child)::after {
      transform: rotate(90deg);
    }

    .case-header {
      grid-template-columns: 58px minmax(0, 1fr);
      gap: 14px;
    }

    .case-body {
      grid-template-columns: 1fr;
      padding-left: 72px;
    }

    .case-results {
      grid-column: auto;
    }

    .case-link {
      margin-left: 72px;
    }

    .expertise-grid,
    .ai-story-grid,
    .education-grid {
      grid-template-columns: 1fr;
    }

    .expertise-card {
      grid-template-columns: 40px minmax(0, 0.75fr) minmax(0, 1.25fr);
    }

    .operating-step {
      grid-template-columns: 58px minmax(0, 1fr);
    }

    .operating-step > div {
      grid-template-columns: 1fr;
      gap: 12px;
    }

    .career-line {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .foundation-block,
    .foundation-content > div {
      grid-template-columns: 1fr;
    }

    .foundation-content .foundation-role {
      grid-column: auto;
    }

    .education-card {
      min-height: 420px;
    }

    .challenge-list li {
      grid-template-columns: 58px minmax(0, 1fr) 32px;
    }
  }

  @media (max-width: 900px) {
    :root {
      --page: min(100% - 40px, 760px);
    }

    .hero {
      min-height: auto;
      grid-template-columns: 1fr;
      padding-top: 80px;
    }

    .hero-copy {
      padding-bottom: 0;
    }

    .hero-portrait img {
      max-width: 440px;
      margin-inline: auto;
    }

    .metric-grid,
    .contact-actions {
      grid-template-columns: repeat(2, 1fr);
    }

    .engine-list {
      grid-template-columns: 1fr 1fr;
    }
  }

  @media (max-width: 560px) {
    :root {
      --page: calc(100vw - 28px);
    }

    body {
      font-size: 16px;
    }

    .hero::before {
      content: none;
    }

    h1 {
      font-size: clamp(3rem, 15vw, 4.5rem);
    }

    main > section {
      padding-block: 72px;
    }

    .metric-grid,
    .engine-list,
    .contact-actions,
    .data-lenses,
    .case-results ul,
    .career-line {
      grid-template-columns: 1fr;
    }

    .case-card-featured {
      margin-inline: -14px;
      padding-inline: 14px;
    }

    .case-header {
      grid-template-columns: 1fr;
    }

    .case-body {
      padding-left: 0;
    }

    .case-link {
      margin-left: 0;
    }

    .expertise-card {
      min-height: auto;
      grid-template-columns: 36px minmax(0, 1fr);
    }

    .expertise-card ul {
      grid-column: 1 / -1;
    }

    .ai-story {
      min-height: auto;
    }

    .operating-step {
      grid-template-columns: 36px minmax(0, 1fr);
    }

    .education-card {
      min-height: auto;
    }

    .education-card h3 {
      margin-top: 44px;
    }

    .education-card dl > div {
      grid-template-columns: 1fr;
      gap: 6px;
    }

    .challenge-list li {
      grid-template-columns: 36px minmax(0, 1fr);
    }

    .challenge-list li::after {
      display: none;
    }

    .metric-grid p,
    .engine-list li {
      min-height: 160px;
    }

    .engine-list li::before {
      margin-bottom: 44px;
    }

  }

  @media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }
  }
}
