@font-face { font-family: "Sora"; font-weight: 600; font-display: swap; src: url("../fonts/sora-600.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-weight: 700; font-display: swap; src: url("../fonts/sora-700.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 400; font-display: swap; src: url("../fonts/dmsans-400.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 500; font-display: swap; src: url("../fonts/dmsans-500.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/dmsans-400i.woff2") format("woff2"); }

:root {
  --bg: #FFFFFF;
  --mist: #EEF6F4;
  --blush: #FBEEF2;
  --ink: #1C2F5E;
  --ink-soft: #4B5877;
  --teal: #5E9F96;
  --teal-deep: #2E6E67;
  --rose: #E28AA2;
  --navy: #2E4C8F;
  --sky: #3FA9E0;
  --green: #5FA85F;
  --sun: #F2B544;
  --line: #DDE6E4;
  --display: "Sora", "Segoe UI", Arial, sans-serif;
  --body: "DM Sans", "Segoe UI", Arial, sans-serif;
  --wrap: min(1160px, 100% - 2 * clamp(1.25rem, 4vw, 3rem));
  --edge: max((100% - 1160px) / 2, clamp(1.25rem, 4vw, 3rem));
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body { margin: 0; position: relative; overflow-x: clip; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: clamp(1.02rem, .3vw + .96rem, 1.125rem); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.12; letter-spacing: -0.02em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 60; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 8px; }
.skip:focus { top: 1rem; }
.blot { display: block; overflow: visible; }

/* ---------- Header ---------- */
.nav { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem var(--edge); background: rgb(255 255 255 / .92); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-bottom-color: var(--line); }
.brand { display: block; line-height: 0; color: var(--green); }
.signature { width: clamp(118px, 12vw, 142px); height: auto; overflow: visible; transform: rotate(-4deg); }
.signature path { fill: currentColor; stroke: currentColor; stroke-width: 6; fill-opacity: 1; }
.signature.write path { stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0; animation: sigStroke 2.2s cubic-bezier(.55,.1,.35,1) forwards, sigFill .7s ease 1.7s forwards; }
@keyframes sigStroke { to { stroke-dashoffset: 0; } }
@keyframes sigFill { to { fill-opacity: 1; } }
.nav-links { display: flex; align-items: center; gap: clamp(.9rem, 2.2vw, 2rem); list-style: none; margin: 0; padding: 0; font-weight: 500; }
.nav-links a { text-decoration: none; position: relative; }
.nav-links a:not(.nav-cta)::after { content: ""; position: absolute; left: -4%; right: -4%; bottom: -2px; height: 7px; border-radius: 50% 40% 60% 45%; background: var(--rose); opacity: .55; transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.3,1.4,.5,1); z-index: -1; }
.nav-links a:not(.nav-cta):hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta { background: var(--ink); color: #fff; padding: .5rem 1.1rem; border-radius: 999px; transition: background .2s, transform .25s cubic-bezier(.3,1.6,.5,1); display: inline-block; }
.nav-cta:hover { background: var(--teal-deep); transform: rotate(-3deg) scale(1.05); }
.lang-toggle { position: relative; order: 3; }
.lang-current { display: inline-flex; align-items: center; gap: .4rem; font: 600 .88rem var(--display); color: var(--ink); background: var(--mist); border: 0; border-radius: 999px; padding: .45rem .8rem; cursor: pointer; transition: background .2s; }
.lang-current:hover, .lang-toggle.open .lang-current { background: #DCEDE9; }
.lang-current svg { transition: transform .3s ease; }
.lang-toggle.open .lang-current svg { transform: rotate(180deg); }
.lang-menu { position: absolute; right: 0; top: calc(100% + .5rem); display: grid; min-width: 9.5rem; padding: .4rem; background: #fff; border-radius: 16px; box-shadow: 0 12px 30px rgb(28 47 94 / .15); transform-origin: top right; transform: scale(.92) translateY(-4px); opacity: 0; visibility: hidden; transition: transform .25s cubic-bezier(.2,.8,.2,1), opacity .2s, visibility 0s .25s; z-index: 50; }
.lang-toggle.open .lang-menu { transform: none; opacity: 1; visibility: visible; transition: transform .25s cubic-bezier(.2,.8,.2,1), opacity .2s; }
.lang-btn { font: 500 .95rem var(--body); text-align: left; color: var(--ink); background: none; border: 0; border-radius: 10px; padding: .5rem .75rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.lang-btn:hover { background: var(--mist); }
.lang-btn[aria-pressed="true"] { font-weight: 600; color: var(--teal-deep); }
.lang-btn[aria-pressed="true"]::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.nav > nav { order: 2; margin-left: auto; margin-right: .4rem; }
.nav .brand { order: 1; }
.menu-btn { order: 4; }
[data-i18n] { transition: opacity .2s ease; }
body.lang-out [data-i18n] { opacity: 0; }
.menu-btn { display: none; font: 600 1rem var(--display); background: none; border: 2px solid var(--ink); border-radius: 999px; padding: .4rem .95rem; color: var(--ink); cursor: pointer; }

/* ---------- Hero ---------- */
.hero { width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem); padding: clamp(1.5rem, 4vw, 3rem) 0 0; min-height: min(86vh, 760px); }
.hello { font-family: var(--display); font-weight: 600; font-size: clamp(1.15rem, 1.6vw, 1.4rem); color: var(--teal-deep); margin-bottom: 1rem; display: inline-flex; align-items: center; gap: .5rem; }
.wave { display: inline-block; transform-origin: 70% 80%; }
.hello:hover .wave, .js .wave { animation: wave 1.6s ease 1.2s 1; }
.hello:hover .wave { animation: wave 1.2s ease; }
@keyframes wave { 0%,100% { rotate: 0deg; } 15% { rotate: 16deg; } 30% { rotate: -8deg; } 45% { rotate: 14deg; } 60% { rotate: -4deg; } 75% { rotate: 8deg; } }
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.4rem); font-weight: 700; max-width: 14ch; }
.hero h1 .word { display: inline-block; transition: transform .35s cubic-bezier(.3,1.6,.5,1), color .25s; }
.hero h1 .word:hover { transform: translateY(-6px) rotate(-3deg); color: var(--teal-deep); }
.hero-lede { margin-top: 1.4rem; max-width: 33rem; color: var(--ink-soft); font-size: 1.12em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.btn { display: inline-flex; align-items: center; font-family: var(--display); font-weight: 600; padding: .85rem 1.45rem; border-radius: 999px; text-decoration: none; position: relative; isolation: isolate; overflow: hidden; transition: color .25s, transform .3s cubic-bezier(.3,1.6,.5,1); }
.btn::before { content: ""; position: absolute; z-index: -1; left: var(--bx, 50%); top: var(--by, 50%); width: 10px; height: 10px; border-radius: 50%; background: var(--fill, var(--teal-deep)); transform: translate(-50%, -50%) scale(0); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.btn:hover::before { transform: translate(-50%, -50%) scale(40); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.96); }
.btn-primary { background: var(--sky); color: #fff; --fill: var(--navy); }
.btn-ghost { border: 2px solid var(--ink); --fill: var(--ink); }
.btn-ghost:hover { color: #fff; }
.hero-langs { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 2rem 0 0; }
.hero-langs .lang-btn { font: 500 .92rem var(--body); padding: .35rem .9rem; border-radius: 999px; background: var(--mist); color: var(--teal-deep); border: 2px solid transparent; transition: transform .3s cubic-bezier(.3,1.6,.5,1), border-color .2s, background .2s; }
.hero-langs li:nth-child(2) .lang-btn { background: var(--blush); color: #9C3F5A; }
.hero-langs li:nth-child(3) .lang-btn { background: #E8EEFA; color: var(--navy); }
.hero-langs .lang-btn:hover { transform: translateY(-3px); }
.hero-langs .lang-btn[aria-pressed="true"] { border-color: currentColor; }

.hero-art { position: relative; aspect-ratio: 548 / 538; width: 100%; max-width: 620px; justify-self: end; --px: 0; --py: 0; }
.hero-bg, .hero-me { position: absolute; inset: 0; -webkit-mask-image: linear-gradient(#000 84%, transparent 91%); mask-image: linear-gradient(#000 84%, transparent 91%); }
.hero-bg img, .hero-me img { width: 100%; height: 100%; }
.hero-bg { mix-blend-mode: multiply; translate: calc(var(--px) * -10px) calc(var(--py) * -8px); transition: translate 1s cubic-bezier(.2,.7,.2,1); }
.js .hero-bg img { animation: paintIn 1.6s cubic-bezier(.2,.8,.2,1) .1s both, breathe 9s ease-in-out 1.8s infinite alternate; transform-origin: 52% 55%; }
@keyframes paintIn { from { opacity: 0; scale: .86; filter: blur(6px); } to { opacity: 1; scale: 1; filter: blur(0); } }
@keyframes breathe { from { scale: 1; rotate: -.6deg; } to { scale: 1.025; rotate: .8deg; } }
.hero-me { translate: calc(var(--px) * 4px) calc(var(--py) * 3px); transition: translate .8s cubic-bezier(.2,.7,.2,1); }
.js .hero-me img { animation: rise .9s cubic-bezier(.2,.7,.2,1) .35s both; }
.hero-art.paused .hero-bg img { animation-play-state: paused; }

/* ---------- Shared ---------- */
section { position: relative; }
.head { display: grid; grid-template-columns: 1fr 1.1fr; gap: 1.5rem 3rem; align-items: end; margin-bottom: clamp(2rem, 5vw, 3.2rem); }
.head h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; }
.head p { color: var(--ink-soft); max-width: 32rem; }
.dab { position: relative; display: inline-block; flex: none; width: 3rem; height: 3rem; cursor: pointer; }
.dab .blot { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none; transition: scale .6s cubic-bezier(.3,1.5,.5,1) .15s, opacity .4s .15s; }
.dab.wobble .blot { animation: wobble .6s cubic-bezier(.3,1.5,.5,1); }
.dab.bloom .blot { animation: bloom .7s cubic-bezier(.2,.9,.3,1.2); }
@keyframes wobble { 0% { scale: 1; rotate: 0deg; } 35% { scale: 1.14; rotate: 8deg; } 70% { scale: .97; rotate: -4deg; } 100% { scale: 1; rotate: 0deg; } }
@keyframes bloom { 0% { scale: 1; } 40% { scale: 1.32; opacity: .75; } 100% { scale: 1; opacity: 1; } }
.js .reveal:not(.in) .dab .blot { scale: .2; opacity: 0; }
.stage-panel.enter .dab .blot { animation: popIn .5s cubic-bezier(.3,1.5,.5,1) backwards; }
.stage-panel.enter li:nth-child(2) .dab .blot { animation-delay: .1s; }
.stage-panel.enter li:nth-child(3) .dab .blot { animation-delay: .2s; }
@keyframes popIn { from { scale: .2; opacity: 0; } }
.dab-num { position: absolute; inset: 0; display: grid; place-items: center; font: 700 1.05rem var(--display); color: var(--ink); pointer-events: none; }

/* ---------- About ---------- */
.about { background: var(--mist); padding: clamp(3.5rem, 8vw, 6rem) var(--edge); overflow: hidden; }
.about-lead { position: relative; max-width: 52rem; font-family: var(--display); font-weight: 600; font-size: clamp(1.35rem, 2.4vw, 2rem); line-height: 1.45; letter-spacing: -0.01em; }
.about-lead mark { background: none; color: inherit; background-image: linear-gradient(transparent 58%, rgb(226 138 162 / .45) 58%, rgb(226 138 162 / .45) 92%, transparent 92%); background-size: 0 100%; background-repeat: no-repeat; transition: background-size 1s cubic-bezier(.2,.8,.2,1) .4s; }
.about-lead.in mark { background-size: 100% 100%; }
.about-lead mark:nth-of-type(2) { background-image: linear-gradient(transparent 58%, rgb(94 159 150 / .4) 58%, rgb(94 159 150 / .4) 92%, transparent 92%); transition-delay: .9s; }

/* ---------- What I do ---------- */
.work, .approach, .path, .beyond, .writing { width: var(--wrap); margin: 0 auto; padding: clamp(4rem, 9vw, 7rem) 0; }
.work-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem clamp(1.5rem, 4vw, 3rem); }
.work-item { position: relative; display: grid; grid-template-columns: 3.2rem 1fr; gap: 1.1rem; padding: 1.4rem 1.4rem 1.5rem 1rem; border-radius: 22px; isolation: isolate; cursor: pointer; }
.work-item::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 46% 54% 42% 58% / 58% 44% 56% 42%; background: color-mix(in srgb, var(--c) 16%, white); transform: scale(.2) rotate(-12deg); transform-origin: 1.6rem 1.8rem; opacity: 0; transition: transform .6s cubic-bezier(.2,.9,.3,1.1), opacity .3s, border-radius .6s; }
.work-item:hover::before, .work-item:focus-within::before { transform: none; opacity: 1; border-radius: 26px 30px 24px 32px; }
.work-item h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: .45rem; }
.work-item p { color: var(--ink-soft); }
.work-item .dab { margin-top: .1rem; }
.hint-line { margin-top: 1.6rem; color: var(--ink-soft); font-size: .95rem; }

/* ---------- Stages ---------- */
.stages { background: var(--mist); padding: clamp(4rem, 9vw, 7rem) 0; }
.stages-inner { width: var(--wrap); margin: 0 auto; }
.stage-tabs { display: flex; flex-wrap: wrap; gap: .7rem; }
.stage-tab { font: 600 1rem/1.3 var(--display); color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: .75rem 1.25rem; cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .3s cubic-bezier(.3,1.6,.5,1); }
.stage-tab:hover { border-color: var(--teal); transform: translateY(-3px) rotate(-1.5deg); }
.stage-tab:active { transform: scale(.95); }
.stage-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.stage-panel { margin-top: 1.6rem; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem, 5vw, 4rem); background: #fff; border-radius: 26px; padding: clamp(1.6rem, 3.5vw, 2.8rem); }
.stage-panel[hidden] { display: none; }
.stage-panel.enter { animation: panelIn .5s cubic-bezier(.2,.9,.3,1.1); }
@keyframes panelIn { from { opacity: 0; translate: 0 14px; scale: .98; } to { opacity: 1; translate: 0 0; scale: 1; } }
.scene { font-family: var(--display); font-weight: 600; font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.45; color: var(--teal-deep); }
.help { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.help li { display: grid; grid-template-columns: 2.2rem 1fr; gap: .6rem; align-items: start; color: var(--ink-soft); border-radius: 14px; padding: .35rem .5rem .35rem 0; transition: background .25s; }
.help li:hover { background: var(--mist); }
.help .dab { width: 2.2rem; height: 2rem; }
.help strong { color: var(--ink); font-weight: 600; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.4rem; }
.steps li { position: relative; cursor: pointer; }
.steps li .dab { width: 3.4rem; height: 3.4rem; margin-bottom: .9rem; }
.steps .dab .blot { transition: scale .9s cubic-bezier(.2,.7,.2,1), rotate .9s cubic-bezier(.2,.7,.2,1), opacity .8s ease; }
.js .steps .reveal:not(.in) .dab .blot { scale: .75; opacity: 0; }
.steps .dab.wobble .blot { animation: none; }
.steps li:hover .dab .blot { scale: 1.07; rotate: 8deg; }
.steps .dab.bloom .blot { animation: softBloom 1.1s ease-in-out; }
@keyframes softBloom { 50% { scale: 1.16; opacity: .85; } }
.steps .dab-num { transition: opacity .6s ease .35s, translate .6s ease .35s; }
.js .steps .reveal:not(.in) .dab-num { opacity: 0; translate: 0 4px; }
.steps li::after { content: ""; position: absolute; top: 1.6rem; left: 4.1rem; right: -.9rem; height: 4px; background: radial-gradient(circle, var(--line-c, #C5D3D0) 1.7px, transparent 2.2px) 0 50% / 11px 4px repeat-x; transform: scaleX(0); transform-origin: left; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.steps li.in::after { transform: scaleX(1); animation: flow 2.4s linear 1.2s infinite; }
.steps li:nth-child(2)::after { transition-delay: .15s; } .steps li:nth-child(3)::after { transition-delay: .3s; } .steps li:nth-child(4)::after { transition-delay: .45s; }
.steps li:hover::after { --line-c: var(--sc); }
.steps li:last-child::after { display: none; }
@keyframes flow { to { background-position: 11px 50%; } }
.steps h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: .35rem; transition: color .3s; }
.steps li:hover h3 { color: var(--teal-deep); }
.steps p { color: var(--ink-soft); font-size: .97em; }

/* ---------- Projects ---------- */
.projects { width: var(--wrap); margin: 0 auto; padding: clamp(4rem, 9vw, 7rem) 0; border-top: 1px solid var(--line); }
.project-list { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); }
.project { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.project:nth-child(even) .project-cover { order: 2; }
.project-cover { display: block; }
.project .cover { aspect-ratio: 16 / 10; }
.project:nth-child(3n+2) .cover { background: var(--blush); }
.project:nth-child(3n) .cover { background: #E8EEFA; }
.project-context { font-size: .92rem; font-weight: 500; color: var(--teal-deep); margin-bottom: .5rem; }
.project h3 { font-size: clamp(1.45rem, 2.6vw, 2rem); font-weight: 700; margin-bottom: .7rem; }
.project h3 a { text-decoration: none; }
.project h3 a:hover { text-decoration: underline; text-decoration-color: var(--rose); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.project p { color: var(--ink-soft); }
.tools { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.tools li { font-size: .88rem; padding: .2rem .7rem; border-radius: 999px; background: var(--mist); color: var(--teal-deep); }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.chip { font: 600 .95rem var(--display); color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: .5rem 1.1rem; cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .25s cubic-bezier(.3,1.6,.5,1); }
.chip:hover { border-color: var(--teal); transform: translateY(-2px); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.post-card[hidden] { display: none; }
.cover-img { background: #FBFAF7 !important; }
.cover-img img, .project-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.project-img { border-radius: 22px; aspect-ratio: 16 / 10; box-shadow: 0 1px 0 var(--line); }
.project:hover .project-img, .post-card a:hover .cover-img img { transform: scale(1.03); }
.project-cover { overflow: hidden; border-radius: 22px; }
.post-body ul { padding-left: 1.2rem; }
.post-body li + li { margin-top: .4rem; }
.post-body .tools { padding: 0; }

/* ---------- Timeline ---------- */
.path { border-top: 1px solid var(--line); }
.timeline { --progress: 0; position: relative; list-style: none; margin: 0; padding: 0 0 0 3.4rem; max-width: 52rem; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 1.15rem; top: .6rem; bottom: .6rem; width: 5px; border-radius: 5px; }
.timeline::before { background: var(--line); }
.timeline::after { background: linear-gradient(#6FA9A1, #7CC3DD 35%, #E39AAE 65%, #3A5698); opacity: .85; transform-origin: top; transform: scaleY(var(--progress)); filter: url(#roughLine); }
.timeline li { position: relative; padding: 0 0 2.6rem; cursor: pointer; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .dab { position: absolute; left: -3.35rem; top: -.35rem; width: 2.8rem; height: 2.8rem; }
.timeline .dab .blot { scale: .45; opacity: .35; }
.timeline li.reached .dab .blot { scale: 1; opacity: 1; }
.when { display: inline-block; font-family: var(--display); font-weight: 600; font-size: .92rem; color: var(--teal-deep); background: var(--mist); padding: .15rem .7rem; border-radius: 999px; margin-bottom: .45rem; transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.timeline li:hover .when { transform: rotate(-3deg) scale(1.06); }
.timeline h3 { font-size: 1.22rem; font-weight: 600; margin-bottom: .3rem; }
.timeline p { color: var(--ink-soft); }

/* ---------- Writing (home teaser + blog list) ---------- */
.writing { border-top: 1px solid var(--line); }
.post-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 3vw, 2rem); }
.post-card a { display: block; text-decoration: none; }
.cover { position: relative; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; background: var(--mist); transition: transform .45s cubic-bezier(.3,1.5,.5,1), border-radius .45s; }
.post-card:nth-child(3n+2) .cover { background: var(--blush); }
.post-card:nth-child(3n) .cover { background: #E8EEFA; }
.cs { position: absolute; width: 0; height: 0; }
.cs svg { position: absolute; transform: translate(-50%, -50%); transition: scale .6s cubic-bezier(.3,1.4,.5,1); }
a:hover .cover .cs:first-child svg, .project:hover .cs:first-child svg { scale: 1.06; }
a:hover .cover .cs:nth-child(2) svg, .project:hover .cs:nth-child(2) svg { scale: 1.15; }
.post-card a:hover .cover { transform: rotate(-1.5deg) translateY(-6px); border-radius: 30px 18px 34px 20px; }
.post-tag { display: inline-block; margin-top: 1rem; font-size: .88rem; font-weight: 500; color: var(--teal-deep); }
.post-card h3 { font-size: 1.25rem; font-weight: 600; margin-top: .25rem; }
.post-card p { color: var(--ink-soft); margin-top: .4rem; font-size: .98em; }
.post-card a:hover h3 { text-decoration: underline; text-decoration-color: var(--rose); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.more { margin-top: 2.2rem; }

/* ---------- Beyond ---------- */
.beyond { border-top: 1px solid var(--line); }
.beyond-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
.beyond article { background: var(--mist); border-radius: 26px; padding: clamp(1.6rem, 3vw, 2.4rem); transition: transform .45s cubic-bezier(.3,1.5,.5,1); }
.beyond article:hover { transform: rotate(-1deg) translateY(-4px); }
.beyond article:nth-child(2) { background: var(--blush); }
.beyond article:nth-child(2):hover { transform: rotate(1deg) translateY(-4px); }
.beyond h3 { font-size: 1.45rem; font-weight: 600; margin-bottom: .7rem; }
.beyond p { color: var(--ink-soft); }
.beyond cite { font-style: italic; color: var(--ink); }
.link { display: inline-block; margin-top: 1.1rem; font-family: var(--display); font-weight: 600; text-decoration-color: var(--sky); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* ---------- Connect ---------- */
.connect { padding: clamp(4.5rem, 10vw, 8rem) var(--edge); background: radial-gradient(60% 90% at 85% 30%, #C9E6E0 0%, transparent 70%), radial-gradient(35% 60% at 10% 85%, #F8DCE4 0%, transparent 70%), var(--mist); }
.connect h2 { font-size: clamp(2.2rem, 5.2vw, 4.4rem); font-weight: 700; max-width: 17ch; }
.connect p { margin-top: 1.2rem; max-width: 36rem; color: var(--ink-soft); }
.connect .hero-actions { margin-top: 2rem; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 1.4rem var(--edge); background: var(--ink); color: #C5CEE0; font-size: .95rem; }
.footer a { color: #fff; }

/* ---------- Blog pages ---------- */
.page-head { width: var(--wrap); margin: 0 auto; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem); }
.page-head h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); font-weight: 700; }
.page-head p { margin-top: 1rem; max-width: 36rem; color: var(--ink-soft); font-size: 1.1em; }
.blog-list { width: var(--wrap); margin: 0 auto; padding-bottom: clamp(4rem, 8vw, 6rem); }
.post { width: min(46rem, 100% - 2 * clamp(1.25rem, 4vw, 3rem)); margin: 0 auto; padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(4rem, 8vw, 6rem); }
.back { font-family: var(--display); font-weight: 600; text-decoration: none; color: var(--teal-deep); display: inline-block; transition: transform .25s; }
.back:hover { transform: translateX(-4px); }
.post h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; margin-top: 1.2rem; }
.post .post-tag { margin-top: 1.4rem; }
.post .cover { margin: 2rem 0; aspect-ratio: 16 / 7; }
.post .cover-img { aspect-ratio: 16 / 10; }
.post-body { font-size: 1.12em; line-height: 1.75; }
.post-body p + p { margin-top: 1.2em; }
.post-body h2 { font-size: 1.6rem; margin: 2rem 0 .8rem; }
.placeholder { border: 2px dashed var(--rose); border-radius: 18px; padding: 1.4rem 1.6rem; background: var(--blush); color: #8A3550; }
.post-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.post-nav a { font-family: var(--display); font-weight: 600; text-decoration: none; max-width: 48%; }
.post-nav a:hover { color: var(--teal-deep); }
.post-nav span { display: block; font-family: var(--body); font-weight: 400; font-size: .88rem; color: var(--ink-soft); }

/* ---------- Motion ---------- */
.js .load { opacity: 0; translate: 0 16px; animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--d) * 110ms + 100ms); }
@keyframes rise { to { opacity: 1; translate: 0 0; } }
.js .reveal { opacity: 0; translate: 0 18px; transition: opacity .7s ease, translate .7s cubic-bezier(.2,.8,.2,1.1); }
.js .reveal.in { opacity: 1; translate: 0 0; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-art { justify-self: center; max-width: 480px; order: -1; margin-bottom: -1rem; }
  .head { grid-template-columns: 1fr; gap: .8rem; }
  .stage-panel { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 1.4rem; }
  .steps li { display: grid; grid-template-columns: 3.4rem 1fr; column-gap: 1rem; }
  .steps li .dab { grid-row: span 2; margin: 0; }
  .steps li::after { display: none; }
  .beyond-grid { grid-template-columns: 1fr; }
  .project { grid-template-columns: 1fr; }
  .project:nth-child(even) .project-cover { order: 0; }
  .post-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .menu-btn { display: inline-block; }
  .nav > nav { display: contents; }
  .lang-toggle { margin-left: auto; }
  .nav-links { position: absolute; top: 100%; right: var(--edge); flex-direction: column; align-items: flex-start; gap: .9rem; background: #fff; padding: 1.2rem 1.4rem; border-radius: 18px; box-shadow: 0 12px 30px rgb(28 47 94 / .15); transform-origin: top right; transform: scale(.85); opacity: 0; pointer-events: none; transition: transform .3s cubic-bezier(.3,1.5,.5,1), opacity .2s; }
  .nav.open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
  .work-list { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .load, .js .reveal { opacity: 1; translate: 0 0; }
}
