@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

:root {
  --ink: #11161d;
  --ink-soft: #4b5562;
  --muted: #707b87;
  --line: #dce2e8;
  --line-strong: #bfc8d1;
  --paper: #ffffff;
  --paper-alt: #f4f6f8;
  --night: #111a23;
  --night-soft: #192532;
  --accent: #315f87;
  --accent-pale: #e9f0f5;
  --max: 1240px;
  --measure: 760px;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(17, 22, 29, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: #9aa5b1; text-underline-offset: 4px; }
a:hover { text-decoration-color: var(--accent); }
button { font: inherit; }
.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 100; padding: .7rem 1rem; color: #fff; background: var(--ink); }
.skip-link:focus { top: 1rem; }
.container { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.measure { max-width: var(--measure); }
.eyebrow { margin: 0 0 .85rem; color: var(--accent); font-size: .73rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.section { padding: 92px 0; border-top: 1px solid var(--line); }
.section-dark { color: #f5f7f9; background: var(--night); border-top: 0; }
.section-soft { background: var(--paper-alt); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .64fr); gap: 5rem; align-items: end; margin-bottom: 48px; }
.compact-head { margin-bottom: 36px; }
.section-title, .page-title, .hero-title { margin: 0; font-weight: 600; letter-spacing: -.045em; line-height: 1.06; }
.section-title { max-width: 790px; font-size: clamp(2.35rem, 4.25vw, 4rem); }
.page-title { max-width: 930px; font-size: clamp(2.7rem, 6.2vw, 5.5rem); }
.hero-title { max-width: 900px; font-size: clamp(3rem, 5.1vw, 4.9rem); }
.lead { margin: 0; color: var(--ink-soft); font-size: clamp(1.03rem, 1.45vw, 1.27rem); line-height: 1.62; }
.section-dark .lead { color: #c2ccd5; }
.quiet { color: var(--muted); }
.source-link { font-size: .75rem; font-weight: 700; white-space: nowrap; }

.site-header { position: sticky; top: 0; z-index: 50; height: 64px; border-bottom: 1px solid rgba(220, 226, 232, .9); background: rgba(255, 255, 255, .94); backdrop-filter: blur(18px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { font-size: 1.06rem; font-weight: 700; letter-spacing: -.04em; text-decoration: none; }
.nav { display: flex; align-items: center; gap: 1.65rem; }
.nav a { color: var(--ink-soft); font-size: .76rem; font-weight: 600; text-decoration: none; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--ink); }
.nav-cta { padding: .48rem .8rem; border: 1px solid var(--line-strong); border-radius: 999px; }
.menu-toggle { display: none; padding: .5rem; border: 0; background: transparent; }
.menu-toggle span { display: block; width: 23px; height: 1.5px; margin: 5px 0; background: var(--ink); }

.hero { min-height: calc(100svh - 64px); display: grid; align-items: center; padding: 54px 0 48px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 245px; gap: clamp(3rem, 6vw, 6rem); align-items: center; }
.hero-copy { max-width: 920px; }
.hero-subtitle { max-width: 790px; margin: 1.55rem 0 0; color: var(--ink-soft); font-size: clamp(1.05rem, 1.55vw, 1.34rem); line-height: 1.55; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .6rem 1.25rem; margin-top: 1.8rem; color: var(--muted); font-size: .76rem; }
.hero-portrait-wrap { align-self: center; margin: 0; }
.hero-portrait { width: 100%; aspect-ratio: .84; object-fit: cover; object-position: 50% 28%; border-radius: 999px 999px 18px 18px; filter: saturate(.82); }

.section-viewport { min-height: calc(100svh - 64px); display: grid; align-items: center; }
.problem-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.35rem; }
.problem-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.problem-visual { margin: 0; overflow: hidden; background: var(--night); }
.problem-visual img { width: 100%; aspect-ratio: 1.83; object-fit: cover; }
.problem-copy { padding: 1.45rem 1.5rem 1.55rem; }
.problem-number { margin: 0 0 .6rem; color: var(--accent); font-size: .7rem; font-weight: 700; letter-spacing: .14em; }
.problem-copy h3 { margin: 0 0 .8rem; font-size: clamp(1.15rem, 1.65vw, 1.48rem); line-height: 1.25; letter-spacing: -.025em; }
.problem-copy p { margin: 0 0 .75rem; color: var(--ink-soft); font-size: .8rem; line-height: 1.62; }
.problem-copy p:last-child { margin-bottom: 0; }
.problem-copy .conclusion { color: var(--ink); font-weight: 600; }

.toc-intro { max-width: 870px; margin-bottom: 46px; }
.toc-intro .lead { margin-top: 1.4rem; }
.causal-chain { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .85rem; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.causal-chain::before { content: ''; position: absolute; top: 27px; right: 3%; left: 3%; height: 1px; background: #526271; }
.causal-step { position: relative; min-height: 225px; padding: 1rem; border: 1px solid #314150; border-radius: 12px; background: var(--night-soft); counter-increment: step; }
.causal-step::before { content: counter(step, decimal-leading-zero); position: relative; z-index: 1; display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 1.25rem; border: 1px solid #6c7b8a; border-radius: 50%; color: #e4ebf1; background: var(--night); font-size: .66rem; font-weight: 700; }
.step-label { display: block; margin-bottom: .5rem; color: #8fb2cf; font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.causal-step h3 { margin: 0 0 .55rem; font-size: .92rem; line-height: 1.42; }
.causal-step p { margin: 0; color: #aeb9c4; font-size: .75rem; line-height: 1.58; }
.assumption-intro { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; align-items: end; margin: 62px 0 22px; padding-top: 36px; border-top: 1px solid #344250; }
.assumption-intro .eyebrow { margin: 0; color: #8fb2cf; }
.assumption-intro h3 { margin: 0; font-size: clamp(1.45rem, 2.5vw, 2.1rem); font-weight: 500; letter-spacing: -.03em; }
.assumptions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: #344250; border: 1px solid #344250; }
.assumption { display: grid; grid-template-columns: 42px 1fr; gap: .25rem 1rem; padding: 1.3rem 1.4rem; background: var(--night-soft); }
.assumption .index { grid-row: span 2; color: #8ea0b1; font-size: .68rem; font-weight: 700; }
.assumption h3 { margin: 0 0 .35rem; font-size: .9rem; line-height: 1.45; }
.assumption p { margin: 0; color: #abb6c1; font-size: .76rem; line-height: 1.58; }

.advantage-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line-strong); }
.advantage { display: grid; grid-template-columns: 44px 1fr; gap: 1.15rem; padding: 1.8rem 2rem 1.8rem 0; border-bottom: 1px solid var(--line); }
.advantage:nth-child(even) { padding-left: 2rem; border-left: 1px solid var(--line); }
.advantage-wide { grid-column: 1 / -1; padding-right: 50%; }
.advantage-index { color: var(--accent); font-size: .72rem; font-weight: 700; }
.advantage h3 { margin: 0 0 .48rem; font-size: 1rem; line-height: 1.4; }
.advantage p { margin: 0; color: var(--ink-soft); font-size: .86rem; }

.work-hint { display: none; margin: -1.5rem 0 1rem; color: var(--muted); font-size: .76rem; }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
.work-card { display: flex; flex-direction: column; min-height: 370px; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-decoration: none; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.work-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.work-card .kicker { color: var(--accent); font-size: .66rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.work-card h3 { margin: 1.45rem 0 .8rem; font-size: 1.22rem; line-height: 1.33; letter-spacing: -.025em; }
.work-card p { margin: 0; color: var(--ink-soft); font-size: .82rem; }
.work-card .result { margin-top: auto; padding-top: 1.6rem; color: var(--ink); font-weight: 600; }
.work-card .read { margin-top: .8rem; font-size: .72rem; font-weight: 700; }

.career-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
.career-column h3 { margin: 0 0 1.25rem; color: var(--accent); font-size: .93rem; letter-spacing: .01em; }
.career-list { margin: 0; padding: 0; list-style: none; }
.career-list li { padding: 1rem 0; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .82rem; }
.career-list a { text-decoration: none; }
.career-list a:hover strong { color: var(--accent); }
.career-list strong { display: block; margin-bottom: .32rem; color: var(--ink); font-size: .88rem; }
.career-list span { display: block; }
.career-list span a { text-decoration: underline; }

.contact { padding: 90px 0; color: #fff; background: var(--night); }
.contact-inner { display: grid; grid-template-columns: 1fr auto; gap: 4rem; align-items: end; }
.contact h2 { max-width: 840px; margin: 0; font-size: clamp(2.2rem, 4.5vw, 4.15rem); font-weight: 500; letter-spacing: -.045em; line-height: 1.12; }
.contact p:not(.eyebrow) { max-width: 670px; margin: 1.2rem 0 0; color: #b9c4ce; }
.contact-actions { display: flex; flex-direction: column; align-items: stretch; gap: .7rem; min-width: 210px; }
.contact-link { display: inline-block; padding: .8rem 1rem; border: 1px solid #697887; border-radius: 999px; color: #fff; font-size: .8rem; font-weight: 700; text-align: center; text-decoration: none; }
.contact-link:hover { color: var(--night); background: #fff; }
.contact-link-secondary { color: #c6d0d9; border-color: #3d4a57; }
.footer { padding: 1.35rem 0; color: var(--muted); border-top: 1px solid var(--line); font-size: .7rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; }

.page-hero { padding: 90px 0 72px; }
.page-hero .lead { max-width: 760px; margin-top: 1.7rem; }
.work-index { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem; padding-bottom: 100px; }
.work-index .work-card { min-height: 355px; }
.case-hero { padding: 82px 0 70px; border-bottom: 1px solid var(--line); }
.case-hero .lead { max-width: 820px; }
.case-meta { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.7rem; }
.tag { padding: .34rem .62rem; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink-soft); font-size: .68rem; font-weight: 600; }
.case-layout { display: grid; grid-template-columns: minmax(190px, .3fr) minmax(0, 1fr); gap: 6rem; padding: 78px 0 110px; }
.case-toc { position: sticky; top: 92px; align-self: start; }
.case-toc a { display: block; padding: .46rem 0; color: var(--muted); font-size: .76rem; text-decoration: none; }
.case-body { max-width: 780px; }
.case-section { margin-bottom: 4.2rem; scroll-margin-top: 86px; }
.case-section h2 { margin: 0 0 1.2rem; font-size: clamp(1.65rem, 3vw, 2.3rem); line-height: 1.23; letter-spacing: -.03em; }
.case-section p { margin: 0 0 1.15rem; color: var(--ink-soft); }
.case-section ul { margin: 1.15rem 0; padding-left: 1.2rem; color: var(--ink-soft); }
.case-section li { margin-bottom: .65rem; padding-left: .25rem; }
.case-highlight { margin: 2rem 0; padding: 1.5rem; border-left: 3px solid var(--accent); background: var(--paper-alt); font-size: 1.02rem; font-weight: 600; }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 1.8rem 0; background: var(--line); border: 1px solid var(--line); }
.metric { padding: 1.35rem; background: #fff; }
.metric strong { display: block; color: var(--accent); font-size: 1.6rem; letter-spacing: -.04em; }
.metric span { color: var(--muted); font-size: .74rem; }
.back-link { display: inline-block; margin-bottom: 1.8rem; color: var(--muted); font-size: .76rem; font-weight: 600; }

.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .65s ease, transform .65s ease; }
.js [data-reveal].visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .js [data-reveal] { opacity: 1; transform: none; transition: none; } }

@media (max-width: 1020px) {
  .section { padding: 80px 0; }
  .section-head { grid-template-columns: 1fr; gap: 1.2rem; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 190px; gap: 3rem; }
  .hero-title { font-size: clamp(2.8rem, 6.6vw, 4.5rem); }
  .problem-grid { grid-template-columns: 1fr; }
  .problem-card { display: grid; grid-template-columns: 250px 1fr; }
  .problem-visual img { height: 100%; aspect-ratio: auto; object-fit: cover; }
  .causal-chain { grid-template-columns: repeat(3, 1fr); }
  .causal-chain::before { display: none; }
  .career-columns { grid-template-columns: 1fr; gap: 2rem; }
  .work-index { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 32px), var(--max)); }
  .section { padding: 68px 0; }
  .site-header { height: 60px; }
  .menu-toggle { display: block; z-index: 2; }
  .nav { position: fixed; inset: 60px 0 0; display: none; align-content: start; padding: 1.8rem 1.2rem; background: #fff; }
  .nav.open { display: grid; }
  .nav a { padding: .7rem 0; font-size: 1rem; }
  .nav-cta { border: 0; border-radius: 0; }
  .hero { min-height: auto; padding: 55px 0 62px; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-title { font-size: clamp(2.45rem, 11.7vw, 3.65rem); }
  .hero-subtitle { margin-top: 1.35rem; font-size: 1.02rem; }
  .hero-meta { margin-top: 1.4rem; }
  .hero-portrait-wrap { width: 132px; }
  .section-viewport { min-height: auto; }
  .section-title { font-size: clamp(2.05rem, 9.7vw, 3.1rem); }
  .section-head { margin-bottom: 36px; }
  .problem-grid { gap: 1rem; }
  .problem-card { display: block; }
  .problem-visual img { height: auto; aspect-ratio: 1.83; }
  .problem-copy { padding: 1.3rem; }
  .toc-intro { margin-bottom: 34px; }
  .causal-chain { grid-template-columns: 1fr; gap: .8rem; }
  .causal-step { min-height: 0; display: grid; grid-template-columns: 40px 1fr; gap: .2rem 1rem; padding: 1rem; }
  .causal-step::before { grid-row: 1 / span 3; width: 40px; height: 40px; margin: 0; }
  .step-label { margin: 0 0 .2rem; }
  .causal-step h3 { margin: 0 0 .3rem; }
  .assumption-intro { grid-template-columns: 1fr; gap: .6rem; margin-top: 48px; }
  .assumptions { grid-template-columns: 1fr; }
  .assumption { grid-template-columns: 36px 1fr; }
  .advantage-grid { grid-template-columns: 1fr; }
  .advantage, .advantage:nth-child(even), .advantage-wide { grid-column: auto; padding: 1.45rem 0; border-left: 0; }
  .work-hint { display: block; }
  .work-grid { display: flex; width: calc(100vw - 16px); margin-right: -16px; overflow-x: auto; gap: .85rem; padding: 0 16px 1rem 0; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .work-grid::-webkit-scrollbar { display: none; }
  .work-grid .work-card { flex: 0 0 min(82vw, 330px); min-height: 350px; scroll-snap-align: start; }
  .contact { padding: 72px 0; }
  .contact-inner { grid-template-columns: 1fr; gap: 2.2rem; align-items: start; }
  .contact-actions { align-items: stretch; min-width: 0; }
  .footer-inner { flex-direction: column; gap: .3rem; }
  .page-hero { padding: 68px 0 55px; }
  .page-title { font-size: clamp(2.5rem, 12vw, 4rem); }
  .work-index { grid-template-columns: 1fr; padding-bottom: 72px; }
  .work-index .work-card { min-height: 330px; }
  .case-hero { padding: 60px 0 52px; }
  .case-layout { grid-template-columns: 1fr; gap: 2rem; padding: 52px 0 75px; }
  .case-toc { position: static; display: flex; gap: .6rem 1rem; overflow-x: auto; padding-bottom: .5rem; white-space: nowrap; }
  .metric-row { grid-template-columns: 1fr; }
  .case-highlight { padding: 1.2rem; font-size: .94rem; }
}

@media (max-height: 760px) and (min-width: 761px) {
  .hero { padding-top: 34px; padding-bottom: 34px; }
  .hero-title { font-size: clamp(2.7rem, 4.6vw, 4.25rem); }
  .hero-portrait-wrap { width: 210px; justify-self: end; }
  .section-viewport { min-height: auto; }
}
