/* Homepage: a white editorial surface, real evidence and a single interactive study. */
.home-page { --motion-ui: 180ms; --motion-reveal: 560ms; --motion-ease: cubic-bezier(.22,.61,.36,1); }
.home-hero { padding-block: 72px 0; }
.home-hero-grid { display: grid; grid-template-columns: minmax(0,1fr) 280px; align-items: center; gap: 9%; }
.home-name { margin-bottom: 21px; font-size: 21px; font-weight: 500; letter-spacing: -.02em; }
.home-hero-title { font-size: clamp(40px,4.5vw,60px); font-weight: 550; line-height: 1.36; letter-spacing: -.035em; }
.home-hero-title > span { display: block; }
.home-title-accent { color: var(--blue); }
.home-hero-intro { max-width: 560px; margin-top: 26px; font-size: 16px; line-height: 1.95; color: #526075; text-wrap: pretty; }
.home-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 28px; margin-top: 32px; }
.home-hero-actions .button { padding: 14px 21px; min-height: 48px; font-size: 14px; border-radius: 3px; }
.home-hero-actions .primary { background: var(--blue); }
.home-hero-actions .primary:hover { background: var(--blue-dark); }
.home-about-link { display: inline-flex; align-items: center; gap: 18px; min-height: 44px; font-size: 14px; }
.home-about-link:hover { color: var(--blue); }
.home-portrait { width: 100%; margin: 0; }
.home-portrait img { width: 100%; height: auto; aspect-ratio: 853 / 1280; object-fit: contain; border-radius: 3px; background: #efeeeb; }
.home-portrait figcaption { display: flex; flex-wrap: wrap; gap: 5px 14px; margin-top: 11px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.home-portrait figcaption > span:first-child { color: var(--ink); }
.home-trust { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-top: 52px; padding-block: 25px 28px; border-block: 1px solid var(--line); }
.home-trust .career-logos { margin-top: 0; }
.home-trust .career-logos-label { margin-bottom: 10px; }
.home-trust .career-logos-row { gap: 16px 48px; }
.home-trust .career-logo { gap: 3px; }
.home-trust .career-logo img { width: 100px; height: 24px; margin-bottom: 5px; }
.home-trust .career-logo small { font-size: 12px; }
.home-credentials { border-left: 1px solid var(--line); padding-left: 35px; color: #526075; font-size: 13px; line-height: 1.9; }
.home-credentials p + p { margin-top: 10px; }
.home-credentials span { margin-right: 9px; color: var(--blue); }
.home-section { padding-block: 76px; }
.home-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 22px; margin-bottom: 20px; }
.home-section-label { display: flex; align-items: center; gap: 14px; margin-bottom: 13px; font-size: 13px; font-weight: 450; color: #526075; }
.home-section-label > span { font-size: 11px; font-variant-numeric: tabular-nums; color: var(--blue); }
.home-page h2 { font-size: clamp(26px,2.8vw,34px); line-height: 1.5; font-weight: 500; letter-spacing: -.025em; text-wrap: pretty; }
.home-page .text-link { font-size: 14px; min-height: 40px; }
.home-section-heading > .text-link { flex-shrink: 0; }
.home-section-intro { max-width: 660px; margin-bottom: 32px; color: #59667a; font-size: 15px; line-height: 1.95; }
.selected-cases { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 46px 36px; }
.selected-case { min-width: 0; }
.selected-case-lead { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); grid-column: 1 / -1; gap: 36px; align-items: center; padding-bottom: 42px; border-bottom: 1px solid var(--line); }
.selected-case-image { display: block; overflow: hidden; position: relative; background: #f1f4f8; border: 1px solid var(--line); border-radius: 3px; }
.selected-case-image img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: contain; transition: transform var(--motion-reveal) var(--motion-ease); }
.selected-case-lead .selected-case-image { padding: 17px; background: #f1f3f5; }
.selected-case-lead .selected-case-image img { aspect-ratio: 1280 / 868; }
.selected-case-open { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid #d9e1ed; background: #fff; border-radius: 50%; color: var(--blue); font-size: 18px; transition: background var(--motion-ui),color var(--motion-ui); }
.selected-case-image:is(:hover,:focus-visible) img { transform: scale(1.025); }
.selected-case-image:is(:hover,:focus-visible) .selected-case-open { color: white; background: var(--blue); }
.selected-case-copy { padding-top: 20px; }
.selected-case-lead .selected-case-copy { padding-top: 0; }
.selected-case-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 14px; color: #526075; font-size: 12px; line-height: 1.8; margin-bottom: 12px; }
.selected-case-status { color: #435c4f; }
.selected-case-status::before { display: inline-block; content: ''; width: 5px; height: 5px; border-radius: 50%; background: #648676; margin: 0 7px 2px 0; }
.selected-case h3 { font-size: 24px; font-weight: 500; line-height: 1.5; letter-spacing: -.025em; margin-bottom: 12px; }
.selected-case-lead h3 { font-size: 28px; }
.selected-case h3 a:hover { color: var(--blue); }
.selected-case-description { color: #59667a; font-size: 15px; line-height: 1.9; }
.selected-case-facts { display: grid; gap: 10px; margin: 20px 0 17px; font-size: 13px; line-height: 1.85; }
.selected-case-facts > div { display: grid; grid-template-columns: 66px minmax(0,1fr); gap: 10px; }
.selected-case-facts dt { color: #7a8494; }
.selected-case-facts dd { margin: 0; color: #435268; }
.selected-case-image-note { margin-top: 9px; font-size: 12px; color: #727e8f; }
.home-lab-section { background: #f6f8fc; padding-block: 76px; border-block: 1px solid var(--line); }
.placement-demo { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); background: white; border: 1px solid #dce3ee; border-radius: 5px; }
.placement-controls { padding: 30px; border-right: 1px solid var(--line); }
.placement-controls fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.placement-controls legend,.placement-priority > span { font-size: 14px; font-weight: 500; margin-bottom: 14px; }
.placement-task-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; }
.placement-task { position: relative; cursor: pointer; }
.placement-task > input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.placement-task > span { display: block; height: 100%; padding: 13px 11px; border: 1px solid #dce3ed; border-radius: 3px; transition: border-color var(--motion-ui),background var(--motion-ui); }
.placement-task strong { display: block; font-size: 14px; font-weight: 450; }
.placement-task small { display: block; margin-top: 4px; font-size: 11px; line-height: 1.7; color: #68778a; }
.placement-task > input:checked + span { border-color: var(--blue); background: #f1f5ff; box-shadow: inset 0 0 0 1px var(--blue); }
.placement-task > input:focus-visible + span { outline: 3px solid #7195f0; outline-offset: 3px; }
.placement-task:hover > span { border-color: #88a3d4; }
.placement-controls .placement-conditions { margin-top: 25px; }
.placement-check { display: flex; align-items: start; gap: 10px; margin-bottom: 11px; font-size: 13px; cursor: pointer; }
.placement-check input { width: 17px; height: 17px; margin: 4px 0 0; flex-shrink: 0; accent-color: var(--blue); }
.placement-priority { display: grid; margin-top: 24px; }
.placement-priority > span { margin-bottom: 9px; }
.placement-priority select { width: 100%; min-width: 0; padding: 11px 28px 11px 12px; font: inherit; font-size: 13px; color: var(--ink); background: #fff; border: 1px solid #ccd6e4; border-radius: 3px; }
.placement-priority select:focus-visible { outline: 3px solid #7195f0; outline-offset: 3px; }
.placement-output { min-width: 0; padding: 30px; }
.placement-diagram { display: grid; justify-items: center; padding-block: 2px 24px; }
.placement-source { text-align: center; min-width: 170px; padding: 10px 20px; border: 1px solid #dce3ed; border-radius: 3px; }
.placement-source > span { display: block; font-size: 11px; color: #748096; }
.placement-source > strong { display: block; font-size: 14px; font-weight: 500; }
.placement-stem { height: 20px; border-left: 1px solid #cbd5e5; }
.placement-decision { padding: 6px 14px; border: 1px solid #dbe2ed; background: #f6f8fc; font-size: 11px; text-align: center; }
.placement-branches { position: relative; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; width: 100%; margin-top: 28px; }
.placement-branches::before { content: ''; position: absolute; top: -15px; left: 16.66%; right: 16.66%; height: 1px; background: #cbd5e5; }
.placement-branches::after { content: ''; position: absolute; top: -28px; left: 50%; height: 13px; border-left: 1px solid #cbd5e5; }
.placement-node { position: relative; text-align: center; padding: 11px 5px; border: 1px solid #dce3ed; border-radius: 3px; transition: color var(--motion-ui),background var(--motion-ui),border-color var(--motion-ui); }
.placement-node::before { content: ''; position: absolute; top: -15px; left: 50%; height: 14px; border-left: 1px solid #cbd5e5; }
.placement-node > strong { display: block; font-size: 14px; font-weight: 500; }
.placement-node > small { display: block; font-size: 10px; letter-spacing: .08em; color: #748096; }
.placement-node-dot { display: block; width: 6px; height: 6px; border-radius: 50%; background: #bcc7d7; margin: 0 auto 5px; }
.placement-node.is-selected { border-color: var(--blue); color: var(--blue); background: #f1f5ff; }
.placement-node.is-selected small { color: var(--blue); }
.placement-node.is-selected .placement-node-dot { background: var(--blue); }
.placement-result { border-top: 1px solid var(--line); padding-top: 20px; }
.placement-result-label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #6c788c; font-size: 11px; margin-bottom: 10px; }
.placement-result-label > span { color: var(--blue); background: #edf3ff; padding: 2px 8px; border-radius: 2px; }
.placement-result h3 { font-size: 20px; font-weight: 500; line-height: 1.6; letter-spacing: -.02em; }
.placement-result [data-placement-reason] { font-size: 13px; line-height: 1.9; color: #59667a; margin-top: 10px; }
.placement-evidence { display: grid; gap: 5px; margin-top: 18px; }
.placement-evidence > span { color: #7a8494; font-size: 11px; }
.placement-evidence .text-link { font-size: 13px; line-height: 1.8; }
.placement-caption { display: flex; flex-wrap: wrap; gap: 5px 14px; grid-column: 1 / -1; border-top: 1px solid var(--line); padding: 14px 30px; font-size: 11px; line-height: 1.8; color: #6a788d; background: #fbfcfe; border-radius: 0 0 5px 5px; }
.placement-caption > span { color: #435268; }
.placement-demo noscript { grid-column: 1 / -1; }
.placement-nojs { padding: 12px 30px; font-size: 13px; }
.home-page #home-notes .writing-item { padding-block: 25px; }
.home-page #home-notes .writing-title { font-size: 20px; }
.home-about-section { border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 60px; }
.home-about-section > div > p:not(.home-section-label):not(.home-contact-note) { font-size: 15px; color: #59667a; line-height: 1.95; }
.home-about-actions { display: flex; flex-wrap: wrap; gap: 16px 30px; margin-top: 22px; }
.home-contact-note { font-size: 12px; color: #788497; margin-top: 19px; }
html[lang="en"] .home-hero-title { font-size: clamp(34px,4vw,52px); letter-spacing: -.04em; }
html[lang="en"] .selected-case-facts > div { grid-template-columns: 85px minmax(0,1fr); }
@media (prefers-reduced-motion: no-preference) {
  .home-reveal { animation: home-reveal var(--motion-reveal) var(--motion-ease) both; }
  .home-hero-title > span { animation: home-reveal var(--motion-reveal) var(--motion-ease) both; }
  .home-hero-title > span + span { animation-delay: 70ms; }
  @keyframes home-reveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
}
@media (max-width: 1000px) {
  .home-hero-grid { grid-template-columns: minmax(0,1fr) 235px; gap: 7%; }
  .home-hero-title { font-size: 44px; }
  .home-trust .career-logos-row { gap: 25px; }
  .home-credentials { padding-left: 25px; max-width: 41%; }
  .placement-controls,.placement-output { padding: 24px; }
  .selected-case-lead { gap: 27px; }
  .selected-case-lead h3 { font-size: 25px; }
}
@media (max-width: 760px) {
  .home-hero { padding-top: 45px; }
  .home-hero-grid { grid-template-columns: minmax(0,1fr) 180px; gap: 30px; }
  .home-hero-title { font-size: 36px; }
  .home-name { font-size: 18px; margin-bottom: 16px; }
  .home-hero-intro { font-size: 15px; }
  .home-portrait figcaption { display: block; }
  .home-portrait figcaption > span { display: block; }
  .home-trust { margin-top: 36px; gap: 22px; }
  .home-trust .career-logo img { width: 84px; }
  .home-trust .career-logo small { max-width: 145px; }
  .home-section,.home-lab-section { padding-block: 55px; }
  .selected-case-lead { display: block; padding-bottom: 32px; }
  .selected-case-lead .selected-case-copy { padding-top: 22px; }
  .selected-case-lead .selected-case-image img { max-height: 410px; }
  .selected-cases { gap: 32px 24px; }
  .selected-case h3 { font-size: 22px; }
  .placement-demo { grid-template-columns: 1fr; }
  .placement-controls { border-right: 0; border-bottom: 1px solid var(--line); }
  .placement-controls .placement-conditions { margin-top: 22px; }
  .placement-priority { margin-top: 20px; }
  .placement-output { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 0 24px; align-items: start; }
  .placement-diagram { grid-row: 1 / 3; }
  .placement-result { border-top: 0; padding-top: 0; }
  .placement-caption { padding-inline: 24px; }
  .home-about-section { gap: 28px; }
}
@media (max-width: 620px) {
  .home-hero-grid { grid-template-columns: minmax(0,1fr) 116px; gap: 0 22px; align-items: start; }
  .home-hero-copy { display: contents; }
  .home-name { grid-column: 1; margin-bottom: 14px; font-size: 17px; }
  .home-hero-title { grid-column: 1; font-size: clamp(25px,6.4vw,36px); line-height: 1.5; }
  .home-portrait { grid-column: 2; grid-row: 1 / 3; }
  .home-portrait figcaption { font-size: 10px; margin-top: 6px; }
  .home-portrait figcaption > span + span { display: none; }
  .home-hero-intro { grid-column: 1 / -1; font-size: 15px; margin-top: 25px; }
  .home-hero-actions { grid-column: 1 / -1; margin-top: 24px; gap: 8px 20px; }
  .home-hero-actions .button { font-size: 13px; padding: 12px 16px; }
  .home-about-link { font-size: 13px; gap: 10px; }
  .home-trust { flex-direction: column; align-items: stretch; gap: 22px; padding-block: 22px; }
  .home-trust .career-logos-row { gap: 20px 30px; }
  .home-trust .career-logo { flex: 1; min-width: 0; }
  .home-trust .career-logo small { font-size: 11px; }
  .home-credentials { max-width: none; padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--line); font-size: 12px; }
  .home-credentials p + p { margin-top: 7px; }
  .home-section-heading { flex-wrap: wrap; align-items: start; gap: 12px; margin-bottom: 18px; }
  .home-section-label { margin-bottom: 10px; gap: 10px; font-size: 12px; }
  .home-page h2 { font-size: 26px; }
  .home-section-heading > .text-link { font-size: 13px; min-height: 30px; }
  .home-section-intro { font-size: 14px; margin-bottom: 24px; }
  .selected-cases { grid-template-columns: 1fr; gap: 30px; }
  .selected-case-lead { grid-column: auto; }
  .selected-case:not(.selected-case-lead) + .selected-case { border-top: 1px solid var(--line); padding-top: 30px; }
  .selected-case h3,.selected-case-lead h3 { font-size: 23px; }
  .selected-case-description { font-size: 14px; }
  .selected-case-facts { font-size: 12px; }
  .selected-case-lead .selected-case-image { padding: 10px; }
  .placement-output { display: block; }
  .placement-controls,.placement-output { padding: 22px 18px; }
  .placement-task-grid { gap: 9px; }
  .placement-task > span { padding: 11px 10px; }
  .placement-task strong { font-size: 13px; }
  .placement-task small { font-size: 11px; }
  .placement-caption { padding: 13px 18px; font-size: 11px; }
  .placement-result { border-top: 1px solid var(--line); padding-top: 20px; }
  .placement-branches { gap: 10px; }
  .home-page #home-notes .writing-title { font-size: 18px; }
  .home-page #home-notes .writing-item { padding-block: 22px; }
  .home-about-section { grid-template-columns: 1fr; gap: 22px; }
  html[lang="en"] .home-hero-title { font-size: clamp(24px,6.4vw,35px); line-height: 1.3; letter-spacing: -.035em; }
  html[lang="en"] .home-hero-title > span + span { margin-top: 10px; }
  html[lang="en"] .home-name { font-size: 16px; }
}
@media (max-width: 360px) {
  .home-hero-grid { grid-template-columns: minmax(0,1fr) 98px; gap: 0 16px; }
  .home-name { font-size: 15px; }
  .home-hero-title { font-size: 25px; }
  .home-hero-actions { gap: 7px 16px; }
  .home-hero-actions .button { padding-inline: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-page *,.home-page *::before,.home-page *::after { animation: none !important; transition: none !important; }
}
@media print {
  .home-hero,.home-section,.home-lab-section { padding-block: 25px; }
  .home-reveal { animation: none; }
  .selected-case { break-inside: avoid; }
}
