/* Mariia Vasylieva · portfolio
   Brand: petrol #0F3D4C + raspberry #E35D86 on a light ground
   Type: Geist · layout, spacing, radius and motion follow the redesign skill's Design Values
   Hero signature: a tangle of requests settling into a funnel (js/main.js) */
:root {
  color-scheme: light;
  --bg: #F6F7F7;
  --s1: #FFFFFF;
  --s2: #ECEFF0;
  --s3: #DEE4E6;
  --ink: #14201F;
  --muted: #55615F;
  --faint: #889290;
  --primary: #0F3D4C;
  --primary-ink: #0F3D4C;
  --on-primary: #FFFFFF;
  --primary-soft: #DCE8EC;
  --secondary: #E35D86;
  --on-secondary: #1A0F14;
  --secondary-soft: #FBE1E9;
  --grad-from: var(--ink);
  --grad-to: var(--primary);
  --nav-bg: color-mix(in srgb, var(--bg) 78%, transparent);
  --nav-bg-2: color-mix(in srgb, #FFFFFF 86%, transparent);
  --grain-filter: invert(1);
  --grain-opacity: 0.035;
  --portrait-filter: none;
  --sp-1: 2px;
  --sp-2: 4px;
  --sp-3: 8px;
  --sp-4: 12px;
  --sp-5: 16px;
  --sp-6: 24px;
  --sp-7: 32px;
  --sp-8: 40px;
  --sp-9: 48px;
  --sp-10: 64px;
  --sp-11: 80px;
  --sp-12: 96px;
  --r-lg: 8px;
  --r-xl: 12px;
  --r-2xl: 16px;
  --r-3xl: 24px;
  --r-full: 9999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --move: 500ms;
  --fade: 300ms;
  --z-header: 10;
  --z-skip: 20;
  --z-grain: 30;
  --font: "Geist", system-ui, sans-serif;
  --wide-bg: #175062;
  --bold-grad-to: #F6B8CA;
  --w-chaos: #4E7380;
  --w-a: #FFFFFF;
  --w-b: #F07A9E;
  --w-label: #A9C0C8;
  --w-node: #164E61;
  --line: var(--s3);
}
@view-transition { navigation: auto; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 24px; font-weight: 400; -webkit-font-smoothing: antialiased; overflow-x: clip; }
.grain { position: fixed; inset: 0; z-index: var(--z-grain); pointer-events: none; opacity: var(--grain-opacity); filter: var(--grain-filter); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--sp-6); }
h1, h2, h3 { font-weight: 600; margin: 0 0 var(--sp-5); text-wrap: balance; }
h1 { font-size: 60px; line-height: 60px; letter-spacing: -0.035em; }
h2 { font-size: 30px; line-height: 36px; letter-spacing: -0.02em; }
h3 { font-size: 20px; line-height: 28px; letter-spacing: -0.01em; }
p { margin: 0 0 var(--sp-5); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--secondary); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: text-decoration-color var(--fade) var(--ease), color var(--fade) var(--ease); }
a:hover { text-decoration-color: var(--primary); color: var(--primary-ink); }
ul { padding-left: var(--sp-6); margin: 0 0 var(--sp-5); }
li { margin-bottom: var(--sp-3); }
li:last-child { margin-bottom: 0; }
ol.process { padding-left: var(--sp-6); margin: 0 0 var(--sp-5); }
ol.process li { margin-bottom: var(--sp-4); padding-left: var(--sp-2); }
ol.process li::marker { color: var(--primary-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
::selection { background: var(--secondary); color: var(--on-secondary); }
.ph { width: 16px; height: 16px; fill: currentColor; flex: none; }
.ph-flip { transform: scaleX(-1); }
.eyebrow::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: var(--r-full); background: var(--secondary); margin-right: var(--sp-3); vertical-align: 1px; }
.eyebrow { font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: 0.01em; color: var(--muted); margin: 0 0 var(--sp-5); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: var(--sp-5); top: calc(-1 * var(--sp-10)); z-index: var(--z-skip); background: var(--ink); color: #000000; padding: var(--sp-3) var(--sp-4); border-radius: var(--r-lg); font-weight: 600; text-decoration: none; transition: top var(--fade) var(--ease); }
.skip-link:focus { top: var(--sp-5); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: var(--r-lg); }
section[id], footer[id] { scroll-margin-top: var(--sp-12); }
.site-header { position: sticky; top: var(--sp-5); z-index: var(--z-header); padding: 0 var(--sp-6); }
.nav { max-width: 1200px; margin: 0 auto; padding: var(--sp-3) var(--sp-3) var(--sp-3) var(--sp-6); display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); background: var(--nav-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--s2); border-radius: var(--r-full); transition: background-color var(--fade) var(--ease), border-color var(--fade) var(--ease); }
.site-header.scrolled .nav { background: var(--nav-bg-2); border-color: var(--s3); }
.nav-name { font-weight: 600; font-size: 16px; line-height: 24px; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: var(--sp-2); }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 14px; line-height: 20px; padding: var(--sp-3) var(--sp-4); border-radius: var(--r-full); transition: background-color var(--fade) var(--ease), color var(--fade) var(--ease); }
.nav-links a:hover { color: var(--ink); background: var(--s2); }
.nav-links a:active { transform: scale(0.98); }
.nav-links a[aria-current="page"] { color: var(--primary-ink); background: var(--primary-soft); }
.hero { padding: var(--sp-12) 0 var(--sp-11); }
.hero h1, .case-hero h1 { max-width: 680px; background: linear-gradient(90deg, var(--grad-from), var(--grad-to)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 20px; line-height: 28px; color: var(--muted); max-width: 680px; margin-top: var(--sp-6); }
.js [data-stagger] > * { opacity: 0; transform: translateY(16px); }
.js [data-stagger].in > * { opacity: 1; transform: none; transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
html:not(.js) [data-stagger] > * { opacity: 1; }
.tiles-wrap { margin-top: var(--sp-12); }
.tiles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--sp-5); align-items: start; }
.tiles .tile:nth-child(1) { grid-column: span 7; }
.tiles .tile:nth-child(2) { grid-column: span 5; margin-top: var(--sp-12); }
.tiles .tile:nth-child(3) { grid-column: 1 / -1; }
.tiles .tile:nth-child(4) { grid-column: span 5; }
.tiles .tile:nth-child(5) { grid-column: span 7; margin-top: var(--sp-9); }
.tile { display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-7); background: var(--s1); border-radius: var(--r-3xl); color: var(--ink); text-decoration: none; transition: background-color var(--fade) var(--ease), transform var(--move) var(--ease); }
.tile:hover { background: var(--primary-soft); transform: translateY(-4px); }
.tile:active { transform: scale(0.98); }
.tile--wide { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--sp-10); row-gap: var(--sp-4); grid-template-rows: auto auto auto; background: var(--primary); color: var(--on-primary); }
.tile--wide:hover { background: color-mix(in srgb, var(--primary) 88%, var(--ink)); }
.tile--wide .tile-org, .tile--wide p { color: color-mix(in srgb, var(--on-primary) 78%, var(--primary)); }
.tile--wide .tile-cta { color: var(--on-primary); }
.tile--wide .tile-cta .ph { color: var(--secondary); }
.tile--wide .tile-org { grid-column: 1; grid-row: 1; }
.tile--wide h3 { grid-column: 1; grid-row: 2 / span 2; font-size: 30px; line-height: 36px; }
.tile--wide p { grid-column: 2; grid-row: 1 / span 2; }
.tile--wide .tile-cta { grid-column: 2; grid-row: 3; }
.tile-org { font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: 0.01em; color: var(--muted); }
.tile h3 { font-size: 24px; line-height: 32px; letter-spacing: -0.02em; margin: 0; }
.tile p { color: var(--muted); margin: 0; max-width: 65ch; }
.tile-cta { margin-top: var(--sp-3); font-weight: 600; font-size: 14px; line-height: 20px; display: inline-flex; align-items: center; gap: var(--sp-3); }
.tile-cta .ph { transition: transform var(--move) var(--ease); }
.tile:hover .tile-cta .ph { transform: translateX(4px); }
.tile-cta { color: var(--primary-ink); }
.case-hero { padding: var(--sp-12) 0 var(--sp-10); }
.case-hero h1 { font-size: 48px; line-height: 48px; }
.case-lede { font-size: 20px; line-height: 28px; color: var(--muted); max-width: 680px; margin-top: var(--sp-6); }
.glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: var(--sp-6); margin: var(--sp-10) 0 0; padding: var(--sp-7) 0 0; border-top: 2px solid var(--secondary); }
.stat { display: flex; flex-direction: column; gap: var(--sp-3); }
.stat-number { font-weight: 600; font-size: 48px; line-height: 48px; letter-spacing: -0.03em; color: var(--primary-ink); font-variant-numeric: tabular-nums; }
.stat-number .stat-small { font-size: 24px; line-height: 32px; color: var(--muted); letter-spacing: -0.01em; }
.stat-number .stat-unit { display: block; font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-top: var(--sp-3); }
.stat-label { font-size: 14px; line-height: 20px; color: var(--muted); max-width: 30ch; }
.narrative { padding: var(--sp-10) 0 var(--sp-11); }
.narrative + .narrative { padding-top: 0; }
.narrative h2 { margin-bottom: var(--sp-6); }
.narrative .prose { max-width: 65ch; font-size: 18px; line-height: 28px; }
.narrative h3 { margin-top: var(--sp-9); }
.pull { margin: var(--sp-10) auto var(--sp-12); max-width: 1200px; padding: 0 var(--sp-6); }
.pull p { font-weight: 500; font-size: 36px; line-height: 40px; letter-spacing: -0.025em; color: var(--primary-ink); max-width: 680px; margin: 0; }
.proof { background: var(--s1); border-radius: var(--r-2xl); padding: var(--sp-6); margin-top: var(--sp-7); max-width: 65ch; }
.proof-label { font-weight: 600; font-size: 14px; line-height: 20px; color: var(--muted); margin-bottom: var(--sp-3); }
.proof p { font-size: 16px; line-height: 24px; color: var(--muted); }
.proof-links { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-6); margin-top: var(--sp-4); font-weight: 600; }
.result-highlight { background: var(--secondary-soft); border-radius: var(--r-xl); padding: var(--sp-4) var(--sp-5); list-style-position: inside; margin-left: calc(-1 * var(--sp-5)); }
.diagram-figure { margin: var(--sp-9) 0; padding: var(--sp-7); background: var(--s1); border-radius: var(--r-3xl); }
.diagram-figure svg { width: 100%; height: auto; display: block; }
.diagram-figure figcaption { margin-top: var(--sp-5); font-size: 14px; line-height: 20px; color: var(--muted); }
.diag text { font-family: var(--font); fill: var(--ink); font-size: 14px; }
.diag .t-muted { fill: var(--muted); font-size: 12px; }
.diag .t-strong { font-weight: 600; }
.diag .t-accent { fill: var(--primary-ink); font-weight: 600; }
.diag .node { fill: var(--s2); stroke: var(--s3); stroke-width: 1.5; }
.diag .node--accent { fill: var(--primary-soft); stroke: var(--primary); }
.diag .edge { fill: none; stroke: var(--faint); stroke-width: 1.5; }
.diag .edge--accent { stroke: var(--primary); stroke-width: 2; }
.diag .edge--chaos { stroke-dasharray: 4 4; stroke: var(--secondary); }
.diag .draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 800ms var(--ease) 150ms; }
.diagram-figure.in .diag .draw { stroke-dashoffset: 0; }
.no-motion .diag .draw { stroke-dashoffset: 0; transition: none; }
.pager { padding: var(--sp-10) 0; }
.pager-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--sp-5); }
.pager a { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-6); background: var(--s1); border-radius: var(--r-3xl); text-decoration: none; color: var(--ink); transition: background-color var(--fade) var(--ease), transform var(--move) var(--ease); }
.pager a:hover { background: var(--primary-soft); transform: translateY(-4px); }
.pager a:active { transform: scale(0.98); }
.pager .dir { display: inline-flex; align-items: center; gap: var(--sp-3); font-size: 14px; line-height: 20px; font-weight: 500; color: var(--muted); }
.pager .dest { font-weight: 600; font-size: 20px; line-height: 28px; letter-spacing: -0.01em; }
.pager a.next { align-items: flex-end; text-align: right; }
.about { padding: var(--sp-12) 0; }
.about-grid { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: var(--sp-10); align-items: start; }
.portrait { position: relative; margin: 0; width: 15rem; aspect-ratio: 4 / 5; border-radius: var(--r-3xl); overflow: hidden; background: var(--secondary-soft); box-shadow: var(--sp-5) var(--sp-5) 0 0 var(--secondary); }
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; filter: var(--portrait-filter); }
.portrait-fallback { position: absolute; inset: 0; display: none; place-items: center; font-weight: 600; font-size: 48px; line-height: 48px; color: var(--muted); }
.portrait.no-photo img { display: none; }
.portrait.no-photo .portrait-fallback { display: grid; }
.about-copy { max-width: 65ch; font-size: 18px; line-height: 28px; }
.about-copy h2 { font-size: 36px; line-height: 40px; letter-spacing: -0.025em; }
.about-copy p:not(.eyebrow) { color: var(--ink); }
.video-slot { margin: 0 0 var(--sp-8); }
.video-slot[hidden] { display: none; }
.video-facade { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: var(--r-3xl); overflow: hidden; background: var(--primary); cursor: pointer; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--move) var(--ease); }
.video-facade:hover img { transform: scale(1.02); }
.video-facade .play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: var(--r-full); background: var(--secondary); color: var(--on-secondary); display: grid; place-items: center; }
.video-slot iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r-3xl); display: block; }
.working-with { margin-top: var(--sp-11); }
.working-with h3 { font-size: 30px; line-height: 36px; letter-spacing: -0.02em; max-width: 680px; }
.working-with > p { max-width: 65ch; color: var(--muted); font-size: 18px; line-height: 28px; }
.traits { list-style: none; padding: 0; margin-top: var(--sp-7); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); }
.traits li { background: var(--s1); border-radius: var(--r-2xl); padding: var(--sp-6); margin: 0; color: var(--muted); }
.traits li:nth-child(2) { margin-top: var(--sp-7); }
.traits li:nth-child(4) { margin-top: var(--sp-7); }
.traits li:nth-child(1), .traits li:nth-child(4) { background: var(--secondary-soft); }
.traits strong { display: block; color: var(--primary-ink); font-weight: 600; font-size: 18px; line-height: 28px; margin-bottom: var(--sp-3); }
.site-footer { padding: var(--sp-12) 0 var(--sp-10); border-top: 1px solid var(--s2); background: var(--s1); }
.site-footer h2 { font-size: 48px; line-height: 48px; letter-spacing: -0.03em; }
.footer-line { color: var(--muted); max-width: 46ch; font-size: 18px; line-height: 28px; margin: 0 0 var(--sp-7); }
.contact-links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4) var(--sp-6); margin-bottom: var(--sp-11); }
.btn-primary { display: inline-flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); background: var(--primary); color: var(--on-primary); border-radius: var(--r-lg); font-weight: 600; font-size: 16px; line-height: 24px; text-decoration: none; transition: background-color var(--fade) var(--ease), transform var(--move) var(--ease); }
.btn-primary:hover { background: color-mix(in srgb, var(--primary) 82%, var(--ink)); }
.btn-primary:active { transform: scale(0.98); }
.contact-email { color: var(--muted); font-size: 14px; line-height: 20px; font-variant-numeric: tabular-nums; }
.contact-links a:not(.btn-primary) { display: inline-flex; align-items: center; gap: var(--sp-2); font-weight: 600; font-size: 16px; line-height: 24px; }
.footer-meta { color: var(--faint); font-size: 12px; line-height: 16px; margin: 0 0 var(--sp-3); }
.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js [data-stagger] > * { transform: none; }
  .js .reveal.in, .js [data-stagger].in > * { transition: opacity var(--fade) linear; }
  .tile, .pager a, .btn-primary, .nav-links a, .tile-cta .ph { transition: background-color var(--fade) linear; }
  .tile:hover, .pager a:hover, .tile:hover .tile-cta .ph { transform: none; }
  .diag .draw { stroke-dashoffset: 0; transition: none; }
}
@media (max-width: 860px) {
  h1 { font-size: 36px; line-height: 40px; }
  .case-hero h1 { font-size: 36px; line-height: 40px; }
  .hero { padding: var(--sp-11) 0 var(--sp-10); }
  .hero-sub, .case-lede { font-size: 18px; line-height: 28px; }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .tiles .tile:nth-child(n) { grid-column: auto; margin-top: 0; }
  .tile { padding: var(--sp-6); }
  .tile--wide { display: flex; }
  .about-grid { grid-template-columns: minmax(0, 1fr); gap: var(--sp-7); }
  .portrait { width: 12rem; }
  .traits { grid-template-columns: minmax(0, 1fr); }
  .traits li:nth-child(n) { margin-top: 0; }
  .glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-number { font-size: 36px; line-height: 40px; }
  .pull p { font-size: 30px; line-height: 36px; }
  .pager-grid { grid-template-columns: minmax(0, 1fr); }
  .pager a.next { align-items: flex-start; text-align: left; }
  .site-footer h2 { font-size: 36px; line-height: 40px; }
  .site-header { padding: 0 var(--sp-4); top: var(--sp-3); }
  .nav { padding-left: var(--sp-5); }
  .nav-links a { padding: var(--sp-3); }
  .container { padding: 0 var(--sp-5); }
}
@media (max-width: 460px) {
  .glance { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  body { padding-bottom: 96px; }
}
.tiles .tile:nth-child(2) { background: var(--secondary-soft); }
.tiles .tile:nth-child(2):hover { background: color-mix(in srgb, var(--secondary-soft) 70%, var(--secondary)); }
.hero, .case-hero { background: var(--primary); color: var(--on-primary); margin-top: -72px; padding-top: calc(var(--sp-12) + 72px); }
.hero h1, .case-hero h1 { background: linear-gradient(90deg, #FFFFFF, var(--bold-grad-to, color-mix(in srgb, #FFFFFF 55%, var(--secondary)))); -webkit-background-clip: text; background-clip: text; }
.hero .eyebrow, .case-hero .eyebrow, .hero-sub, .case-lede, .case-hero .stat-label, .case-hero .stat-small, .case-hero .stat-unit { color: color-mix(in srgb, #FFFFFF 80%, var(--primary)); }
.case-hero .stat-number { color: #FFFFFF; }
.case-hero .glance { border-top-color: var(--secondary); }
.case-hero ::selection, .hero ::selection { background: var(--secondary); color: var(--on-secondary); }
.nav { background: color-mix(in srgb, #FFFFFF 90%, transparent); border-color: transparent; }
.site-header.scrolled .nav { background: color-mix(in srgb, #FFFFFF 94%, transparent); border-color: var(--s3); }
.tiles .tile:nth-child(n) { background: var(--s1); }
.tiles .tile:nth-child(n):hover { background: var(--primary-soft); }
.tiles .tile.tile--wide:nth-child(n) { background: var(--secondary); color: var(--on-secondary); }
.tiles .tile.tile--wide:nth-child(n):hover { background: color-mix(in srgb, var(--secondary) 85%, #FFFFFF); }
.tile--wide .tile-org, .tile--wide p { color: color-mix(in srgb, var(--on-secondary) 78%, var(--secondary)); }
.tile--wide .tile-cta, .tile--wide .tile-cta .ph { color: var(--on-secondary); }
.hero { padding-bottom: var(--sp-12); }
.pull p { color: var(--ink); }
.pull { background: var(--secondary); max-width: none; padding: var(--sp-11) 0; margin: var(--sp-10) 0 var(--sp-11); }
.pull p { max-width: 1200px; margin: 0 auto; padding: 0 var(--sp-6); }
.pull p { color: var(--on-secondary); }
.traits li:nth-child(1), .traits li:nth-child(4) { background: var(--secondary); color: color-mix(in srgb, var(--on-secondary) 80%, var(--secondary)); }
.traits li:nth-child(1) strong, .traits li:nth-child(4) strong { color: var(--on-secondary); }
.site-footer { background: var(--primary); color: var(--on-primary); border-top: 0; }
.site-footer .footer-line, .site-footer .contact-email, .site-footer .footer-meta { color: color-mix(in srgb, #FFFFFF 78%, var(--primary)); }
.site-footer a:not(.btn-primary) { color: #FFFFFF; text-decoration-color: var(--secondary); }
.site-footer .btn-primary { background: var(--secondary); color: var(--on-secondary); }
.site-footer .btn-primary:hover { background: #FFFFFF; }
.site-footer :focus-visible { outline-color: #FFFFFF; }
.hero :focus-visible, .case-hero :focus-visible { outline-color: #FFFFFF; }
.hero .eyebrow::before, .case-hero .eyebrow::before { background: var(--hero-dot, var(--secondary)); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--sp-10); align-items: center; }
.hero-visual { min-width: 0; }
mark { background: none; color: inherit; }
.tile-result { font-weight: 600; font-size: 14px; line-height: 20px; color: var(--primary-ink); }
.tile--wide .tile-result { grid-column: 1; grid-row: 3; align-self: end; }
.tiles .tile.tile--wide .tile-result { color: inherit; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: var(--sp-8); }
  .tile--wide .tile-result { align-self: auto; }
}
.weave-wrap { position: relative; }
#weave { width: 100%; height: auto; display: block; overflow: visible; }
#weave .w-lbl { font-family: var(--font); font-size: 13px; font-weight: 500; }
#weave .w-box { font-family: var(--font); font-size: 14px; font-weight: 600; }
.weave-replay { position: absolute; right: 0; bottom: calc(-1 * var(--sp-7)); min-height: 32px; padding: var(--sp-2) var(--sp-4); font: inherit; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--w-label); background: transparent; border: 1px solid color-mix(in srgb, var(--w-label) 45%, transparent); border-radius: var(--r-full); cursor: pointer; transition: background-color var(--fade) var(--ease); }
.weave-replay:hover { background: color-mix(in srgb, var(--w-label) 15%, transparent); }
.tiles .tile.tile--wide:nth-child(n) { background: var(--wide-bg); color: #FFFFFF; }
.tiles .tile.tile--wide:nth-child(n):hover { background: var(--primary); }
.tile--wide .tile-org, .tile--wide p { color: rgb(255 255 255 / 0.78); }
.tiles .tile.tile--wide .tile-result, .tile--wide .tile-cta { color: #FFFFFF; }
.tile--wide .tile-cta .ph { color: var(--bold-grad-to, var(--secondary)); }
.tile-result::before { content: ""; display: inline-block; width: 24px; height: 3px; border-radius: var(--r-full); background: var(--secondary); margin-right: var(--sp-3); vertical-align: 4px; }
.tile--wide .tile-result::before { background: var(--bold-grad-to, #FFFFFF); }
.tiles .tile:nth-child(2) { background: var(--s1); }
.pull { background: var(--primary); }
.pull p { color: #FFFFFF; }
.traits li:nth-child(1), .traits li:nth-child(4) { background: var(--primary); color: rgb(255 255 255 / 0.8); }
.traits li:nth-child(1) strong, .traits li:nth-child(4) strong { color: #FFFFFF; }
.portrait { box-shadow: var(--sp-5) var(--sp-5) 0 0 var(--secondary); }
@media (max-width: 860px) {
  .weave-replay { bottom: calc(-1 * var(--sp-6)); }
}
@media (max-width: 860px) {
  #weave { max-width: 420px; }
}





/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); align-items: start; }
.post-grid .post-card:first-child { grid-column: 1 / -1; background: var(--wide-bg); color: #FFFFFF; }
.post-grid .post-card:first-child:hover { background: var(--primary); }
.post-grid .post-card:first-child .tile-org,
.post-grid .post-card:first-child p { color: rgb(255 255 255 / 0.78); }
.post-grid .post-card:first-child .tile-cta { color: #FFFFFF; }
.post-grid .post-card:first-child .tile-cta .ph { color: var(--bold-grad-to); }
.post-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.post-grid--three .post-card:first-child { grid-column: auto; }
.post-card h3 { font-size: 20px; line-height: 28px; margin: 0; }
.post-grid .post-card:first-child h3 { font-size: 30px; line-height: 36px; max-width: 680px; }
.post-grid--three .post-card:first-child h3 { font-size: 20px; line-height: 28px; }

.writing { padding: var(--sp-12) 0 0; }
.writing-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-5); margin-bottom: var(--sp-6); }
.writing-head h2 { margin: 0; font-size: 36px; line-height: 40px; letter-spacing: -0.025em; }
.writing-all { display: inline-flex; align-items: center; gap: var(--sp-3); font-weight: 600; color: var(--primary-ink); }

.post-hero h1, .blog-hero h1 { max-width: 760px; }
.post-body h2 { font-size: 24px; line-height: 32px; margin: var(--sp-9) 0 var(--sp-4); }
.post-body ul { margin-bottom: var(--sp-6); }
.post-body li { margin-bottom: var(--sp-3); }
.post-body em.title, em.title { font-style: normal; font-weight: 600; }
.post-body .checks { list-style: none; padding: 0; }
.post-body .checks li { padding: var(--sp-4) var(--sp-5); background: var(--s1); border-radius: var(--r-xl); }
.post-origin { margin-top: var(--sp-9); padding-top: var(--sp-5); border-top: 1px solid var(--s3); font-size: 14px; line-height: 20px; color: var(--muted); }
.post-origin a { display: inline-flex; align-items: center; gap: var(--sp-2); }

.post-figure { margin: var(--sp-8) 0; }
.post-figure img { width: 100%; height: auto; display: block; border-radius: var(--r-3xl); }
.post-figure figcaption { margin-top: var(--sp-4); font-size: 14px; line-height: 20px; color: var(--muted); }
.post-glance { margin: var(--sp-8) 0; padding: var(--sp-6); background: var(--primary); border-top: 0; border-radius: var(--r-3xl); }
.post-glance .stat-number { color: #FFFFFF; font-size: 36px; line-height: 40px; }
.post-glance .stat-small { color: var(--bold-grad-to); }
.post-glance .stat-label { color: rgb(255 255 255 / 0.78); }

/* Brain diagram */
.brain-diag { width: 100%; height: auto; display: block; padding: var(--sp-6); background: var(--primary); border-radius: var(--r-3xl); color: var(--bold-grad-to); }
.brain-diag .b-line { fill: none; stroke: var(--bold-grad-to); stroke-width: 2; }
.brain-diag .b-me { fill: #FFFFFF; }
.brain-diag .b-obs { fill: var(--primary-soft); }
.brain-diag .b-repo { fill: var(--secondary); }
.brain-diag .b-gpt { fill: #FFFFFF; }
.brain-diag .b-cl { fill: var(--secondary-soft); }
.brain-diag .b-t { font-family: var(--font); font-size: 18px; font-weight: 600; fill: var(--primary); }
.brain-diag .b-s { font-family: var(--font); font-size: 13px; font-weight: 500; fill: var(--muted); }
.brain-diag .b-on { fill: var(--on-secondary); }
.brain-diag text.b-s:last-of-type { fill: var(--bold-grad-to); }

/* Transcript bubbles */
.tx { padding: var(--sp-7); background: var(--primary); border-radius: var(--r-3xl); color: #FFFFFF; }
.tx p { margin: 0; }
.tx-label { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--bold-grad-to); margin-bottom: var(--sp-3) !important; }
.tx-right { text-align: right; }
.tx-bubble { padding: var(--sp-4) var(--sp-5); border-radius: var(--r-2xl); font-size: 18px; line-height: 28px; margin-bottom: var(--sp-6) !important; }
.tx-said { background: #FFFFFF; color: var(--ink); max-width: 90%; }
.tx-heard { background: var(--secondary-soft); color: var(--ink); max-width: 90%; }
.tx-heard mark { background: none; color: var(--primary); font-weight: 700; text-decoration: underline wavy var(--secondary); text-underline-offset: 5px; }
.tx-got { background: var(--secondary); color: var(--on-secondary); max-width: 80%; margin-left: auto; display: flex; align-items: center; gap: var(--sp-3); font-weight: 600; }
.tx-got .ph { width: 20px; height: 20px; }
.tx-note { font-size: 14px; line-height: 20px; color: rgb(255 255 255 / 0.7); }

/* Junior flow */
.flow { list-style: none; margin: 0; padding: var(--sp-7); background: var(--primary); border-radius: var(--r-3xl); display: flex; flex-direction: column; align-items: stretch; }
.flow li { margin: 0; }
.flow-step { display: flex; flex-direction: column; gap: var(--sp-1); padding: var(--sp-4) var(--sp-5); background: var(--primary-soft); border-radius: var(--r-2xl); color: var(--ink); margin: 0; }
.flow-step strong { font-weight: 600; font-size: 16px; line-height: 24px; color: var(--primary); }
.flow-step span { font-size: 14px; line-height: 20px; color: var(--muted); }
.flow-me { background: #FFFFFF; }
.flow-strong { background: var(--secondary-soft); }
.flow-tg { background: var(--secondary); }
.flow-tg strong { color: var(--on-secondary); }
.flow-msg { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); margin-top: var(--sp-2); padding: var(--sp-3) var(--sp-4); background: #FFFFFF; border-radius: var(--r-lg); color: var(--ink) !important; font-size: 16px !important; }
.flow-msg b { padding: var(--sp-1) var(--sp-3); background: var(--primary); color: #FFFFFF; border-radius: var(--r-lg); font-size: 14px; font-weight: 600; }
.flow-arrow { position: relative; padding: var(--sp-3) 0 var(--sp-3) var(--sp-8); font-size: 13px; line-height: 16px; color: var(--bold-grad-to); margin: 0; }
.flow-arrow::before { content: ""; position: absolute; left: var(--sp-6); top: var(--sp-2); bottom: var(--sp-2); width: 2px; background: var(--bold-grad-to); border-radius: var(--r-full); }
.flow-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); }

/* Quote card */
.post-quote { margin: 0; padding: var(--sp-8) var(--sp-7); background: var(--primary); border-radius: var(--r-3xl); color: #FFFFFF; }
.post-quote p { margin: 0 0 var(--sp-5); font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -0.025em; color: #FFFFFF; }
.post-quote p::after { content: ""; display: block; width: 48px; height: 4px; margin-top: var(--sp-5); background: var(--secondary); border-radius: var(--r-full); }
.post-quote cite { font-style: normal; font-size: 14px; line-height: 20px; color: rgb(255 255 255 / 0.78); }
.post-quote em.title { color: #FFFFFF; }

/* Bars */
.bars { display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-6); background: var(--s1); border-radius: var(--r-3xl); }
.bar-row { display: grid; grid-template-columns: 4rem minmax(0, 1fr) 3.5rem; align-items: center; gap: var(--sp-4); }
.bar-name { font-weight: 600; }
.bar-track { height: 24px; background: var(--s2); border-radius: var(--r-full); overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--primary); border-radius: var(--r-full); }
.bar-alt { background: var(--secondary); }
.bar-val { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Series box and build diary */
.series-box { max-width: 65ch; margin-top: var(--sp-9); padding: var(--sp-6); background: var(--secondary-soft); border-radius: var(--r-3xl); }
.series-box p { margin: 0 0 var(--sp-4); }
.series-box ul { margin: 0 0 var(--sp-5); }
.series-label { font-weight: 600; color: var(--primary-ink); }
.series-case { display: inline-flex; align-items: center; gap: var(--sp-3); font-weight: 600; color: var(--primary-ink); }
.diary-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--sp-4); }
.diary-list li { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-5); background: var(--s1); border-radius: var(--r-2xl); }
.diary-list a { font-weight: 600; color: var(--primary-ink); }
.diary-list span { font-size: 16px; line-height: 24px; color: var(--muted); }

@media (max-width: 860px) {
  .post-grid, .post-grid--three { grid-template-columns: minmax(0, 1fr); }
  .post-grid .post-card:first-child h3 { font-size: 24px; line-height: 32px; }
  .writing-head h2 { font-size: 30px; line-height: 36px; }
  .post-quote p { font-size: 30px; line-height: 36px; }
  .tx, .flow, .post-quote { padding: var(--sp-5); }
  .tx-said, .tx-heard, .tx-got { max-width: 100%; }
  .flow-split { grid-template-columns: minmax(0, 1fr); }
  .brain-diag { padding: var(--sp-3); }
}
@media (max-width: 480px) {
  .site-header { padding: 0 var(--sp-3); }
  .nav { padding-left: var(--sp-4); padding-right: var(--sp-2); gap: var(--sp-3); }
  .nav-name { font-size: 15px; white-space: nowrap; }
  .nav-links { gap: 0; }
  .nav-links a { padding: var(--sp-3) 6px; font-size: 14px; }
}
/* ---------- End blog ---------- */
