
:root {
  --paper: #fffafc;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-solid: #ffffff;
  --ink: #3b2730;
  --muted: #78666e;
  --rose: #c7587e;
  --rose-deep: #8a2f52;
  --blush: #f7dce7;
  --peach: #fde8dd;
  --lilac: #eee8f7;
  --blue: #e6eff8;
  --sage: #e9f0e8;
  --green: #dff0df;
  --line: rgba(126, 72, 91, 0.14);
  --shadow: 0 20px 60px rgba(117, 62, 83, 0.12);
  --shadow-sm: 0 10px 32px rgba(117, 62, 83, 0.09);
  --radius-lg: 30px;
  --radius-md: 20px;
  --container: 1180px;
  --sans: "Segoe UI", "Noto Sans", system-ui, sans-serif;
  --serif: Cambria, "Noto Serif", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 5%, rgba(247, 220, 231, .75), transparent 30rem),
    radial-gradient(circle at 92% 24%, rgba(238, 232, 247, .68), transparent 32rem),
    linear-gradient(180deg, #fffafd 0%, #fffdfb 46%, #fff8fb 100%);
  font-family: var(--sans);
  line-height: 1.72;
  overflow-x: hidden;
}
button, a { font: inherit; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; }

.skip-link { position: fixed; left: 16px; top: -80px; z-index: 1000; padding: 10px 14px; border-radius: 12px; background: var(--ink); color: #fff; text-decoration: none; }
.skip-link:focus { top: 16px; }

.ambient { position: fixed; pointer-events: none; z-index: -1; filter: blur(80px); opacity: .42; border-radius: 50%; }
.ambient-one { width: 320px; height: 320px; background: #f2bfd1; left: -150px; top: 38%; }
.ambient-two { width: 360px; height: 360px; background: #ded4f1; right: -190px; top: 66%; }

.site-header { position: fixed; inset: 18px 0 auto; z-index: 100; padding: 0 18px; }
.nav-shell {
  max-width: 980px; margin: 0 auto; min-height: 62px; padding: 8px 10px 8px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  border: 1px solid rgba(255,255,255,.72); border-radius: 999px;
  background: rgba(255, 250, 252, .78); backdrop-filter: blur(18px) saturate(130%);
  box-shadow: 0 12px 40px rgba(110, 57, 78, .12);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 760; letter-spacing: -.01em; white-space: nowrap; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #f4bfd2, #b94770); color: white; font-family: var(--serif); font-weight: 700; box-shadow: inset 0 0 0 4px rgba(255,255,255,.35); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link { border: 0; background: transparent; text-decoration: none; padding: 10px 14px; border-radius: 999px; color: var(--muted); font-size: .93rem; font-weight: 650; transition: background .28s cubic-bezier(.22,.61,.36,1), color .28s cubic-bezier(.22,.61,.36,1), transform .28s cubic-bezier(.22,.61,.36,1); }
.nav-link:hover, .nav-link.active { background: rgba(199, 88, 126, .10); color: var(--rose-deep); transform: translateY(-1px); }
.nav-cta { background: var(--ink); color: white; }
.nav-cta:hover, .nav-cta.active { background: var(--rose-deep); color: white; }
.menu-button { display: none; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--ink); color: white; }
.menu-button svg { width: 20px; height: 20px; }

.page { padding-top: 118px; }
.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.section { padding: 92px 0; }
.section-head { max-width: 760px; margin-bottom: 38px; }
.eyebrow { margin: 0 0 12px; color: var(--rose-deep); text-transform: uppercase; letter-spacing: .15em; font-size: .72rem; font-weight: 820; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.12; letter-spacing: -.025em; }
h1 { font-size: clamp(3.15rem, 7vw, 6.4rem); margin: 0; }
h2 { font-size: clamp(2.25rem, 4.5vw, 4.25rem); margin: 0 0 18px; }
h3 { font-size: clamp(1.45rem, 2.5vw, 2rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 680px; }

.hero { min-height: 88vh; display: grid; align-items: center; padding: 42px 0 86px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr); gap: clamp(42px, 7vw, 96px); align-items: center; }
.hero-copy { max-width: 720px; }
.hero-title { max-width: 820px; }
.hero-title .soft { color: var(--rose); font-style: italic; font-weight: 500; }
.hero-text { margin: 25px 0 0; max-width: 630px; color: var(--muted); font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 0 21px; border-radius: 999px; border: 1px solid transparent; text-decoration: none; font-weight: 760; transition: transform .28s cubic-bezier(.22,.61,.36,1), box-shadow .28s cubic-bezier(.22,.61,.36,1), background .28s cubic-bezier(.22,.61,.36,1); }
.button:hover { transform: translateY(-3px); }
.button-primary { background: var(--ink); color: white; box-shadow: 0 14px 30px rgba(59, 39, 48, .18); }
.button-primary:hover { background: var(--rose-deep); box-shadow: 0 18px 36px rgba(138, 47, 82, .22); }
.button-secondary { background: rgba(255,255,255,.78); border-color: var(--line); color: var(--ink); }
.button-secondary:hover { background: white; box-shadow: var(--shadow-sm); }
.button svg { width: 18px; height: 18px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 27px; }
.meta-chip { padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.62); border: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.hero-visual { position: relative; isolation: isolate; }
.photo-frame { position: relative; width: min(100%, 440px); margin-left: auto; padding: 12px; border-radius: 48% 48% 26% 26% / 34% 34% 16% 16%; background: rgba(255,255,255,.84); box-shadow: var(--shadow); transform: rotate(1.6deg); }
.photo-frame::before { content: ""; position: absolute; inset: -22px 30px 25px -20px; z-index: -1; border-radius: inherit; background: linear-gradient(145deg, #f7cddd, #eee5f8); transform: rotate(-5deg); }
.photo-frame::after { content: ""; position: absolute; width: 96px; height: 96px; right: -25px; bottom: 52px; z-index: 2; border-radius: 50%; background: radial-gradient(circle at center, #fff 0 18%, transparent 20%), conic-gradient(from 0deg, #e49ab6 0 12.5%, transparent 12.5% 25%, #e49ab6 25% 37.5%, transparent 37.5% 50%, #e49ab6 50% 62.5%, transparent 62.5% 75%, #e49ab6 75% 87.5%, transparent 87.5%); opacity: .78; }
.photo-frame img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 38%; border-radius: inherit; }
.photo-note { position: absolute; left: -38px; bottom: 38px; z-index: 4; padding: 14px 17px; border-radius: 18px; background: rgba(255,255,255,.9); box-shadow: var(--shadow-sm); font-size: .88rem; color: var(--muted); transform: rotate(-2deg); }
.photo-note strong { display: block; color: var(--ink); font-family: var(--serif); font-size: 1.12rem; }

.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; grid-auto-flow: dense; }
.bento-card { position: relative; overflow: hidden; min-height: 230px; padding: 28px; border-radius: var(--radius-lg); background: rgba(255,255,255,.78); border: 1px solid rgba(255,255,255,.82); box-shadow: var(--shadow-sm); }
.bento-card::before { content: ""; position: absolute; width: 160px; height: 160px; border-radius: 50%; right: -72px; top: -70px; background: var(--card-tint, var(--blush)); filter: blur(2px); opacity: .8; }
.bento-card > * { position: relative; }
.bento-wide { grid-column: span 7; }
.bento-small { grid-column: span 5; }
.bento-card p { color: var(--muted); margin: 0; }
.bento-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 16px; margin-bottom: 48px; background: rgba(255,255,255,.72); color: var(--rose-deep); }
.bento-icon svg { width: 23px; height: 23px; }
.bento-card h3 { margin: 0 0 12px; }

.project-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.project-card { grid-column: span 6; min-height: 360px; display: flex; flex-direction: column; overflow: hidden; position: relative; border-radius: 30px; text-decoration: none; background: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.86); box-shadow: var(--shadow-sm); transition: transform .38s cubic-bezier(.22,.61,.36,1), box-shadow .38s cubic-bezier(.22,.61,.36,1); }
.project-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.project-cover { position: relative; min-height: 205px; display: grid; place-items: center; overflow: hidden; background: var(--accent-bg); }
.project-cover img { width: 100%; height: 230px; object-fit: cover; transition: transform .7s cubic-bezier(.22,.61,.36,1); }
.project-card:hover .project-cover img { transform: scale(1.045); }
.project-cover::after { content:""; position:absolute; inset:auto 0 0; height:42%; background: linear-gradient(transparent, rgba(42,24,32,.18)); pointer-events:none; }
.project-placeholder { width: min(76%, 360px); aspect-ratio: 16/9; border-radius: 22px; padding: 24px; background: rgba(255,255,255,.76); box-shadow: 0 18px 40px rgba(91,55,70,.12); display: flex; flex-direction: column; justify-content: space-between; transform: rotate(-2deg); }
.placeholder-lines span { display:block; height:8px; margin-top:9px; border-radius:999px; background: rgba(107,69,83,.14); }
.placeholder-lines span:nth-child(2){width:78%}.placeholder-lines span:nth-child(3){width:54%}
.placeholder-number { font-family: var(--serif); font-size: 3rem; color: var(--rose-deep); }
.duo-mini { color: #2f7a45; }
.duo-mini .placeholder-number { color: #2e9f53; }
.project-body { padding: 24px 26px 27px; flex: 1; display: flex; flex-direction: column; }
.project-topline { display:flex; justify-content:space-between; gap:12px; color:var(--muted); font-size:.8rem; text-transform:uppercase; letter-spacing:.11em; font-weight:800; }
.project-body h3 { margin: 12px 0 11px; font-size: clamp(1.35rem,2.4vw,1.82rem); }
.project-body p { margin:0 0 20px; color:var(--muted); }
.project-link { margin-top:auto; display:inline-flex; align-items:center; gap:8px; color:var(--rose-deep); font-weight:780; }
.project-link svg { width:18px; transition: transform .3s cubic-bezier(.22,.61,.36,1); }
.project-card:hover .project-link svg { transform: translateX(5px); }
.accent-rose { --accent-bg: linear-gradient(145deg,#f7dce7,#f9ecef); }
.accent-lilac { --accent-bg: linear-gradient(145deg,#ebe4f6,#f7f3fb); }
.accent-peach { --accent-bg: linear-gradient(145deg,#fde6db,#fff4ef); }
.accent-blue { --accent-bg: linear-gradient(145deg,#e3edf7,#f4f8fc); }
.accent-green { --accent-bg: linear-gradient(145deg,#daf0dd,#eef8ef); }
.accent-sage { --accent-bg: linear-gradient(145deg,#e7efe6,#f7faf5); }

.summary-panel { position: relative; overflow: hidden; padding: clamp(32px,6vw,72px); border-radius: 38px; background: linear-gradient(140deg,#3b2730,#7e3954); color: white; box-shadow: var(--shadow); }
.summary-panel::before { content:""; position:absolute; width:420px;height:420px;border-radius:50%;right:-160px;top:-220px;background:rgba(246,184,207,.18); }
.summary-panel h2, .summary-panel h3 { color:white; }
.summary-panel p { color:rgba(255,255,255,.78); max-width:780px; }
.skill-row { display:flex; flex-wrap:wrap; gap:10px; margin:28px 0 36px; }
.skill-pill { padding:9px 13px; border-radius:999px; border:1px solid rgba(255,255,255,.18); background:rgba(255,255,255,.08); font-size:.9rem; }

.footer { padding: 42px 0 54px; color:var(--muted); }
.footer-inner { display:flex; justify-content:space-between; align-items:center; gap:24px; padding-top:28px; border-top:1px solid var(--line); }
.footer strong { color:var(--ink); }

.detail-hero { padding: 34px 0 50px; }
.breadcrumb { display:inline-flex; align-items:center; gap:8px; margin-bottom:26px; color:var(--muted); text-decoration:none; font-weight:680; }
.breadcrumb:hover { color:var(--rose-deep); }
.breadcrumb svg { width:18px; }
.detail-head { position:relative; overflow:hidden; padding: clamp(32px,6vw,68px); border-radius:38px; background:var(--accent-bg); box-shadow:var(--shadow-sm); }
.detail-head::after { content:""; position:absolute; width:260px;height:260px;border-radius:50%;right:-80px;top:-100px;background:rgba(255,255,255,.45); }
.detail-head > * { position:relative; z-index:1; }
.detail-number { display:inline-flex; align-items:center; justify-content:center; width:54px; height:54px; border-radius:18px; background:rgba(255,255,255,.7); color:var(--rose-deep); font-family:var(--serif); font-size:1.35rem; font-weight:700; }
.detail-head h1 { max-width:920px; font-size:clamp(2.65rem,6vw,5.3rem); margin-top:22px; }
.detail-head p { max-width:760px; color:var(--muted); font-size:1.08rem; }
.detail-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:24px; }

.article-layout { display:grid; grid-template-columns:minmax(0,1fr) 260px; gap:56px; align-items:start; padding-bottom:110px; }
.article { min-width:0; }
.article-card { background:rgba(255,255,255,.82); border:1px solid rgba(255,255,255,.88); border-radius:32px; box-shadow:var(--shadow-sm); padding:clamp(25px,5vw,58px); }
.article-card > *:first-child { margin-top:0; }
.article-card .doc-title { font-family:var(--serif); font-size:clamp(1.85rem,4vw,3.25rem); margin:0 0 28px; }
.article-card h2 { font-size:clamp(1.75rem,3.4vw,2.8rem); margin:56px 0 18px; padding-top:12px; }
.article-card h3 { font-size:clamp(1.3rem,2.6vw,1.8rem); margin:38px 0 14px; }
.article-card p { margin:0 0 17px; color:#4f3b44; }
.article-card .body-text { font-size:1rem; }
.article-card .list-group { margin:0 0 22px; padding-left:22px; color:#4f3b44; }
.article-card .list-group li { margin:8px 0; padding-left:5px; }
.callout { margin:22px 0; padding:18px 20px; border-radius:18px; background:linear-gradient(135deg,#fff2f6,#fbf7ff); border-left:4px solid var(--rose); }
.callout strong { color:var(--rose-deep); }
.step-block { margin:26px 0 12px; padding:20px 22px; border-radius:20px; background:#fff7fa; border:1px solid rgba(199,88,126,.12); }
.step-block .step-label { display:block; margin-bottom:6px; color:var(--rose-deep); font-weight:820; }
.numbered-principle { display:flex; gap:14px; align-items:flex-start; margin:14px 0; padding:16px 18px; border-radius:18px; background:#fff9fb; }
.numbered-principle .num { flex:0 0 34px; width:34px; height:34px; display:grid; place-items:center; border-radius:12px; background:var(--blush); color:var(--rose-deep); font-weight:820; }
.figure-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr)); gap:16px; margin:18px 0 34px; }
.figure { margin:0; border-radius:22px; background:#f8f4f6; overflow:hidden; border:1px solid rgba(120,77,94,.1); }
.figure button { width:100%; padding:0; border:0; background:transparent; }
.figure img { width:100%; height:auto; max-height:780px; object-fit:contain; background:#f6f3f5; }
.figure:hover img { filter:saturate(1.03); }
.figure figcaption { padding:12px 15px; color:var(--muted); font-size:.82rem; }
.table-wrap { overflow-x:auto; margin:28px 0 40px; border-radius:20px; border:1px solid var(--line); background:white; }
table { width:100%; min-width:820px; border-collapse:collapse; font-size:.9rem; }
th,td { padding:15px 14px; text-align:left; vertical-align:top; border-right:1px solid var(--line); border-bottom:1px solid var(--line); }
th:last-child,td:last-child{border-right:0} tr:last-child td{border-bottom:0}
th { position:sticky; top:0; background:#f9eaf0; color:var(--ink); font-weight:820; }
tbody tr:nth-child(even) { background:#fffbfd; }
.source-summary { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin:24px 0 38px; }
.source-stat { padding:20px; border-radius:20px; background:linear-gradient(145deg,#fff4f8,#f6f0fb); text-align:center; }
.source-stat strong { display:block; font-family:var(--serif); font-size:1.8rem; color:var(--rose-deep); }
.source-stat span { color:var(--muted); font-size:.88rem; }
.duolingo-infographic { margin:28px 0 42px; padding:clamp(24px,5vw,46px); border-radius:28px; background:linear-gradient(145deg,#effbea,#dff4dc); color:#204c31; overflow:hidden; position:relative; }
.duolingo-infographic::after { content:""; position:absolute; width:240px;height:240px;border-radius:50%;right:-80px;top:-100px;background:rgba(255,255,255,.48); }
.duo-title { position:relative; z-index:1; font-family:var(--serif); font-size:clamp(2rem,4vw,3.25rem); margin:0 0 8px; }
.duo-sub { position:relative; z-index:1; margin:0 0 28px; color:#537660; }
.duo-grid { position:relative; z-index:1; display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
.duo-item { padding:17px; border-radius:18px; background:rgba(255,255,255,.68); }
.duo-item strong { display:block; margin-bottom:5px; }
.duo-audience { position:relative; z-index:1; margin-top:18px; padding-top:18px; border-top:1px solid rgba(32,76,49,.14); font-size:.92rem; }

.toc { position:sticky; top:110px; padding:22px; border-radius:24px; background:rgba(255,255,255,.72); border:1px solid rgba(255,255,255,.86); box-shadow:var(--shadow-sm); }
.toc-title { margin:0 0 14px; font-size:.78rem; text-transform:uppercase; letter-spacing:.13em; color:var(--muted); font-weight:820; }
.toc a { display:block; padding:8px 0; color:var(--muted); text-decoration:none; font-size:.89rem; line-height:1.35; border-bottom:1px solid rgba(121,81,96,.08); }
.toc a:last-child { border-bottom:0; }
.toc a:hover { color:var(--rose-deep); }
.project-nav { display:grid; grid-template-columns:1fr 1fr; gap:15px; margin-top:22px; }
.project-nav a { padding:20px; border-radius:20px; background:rgba(255,255,255,.78); border:1px solid var(--line); text-decoration:none; }
.project-nav small { display:block; color:var(--muted); }
.project-nav strong { display:block; margin-top:5px; color:var(--ink); }
.project-nav .next { text-align:right; }

.lightbox { position:fixed; inset:0; z-index:300; display:none; place-items:center; padding:28px; background:rgba(30,18,24,.82); backdrop-filter:blur(12px); }
.lightbox.open { display:grid; }
.lightbox img { max-width:min(1200px,94vw); max-height:88vh; border-radius:18px; box-shadow:0 30px 90px rgba(0,0,0,.35); background:white; }
.lightbox-close { position:absolute; top:22px; right:22px; width:46px; height:46px; border:1px solid rgba(255,255,255,.2); border-radius:50%; background:rgba(255,255,255,.12); color:white; font-size:1.5rem; }

.reveal { opacity:0; transform:translateY(24px); transition:opacity .75s cubic-bezier(.22,.61,.36,1), transform .75s cubic-bezier(.22,.61,.36,1); }
.reveal.visible { opacity:1; transform:none; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns:1fr; }
  .hero-copy { max-width:none; }
  .hero-visual { max-width:520px; margin:20px auto 0; }
  .photo-frame { margin:auto; }
  .bento-wide,.bento-small { grid-column:span 12; }
  .article-layout { grid-template-columns:1fr; }
  .toc { display:none; }
}
@media (max-width: 760px) {
  .site-header { inset:12px 0 auto; padding:0 12px; }
  .nav-shell { border-radius:24px; padding:8px 9px 8px 13px; }
  .nav-links { display:none; position:absolute; top:70px; left:12px; right:12px; flex-direction:column; align-items:stretch; padding:12px; border-radius:24px; background:rgba(255,250,252,.96); box-shadow:var(--shadow); }
  .nav-links.open { display:flex; }
  .nav-link { text-align:left; }
  .menu-button { display:grid; place-items:center; }
  .page { padding-top:100px; }
  .container { width:min(100% - 24px,var(--container)); }
  .section { padding:68px 0; }
  .hero { min-height:auto; padding-top:35px; }
  .hero-title { font-size:clamp(3rem,15vw,4.5rem); }
  .photo-note { left:4px; bottom:18px; }
  .photo-frame::after { width:72px;height:72px;right:-5px; }
  .project-card { grid-column:span 12; }
  .project-grid { gap:16px; }
  .project-cover { min-height:180px; }
  .source-summary { grid-template-columns:1fr; }
  .duo-grid { grid-template-columns:1fr; }
  .article-card { border-radius:24px; }
  .detail-head { border-radius:28px; }
  .project-nav { grid-template-columns:1fr; }
  .project-nav .next { text-align:left; }
  .footer-inner { flex-direction:column; align-items:flex-start; }
}
@media (max-width: 480px) {
  .hero-actions .button { width:100%; }
  .hero-meta { gap:7px; }
  .meta-chip { font-size:.8rem; }
  .photo-note { position:relative; left:auto; bottom:auto; margin:14px auto 0; width:max-content; max-width:100%; transform:none; }
  .project-body { padding:21px; }
  .figure-grid { grid-template-columns:1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { animation-duration:.01ms !important; transition-duration:.01ms !important; }
  .reveal { opacity:1; transform:none; }
}
