@font-face {
  font-family: Host;
  src: url('/assets/fonts/host-grotesk.woff2') format('woff2');
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
}

:root {
  --paper: #fff;
  --ink: #262628;
  --muted: #696970;
  --soft: #f7f7fa;
  --line: #e8e7ed;
  --secondary: #d96b4b;
  --action: #c63e2a;
  --primary: #3d74b6;
  --page-width: 1120px;
  --gutter: clamp(22px, 4.5vw, 64px);
  --edge: max(var(--gutter), calc((100vw - var(--page-width)) / 2));
  --header: 88px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 22px); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.6 Host, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 700; line-height: 1.13; letter-spacing: -.035em; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; height: auto; }
::selection { background: #d9e7f6; color: #163453; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 5px; }
main:focus { outline: none; }
.skip-link {
  position: fixed;
  top: 10px;
  left: 20px;
  z-index: 100;
  padding: 10px 20px;
  background: var(--ink);
  color: white;
  border-radius: 4px;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
.section-pad { padding: 80px var(--edge); }
.eyebrow { font-size: 11px; line-height: 1.6; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.highlight { position: relative; display: inline-block; padding: 0 .15em .03em; color: white; isolation: isolate; }
.highlight::before { content: ''; position: absolute; inset: .07em 0 0; z-index: -1; background: var(--primary); transform: skewX(-7deg) rotate(-1.5deg); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 46px;
  padding: 12px 23px;
  border-radius: 5px;
  background: var(--action);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  transition: color .25s;
}
.button > span { font-size: 20px; line-height: 1; }
.text-link { display: inline-flex; align-items: center; gap: 15px; font-size: 13px; font-weight: 600; padding: 8px 0; }
.text-link > span:last-child { font-size: 20px; transition: transform .2s; }
.text-link:hover { color: var(--primary); }
.text-link:hover > span:last-child { transform: translate(3px, -3px); }
.file-label { font-size: 9px; font-weight: 500; letter-spacing: .04em; opacity: .65; }
/* Buttons: flat (no shadow, no lift). Hover only changes the background colour. */
/* Gradient buttons also carry a solid background-color, so the hover fades between two colours (never through transparent/white). */
.button, .header-cta, .social-button, .tile-open, .category-nav a, .js .menu-toggle { transition: background-color .2s, color .2s; }
.button:hover { background: #9b2f1f; }
.button-ghost:hover { background: #eaf2fa; color: var(--primary); }
.button-glow:hover, .header-cta:hover { background: #225990; }
.social-button:hover, .js .menu-toggle:hover { background: #dceaf7; color: var(--primary); }
.category-nav a:hover { border-color: #c8ddf2; background: #f0f6fc; color: #234466; }
@media (hover: hover) { .project-tile:hover .tile-open { background: var(--tile-btn-hover, #4f169c); } }
/* Lucide arrows scale with the surrounding text, like the characters they replace. */
.icon-arrow-up-right, .icon-arrow-up, .icon-arrow-left, .icon-arrow-right { flex: none; width: 1em; height: 1em; vertical-align: -.125em; }
.circle-arrow { display: inline-grid; place-items: center; width: 28px; height: 28px; flex: 0 0 auto; border-radius: 50%; background: var(--action); color: white; font-size: 18px; line-height: 1; transition: transform .2s; }
a:hover .circle-arrow { transform: rotate(-20deg); }

/* Floating header bar: brand, 3D avatar, pill navigation, social buttons and contact CTA. */
.site-header { position: sticky; top: 0; z-index: 30; height: var(--header); padding: 14px max(16px, calc(var(--edge) - 32px)) 0; pointer-events: none; }
.header-bar { position: relative; display: flex; align-items: center; gap: 16px; height: 74px; padding: 0 14px; background: #fffffff0; border: 1px solid #e8f0f8; border-radius: 22px; box-shadow: 0 2px 6px #1a2d4010; backdrop-filter: blur(12px); pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.brand-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: linear-gradient(140deg, #629eda, #2c73ba); color: #fff; }
.brand-mark .icon { width: 24px; height: 24px; }
.brand-text { display: flex; flex-direction: column; padding-left: 14px; border-left: 1px solid var(--line); line-height: 1.2; }
.brand-text strong { font-size: 15px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.brand-last { text-transform: uppercase; }
.brand-role { display: flex; align-items: center; gap: 8px; margin-top: 3px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px #3984d022; }
.brand-avatar { position: relative; align-self: flex-end; flex: 0 0 auto; width: 74px; height: 90px; }
.brand-avatar::before { content: ''; position: absolute; left: 50%; bottom: 2px; width: 64px; height: 64px; border-radius: 50%; background: #e7f0f9; transform: translateX(-50%); }
.brand-avatar img { position: absolute; left: 50%; bottom: 0; width: 60px; transform: translateX(-50%); }
.header-panel { display: flex; flex: 1; align-items: center; gap: 18px; min-width: 0; }
.main-nav { display: flex; align-items: center; gap: 4px; margin: 0 auto; font-size: 14px; font-weight: 600; }
.main-nav > a { padding: 9px 16px; border-radius: 999px; transition: background .2s, color .2s; }
.main-nav > a:hover { background: var(--soft); color: var(--primary); }
.main-nav > a[aria-current] { background: #eaf2fa; color: #2e79c4; }
.header-actions { display: flex; align-items: center; gap: 10px; padding-left: 20px; border-left: 1px solid var(--line); }
.social-button { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: #f0f3f7; color: var(--ink); transition: color .25s; }
.header-cta { display: inline-flex; align-items: center; gap: 12px; height: 46px; margin-left: 6px; padding: 0 20px; border-radius: 14px; background: #3582d0 linear-gradient(135deg, #4e92d6, #2c73ba); color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; }
.header-cta .icon { width: 18px; height: 18px; }
.site-header :focus-visible { outline-offset: 3px; }
.menu-toggle { display: none; }

/* Hero: full viewport height, copy on the left, portrait anchored bottom right. */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
  column-gap: 32px;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  margin-top: calc(-1 * var(--header));
  padding: calc(var(--header) + 40px) var(--edge) 0;
  overflow: clip;
  isolation: isolate;
  background-color: #fbfcfe;
  background-image: linear-gradient(#e8eef5 1px, transparent 1px), linear-gradient(90deg, #e8eef5 1px, transparent 1px);
  background-size: 64px 64px;
}
.hero-copy { position: relative; z-index: 2; padding-bottom: 48px; }
.hero-eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #5d5a66; }
.hero-eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--primary); }
.hero-copy h1 { font-size: clamp(40px, 3.7vw, 54px); line-height: 1.12; letter-spacing: -.045em; text-wrap: balance; }
.hero-copy h1 .highlight { margin-top: 6px; }
.hero-lead { max-width: 540px; margin-top: 26px; font-size: 17px; line-height: 1.7; color: var(--muted); }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }
.hero-buttons .button { min-height: 56px; padding: 14px 26px; border-radius: 14px; font-size: 15px; }
.button-ghost { gap: 12px; background: #fff; color: var(--ink); border: 1px solid #e4eaf0; }
.hero-points { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 0; list-style: none; margin: 46px 0 0; padding: 0; }
.hero-points li { display: flex; align-items: center; gap: 12px; font-size: 16px; color: #4c4a55; }
.hero-points li + li { margin-left: 26px; padding-left: 26px; border-left: 1px solid #d7dee6; }
.hero-points .icon { width: 24px; height: 24px; color: var(--primary); }
.hero-visual { position: relative; z-index: 1; align-self: end; display: flex; justify-content: center; pointer-events: none; }
.hero-visual img { position: relative; z-index: 1; display: block; width: auto; max-width: 100%; height: min(calc(100svh - var(--header) - 40px), 900px); object-fit: contain; object-position: 50% 100%; }

/* Portrait staging: blue arch, dashed orbit, floating tiles and information chips. */
.hero-arch { position: absolute; z-index: 0; left: 50%; bottom: 0; width: min(78%, 500px); height: 74%; border-radius: 999px 999px 0 0; background: #3d74b6; transform: translateX(-50%); }
.hero-ring { position: absolute; z-index: 0; left: 50%; bottom: 20%; width: min(98%, 620px); aspect-ratio: 1; border: 1.5px dashed #3984d059; border-radius: 50%; transform: translateX(-50%); }
.hero-tile { position: absolute; z-index: 2; display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid #e6f0f9; border-radius: 16px; background: #fff; color: var(--primary); }
.hero-tile .icon { width: 28px; height: 28px; }
.tile-code { top: 22%; right: 6%; transform: rotate(9deg); }
.tile-layers { top: 12%; left: 10%; width: 50px; height: 50px; background: #f6d9cf; border-color: #f1cbbd; color: #a8442a; transform: rotate(-10deg); }
.tile-layers .icon { width: 24px; height: 24px; }
.hero-chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 11px 16px; border: 1px solid #e6f0f9; border-radius: 14px; background: #fffffff2; color: var(--ink); font-size: 14px; font-weight: 600; white-space: nowrap; }
.hero-chip .icon { width: 18px; height: 18px; color: var(--primary); }
.chip-status { left: -2%; top: 44%; }
.chip-place { right: 0; bottom: 16%; }
.live-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: #22a55a; }
.live-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #22a55a55; }
.motion-ready .live-dot::after { animation: live-pulse 2s ease-out infinite; }
@keyframes live-pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.motion-ready .hero-tile { animation: tile-float 6s ease-in-out infinite alternate; }
.motion-ready .tile-layers { animation-delay: -3s; }
@keyframes tile-float { to { translate: 0 -10px; } }


/* The ribbon remains static without JS; animated motion has a pause control. */
.skills-ribbon { position: relative; overflow: hidden; background: var(--ink); color: white; }
.ribbon-window { overflow: hidden; }
.ribbon-track { display: flex; width: max-content; }
.ribbon-group { display: flex; align-items: center; gap: 28px; padding: 14px 28px 16px 0; white-space: nowrap; font-size: 27px; line-height: 1.3; font-weight: 500; letter-spacing: -.025em; }
.ribbon-group .ribbon-star { color: var(--secondary); font-size: 23px; }
.ribbon-toggle { display: none; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; border: 1px solid #626266; background: var(--ink); color: #fff; cursor: pointer; font-size: 16px; line-height: 1; }
.motion-ready .skills-ribbon::after, .motion-ready .skills-ribbon::before { content: ''; position: absolute; z-index: 1; top: 0; right: 0; bottom: 0; width: 110px; background: linear-gradient(90deg, #0000, var(--ink) 55%); pointer-events: none; }
.motion-ready .skills-ribbon::before {
  right: auto;
  left: 0;
  background: linear-gradient(90deg, var(--ink) 45%, #0000);
}
.motion-ready .ribbon-toggle { z-index: 2; }
.motion-ready .ribbon-toggle { display: grid; place-items: center; }
/* Each group repeats the labels so it is wider than any screen: the loop never shows a gap. */
.motion-ready .ribbon-track { animation: ribbon-slide 96s linear infinite; }
.skills-ribbon.is-paused .ribbon-track { animation-play-state: paused; }
@keyframes ribbon-slide { to { transform: translateX(-50%); } }

/* A short introduction, followed by an understated tools strip. */
.tools-section { background: var(--soft); padding: 34px var(--edge) 40px; text-align: center; }
.tools-section h2 { font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.tools-list { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 32px 52px; justify-content: center; }
.tools-list li { display: flex; align-items: center; gap: 10px; font-size: 21px; letter-spacing: -.035em; font-weight: 650; color: #727279; }
.tools-list img { width: 31px; height: 31px; object-fit: contain; opacity: .5; filter: grayscale(1); }

/* Project cards use the real screenshots as their artwork. */
.section-heading { margin-bottom: 38px; }
.section-heading h2 { font-size: clamp(30px, 3vw, 40px); line-height: 1.18; }
.section-heading .eyebrow { margin-bottom: 13px; }
.section-heading > p:not(.eyebrow) { margin-top: 15px; color: var(--muted); font-size: 14px; }
.centered { text-align: center; }
.centered h2 { margin-inline: auto; max-width: 740px; }
.star-heading { display: flex; align-items: center; justify-content: center; gap: 14px; }
.star-heading > span { color: var(--secondary); font-size: .7em; font-weight: 400; }
.visual-pedtanca { --art-bg: #eee4d4; --art-ink: #433324; --art-accent: #a56631; --art-orbit: #dcc49c; }
.visual-dodocms { --art-bg: #25222a; --art-ink: #fff; --art-accent: #c7a4fb; --art-orbit: #4a365e; }
.visual-findme { --art-bg: #eee2fb; --art-ink: #4c1a78; --art-accent: #852ed7; --art-orbit: #c997f6; }
.visual-prestigeprague { --art-bg: #292a30; --art-ink: #fff; --art-accent: #e2c69a; --art-orbit: #5e574b; }
.visual-backdoor { --art-bg: #1d2140; --art-ink: #fff; --art-accent: #8f9bff; --art-orbit: #3a3f8f; }
.visual-jo2024 { --art-bg: #f6efd9; --art-ink: #4a3d17; --art-accent: #b08f3c; --art-orbit: #e6d39c; }
.visual-cbsc { --art-bg: #eef0ff; --art-ink: #27236b; --art-accent: #4f46e5; --art-orbit: #c7cbfb; }
.section-action { display: flex; justify-content: center; margin-top: 38px; }

/* Home projects: soft lavender stage, self-contained cards with a framed screenshot. */
.work {
  padding-inline: max(var(--gutter), calc((100vw - 1290px) / 2));
  background: #f8fbfd;
}
.pill-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 8px 18px; border: 1px solid #e3eef9; border-radius: 999px; background: #f0f6fc; color: #234466; font-size: 14px; font-weight: 600; }
.pill-eyebrow .icon { width: 20px; height: 20px; color: var(--primary); }
.work-title { font-size: clamp(32px, 3.6vw, 50px) !important; letter-spacing: -.045em; }
.highlight-pill { position: relative; display: inline-block; margin-left: .12em; padding: .02em .28em .1em; border-radius: .28em; background: linear-gradient(135deg, #639fdb, #2c73ba); color: #fff; transform: rotate(-3deg); }
.highlight-pill .icon { position: absolute; top: -.5em; right: -.48em; width: .7em; height: .7em; color: var(--primary); stroke-width: 2.6; transform: rotate(3deg); }
.project-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; margin-top: 10px; }
.projects-page { padding-inline: max(var(--gutter), calc((100vw - 1290px) / 2)); }

.project-tile {
  --tile-bg: linear-gradient(160deg, #fdf5ec, #f7e7d6);
  --tile-ink: #3a2a1c;
  --tile-muted: #6c5a4b;
  --tile-chip: #ffffffb3;
  --tile-chip-ink: #5a4636;
  --tile-type: #f6dcc9;
  --tile-type-ink: #8a3a1e;
  --tile-orbit: #f0d7b6;
  --tile-btn: linear-gradient(135deg, #d76a45, #a8442a);
  --tile-btn-base: #bd5636;
  --tile-btn-hover: #8f3a23;
  --tile-border: #f2e2d2;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
  padding: 30px 30px 0;
  border: 1px solid var(--tile-border);
  border-radius: 22px;
  background: var(--tile-bg);
  color: var(--tile-ink);
  transition: transform .35s cubic-bezier(.2, .6, .2, 1);
}
:is(.project-tile, .project-stage, .next-project-visual).visual-dodocms { --tile-bg: linear-gradient(160deg, #43355f, #2b2340); --tile-ink: #fff; --tile-muted: #ddd5ea; --tile-chip: #ffffff1f; --tile-chip-ink: #f2edf9; --tile-type: #ffffff24; --tile-type-ink: #fff; --tile-orbit: #54417a; --tile-btn: linear-gradient(135deg, #9346ec, #6522c4); --tile-border: #4d3e69; }
:is(.project-tile, .project-stage, .next-project-visual).visual-findme { --tile-bg: linear-gradient(160deg, #f8f1fe, #ecdcfb); --tile-ink: #4c1a78; --tile-muted: #4f3a66; --tile-chip: #ffffffb3; --tile-chip-ink: #3d2366; --tile-type: #e8d6fb; --tile-type-ink: #4c1a78; --tile-orbit: #dcbdf8; --tile-btn: linear-gradient(135deg, #9346ec, #6522c4); --tile-border: #eadcf9; }
:is(.project-tile, .project-stage, .next-project-visual).visual-prestigeprague { --tile-bg: linear-gradient(160deg, #34353d, #24252b); --tile-ink: #fff; --tile-muted: #d9d6cf; --tile-chip: #ffffff1f; --tile-chip-ink: #f1eee8; --tile-type: #ffffff24; --tile-type-ink: #fff; --tile-orbit: #4f4a41; --tile-btn: linear-gradient(135deg, #c8a56e, #95713b); --tile-btn-base: #ae8a55; --tile-btn-hover: #7a5c2f; --tile-border: #44454d; }
:is(.project-tile, .project-stage, .next-project-visual).visual-backdoor { --tile-bg: linear-gradient(160deg, #2c3166, #191c38); --tile-ink: #fff; --tile-muted: #d3d6f2; --tile-chip: #ffffff1f; --tile-chip-ink: #eef0ff; --tile-type: #ffffff24; --tile-type-ink: #fff; --tile-orbit: #3f4699; --tile-btn: linear-gradient(135deg, #6f7cf5, #3d47c4); --tile-btn-base: #5560dc; --tile-btn-hover: #323aa6; --tile-border: #3a3f73; }
:is(.project-tile, .project-stage, .next-project-visual).visual-jo2024 { --tile-bg: linear-gradient(160deg, #fbf6e6, #efe1b6); --tile-ink: #3d3214; --tile-muted: #6b5c33; --tile-chip: #ffffffb3; --tile-chip-ink: #4a3d17; --tile-type: #f1e2b3; --tile-type-ink: #7a5f17; --tile-orbit: #e8d595; --tile-btn: linear-gradient(135deg, #d4b45e, #a8862f); --tile-btn-base: #bf9e48; --tile-btn-hover: #8a6c22; --tile-border: #eadfbd; }
:is(.project-tile, .project-stage, .next-project-visual).visual-cbsc { --tile-bg: linear-gradient(160deg, #f3f4ff, #dfe2fd); --tile-ink: #26226a; --tile-muted: #47458a; --tile-chip: #ffffffb3; --tile-chip-ink: #2e2a78; --tile-type: #e0e3fd; --tile-type-ink: #3730a3; --tile-orbit: #c9cdfb; --tile-btn: linear-gradient(135deg, #6366f1, #4338ca); --tile-btn-base: #5450df; --tile-btn-hover: #3730a3; --tile-border: #dfe1fb; }
.project-tile::before { content: ''; position: absolute; z-index: -1; right: -70px; top: 34%; width: 260px; height: 260px; border-radius: 50%; background: var(--tile-orbit); opacity: .75; }
.tile-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tile-type { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 999px; background: var(--tile-type); color: var(--tile-type-ink); font-size: 13px; font-weight: 600; }
.tile-type .icon { width: 17px; height: 17px; }
.tile-year { padding: 5px 13px; border-radius: 999px; background: var(--tile-chip); color: var(--tile-ink); font-size: 14px; font-weight: 650; box-shadow: 0 2px 8px #0000000d; }
.tile-title { margin-top: 24px; font-size: clamp(32px, 3vw, 44px); line-height: 1.05; letter-spacing: -.055em; }
.tile-title a::after { content: ''; position: absolute; inset: 0; z-index: 3; border-radius: inherit; }
.tile-description { min-height: 3em; margin-top: 12px; color: var(--tile-muted); font-size: 15px; line-height: 1.5; }
.tile-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 18px 0 0; padding: 0; }
.tile-tags li { padding: 4px 12px; border-radius: 999px; background: var(--tile-chip); color: var(--tile-chip-ink); font-size: 13px; font-weight: 500; }
.tile-shot { position: relative; margin: 32px -16% -14% 7%; padding-top: 22px; border-radius: 12px 12px 0 0; background: #fff; box-shadow: 0 -6px 30px -10px #1a2d4040; transform: rotate(-6deg); transform-origin: left top; transition: transform .45s cubic-bezier(.2, .6, .2, 1); }
.tile-browser { position: absolute; top: 8px; left: 12px; display: flex; gap: 5px; }
.tile-browser i { width: 7px; height: 7px; border-radius: 50%; background: #ff6159; }
.tile-browser i:nth-child(2) { background: #ffbd2e; }
.tile-browser i:nth-child(3) { background: #28c941; }
.tile-shot img { width: 100%; aspect-ratio: 2.4; object-fit: cover; object-position: top left; }
.tile-open { position: absolute; z-index: 2; right: 22px; bottom: 22px; display: grid; place-items: center; width: 50px; height: 50px; border: 2px solid #ffffffd9; border-radius: 15px; background: var(--tile-btn-base, #7330d5) var(--tile-btn); color: #fff; font-size: 22px; line-height: 1; transition: transform .25s; }
.project-tile:focus-within { outline: 3px solid var(--primary); outline-offset: 4px; }
.project-tile a:focus-visible { outline: none; }
@media (hover: hover) {
  .project-tile:hover { transform: translateY(-6px); }
  .project-tile:hover .tile-shot { transform: rotate(-4deg) translateY(-8px); }
}
.work-action { position: relative; margin-top: 52px; }
.work-action::before, .work-action::after { content: ''; flex: 1; max-width: 400px; height: 1px; margin: auto 34px; background: linear-gradient(90deg, #d7e5f300, #c9dcef); }
.work-action::after { background: linear-gradient(90deg, #c9dcef, #d7e5f300); }
.work-action::before { order: -1; }
.button-glow { min-height: 58px; padding: 14px 38px; border-radius: 16px; background: #3582d0 linear-gradient(135deg, #4e92d6, #2c73ba); font-size: 17px; }
@media (max-width: 1100px) {
  .project-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-projects .project-tile:last-child { grid-column: 1 / -1; justify-self: center; width: calc((100% - 26px) / 2); }
}
@media (max-width: 640px) {
  .pill-eyebrow { font-size: 12px; padding: 7px 14px; }
  .project-tiles { grid-template-columns: 1fr; gap: 22px; }
  .home-projects .project-tile:last-child { grid-column: auto; width: auto; }
  .project-tile { padding: 24px 24px 0; border-radius: 20px; }
  .tile-title { margin-top: 20px; font-size: 36px; }
  .tile-description { min-height: 0; font-size: 14px; }
  .tile-open { width: 46px; height: 46px; right: 18px; bottom: 18px; }
  .work-action::before, .work-action::after { margin: auto 16px; }
  .button-glow { padding: 14px 28px; font-size: 16px; }
}


.heading-with-link { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.heading-with-link > .text-link { flex-shrink: 0; }

/* Home sections after the hero share the projects language: pill eyebrow, highlighted title, soft rounded cards. */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.about-copy { max-width: 600px; margin-top: 22px; color: var(--muted); font-size: 17px; line-height: 1.75; }
.about-copy p + p { margin-top: 14px; }
.about-more-inner > p { margin-top: 14px; }
.about-more.is-collapsible { display: grid; grid-template-rows: 0fr; visibility: hidden; opacity: 0; transition: grid-template-rows .4s ease, opacity .3s ease, visibility 0s .4s; }
.about-more.is-collapsible.is-open { grid-template-rows: 1fr; visibility: visible; opacity: 1; transition: grid-template-rows .4s ease, opacity .3s ease .1s, visibility 0s; }
.about-more-inner { min-height: 0; overflow: hidden; }
.about-toggle { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 6px 0; border: 0; background: none; color: var(--primary); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.about-toggle[hidden] { display: none; }
.about-toggle:hover span { text-decoration: underline; text-underline-offset: 4px; }
.about-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: 6px; }
.about-toggle .icon { width: 18px; height: 18px; transition: transform .3s ease; }
.about-toggle[aria-expanded="true"] .icon { transform: rotate(45deg); }
.timeline-link { display: inline-flex; align-items: center; gap: 4px; color: var(--primary); font-weight: 600; }
.timeline-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.about-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.about-actions .button { gap: 10px; min-height: 54px; padding: 14px 24px; border-radius: 14px; font-size: 15px; }
.about-actions .icon-file-text { width: 18px; height: 18px; }
.about-card { position: relative; isolation: isolate; overflow: clip; padding: 26px; border: 1px solid #deebf7; border-radius: 28px; background: linear-gradient(160deg, #f3f8fc, #dfecf8); }
.about-card::before { content: ''; position: absolute; z-index: -1; right: -80px; bottom: -90px; width: 240px; height: 240px; border-radius: 50%; background: #c4daf1; opacity: .6; }
.about-facts { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
.about-facts li { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 18px; background: #ffffffd1; }
.fact-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 13px; background: #eaf2fa; color: var(--primary); }
.fact-icon .icon { width: 22px; height: 22px; }
.about-facts small { display: block; color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.about-facts strong { font-size: 16px; letter-spacing: -.02em; }

.experiences, .journal {
  background: #f8fbfd;
}
.timeline-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.timeline-card { padding: 30px 30px 14px; border: 1px solid #e8f0f8; border-radius: 28px; background: #fff; }
.timeline-label { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; font-size: 20px; letter-spacing: -.03em; }
.timeline-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 13px; background: linear-gradient(135deg, #5a99d8, #2c73ba); color: #fff; }
.timeline-icon .icon { width: 22px; height: 22px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline > li { position: relative; padding-left: 30px; }
.timeline > li::before { content: ''; position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background: #deebf7; }
.timeline > li:first-child::before { top: 30px; }
.timeline > li:last-child::before { bottom: auto; height: 30px; }
.timeline > li:only-child::before { display: none; }
.timeline > li::after { content: ''; position: absolute; left: 0; top: 24px; width: 14px; height: 14px; border: 3px solid var(--primary); border-radius: 50%; background: #fff; }
.timeline > li + li .timeline-item { border-top: 1px solid #ecf2f7; }
.timeline-item summary { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 18px 48px 18px 0; list-style: none; cursor: pointer; }
.timeline-item summary::-webkit-details-marker { display: none; }
.timeline-date { padding: 2px 10px; border-radius: 999px; background: #f0f6fc; color: #2d639a; font-size: 11px; font-weight: 600; }
.timeline-item summary strong { font-size: 16px; line-height: 1.3; font-weight: 650; letter-spacing: -.02em; transition: color .2s; }
.timeline-item summary:hover strong { color: var(--primary); }
.timeline-sub { color: var(--muted); font-size: 13px; }
.detail-plus { position: absolute; top: 50%; right: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: #f0f6fc; color: var(--primary); transform: translateY(-50%); transition: transform .2s, background-color .2s, color .2s; }
.detail-plus .icon { width: 16px; height: 16px; }
.timeline-item[open] .detail-plus { background: var(--primary); color: #fff; transform: translateY(-50%) rotate(45deg); }
.timeline-body { padding: 0 8px 22px 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.timeline-context { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 0 0 16px; font-size: 13px; font-weight: 600; }
.timeline-context > span { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border: 1px solid #dae6f2; border-radius: 8px; background: #f3f7fb; color: #31577e; }
.timeline-context .icon { width: 14px; height: 14px; }
.timeline-body-label { margin: 0 0 10px; color: var(--primary); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.timeline-body .timeline-details { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.timeline-details li { position: relative; padding: 10px 12px 10px 30px; border-radius: 10px; background: #f3f7fb; color: var(--ink); }
.timeline-details li::before { content: ''; position: absolute; top: 19px; left: 13px; width: 7px; height: 7px; border-radius: 50%; background: var(--secondary); }


/* Method: numbered steps on the left, the selected step in detail on the right (all steps stay readable without JavaScript). */
.process-board { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 14px; padding: 14px; border: 1px solid #e8f0f8; border-radius: 28px; background: #fff; }
.process-tabs { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 20px; background: linear-gradient(160deg, #f3f8fc, #e8f1fa); }
.process-tab { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; color: #234466; font-size: 16px; font-weight: 600; letter-spacing: -.02em; transition: background-color .2s, color .2s; }
.process-tab:hover { background: #ffffffb3; }
.process-num { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 11px; background: #fff; color: var(--primary); font-size: 13px; font-weight: 700; letter-spacing: 0; transition: background-color .2s, color .2s; }
.process-tab[aria-selected="true"] { background: linear-gradient(135deg, #4e92d6, #2c73ba); color: #fff; }
.process-tab[aria-selected="true"] .process-num { background: #ffffff2e; color: #fff; }
.process-panels { min-width: 0; }
.process-panel { padding: 30px 32px 32px; }
.process-panel + .process-panel { border-top: 1px solid #ecf2f7; }
.process-board.is-enhanced .process-panel + .process-panel { border-top: 0; }
.process-panel:focus { outline: none; }
.process-panel:focus-visible { border-radius: 20px; box-shadow: inset 0 0 0 2px #d9e7f6; }
.motion-ready .process-panel.is-active { animation: arrive .4s ease-out both; }
.process-panel-head { display: flex; align-items: center; gap: 16px; }
.process-icon { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(135deg, #5a99d8, #2c73ba); color: #fff; }
.process-icon .icon { width: 24px; height: 24px; }
.process-meta { display: grid; gap: 8px; min-width: 0; }
.process-step { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.process-bignum { margin-left: auto; color: transparent; -webkit-text-stroke: 1.5px #d5e5f5; font-size: 64px; font-weight: 700; line-height: .8; letter-spacing: -.05em; }
.process-panel h3 { margin-top: 24px; font-size: clamp(26px, 2.4vw, 34px); letter-spacing: -.04em; }
.process-question { margin-top: 10px; padding-left: 14px; border-left: 3px solid var(--primary); color: #234466; font-size: 17px; font-weight: 600; line-height: 1.5; letter-spacing: -.01em; }
.process-text { max-width: 640px; margin-top: 14px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.process-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
.process-block { padding: 20px 22px; border: 1px solid #ecf2f7; border-radius: 18px; background: #fbfcfe; }
.process-panel h4 { margin: 0 0 14px; color: var(--primary); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.process-actions, .process-deliverables, .process-tools { list-style: none; margin: 0; padding: 0; }
.process-actions { display: grid; gap: 12px; counter-reset: action; }
.process-actions li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.5; counter-increment: action; }
.process-actions li::before { content: counter(action); display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 8px; background: #eaf2fa; color: var(--primary); font-size: 12px; font-weight: 700; }
.process-deliverables { display: grid; gap: 12px; }
.process-deliverables li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.5; }
.process-deliverables .icon { flex: none; width: 18px; height: 18px; margin-top: 1px; padding: 3px; border-radius: 50%; background: #eaf2fa; color: var(--primary); box-sizing: content-box; }
.stack-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.stack-list li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border: 1px solid #e3eef9; border-radius: 12px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; }
.stack-list img { width: 20px; height: 20px; }
.stack-dot { width: 8px; height: 8px; margin: 0 6px; border-radius: 50%; background: var(--primary); }
.stack-badge { color: var(--primary); }
.process-foot.is-single { grid-template-columns: 1fr; }
.process-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 14px; align-items: stretch; margin-top: 14px; }
.process-tools-wrap { padding: 20px 22px; }
.process-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.process-tools li { padding: 6px 13px; border-radius: 999px; background: #f0f6fc; color: #234466; font-size: 13px; font-weight: 600; }
.process-example { display: grid; gap: 8px; padding: 20px 22px; border-radius: 18px; background: linear-gradient(160deg, #354a5f, #233140); color: #fff; transition: background-color .2s; }
.process-example-label { color: #c5dbf2; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.process-example-text { color: #d5e0ea; font-size: 14px; line-height: 1.6; }
.process-example-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 14px; font-weight: 650; }
.process-example-more .icon { transition: transform .2s; }
.process-example:hover .process-example-more .icon { transform: translate(3px, -3px); }
.process-example:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }

.journal-list { display: grid; gap: 20px; }
.journal .post-card { grid-template-columns: 300px minmax(0, 1fr); gap: 34px; padding: 20px; border: 1px solid #e8f0f8; border-radius: 28px; background: #fff; }
.journal .post-thumb { border-radius: 18px; }
.journal .post-card :is(h2, h3) span { color: var(--primary); }
.post-card { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 38px; align-items: center; padding: 28px 0; border-top: 1px solid var(--line); }
.post-card:last-child { padding-bottom: 0; }
.post-thumb { overflow: hidden; border-radius: 8px; background: #eaeef3; }
.post-thumb img { width: 100%; aspect-ratio: 1.4; object-fit: cover; transition: transform .45s; }
.post-thumb:hover img { transform: scale(1.04); }
.post-card-copy > .eyebrow { font-size: 10px; letter-spacing: .025em; }
.post-card :is(h2, h3) { font-size: 27px; line-height: 1.2; margin: 12px 0; max-width: 680px; }
.post-card :is(h2, h3) a:hover { color: var(--primary); }
.post-card :is(h2, h3) span { color: var(--action); font-size: .75em; }
.post-card-copy > p:last-child { color: var(--muted); font-size: 13px; line-height: 1.8; max-width: 620px; }

/* Contact card and footer. */
.contact { position: relative; isolation: isolate; overflow: clip; margin: 0 max(16px, calc(var(--edge) - 32px)); padding: 64px var(--gutter) 52px; border-radius: 32px; color: #fff; text-align: center; background: linear-gradient(160deg, #2c4157, #1a2633); }
.contact::before { content: ''; position: absolute; z-index: -1; left: -90px; bottom: -120px; width: 300px; height: 300px; border-radius: 50%; background: #415d7a; opacity: .45; }
.contact > .eyebrow { color: #c5d4e3; font-size: 10px; }
.contact h2 { margin: 13px auto 15px; font-size: clamp(32px, 4vw, 50px); }
.contact-description { color: #d5e0ea; font-size: 14px; max-width: 500px; margin: 0 auto 26px; }
.contact-email { display: inline-flex; align-items: center; justify-content: center; gap: 16px; padding: 10px 12px 10px 24px; border: 1px solid #ffffff2e; border-radius: 999px; background: #ffffff14; font-size: 22px; letter-spacing: -.025em; transition: background-color .2s; }
.contact-email:hover { background: #ffffff24; }
.contact-email .circle-arrow { width: 34px; height: 34px; background: linear-gradient(135deg, #5a99d8, #2c73ba); color: #fff; }
.contact :focus-visible { outline-color: #aacaeb; }
.site-footer { margin-top: 64px; padding: 0 var(--edge) 24px; background: linear-gradient(180deg, #fff0, #f0f6fc 60%); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px 32px; padding: 48px 0 40px; border-top: 1px solid #e4eef7; }
.footer-name { font-size: 22px; font-weight: 750; letter-spacing: -.04em; }
.footer-name:hover { color: var(--primary); }
.footer-role { margin: 4px 0 18px; color: var(--muted); font-size: 14px; }
.footer-meta { display: flex; align-items: center; gap: 10px; margin-top: 8px; color: #4c4a55; font-size: 13px; }
.footer-meta .status-dot { margin: 0 4px; }
.footer-meta .icon { width: 16px; height: 16px; color: var(--primary); }
.footer-heading { margin-bottom: 16px; color: var(--primary); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.footer-col ul { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.footer-col a { display: inline-flex; align-items: center; gap: 8px; color: #3d3b45; font-size: 14px; overflow-wrap: anywhere; transition: color .2s; }
.footer-col a:hover { color: var(--primary); }
.footer-col .footer-more { color: var(--primary); font-weight: 600; }
.footer-col .file-label { font-size: 10px; color: var(--muted); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 20px; border-top: 1px solid #e4eef7; color: var(--muted); font-size: 12px; }
.footer-top { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; transition: color .2s; }
.footer-top:hover { color: var(--primary); }
.footer-top > span { display: inline-flex; transition: transform .2s; }
.footer-top:hover > span { transform: translateY(-2px); }

/* Listings and quieter project/article reading pages. */
.page-heading { text-align: center; max-width: 800px; margin: 0 auto 55px; }
.page-heading h1 { font-size: clamp(44px, 5.4vw, 70px); line-height: 1.08; margin: 18px auto 20px; }
.heading-dot { color: var(--secondary); }
.page-intro { max-width: 580px; color: var(--muted); font-size: 16px; margin: 0 auto; }
/* Reading rhythm (articles and projects): spacing in em so it follows the body size.
   Headings sit far from the previous block and close to their own content. */
.prose { font-size: 17px; line-height: 1.7; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.2em; }
.prose h2, .prose h3, .prose h4, .prose h5, .prose h6 { line-height: 1.2; letter-spacing: -.03em; }
.prose h2 { margin: 2.2em 0 .55em; font-size: 28px; }
.prose h3 { margin: 1.9em 0 .5em; font-size: 22px; }
.prose h4, .prose h5, .prose h6 { margin: 1.7em 0 .45em; font-size: 19px; }
.prose :is(h2, h3, h4) + :is(h3, h4) { margin-top: .9em; }
.prose ul, .prose ol { margin: 0 0 1.3em; padding-left: 1.3em; }
.prose li { margin: .4em 0; padding-left: .3em; }
.prose li > p { margin: 0; }
.prose li > :is(ul, ol) { margin: .4em 0 0; }
.prose p + :is(ul, ol) { margin-top: -.35em; }
.prose li::marker { color: var(--action); }
.prose a { color: #3171b2; text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--action); }
.prose strong { font-weight: 650; }
.prose blockquote { margin: 1.8em 0; border-left: 3px solid var(--primary); padding: 8px 0 8px 24px; color: var(--muted); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose pre { margin: 1.8em 0; background: #262628; color: #f4f8fb; border-radius: 6px; padding: 23px; font-size: 13px; overflow-x: auto; line-height: 1.7; }
.prose code { font-family: ui-monospace, monospace; font-size: .85em; }
.prose table { display: block; overflow-x: auto; max-width: 100%; border-collapse: collapse; font-size: 14px; margin: 1.8em 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px; }
.prose img { margin: 30px auto 10px; border-radius: 6px; }
.prose p:has(> img) + p:has(> em:only-child) { font-size: 12px; text-align: center; color: var(--muted); }
.back-link { display: inline-block; font-size: 11px; color: var(--muted); padding: 4px 0; }
.back-link:hover { color: var(--primary); }
.reading-grid { display: grid; align-items: start; }
/* Project detail page: themed stage around the cover, sticky facts card, framed figures. */
.project-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 32px 64px;
  align-items: end;
  margin-top: calc(-1 * var(--header));
  padding: calc(var(--header) + 52px) var(--edge) 150px;
  overflow: clip;
  isolation: isolate;
  background-color: #fbfcfe;
  background-image: linear-gradient(#e8eef5 1px, transparent 1px), linear-gradient(90deg, #e8eef5 1px, transparent 1px);
  background-size: 64px 64px;
}
.back-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid #e4eef7; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 600; transition: background-color .2s, color .2s; }
.back-pill:hover { background: #eaf2fa; color: var(--primary); }
.project-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border: 1px solid #e4eef7; border-radius: 999px; background: #fff; color: #234466; font-size: 13px; font-weight: 600; white-space: nowrap; }
.pill .icon { width: 16px; height: 16px; color: var(--primary); }
.pill-type { background: #eaf2fa; border-color: #dceaf7; }
.pill-status i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-live { color: #17803d; background: #e9f8ef; border-color: #cdeeda; }
.status-paused { color: #9a5506; background: #fff4e2; border-color: #fbe1b8; }
.status-archived { color: #5d5a66; background: #f0f3f6; border-color: #e0e5ea; }
.status-poc { color: #2c73ba; background: #eaf2fa; border-color: #d6e6f6; }
/* Status note in the project content. */
.project-alert { display: flex; align-items: flex-start; gap: 16px; margin: 0 0 32px; padding: 22px 24px; border-width: 1px; border-style: solid; border-radius: 18px; font-size: 14px; line-height: 1.65; }
.project-alert-icon { display: grid; place-items: center; flex: 0 0 40px; height: 40px; border-radius: 12px; background: #ffffffb3; }
.project-alert .icon { width: 20px; height: 20px; }
.project-alert strong { display: block; margin-bottom: 3px; font-size: 15px; }
.project-alert p { margin: 0; font-weight: 400; }
.project-alert.status-paused { color: #7a4606; }
.project-alert.status-archived { color: #4c4a55; }
.project-alert.status-poc { color: #1c4976; }
.project-alert.status-live { color: #145f30; }
.project-hero h1 { margin-top: 22px; font-size: clamp(52px, 7vw, 96px); line-height: 1; letter-spacing: -.055em; overflow-wrap: anywhere; }
.project-subtitle { max-width: 620px; margin-top: 18px; color: #4c4a55; font-size: clamp(20px, 2vw, 26px); line-height: 1.35; letter-spacing: -.02em; }
.project-lead { color: var(--muted); font-size: 16px; line-height: 1.75; }
.project-hero-side .hero-buttons { margin-top: 26px; }

.project-stage, .next-project-visual { --tile-bg: linear-gradient(160deg, #fdf5ec, #f7e7d6); --tile-orbit: #f0d7b6; --tile-border: #f2e2d2; }
.project-stage { position: relative; z-index: 1; margin: -110px var(--edge) 0; padding: clamp(22px, 5vw, 64px) clamp(18px, 7vw, 96px) 0; overflow: hidden; isolation: isolate; border: 1px solid var(--tile-border); border-radius: 28px; background: var(--tile-bg); }
.project-stage::before, .project-stage::after { content: ''; position: absolute; z-index: -1; border-radius: 50%; background: var(--tile-orbit); opacity: .8; }
.project-stage::before { top: -90px; right: -70px; width: 380px; height: 380px; }
.project-stage::after { bottom: -120px; left: -60px; width: 260px; height: 260px; opacity: .5; }
.stage-frame { position: relative; padding-top: 30px; overflow: hidden; border-radius: 16px 16px 0 0; background: #fff; }
.stage-frame img { width: 100%; max-height: 640px; object-fit: cover; object-position: top; border-top: 1px solid #eaf0f7; }
.shot-bar { position: absolute; top: 10px; left: 14px; display: flex; gap: 6px; }
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff6159; }
.shot-bar i:nth-child(2) { background: #ffbd2e; }
.shot-bar i:nth-child(3) { background: #28c941; }

.project-metrics { margin: 42px var(--edge) 0; }
.project-metrics h2 { margin: 0 0 16px; font-size: 17px; letter-spacing: -.02em; }
.project-metrics ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.project-metrics li { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px; border: 1px solid #e0eaf3; border-radius: 18px; background: #fbfcfe; }
.project-metrics strong { color: #1c4976; font-size: clamp(30px, 3vw, 42px); line-height: 1.05; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.project-metrics span { color: var(--muted); font-size: 14px; font-weight: 600; }

.project-page .reading-grid { grid-template-columns: 280px minmax(0, 1fr); gap: 64px; }
.project-page .reading-grid.section-pad { padding-top: 48px; }
.project-facts { position: sticky; top: calc(var(--header) + 24px); padding: 26px; border: 1px solid #e4eef7; border-radius: 20px; background: #fff; }
.facts-title { display: flex; align-items: center; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 15px; letter-spacing: -.01em; }
.facts-title .icon { width: 18px; height: 18px; color: var(--primary); }
.project-facts dl { margin: 0; font-size: 14px; }
.project-facts dt { margin: 18px 0 6px; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.project-facts dd { margin: 0; font-weight: 600; }
.facts-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.facts-tags li { padding: 4px 10px; border-radius: 999px; background: #eef4fb; color: #234466; font-size: 12px; }
.facts-domain { display: block; margin-bottom: 4px; }
.project-facts .text-link { margin-top: 18px; color: #2c73ba; font-size: 14px; }
.status-note { margin-top: 20px; padding: 14px 16px; border: 0; border-radius: 14px; background: #f0f3f6; color: #4c4a55; font-size: 13px; line-height: 1.65; }
.status-note.status-paused { background: #fff4e2; color: #7a4606; }
.status-note.status-live { background: #e9f8ef; color: #145f30; }

.project-body { max-width: 780px; }
.project-body h2 { display: flex; align-items: center; gap: 14px; }
.project-body .project-alert + h2 { margin-top: 0; }
.project-body h2::before { content: ''; flex: 0 0 auto; width: 10px; height: 10px; border-radius: 3px; background: var(--primary); transform: rotate(45deg); }
.project-body li::marker { color: var(--primary); }

/* Framed figures built from Markdown images (see Content::buildFigures). */
.prose .shot { margin: 2.2em 0 2.4em; }
.shot-row { display: flex; align-items: flex-start; gap: 16px; }
.shot-frame { position: relative; display: block; flex: 1 1 0; min-width: 0; overflow: hidden; padding-top: 28px; border: 1px solid #e4eef7; border-radius: 14px; background: #fff; text-decoration: none; }
.shot-frame img { width: 100%; max-height: 660px; margin: 0; border-top: 1px solid #eaf0f7; border-radius: 0; object-fit: cover; object-position: top; }
.shot-group .shot-frame img { max-height: 520px; }
.shot-frame::after { content: 'Agrandir ↗'; position: absolute; right: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; background: #262628e6; color: #fff; font-size: 12px; font-weight: 600; opacity: 0; transition: opacity .2s; }
.shot-frame:hover::after, .shot-frame:focus-visible::after { opacity: 1; }
.prose figcaption { display: flex; gap: 12px; margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.prose figcaption::before { content: ''; flex: 0 0 auto; width: 18px; height: 2px; margin-top: .8em; background: var(--primary); }

.related-posts { margin-top: 20px; }
.related-posts > h2 { margin-bottom: 30px; font-size: 30px; }
.next-project { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 48px; align-items: center; margin: 80px var(--edge); padding: clamp(28px, 4vw, 52px); border: 1px solid #e4eef7; border-radius: 28px; background: linear-gradient(160deg, #f3f8fc, #e6f0f9); }
.next-project h2 { font-size: clamp(36px, 4vw, 56px); line-height: 1.05; letter-spacing: -.05em; }
.next-project-copy > p:not(.pill-eyebrow) { margin: 12px 0 26px; color: var(--muted); font-size: 17px; }
.next-project-visual { position: relative; display: block; overflow: hidden; padding: 28px 28px 0; border-radius: 20px; background: var(--tile-bg); aspect-ratio: 1.6; }
.next-project-visual .shot-bar { top: 38px; left: 42px; z-index: 1; }
.next-project-visual img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-top: 28px solid #fff; border-radius: 12px 12px 0 0; transition: transform .45s cubic-bezier(.2, .6, .2, 1); }
.next-project-visual:hover img { transform: translateY(-6px); }
@media (max-width: 1100px) {
  .project-hero { grid-template-columns: 1fr; align-items: start; padding-bottom: 140px; }
  .project-page .reading-grid { grid-template-columns: 240px minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 900px) {
  .next-project { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .project-page .reading-grid { grid-template-columns: 1fr; gap: 32px; }
  .project-facts { position: static; }
  .project-facts dl { display: grid; grid-template-columns: 110px 1fr; gap: 12px; margin-top: 18px; }
  .project-facts dt { margin: 0; }
  .shot-row { flex-direction: column; }
  .shot-frame { flex: none !important; width: 100%; }
  .shot-group .shot-frame img { max-height: 460px; }
}
@media (max-width: 640px) {
  .project-hero { padding: calc(var(--header) + 32px) var(--edge) 110px; }
  .project-hero h1 { font-size: clamp(44px, 13vw, 60px); }
  .project-subtitle { font-size: 19px; }
  .project-stage { margin-top: -80px; border-radius: 20px; }
  .stage-frame { padding-top: 24px; }
  .project-metrics li { padding: 18px 20px; }
  .next-project { margin-block: 56px; border-radius: 22px; }
  .next-project-visual { padding: 18px 18px 0; }
  .next-project-visual .shot-bar { top: 26px; left: 30px; }
}

.project-shots { padding-top: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px 28px; }
.project-shots figure { min-width: 0; align-self: start; }
.project-shots figure:first-child { grid-column: 1 / -1; }
.project-shots img { width: 100%; border-radius: 8px; border: 1px solid var(--line); }
.project-shots figcaption { display: flex; align-items: baseline; gap: 13px; padding-top: 13px; color: var(--muted); font-size: 12px; }
.project-shots figcaption .eyebrow { color: var(--primary); }
.category-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: -10px 0 48px; }
.category-nav a { display: inline-flex; align-items: center; gap: 9px; padding: 8px 10px 8px 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; }
.category-count { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: 12px; font-weight: 650; }
.category-nav a[aria-current] { border-color: transparent; background: linear-gradient(135deg, #639fdb, #2c73ba); color: #fff; }
.category-nav a[aria-current] .category-count { background: #ffffff2e; color: #fff; }

/* Blog listing */
.blog-page { padding-inline: max(var(--gutter), calc((100vw - 1290px) / 2)); }
.blog-heading .work-title { margin: 6px auto 20px; }
.blog-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 500; }
.blog-meta span { display: inline-flex; align-items: center; gap: 5px; }
.blog-meta .icon { width: 15px; height: 15px; }

.blog-featured {
  --tile-bg: #edf4fb; --tile-ink: #193b5f; --tile-muted: #425d78; --tile-chip: #fff; --tile-chip-ink: #31577e; --tile-type: #dceaf7; --tile-type-ink: #234f7a; --tile-orbit: #d8e7f5;
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center;
  overflow: hidden; isolation: isolate; margin-bottom: 30px; padding: 44px 0 0 48px;
  border: 1px solid #d6e5f3; border-radius: 28px; background: var(--tile-bg); color: var(--tile-ink);
  transition: transform .35s cubic-bezier(.2, .6, .2, 1);
}
.blog-featured::before { content: ''; position: absolute; z-index: -1; right: -90px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: var(--tile-orbit); opacity: .75; }
.blog-featured-copy { align-self: stretch; display: flex; flex-direction: column; padding-bottom: 44px; }
.blog-featured .tile-type .icon { color: var(--primary); }
.blog-featured .blog-meta { margin-top: 26px; color: var(--tile-muted); }
.blog-featured-title { margin-top: 12px; font-size: clamp(30px, 3vw, 42px); line-height: 1.1; letter-spacing: -.045em; }
.blog-featured-title a::after { content: ''; position: absolute; inset: 0; z-index: 3; border-radius: inherit; }
.blog-featured-excerpt { margin-top: 16px; color: var(--tile-muted); font-size: 15px; line-height: 1.65; }
.blog-read { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: 28px; padding: 12px 20px; border-radius: 999px; background: #3168a6; color: #fff; font-size: 14px; font-weight: 650; }
.blog-read .icon { width: 17px; height: 17px; transition: translate .25s; }
.blog-featured-visual { align-self: end; min-width: 0; }
.blog-featured .tile-shot { margin: 0 -12% -6% 0; transform: rotate(-5deg); transform-origin: left bottom; }
.blog-featured .tile-shot img { aspect-ratio: 1.55; }
.blog-featured:focus-within, .blog-card:focus-within { outline: 3px solid var(--primary); outline-offset: 4px; }
.blog-featured a:focus-visible, .blog-card a:focus-visible { outline: none; }

.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.blog-card {
  position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: 22px; background: #fff;
  transition: transform .35s cubic-bezier(.2, .6, .2, 1);
}
.blog-card-thumb { position: relative; overflow: hidden; margin: 10px 10px 0; border-radius: 14px; background: linear-gradient(160deg, #f3f8fc, #dfecf8); }
.blog-card-thumb img { width: 100%; aspect-ratio: 1.6; object-fit: cover; object-position: top left; transition: transform .45s; }
.blog-card-placeholder { display: grid; place-items: center; aspect-ratio: 1.6; color: var(--primary); }
.blog-card-placeholder .icon { width: 44px; height: 44px; opacity: .55; }
.blog-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 26px; }
.blog-card-title { margin-top: 10px; font-size: 22px; line-height: 1.22; letter-spacing: -.03em; }
.blog-card-title a::after { content: ''; position: absolute; inset: 0; z-index: 3; border-radius: inherit; }
.blog-card-excerpt { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-tags { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; margin: auto 60px 0 0; padding: 18px 0 0; }
.blog-card-tags li { padding: 4px 12px; border-radius: 999px; background: #f0f6fc; color: #234466; font-size: 12px; font-weight: 600; }
.blog-card .tile-open { --tile-btn: linear-gradient(135deg, #4f89c8, #285b95); right: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 13px; }
@media (hover: hover) {
  .blog-featured:hover { transform: translateY(-5px); }
  .blog-featured:hover .tile-shot { transform: rotate(-3deg) translateY(-8px); }
  .blog-featured:hover .blog-read .icon { translate: 4px 0; }
  .blog-card:hover { transform: translateY(-6px); }
  .blog-card:hover .blog-card-thumb img { transform: scale(1.04); }
  .blog-card:hover .tile-open { background: #225990; }
}
@media (max-width: 1100px) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .blog-featured { grid-template-columns: 1fr; gap: 10px; padding: 34px 32px 0; }
  .blog-featured-copy { padding-bottom: 10px; }
  .blog-featured .tile-shot { margin: 10px -18% -8% 4%; }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; gap: 22px; }
  .blog-featured { padding: 26px 22px 0; border-radius: 22px; }
  .blog-featured-title { font-size: 28px; }
  .blog-featured-excerpt { font-size: 14px; }
  .blog-card-title { font-size: 21px; }
  .category-nav a { padding: 7px 8px 7px 14px; font-size: 13px; }
}
.empty-state { text-align: center; padding: 30px 0; color: var(--muted); font-size: 15px; }
.empty-state a { display: block; color: var(--primary); margin-top: 15px; }
.post-page { padding-top: 38px; }
/* The heading spans exactly the cover box width, so neither overflows the other. */
.article-heading, .article-cover { --article-wide: 950px; }
.article-heading { max-width: var(--article-wide); margin: 0 auto; }
.article-heading > .eyebrow { margin: 35px 0 18px; font-size: 10px; }
.article-heading h1 { font-size: clamp(34px, 4.3vw, 58px); line-height: 1.12; }
.article-excerpt { max-width: 760px; color: var(--muted); font-size: 18px; margin-top: 24px; line-height: 1.8; }
.author { display: flex; gap: 12px; align-items: center; margin: 25px 0 35px; font-size: 13px; }
.author-avatar { width: 42px; height: 42px; object-fit: cover; border-radius: 50%; filter: grayscale(1); }
.author .eyebrow { font-size: 8px; letter-spacing: .04em; }
.reading-time { margin-left: auto; }
.article-cover { max-width: var(--article-wide); margin: 0 auto 60px; padding: 8px; background: #e7f0f9; border: 1px solid #d6e5f3; border-radius: 18px; overflow: hidden; }
.article-cover img { max-height: 500px; width: 100%; object-fit: cover; border-radius: 11px; }
.article-body, .article-back { max-width: 720px; margin: 0 auto; }
.article-back { margin-top: 55px; padding-top: 20px; border-top: 1px solid var(--line); }
.not-found { text-align: center; padding-top: 80px; padding-bottom: 90px; }
.not-found h1 { font-size: clamp(55px, 7vw, 90px); margin: 20px 0; }
.not-found > p:not(.eyebrow) { color: var(--muted); margin-bottom: 25px; }
.not-found > a { margin: 0 15px; }

/* Motion is additive: all content remains visible before JS or without it. */
@keyframes arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.motion-ready .is-entering { animation: arrive .55s ease-out both; }
.motion-ready .hero-copy { animation: arrive .65s ease-out both; }

@media (max-width: 1000px) {
  .post-card { grid-template-columns: 230px minmax(0, 1fr); gap: 28px; }
  .post-card :is(h2, h3) { font-size: 24px; }
}

@media (max-width: 760px) {
  :root { --header: 78px; }
  .section-pad { padding-top: 60px; padding-bottom: 60px; }
  .ribbon-group { font-size: 23px; gap: 22px; padding-block: 13px; padding-right: 22px; }
  .section-heading h2 { font-size: 31px; }
  .section-heading > p:not(.eyebrow) { font-size: 13px; }
  .star-heading { gap: 9px; }
  .star-heading > span { font-size: .6em; }
  .heading-with-link { align-items: flex-start; gap: 20px; }
  .heading-with-link > .text-link { font-size: 11px; gap: 8px; margin-top: 23px; }
  .post-card { grid-template-columns: 190px minmax(0, 1fr); gap: 23px; }
  .post-card :is(h2, h3) { font-size: 22px; }
  .post-card-copy > .eyebrow { font-size: 9px; }
  .post-card-copy > p:last-child { font-size: 12px; }
  .contact h2 { font-size: 39px; }
  .contact-email { font-size: 20px; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-about { grid-column: 1 / -1; }
  .page-heading { margin-bottom: 40px; }
  .page-heading h1 { font-size: 49px; }
  .page-intro { font-size: 15px; }
  .project-shots { padding-top: 0; gap: 30px; grid-template-columns: 1fr; }
  .project-shots figure:first-child { grid-column: auto; }
  .article-heading h1 { font-size: 39px; }
  .article-excerpt { font-size: 16px; }
  .article-cover { padding: 20px; margin-bottom: 40px; }
  .prose { font-size: 16px; }
  .prose h2 { font-size: 24px; }
  .prose h3 { font-size: 20px; }
  .post-page { padding-top: 30px; }
}

@media (max-width: 640px) {
  .ribbon-group { font-size: 21px; gap: 20px; padding: 14px 20px 14px 0; }
  .section-heading h2 { font-size: 29px; }
  .star-heading { display: block; }
  .star-heading > span { display: inline-block; margin: 0 8px; font-size: 16px; vertical-align: .2em; }
  .heading-with-link { display: block; }
  .heading-with-link > .text-link { margin-top: 15px; font-size: 12px; }
  .post-card { grid-template-columns: 1fr; gap: 21px; padding-top: 25px; }
  .post-thumb img { aspect-ratio: 1.6; }
  .post-card :is(h2, h3) { font-size: 26px; }
  .post-card-copy > p:last-child { font-size: 14px; }
  .contact { padding: 48px 20px 36px; border-radius: 24px; }
  .contact h2 { font-size: 35px; }
  .contact-description { font-size: 13px; }
  .contact-email { gap: 10px; font-size: clamp(15px, 4.3vw, 21px); }
  .contact-email .circle-arrow { width: 25px; height: 25px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; padding: 36px 0 32px; }
  .footer-grid > .footer-col:last-child { grid-column: 1 / -1; }
  .footer-bottom { font-size: 11px; }
  .site-footer { margin-top: 40px; }
  .page-heading h1 { font-size: 42px; }
  .page-intro { font-size: 14px; }
  .article-heading h1 { font-size: 34px; }
  .article-excerpt { font-size: 15px; }
  .article-heading > .eyebrow { font-size: 9px; }
  .author { font-size: 12px; gap: 10px; }
  .author-avatar { width: 36px; height: 36px; }
  .reading-time { white-space: nowrap; }
  .article-cover { padding: 12px; }
  .category-nav { gap: 8px; }
}

@media (max-width: 360px) {
  .star-heading > span { display: none; }
}
/* Header and hero, responsive. */
@media (max-width: 1240px) {
  .brand-avatar { display: none; }
  .main-nav > a { padding: 9px 12px; }
}
@media (max-width: 1080px) {
  .js .menu-toggle { display: flex; align-items: center; gap: 10px; height: 44px; margin-left: auto; padding: 0 14px; border: 0; border-radius: 13px; background: #f0f3f7; font-size: 14px; font-weight: 600; cursor: pointer; }
  .js .menu-toggle[aria-expanded="true"] { background: #e3eef8; color: var(--primary); }
  .js .header-panel { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 12px; padding: 12px; background: #fff; border: 1px solid #e8f0f8; border-radius: 20px; box-shadow: 0 12px 24px -18px #1a2d4026; }
  .js .header-panel.is-open { display: flex; }
  .js .main-nav { flex-direction: column; align-items: stretch; gap: 2px; margin: 0; font-size: 17px; }
  .js .main-nav > a { padding: 12px 16px; border-radius: 12px; }
  .js .header-actions { padding: 12px 4px 0; border-left: 0; border-top: 1px solid var(--line); }
  .js .header-cta { margin-left: auto; }
  html:not(.js) .site-header { height: auto; }
  html:not(.js) .header-bar { flex-wrap: wrap; height: auto; padding: 12px 14px; }
  html:not(.js) .header-panel { flex: 1 1 100%; flex-wrap: wrap; justify-content: space-between; }
  html:not(.js) .main-nav { margin: 0; }
  html:not(.js) .hero { margin-top: 0; padding-top: 40px; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; grid-template-rows: 1fr auto; padding: calc(var(--header) + 36px) var(--edge) 0; }
  .hero-copy { padding-bottom: 0; }
  .hero-visual { margin-top: 34px; }
  .hero-visual img { height: min(62svh, 560px); }
  .hero-ring { width: min(88%, 470px); bottom: 14%; }
}
@media (max-width: 760px) {
  .header-bar { height: 64px; padding: 0 10px; border-radius: 18px; }
  .brand { gap: 10px; }
  .brand-mark { width: 42px; height: 42px; border-radius: 12px; }
}
@media (max-width: 640px) {
  :root { --header: 74px; }
  .site-header { padding: 10px 12px 0; }
  .brand-text { padding-left: 10px; }
  .brand-text strong { font-size: 14px; }
  .brand-role { font-size: 11px; }
  .js .menu-toggle { padding: 0 12px; }
  .js .menu-toggle .menu-label { display: none; }
  .hero-eyebrow { font-size: 11px; margin-bottom: 18px; }
  .hero-copy h1 { font-size: clamp(31px, 8.6vw, 40px); }
  .hero-lead { margin-top: 20px; font-size: 15px; }
  .hero-buttons { gap: 12px; margin-top: 28px; }
  .hero-buttons .button { flex: 1 1 auto; min-height: 50px; padding: 12px 18px; font-size: 14px; }
  .hero-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 32px; }
  .hero-points li { flex-direction: column; gap: 8px; font-size: 13px; text-align: center; }
  .hero-points li + li { margin-left: 0; padding-left: 0; }
  .hero-points .icon { width: 22px; height: 22px; }
  .hero-visual img { height: min(52svh, 440px); }
  .hero-chip { padding: 8px 12px; font-size: 12px; gap: 8px; }
  .chip-status { left: 0; top: 40%; }
  .chip-place { right: 0; bottom: 12%; }
  .hero-tile { width: 46px; height: 46px; border-radius: 13px; }
  .hero-tile .icon { width: 22px; height: 22px; }
  .tile-layers { width: 40px; height: 40px; left: 6%; }
  .tile-layers .icon { width: 19px; height: 19px; }
  .hero::after { height: 110px; }
}
@media (max-width: 380px) {
  .brand-role { display: none; }
  .hero-points li { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ribbon-toggle { display: none !important; }
}

/* Home sections after the hero, responsive. */
@media (max-width: 1000px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 760px) {
  .timeline-grid { grid-template-columns: 1fr; }
  .journal .post-card { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 640px) {
  .about-copy { font-size: 15px; }
  .about-actions .button { flex: 1 1 auto; }
  .about-card, .timeline-card, .process-board, .journal .post-card { border-radius: 22px; }
  .about-card { padding: 16px; }
  .timeline-card { padding: 22px 20px 8px; }
  .journal .post-card { padding: 14px; }
}
@media (max-width: 1000px) {
  .tools-list { gap: 25px 35px; }
  .tools-list li { font-size: 18px; }
}
@media (max-width: 760px) {
  .tools-list { gap: 22px 36px; }
  .tools-list li { min-width: 110px; justify-content: center; font-size: 19px; }
}
@media (max-width: 640px) {
  .tools-section { padding-top: 28px; padding-bottom: 32px; }
  .tools-section h2 { font-size: 11px; }
  .tools-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 20px; }
  .tools-list li { min-width: 0; font-size: 16px; gap: 7px; }
  .tools-list img { width: 25px; height: 25px; }
}
@media (max-width: 1000px) {
  .process-board { grid-template-columns: 240px minmax(0, 1fr); }
  .process-panel { padding: 24px; }
}
@media (max-width: 760px) {
  .process-board { grid-template-columns: 1fr; }
  .process-tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .process-tabs::-webkit-scrollbar { display: none; }
  .process-tab { flex: none; padding: 10px 14px 10px 10px; font-size: 14px; }
  .process-num { width: 30px; height: 30px; font-size: 12px; }
  .process-columns, .process-foot { grid-template-columns: 1fr; }
  .process-tools-wrap { padding: 4px 4px 0; }
  .process-bignum { font-size: 48px; }
}
@media (max-width: 640px) {
  .process-board { padding: 10px; }
  .process-panel { padding: 20px 12px 16px; }
  .process-icon { width: 46px; height: 46px; border-radius: 14px; }
  .process-block, .process-example { padding: 18px; }
  .process-question { font-size: 16px; }
  .process-text { font-size: 15px; }
}

/* Consent banner (PostHog): flat card, no shadow, bottom of the viewport. */
.consent-banner { position: fixed; z-index: 60; left: 50%; bottom: 16px; display: flex; align-items: center; gap: 22px; width: min(860px, calc(100% - 32px)); padding: 18px 20px 18px 24px; border: 1px solid #d7e5f3; border-radius: 20px; background: #fff; transform: translateX(-50%); }
.consent-banner[hidden] { display: none; }
.consent-text { color: var(--muted); font-size: 14px; line-height: 1.6; }
.consent-text strong { color: var(--ink); }
.consent-actions { display: flex; flex: none; gap: 10px; }
.consent-button { min-height: 44px; padding: 10px 20px; border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color .2s, color .2s; }
.consent-refuse { border: 1px solid #e4eaf0; background: #fff; color: var(--ink); }
.consent-refuse:hover { background: #eaf2fa; color: var(--primary); }
.consent-accept { border: 0; background: #3582d0; color: #fff; }
.consent-accept:hover { background: #225990; }
.consent-button:focus-visible, .footer-consent:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.footer-consent { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.footer-consent:hover { color: var(--primary); }
@media (max-width: 640px) {
  .consent-banner { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; }
  .consent-actions .consent-button { flex: 1; }
}

/* Boutons : jamais d’ombre, dans aucun état (survol, focus, actif). Ne pas réintroduire. */
.button, .header-cta, .social-button, .menu-toggle, .about-toggle, .back-pill, .tile-open, .circle-arrow,
.category-nav a, .process-tab, .process-num, button,
:is(.button, .header-cta, .social-button, .menu-toggle, .about-toggle, .back-pill, .category-nav a, .process-tab, button):is(:hover, :focus, :focus-visible, :active) { box-shadow: none !important; }
