@font-face{font-family:"Funnel Display";font-style:normal;font-weight:300 800;font-display:swap;src:url(/assets/fonts/funnel-display-latin-wght-normal.c7d6c1438e.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Funnel Display";font-style:normal;font-weight:300 800;font-display:swap;src:url(/assets/fonts/funnel-display-latin-ext-wght-normal.34b6b437e7.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
/* Design tokens — Editorial paper. Roles stay stable; every component references these. */
:root {
  /* type */
  /* ONE family, like pamidordesign.co (Funnel Display, variable 300-800): hierarchy comes from
     size, weight (500 headings / 400 body) and tracking — not from mixing typefaces. */
  --font: "Funnel Display", "Helvetica Neue", Arial, sans-serif;

  /* vw-based scale measured from pamidordesign.co (text-display / -section / -lead / -body / -label) */
  --fs-name: clamp(3.6rem, 14.5vw, 15rem);       /* the name is the logo (pamidor's own display is 6.9vw) */
  --fs-h2: clamp(2rem, 7.222vw, 6.5rem);          /* text-section: lh 1, tracking -.02em */
  --fs-question: clamp(2rem, 4.4vw, 4rem);
  --fs-statement: clamp(1.5rem, 2.778vw, 2.5rem); /* text-lead: lh 1.2, tracking -.015em */
  --fs-row: clamp(1.3125rem, 2.2vw, 2rem);
  --fs-body: clamp(1rem, 0.3vw + 0.92rem, 1.0625rem); /* pamidor body is 15-16px; kept >= 16px */
  --fs-label: clamp(0.75rem, 0.833vw, 0.8125rem); /* text-label: tracking +.06em */
  --fs-lead-sm: clamp(1.125rem, 0.5vw + 1rem, 1.3125rem); /* section leads and card intros */
  --fs-small: 0.9375rem;                          /* nav, dates, captions, chips: ONE small size */

  /* colour roles: warm paper + ink + ONE signal */
  --paper: #efeeeb;
  --surface: #f7f6f3;
  --paper-2: #e8e7e3;                            /* tinted section band (work) */
  --ink: #0a0a0a;
  --text: #2a2a28;
  --muted: #5e5c58;
  --dim: rgba(10, 10, 10, 0.28);               /* scroll-lit: unread words */
  --line: #cfcdc8;                              /* decorative hairline */
  --line-strong: #8f8c86;                       /* UI borders */
  --signal: #c41e1e;                            /* hover, active row, focus, flash, CTA */

  --night: #0d0d0b;
  --night-text: #f7f7f5;
  --night-muted: #a9a8a3;
  --night-line: rgba(255, 255, 255, 0.14);
  --night-line-strong: rgba(255, 255, 255, 0.5);
  --night-signal: #ff5a4d;

  /* space & shape */
  --pad-x: clamp(20px, 4vw, 64px);
  --section-gap: clamp(64px, 8vw, 128px);
  --max: 1440px;
  --header-h: 64px;
  --radius: 6px;
  --radius-card: 10px;
  --shadow-card: 0 1px 2px rgba(10, 10, 10, 0.06), 0 14px 30px -18px rgba(10, 10, 10, 0.25);
  --shadow-lift: 0 2px 4px rgba(10, 10, 10, 0.07), 0 22px 40px -20px rgba(10, 10, 10, 0.32);

  /* motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-hover: 0.25s;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 var(--fs-body) / 1.55 var(--font); letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
[hidden] { display: none !important; }
button { font: inherit; letter-spacing: inherit; color: inherit; }

h1, h2, h3, h4 { color: var(--ink); font-weight: 500; text-wrap: balance; }
h2 { font-size: var(--fs-h2); line-height: 1; letter-spacing: -0.02em; }
h3 { font-size: var(--fs-row); line-height: 1.12; letter-spacing: -0.02em; }
/* no weight/typeface accent: two weights only (500 display + UI actions, 400 everything else) */
em { font-style: normal; font-weight: inherit; }
strong { font-weight: 500; color: var(--ink); }

.label, .kicker { font: 400 var(--fs-label) / 1.4 var(--font); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 2px; }
.night :focus-visible, .footer :focus-visible { outline-color: var(--night-signal); }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 100; background: var(--ink); color: var(--paper); padding: 12px 16px; border-radius: var(--radius); transition: top 0.2s; }
.skip-link:focus { top: 12px; }

/* links & buttons */
.link { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em; transition: color var(--dur-hover) var(--ease-out); }
.link:hover { color: var(--signal); }
.link--light { color: var(--night-text); }
.link--light:hover { color: var(--night-signal); }

.btn { display: inline-flex; align-items: center; gap: 0.7em; padding: 1em 1.4em; min-height: 52px; border: 0; border-radius: var(--radius); background: var(--ink); color: var(--paper); font: 500 1rem / 1 var(--font); letter-spacing: -0.01em; text-decoration: none; cursor: pointer; transition: background-color var(--dur-hover) var(--ease-out), color var(--dur-hover) var(--ease-out); }
.btn:hover { background: var(--signal); color: #fff; }
.btn .arrow { transition: transform 0.35s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--light { background: var(--night-text); color: var(--night); }
.btn--light:hover { background: var(--night-signal); color: var(--ink); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.ruled > li { padding: 0.8em 0; border-top: 1px solid var(--line); }
.ruled > li:last-child { border-bottom: 1px solid var(--line); }
.ruled--night > li { border-color: var(--night-line); color: var(--night-muted); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font: 400 var(--fs-label) / 1 var(--font); letter-spacing: 0.01em; padding: 0.55em 0.8em; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
.btn .arrow { color: inherit; }

/* ───── signal red: the one accent, used as punctuation ───── */
::selection { background: var(--signal); color: #fff; }
.dot { color: var(--signal); }
.night .dot { color: var(--night-signal); }
.link { text-decoration-color: var(--signal); }
.link--light { text-decoration-color: var(--night-signal); }
.btn .arrow { color: var(--night-signal); }
.btn:hover .arrow, .btn--light .arrow { color: inherit; }
.section__head .label::before, .contact__intro .label::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; background: var(--signal); vertical-align: 0.04em; }
.contact__intro .label::before { background: var(--night-signal); }
.kicker::before { content: ""; display: block; width: 56px; height: 4px; margin: 0 auto 14px; background: var(--signal); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad-x); }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid transparent; transition: border-color 0.3s, background-color 0.3s; }
.site-header.is-scrolled { border-bottom-color: var(--line); background: color-mix(in oklab, var(--paper) 90%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); flex-wrap: wrap; }
.brand { font-size: var(--fs-body); font-weight: 500; letter-spacing: -0.015em; color: var(--ink); text-decoration: none; }
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 28px; }
.nav__link, .lang__link { font: 400 var(--fs-small) / 1 var(--font); letter-spacing: -0.01em; color: var(--text); text-decoration: none; padding: 0.6em 0; transition: color var(--dur-hover) var(--ease-out); }
.nav__link:hover, .lang__link:hover { color: var(--signal); }
.lang { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; }
.lang__sep { color: var(--line-strong); font-size: var(--fs-small); }
.lang__link[aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: 0.4em; }
.menu-btn { display: none; align-items: center; min-height: 44px; padding: 0 4px; background: none; border: 0; font: 400 var(--fs-small) / 1 var(--font); letter-spacing: -0.01em; color: var(--ink); cursor: pointer; }

@media (max-width: 860px) {
  .js .menu-btn { display: inline-flex; }
  .js .nav { display: none; }
  .js .site-header.is-open { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; } /* backdrop-filter makes the header the containing block of the fixed menu sheet and collapses it */
  .js .site-header.is-open .nav { display: flex; position: fixed; inset: var(--header-h) 0 0 0; flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 0; padding: 24px var(--pad-x) 40px; background: var(--paper); overflow-y: auto; }
  .js .site-header.is-open .nav__link { font: 500 clamp(2rem, 9vw, 3rem) / 1 var(--font); letter-spacing: -0.03em; padding: 0.55em 0; border-bottom: 1px solid var(--line); color: var(--ink); }
  .js .site-header.is-open .lang { margin: 28px 0 0; gap: 14px; }
  .js .site-header.is-open .lang__link { font-size: var(--fs-small); }
}

/* the header sits on the night band at every width (owner decision 2026-10-09) */
.site-header { background: var(--night); border-bottom-color: var(--night-line); }
.site-header.is-scrolled { background: color-mix(in oklab, var(--night) 90%, transparent); border-bottom-color: var(--night-line); }
.brand, .menu-btn, .lang__link[aria-current] { color: var(--night-text); }
.nav__link, .lang__link { color: var(--night-muted); }
.nav__link:hover, .lang__link:hover { color: var(--night-signal); }
.lang__sep { color: var(--night-line-strong); }
@media (max-width: 860px) {
  .js .site-header.is-open { background: var(--night); }
  .js .site-header.is-open .nav { background: var(--night); }
  .js .site-header.is-open .nav__link { color: var(--night-text); border-bottom-color: var(--night-line); }
}

/* sections */
.section { padding-block: var(--section-gap); border-top: 1px solid var(--line); }
.section__head { display: grid; gap: 20px; max-width: 70rem; margin-bottom: clamp(36px, 5vw, 72px); }
.section__lead { max-width: 52ch; font-size: var(--fs-lead-sm); line-height: 1.4; letter-spacing: -0.015em; color: var(--muted); }
.section--tint { background: var(--paper-2); border-top: 0; }

/* night band (contact + footer) */
.night { background: var(--night); color: var(--night-text); padding-block: var(--section-gap); }
.night h2 { color: var(--night-text); font-size: clamp(2.25rem, 4.6vw, 4.5rem); hyphens: auto; }
.night .label { color: var(--night-muted); }
.night .section__lead { color: var(--night-muted); }
.footer { background: var(--night); color: var(--night-muted); padding-bottom: 36px; }
.footer__inner { border-top: 1px solid var(--night-line); padding-top: clamp(32px, 4vw, 56px); display: grid; gap: clamp(28px, 3.5vw, 44px); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 32px clamp(24px, 4vw, 64px); align-items: start; }
.footer__tagline { max-width: 30ch; font-size: var(--fs-row); font-weight: 500; line-height: 1.2; letter-spacing: -0.015em; color: var(--night-text); text-wrap: balance; }
.footer__col { display: grid; gap: 14px; align-content: start; }
.footer__title { font: 400 var(--fs-label) / 1.4 var(--font); letter-spacing: 0.06em; text-transform: uppercase; color: var(--night-muted); }
.footer__col ul { display: grid; gap: 10px; }
.footer__col a { color: var(--night-text); text-decoration: none; background: linear-gradient(var(--night-signal), var(--night-signal)) 0 100% / 0 1px no-repeat; transition: background-size 0.35s var(--ease-out), color var(--dur-hover); }
.footer__col a:hover { background-size: 100% 1px; color: #fff; }
.footer__top-btn { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border: 1px solid var(--night-line-strong); border-radius: 50%; color: var(--night-text); font-size: 1.25rem; text-decoration: none; transition: background-color var(--dur-hover), border-color var(--dur-hover), transform 0.4s var(--ease-expo); }
.footer__top-btn:hover { background: var(--night-signal); border-color: var(--night-signal); color: var(--ink); transform: translateY(-4px); }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 24px; border-top: 1px solid var(--night-line); font-size: var(--fs-label); line-height: 1.6; }
.footer__imprint { display: flex; flex-wrap: wrap; gap: 2px 18px; }
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__tagline { grid-column: 1 / -1; }
  .footer__top-btn { grid-column: 1; grid-row: 3; }
}

/* legal / 404 */
.legal__inner { max-width: 820px; padding-block: clamp(64px, 9vw, 140px) 40px; display: grid; gap: 20px; }
.legal__title { font-size: clamp(2.4rem, 6.4vw, 5rem); line-height: 1; letter-spacing: -0.03em; }
.legal__updated { font: 400 var(--fs-small) / 1 var(--font); color: var(--muted); }
.legal__section { border-top: 1px solid var(--line); padding-top: 24px; display: grid; gap: 10px; }
.legal__section h2 { font-size: var(--fs-row); letter-spacing: -0.02em; line-height: 1.12; }
.legal__inner > .link { justify-self: start; margin-top: 24px; }
.footer__social { display: inline-flex; align-items: center; gap: 8px; }
.footer__social-icon { display: inline-grid; width: 20px; height: 20px; color: var(--night-text); }
.footer__social-icon svg { width: 100%; height: 100%; fill: currentColor; display: block; }
.footer__social:hover .footer__social-icon { color: var(--night-signal); }

/* ───────── hero ───────── */
.hero { padding-block: clamp(16px, 2.2vw, 32px) clamp(48px, 6vw, 96px); }
.kicker { text-align: center; text-wrap: balance; }
@media (min-width: 900px) { .kicker { white-space: nowrap; } }
.name { font-size: var(--fs-name); font-weight: 500; line-height: 0.88; letter-spacing: -0.03em; margin: clamp(16px, 2vw, 28px) 0 clamp(28px, 4vw, 56px) -0.04em; color: var(--ink); }
.name__first, .name__last { display: block; overflow: hidden; padding: 0.1em 0.06em 0.04em; margin: -0.1em -0.06em -0.04em; }
.name .ch, .name .chi { display: inline-block; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.statement { font-size: var(--fs-statement); font-weight: 500; line-height: 1.2; letter-spacing: -0.015em; color: var(--ink); text-wrap: balance; }
.lead { margin-top: 28px; max-width: 58ch; color: var(--text); }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: 36px; }
.portrait { justify-self: end; width: 100%; max-width: 620px; }
.portrait { position: relative; isolation: isolate; }
/* shading: soft layered shadow + a thin inner edge */
.portrait > picture > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; filter: saturate(0.38) contrast(1.05); box-shadow: 0 1px 2px rgba(10, 10, 10, 0.12), 0 14px 28px -10px rgba(10, 10, 10, 0.28), 0 44px 80px -28px rgba(10, 10, 10, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.18); }

@media (max-width: 899px) {
  .name { font-size: 29.5vw; line-height: 0.86; }
  .hero__grid { grid-template-columns: 1fr; align-items: start; }
  .portrait { order: -1; justify-self: center; width: min(520px, 100%); margin-bottom: 10px; }
  }
@media (min-width: 900px) {
  .name { white-space: nowrap; }
  .name__first, .name__last { display: inline-block; vertical-align: top; }
}
/* letters slide up out of a mask on load (pamidordesign.co loader-letter-in); off for reduced motion */
@keyframes letter-in { from { transform: translate3d(0, 112%, 0); } to { transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .name .chi { animation: letter-in 1s var(--ease-expo) both; }
  .name__last > .ch:nth-child(1) .chi { animation-delay: 0.275s; }
  .name__last > .ch:nth-child(2) .chi { animation-delay: 0.320s; }
  .name__last > .ch:nth-child(3) .chi { animation-delay: 0.365s; }
  .swap__a .ch:nth-child(1) .chi { animation-delay: 0.410s; }
  .swap__a .ch:nth-child(2) .chi { animation-delay: 0.455s; }
  .swap__a .ch:nth-child(3) .chi { animation-delay: 0.500s; }
  .swap__a .ch:nth-child(4) .chi { animation-delay: 0.545s; }
  .name__first .ch:nth-child(1) .chi { animation-delay: 0.050s; }
  .name__first .ch:nth-child(2) .chi { animation-delay: 0.095s; }
  .name__first .ch:nth-child(3) .chi { animation-delay: 0.140s; }
  .name__first .ch:nth-child(4) .chi { animation-delay: 0.185s; }
  .name__first .ch:nth-child(5) .chi { animation-delay: 0.230s; }
}

/* ───────── services ───────── */
.tracks { display: grid; gap: clamp(16px, 2vw, 24px); }
.track { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); padding: clamp(22px, 3.6vw, 52px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.track__main { display: grid; gap: 22px; align-content: start; }
.track__question { font-size: var(--fs-question); line-height: 1.02; letter-spacing: -0.03em; }
.track__body { color: var(--text); max-width: 46ch; font-size: var(--fs-lead-sm); line-height: 1.45; letter-spacing: -0.015em; }
.track__side { display: grid; gap: 28px; align-content: start; }
.track__side .btn { justify-self: start; }
.example { display: grid; grid-template-columns: minmax(0, 210px) 1fr; gap: 20px; align-items: center; text-decoration: none; border: 1px solid var(--line); border-radius: 4px; padding: 12px; background: var(--surface); transition: border-color var(--dur-hover); }
.example:hover { border-color: var(--signal); }
.example img { border-radius: 2px; width: 100%; aspect-ratio: 8 / 5; object-fit: cover; }
.example__text { display: grid; gap: 6px; }
.example__title { font-weight: 500; color: var(--ink); line-height: 1.25; }
.example__visit { font: 400 var(--fs-small) / 1 var(--font); color: var(--muted); }
.example:hover .example__visit { color: var(--signal); }
@media (max-width: 860px) {
  .track { grid-template-columns: 1fr; }
  .example { grid-template-columns: 1fr; }
}

/* ───────── work ───────── */
.jobs { border-top: 1px solid var(--ink); }
.job { border-bottom: 1px solid var(--line); }
.job__summary, .earlier__summary { list-style: none; cursor: pointer; }
.job__summary::-webkit-details-marker, .earlier__summary::-webkit-details-marker { display: none; }
.job__summary { display: grid; grid-template-columns: 180px minmax(0, 1fr) auto 32px; gap: 8px 28px; align-items: center; padding-block: 28px; }
.job__period { font: 400 var(--fs-small) / 1.3 var(--font); font-variant-numeric: tabular-nums; color: var(--muted); }
.job__title { transition: color 0.3s var(--ease-out); }
.job__domain { font: 400 var(--fs-label) / 1.3 var(--font); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); text-align: right; }
.job__summary:hover .job__title, .job[open] .job__title { color: var(--signal); }
.job__toggle { position: relative; width: 28px; height: 28px; border: 1px solid var(--line-strong); border-radius: 50%; transition: transform 0.4s var(--ease-expo), background-color 0.25s; }
.job__toggle::before, .job__toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); transition: transform 0.4s var(--ease-expo); }
.job__toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.job[open] .job__toggle { transform: rotate(180deg); }
.job[open] .job__toggle::after { transform: translate(-50%, -50%) rotate(0); }
.job__body { display: grid; gap: 18px; padding: 0 clamp(18px, 2.2vw, 28px) 30px calc(180px + 28px + clamp(18px, 2.2vw, 28px)); max-width: calc(62ch + 208px + 56px); }
.job__outcome { color: var(--ink); }
.arrow { color: var(--signal); }
.night .arrow { color: inherit; }
.job__body p:first-child { color: var(--text); }

.earlier { margin-top: 36px; }
.earlier__summary { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border: 1px solid var(--line-strong); border-radius: 999px; font: 500 var(--fs-small) / 1 var(--font); letter-spacing: -0.01em; color: var(--ink); transition: background-color var(--dur-hover), color var(--dur-hover); }
.earlier__summary:hover { background: var(--ink); color: var(--paper); }
.earlier__hide, .earlier[open] .earlier__show, .all-tools[open] .earlier__show { display: none; }
.earlier[open] .earlier__hide, .all-tools[open] .earlier__hide { display: inline; }
.earlier__body { display: grid; gap: 24px; padding-top: 28px; }
.projects { border-top: 1px solid var(--line); }
.project { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.project h4 { font-size: 1.375rem; letter-spacing: -0.02em; margin-bottom: 6px; }
.project p:not(.label) { color: var(--text); max-width: 60ch; }

@media (max-width: 860px) {
  .job__summary { grid-template-columns: minmax(0, 1fr) 32px; padding-block: 22px; }
  .job__period { grid-column: 1; }
  .job__main { grid-column: 1; grid-row: 2; }
  .job__domain { grid-column: 1; grid-row: 3; text-align: left; }
  .job__toggle { grid-column: 2; grid-row: 1 / span 3; align-self: start; }
  .job__body { padding: 0 clamp(18px, 2.2vw, 28px) 26px; }
  .job__domain { justify-self: start; }
  .project { grid-template-columns: 1fr; gap: 8px; }
  .project .job__domain { justify-self: start; margin-top: 4px; }
}

/* ───────── recommendations ───────── */
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.quote { display: grid; gap: 16px; align-content: space-between; padding: clamp(20px, 2.4vw, 34px) clamp(0px, 2.4vw, 36px) clamp(20px, 2.4vw, 34px) 0; border-bottom: 1px solid var(--line); }
.quote:nth-child(even) { padding-left: clamp(0px, 2.4vw, 36px); padding-right: 0; border-left: 1px solid var(--line); }
.quote blockquote { font-size: clamp(1.0625rem, 1.25vw, 1.1875rem); font-weight: 400; line-height: 1.5; letter-spacing: -0.01em; color: var(--ink); text-wrap: pretty; }
.quote figcaption { display: grid; gap: 4px; }
.quote__name { font-weight: 500; color: var(--ink); }
.quote__role { font: 400 var(--fs-small) / 1.4 var(--font); color: var(--muted); }
.quotes__more { margin-top: 32px; }
@media (max-width: 860px) {
  .quotes { grid-template-columns: 1fr; }
  .quote:nth-child(even) { padding-left: 0; border-left: 0; }
  .quote { padding-right: 0; }
}

/* ───────── experience ───────── */
.lit { display: grid; gap: 1.1em; max-width: 62rem; font-size: clamp(1.5rem, 2.9vw, 2.6rem); line-height: 1.2; letter-spacing: -0.02em; font-weight: 500; color: var(--ink); text-wrap: pretty; }
@keyframes lit-flash {
  0% { color: var(--dim); }
  35% { color: var(--signal); }
  100% { color: var(--ink); }
}
@media (prefers-reduced-motion: no-preference) {
  html.js-ready .lit .c { color: var(--dim); }
  html.js-ready .lit .c.on { animation: lit-flash 0.7s var(--ease-out) both; }
  .lit .wd { white-space: nowrap; }
}
.facts-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px 32px; margin-top: clamp(40px, 5vw, 72px); }
.facts-grid h3 { margin-bottom: 16px; font-size: var(--fs-label); line-height: 1.4; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 400; color: var(--muted); }
.certs { display: grid; gap: 16px; }
.cert { display: flex; gap: 14px; align-items: center; }
.cert img { width: 48px; height: 48px; flex: none; }
.cert__code { color: var(--muted); }
@media (max-width: 1000px) {
  .facts-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .facts-grid { grid-template-columns: 1fr; } }

/* ───────── stack ───────── */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 0.6em 1em 0.6em 0.8em; border: 1px solid var(--line-strong); border-radius: 999px; font-size: var(--fs-small); line-height: 1; color: var(--ink); background: var(--surface); }
.chip img { width: 22px; height: 22px; object-fit: contain; }
.chips--core .chip { font-size: var(--fs-body); padding: 0.8em 1.2em 0.8em 1em; }
.all-tools { margin-top: 28px; }
.stack-rows { margin-top: 28px; border-top: 1px solid var(--ink); }
.stack-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px 28px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: start; }
.stack-row h3 { padding-top: 0.6em; font-size: var(--fs-label); line-height: 1.4; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 400; color: var(--muted); }
@media (max-width: 760px) { .stack-row { grid-template-columns: 1fr; } .stack-row h3 { padding-top: 0; } }

/* ───────── contact (night) ───────── */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.contact__intro { display: grid; gap: 24px; min-width: 0; }
.contact__intro h2, .contact__form { overflow-wrap: break-word; min-width: 0; }
.contact__intro .reassure { margin-top: clamp(12px, 2vw, 28px); }
.form { display: none; gap: 30px; }
.js .form { display: grid; }
.noscript { color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* the form sits on a paper card (a light island on the night band) with a red top rule */
.contact__card { position: relative; padding: clamp(24px, 3.4vw, 48px); background: var(--surface); color: var(--text); border-radius: 12px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 40px 80px -30px rgba(0, 0, 0, 0.7); }
.contact__card::before { content: ""; position: absolute; left: clamp(24px, 3.4vw, 48px); top: 0; width: 64px; height: 4px; background: var(--signal); }
.topics { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 14px; }
.field__label { font: 400 var(--fs-label) / 1.4 var(--font); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 0; }
.topics__row { display: flex; flex-wrap: wrap; gap: 10px; }
.topic { position: relative; }
.topic input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.topic span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink); transition: background-color var(--dur-hover), color var(--dur-hover), border-color var(--dur-hover); }
.topic:hover span { border-color: var(--ink); }
.topic input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.topic input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 3px; }
.field { display: grid; gap: 4px; }
.field__input { width: 100%; padding: 14px 0; background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; color: var(--ink); font: 400 1.25rem / 1.4 var(--font); letter-spacing: -0.01em; transition: border-color var(--dur-hover); }
textarea.field__input { resize: vertical; min-height: 7.5em; }
.field__input::placeholder { color: var(--muted); opacity: 0.8; }
.field__input:focus { outline: none; border-bottom-color: var(--signal); box-shadow: 0 1px 0 var(--signal); }
.field__input[aria-invalid="true"] { border-bottom-color: var(--signal); }
.field__error { color: var(--signal); font-size: var(--fs-small); }
.field__error:empty { display: none; }
.form__error { color: var(--signal); }
.form__note { color: var(--muted); font-size: var(--fs-small); }
.success { display: grid; gap: 10px; padding: 8px 0; }
.success__title { font: 500 clamp(2rem, 4vw, 3rem) / 1.05 var(--font); letter-spacing: -0.03em; color: var(--ink); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

/* ───────── motion: reveal + hero entrance ───────── */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero__ctas, .portrait { animation: rise 0.9s var(--ease-expo) both; }
  .hero__ctas { animation-delay: 0.16s; }
  .portrait { animation-delay: 0.1s; }

  html.js-ready .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease-out), transform 0.9s var(--ease-expo); }
  html.js-ready .reveal.in { opacity: 1; transform: none; }
  :is(.jobs, .quotes, .tracks, .facts-grid) > .reveal:nth-child(2) { transition-delay: 70ms; }
  :is(.jobs, .quotes, .tracks, .facts-grid) > .reveal:nth-child(3) { transition-delay: 140ms; }
  :is(.jobs, .quotes, .tracks, .facts-grid) > .reveal:nth-child(4) { transition-delay: 210ms; }
}

/* ───── red accents ───── */
.quote blockquote::before { content: "\201C"; display: block; color: var(--signal); font-size: 2.2em; line-height: 0.7; margin-bottom: 0.15em; }
.job[open] .job__toggle { background: var(--signal); border-color: var(--signal); }
.job[open] .job__toggle::before, .job[open] .job__toggle::after { background: #fff; }
.chip { transition: border-color var(--dur-hover); }
.chip:hover { border-color: var(--signal); }

/* ───── portrait icon trail: tiny red icons pop in under the cursor, then drift up and fade (only over the photo) ───── */
.portrait__trail { position: absolute; inset: 0; overflow: hidden; border-radius: 4px; pointer-events: none; }
.trail { position: absolute; filter: drop-shadow(0 2px 5px rgba(10, 10, 10, 0.3)); animation: icon-pop 1.5s var(--ease-expo) both; }
@keyframes icon-pop {
  0% { opacity: 0; transform: translateY(8px) scale(0.2) rotate(calc(var(--tilt) * -2)); }
  16% { opacity: 1; transform: translateY(0) scale(1.12) rotate(var(--tilt)); }
  28% { transform: translateY(0) scale(1) rotate(var(--tilt)); }
  68% { opacity: 1; transform: translateY(-4px) scale(1) rotate(var(--tilt)); }
  100% { opacity: 0; transform: translateY(-26px) scale(0.85) rotate(var(--tilt)); }
}

/* ───── hero words flash red as they appear (pamidordesign.co hw-appear) ───── */
@keyframes hw-appear { 0% { color: transparent; } 45% { color: var(--signal); } }
@media (prefers-reduced-motion: no-preference) {
  /* hidden until JS has marked the block, then flashes in when it scrolls into view */
  html.js [data-hw]:not(.hw-scope) { color: transparent; }
  html.js .hw-scope:not(.in) .hw { color: transparent; }
  html.js .hw-scope.in .hw { animation: hw-appear 1.2s var(--ease-out) both; }
  .statement .hw:nth-child(1) { animation-delay: 0.50s; }
  .statement .hw:nth-child(2) { animation-delay: 0.58s; }
  .statement .hw:nth-child(3) { animation-delay: 0.66s; }
  .statement .hw:nth-child(4) { animation-delay: 0.74s; }
  .statement .hw:nth-child(5) { animation-delay: 0.82s; }
  .statement .hw:nth-child(6) { animation-delay: 0.90s; }
  .statement .hw:nth-child(7) { animation-delay: 0.98s; }
  .statement .hw:nth-child(8) { animation-delay: 1.06s; }
  .statement .hw:nth-child(9) { animation-delay: 1.14s; }
  .statement .hw:nth-child(10) { animation-delay: 1.22s; }
  .statement .hw:nth-child(11) { animation-delay: 1.30s; }
  .statement .hw:nth-child(12) { animation-delay: 1.38s; }
  .statement .hw:nth-child(13) { animation-delay: 1.46s; }
  .statement .hw:nth-child(14) { animation-delay: 1.54s; }
  .statement .hw:nth-child(15) { animation-delay: 1.62s; }
  .statement .hw:nth-child(16) { animation-delay: 1.70s; }
  .statement .hw:nth-child(17) { animation-delay: 1.78s; }
  .statement .hw:nth-child(18) { animation-delay: 1.86s; }
  .statement .hw:nth-child(19) { animation-delay: 1.94s; }
  .statement .hw:nth-child(20) { animation-delay: 2.02s; }
  .statement .hw:nth-child(21) { animation-delay: 2.10s; }
  .statement .hw:nth-child(22) { animation-delay: 2.18s; }
  .statement .hw:nth-child(23) { animation-delay: 2.26s; }
  .statement .hw:nth-child(24) { animation-delay: 2.34s; }
  .lead .hw:nth-child(1) { animation-delay: 1.300s; }
  .lead .hw:nth-child(2) { animation-delay: 1.328s; }
  .lead .hw:nth-child(3) { animation-delay: 1.356s; }
  .lead .hw:nth-child(4) { animation-delay: 1.384s; }
  .lead .hw:nth-child(5) { animation-delay: 1.412s; }
  .lead .hw:nth-child(6) { animation-delay: 1.440s; }
  .lead .hw:nth-child(7) { animation-delay: 1.468s; }
  .lead .hw:nth-child(8) { animation-delay: 1.496s; }
  .lead .hw:nth-child(9) { animation-delay: 1.524s; }
  .lead .hw:nth-child(10) { animation-delay: 1.552s; }
  .lead .hw:nth-child(11) { animation-delay: 1.580s; }
  .lead .hw:nth-child(12) { animation-delay: 1.608s; }
  .lead .hw:nth-child(13) { animation-delay: 1.636s; }
  .lead .hw:nth-child(14) { animation-delay: 1.664s; }
  .lead .hw:nth-child(15) { animation-delay: 1.692s; }
  .lead .hw:nth-child(16) { animation-delay: 1.720s; }
  .lead .hw:nth-child(17) { animation-delay: 1.748s; }
  .lead .hw:nth-child(18) { animation-delay: 1.776s; }
  .lead .hw:nth-child(19) { animation-delay: 1.804s; }
  .lead .hw:nth-child(20) { animation-delay: 1.832s; }
  .lead .hw:nth-child(21) { animation-delay: 1.860s; }
  .lead .hw:nth-child(22) { animation-delay: 1.888s; }
  .lead .hw:nth-child(23) { animation-delay: 1.916s; }
  .lead .hw:nth-child(24) { animation-delay: 1.944s; }
  .lead .hw:nth-child(25) { animation-delay: 1.972s; }
  .lead .hw:nth-child(26) { animation-delay: 2.000s; }
  .lead .hw:nth-child(27) { animation-delay: 2.028s; }
  .lead .hw:nth-child(28) { animation-delay: 2.056s; }
  .lead .hw:nth-child(29) { animation-delay: 2.084s; }
  .lead .hw:nth-child(30) { animation-delay: 2.112s; }
  .lead .hw:nth-child(31) { animation-delay: 2.140s; }
  .lead .hw:nth-child(32) { animation-delay: 2.168s; }
  .lead .hw:nth-child(33) { animation-delay: 2.196s; }
  .lead .hw:nth-child(34) { animation-delay: 2.224s; }
  .lead .hw:nth-child(35) { animation-delay: 2.252s; }
  .lead .hw:nth-child(36) { animation-delay: 2.280s; }
  .lead .hw:nth-child(37) { animation-delay: 2.308s; }
  .lead .hw:nth-child(38) { animation-delay: 2.336s; }
  .lead .hw:nth-child(39) { animation-delay: 2.364s; }
  .lead .hw:nth-child(40) { animation-delay: 2.392s; }
  .lead .hw:nth-child(41) { animation-delay: 2.420s; }
  .lead .hw:nth-child(42) { animation-delay: 2.448s; }
  .lead .hw:nth-child(43) { animation-delay: 2.476s; }
  .lead .hw:nth-child(44) { animation-delay: 2.504s; }
  .lead .hw:nth-child(45) { animation-delay: 2.532s; }
  .lead .hw:nth-child(46) { animation-delay: 2.560s; }
  .lead .hw:nth-child(47) { animation-delay: 2.588s; }
  .lead .hw:nth-child(48) { animation-delay: 2.616s; }
  .lead .hw:nth-child(49) { animation-delay: 2.644s; }
  .lead .hw:nth-child(50) { animation-delay: 2.672s; }
  .lead .hw:nth-child(51) { animation-delay: 2.700s; }
  .lead .hw:nth-child(52) { animation-delay: 2.728s; }
  .lead .hw:nth-child(53) { animation-delay: 2.756s; }
  .lead .hw:nth-child(54) { animation-delay: 2.784s; }
  .lead .hw:nth-child(55) { animation-delay: 2.812s; }
  .lead .hw:nth-child(56) { animation-delay: 2.840s; }
  .lead .hw:nth-child(57) { animation-delay: 2.868s; }
  .lead .hw:nth-child(58) { animation-delay: 2.896s; }
  .lead .hw:nth-child(59) { animation-delay: 2.924s; }
  .lead .hw:nth-child(60) { animation-delay: 2.952s; }
  .lead .hw:nth-child(61) { animation-delay: 2.980s; }
  .lead .hw:nth-child(62) { animation-delay: 3.008s; }
  .lead .hw:nth-child(63) { animation-delay: 3.036s; }
  .lead .hw:nth-child(64) { animation-delay: 3.064s; }
  .lead .hw:nth-child(65) { animation-delay: 3.092s; }
  .lead .hw:nth-child(66) { animation-delay: 3.120s; }
  .lead .hw:nth-child(67) { animation-delay: 3.148s; }
  .lead .hw:nth-child(68) { animation-delay: 3.176s; }
  .lead .hw:nth-child(69) { animation-delay: 3.204s; }
  .lead .hw:nth-child(70) { animation-delay: 3.232s; }
  .lead .hw:nth-child(71) { animation-delay: 3.260s; }
  .lead .hw:nth-child(72) { animation-delay: 3.288s; }
  .lead .hw:nth-child(73) { animation-delay: 3.316s; }
  .lead .hw:nth-child(74) { animation-delay: 3.344s; }
  .lead .hw:nth-child(75) { animation-delay: 3.372s; }
  .lead .hw:nth-child(76) { animation-delay: 3.400s; }
  .lead .hw:nth-child(77) { animation-delay: 3.428s; }
  .lead .hw:nth-child(78) { animation-delay: 3.456s; }
  .lead .hw:nth-child(79) { animation-delay: 3.484s; }
  .lead .hw:nth-child(80) { animation-delay: 3.512s; }
  /* only when main.js never ran (js-ready missing); otherwise it would cut the flash and the brand pulse after 4 s */
  html.hw-failsafe:not(.js-ready) [data-hw], html.hw-failsafe:not(.js-ready) .hw-scope .hw { color: inherit !important; animation: none !important; }
}

/* ───── heading word masks (scroll reveal) ───── */
@media (prefers-reduced-motion: no-preference) {
  html.js-ready .wm { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.14em; margin-bottom: -0.14em; }
  html.js-ready .wm > span { display: inline-block; transform: translate3d(0, 115%, 0); transition: transform 1s var(--ease-expo); }
  html.js-ready .in .wm > span, html.js-ready .wm.in > span { transform: none; }
  html.js-ready .section__head.reveal, html.js-ready .contact__intro.reveal { transform: none; }
  .wm:nth-child(2) > span { transition-delay: 70ms; }
  .wm:nth-child(3) > span { transition-delay: 140ms; }
  .wm:nth-child(4) > span { transition-delay: 210ms; }
  .wm:nth-child(5) > span { transition-delay: 280ms; }
  .wm:nth-child(6) > span { transition-delay: 350ms; }
  .wm:nth-child(n+7) > span { transition-delay: 420ms; }
}

/* ───── small hover movements (pamidor: group-hover -translate-y / scale 1.02) ───── */
.chip:hover { transform: translateY(-3px); }
.example img { transition: transform 0.6s var(--ease-expo); }
.example:hover img { transform: scale(1.03); }
.example picture { display: block; overflow: hidden; border-radius: 2px; }

/* ───── "Krištof" ⇄ "KriSoft" (pamidordesign.co "Door" ⇄ "Dor"): "štof" shuts like a door while "Soft" opens in the same place, then back (5 s loop) ───── */
.name .swap { display: inline-grid; vertical-align: top; }
.name .swap > * { grid-area: 1 / 1; transform-origin: left center; white-space: nowrap; }
.name .swap__b { transform: scaleX(0); opacity: 0; color: var(--signal); }
/* 8 s cycle: ~1 s to shut (the original speed), "KriSoft" held ~2 s, ~1 s to reopen, then ~3.8 s rest on "Krištof" */
@keyframes door-shut {
  0% { transform: scaleX(1); opacity: 1; animation-timing-function: cubic-bezier(0.55, 0, 0.25, 1); }
  12% { transform: scaleX(0); opacity: 1; }
  12.1% { opacity: 0; }
  38% { transform: scaleX(0); opacity: 0; animation-timing-function: cubic-bezier(0.55, 0, 0.25, 1); }
  38.1% { opacity: 1; }
  50% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 1; }
}
@keyframes door-grow {
  0% { transform: scaleX(0); opacity: 0; animation-timing-function: cubic-bezier(0.55, 0, 0.25, 1); }
  0.1% { opacity: 1; }
  12% { transform: scaleX(1); opacity: 1; }
  38% { transform: scaleX(1); opacity: 1; animation-timing-function: cubic-bezier(0.55, 0, 0.25, 1); }
  49.9% { transform: scaleX(0.02); opacity: 1; }
  50% { transform: scaleX(0); opacity: 0; }
  100% { transform: scaleX(0); opacity: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .name .swap__a { animation: door-shut 8s ease 3s infinite; }
  .name .swap__b { animation: door-grow 8s ease 3s infinite; }
}

/* ───── tell the parts apart: tinted band, cards, numbered rows, callouts (services → recommendations) ───── */
/* services: light card + dark card */
.track .ruled { counter-reset: row; }
.track .ruled > li { counter-increment: row; display: grid; grid-template-columns: 2.6em minmax(0, 1fr); align-items: baseline; border-color: var(--line); }
.track .ruled > li::before { content: counter(row, decimal-leading-zero); font-size: var(--fs-label); letter-spacing: 0.06em; font-variant-numeric: tabular-nums; color: var(--signal); }
.track--dark { background: var(--night); border-color: var(--night); color: var(--night-muted); box-shadow: var(--shadow-lift); }
.track--dark .label { color: var(--night-muted); }
.track--dark .track__question { color: var(--night-text); }
.track--dark .track__body { color: var(--night-muted); }
.track--dark .dot { color: var(--night-signal); }
.track--dark .ruled > li { border-color: var(--night-line); color: var(--night-text); }
.track--dark .ruled > li::before { color: var(--night-signal); }
.track--dark .example { background: rgba(255, 255, 255, 0.05); border-color: var(--night-line); }
.track--dark .example__title { color: var(--night-text); }
.track--dark .example__visit { color: var(--night-muted); }
.track--dark .example:hover { border-color: var(--night-signal); }
.track--dark .example:hover .example__visit { color: var(--night-signal); }

/* work: tinted band, each engagement is a card, the open one gets a red edge */
.jobs { display: grid; gap: 12px; border-top: 0; }
.job { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-card); transition: box-shadow 0.35s var(--ease-out), transform 0.35s var(--ease-out); }
.job:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.job[open] { box-shadow: inset 3px 0 0 var(--signal), var(--shadow-card); }
.job[open]:hover { box-shadow: inset 3px 0 0 var(--signal), var(--shadow-lift); }
.job__summary { padding: 22px clamp(18px, 2.2vw, 28px); }
.job__domain { justify-self: end; padding: 0.5em 0.9em; border-radius: 999px; background: var(--paper-2); color: var(--ink); text-align: center; }
.job__outcome { display: flex; gap: 10px; align-items: baseline; padding: 12px 16px; border-radius: 6px; background: rgba(196, 30, 30, 0.07); color: var(--ink); }
.job__outcome .arrow { flex: none; }
.job .tags li { border: 0; background: var(--paper-2); color: var(--ink); }
.projects { display: grid; gap: 10px; border-top: 0; }
.project { padding: 18px clamp(18px, 2.2vw, 26px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }

/* recommendations: a card per person with an initial badge */
.quotes { gap: clamp(14px, 1.8vw, 22px); border-top: 0; }
.quote, .quote:nth-child(even) { padding: clamp(22px, 2.6vw, 34px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.quote figcaption { grid-template-columns: 46px minmax(0, 1fr); column-gap: 14px; row-gap: 0; align-items: center; padding-top: 18px; border-top: 1px solid var(--line); }
.quote__avatar { grid-row: 1 / span 2; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--signal); color: var(--paper); font-size: 1.125rem; font-weight: 500; }

@media (max-width: 860px) {
  .job__domain { justify-self: start; }
  .track { padding: 22px; }
}

/* stack: when the full list is open the core row steps aside (it is part of the list anyway) */
.chips--core:has(+ .all-tools[open]) { display: none; }
.exploring { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 32px; padding-top: 24px; border-top: 1px dashed var(--line-strong); }
.exploring .label { flex-basis: 100%; }
.exploring__item { padding: 0.5em 0.9em; border: 1px dashed var(--line-strong); border-radius: 999px; font-size: var(--fs-small); line-height: 1; color: var(--muted); }

/* client chip under the engagement title: logo (greyscale until hover) + name */
.job__main { display: grid; gap: clamp(14px, 1.4vw, 18px); min-width: 0; }
.job__client { display: inline-flex; align-items: center; gap: 14px; font-size: var(--fs-small); line-height: 1; color: var(--ink); }
.job__client img { display: block; height: 24px; width: auto; max-width: 116px; object-fit: contain; object-position: left center; filter: grayscale(1); opacity: 0.8; transition: filter 0.3s, opacity 0.3s; }
.job__summary:hover .job__client img, .job[open] .job__client img { filter: none; opacity: 1; }

/* merged experience + work section */
.subhead { margin: clamp(48px, 6vw, 88px) 0 clamp(20px, 2.4vw, 32px); font-size: clamp(1.75rem, 3.4vw, 3rem); line-height: 1.05; letter-spacing: -0.025em; }
.job__employer { font: 400 var(--fs-label) / 1.4 var(--font); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.facts-grid { margin-top: clamp(40px, 5vw, 72px); padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--line-strong); }

/* contact: three reassurances as icon rows instead of three lost lines */
.reassure { display: grid; gap: 14px; }
.reassure li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px 18px 14px 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--night-line); border-radius: 12px; }
.reassure__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 90, 77, 0.12); color: var(--night-signal); }
.reassure__icon svg { width: 26px; height: 26px; fill: currentColor; display: block; }
.reassure__text { color: var(--night-text); font-size: var(--fs-lead-sm); line-height: 1.25; letter-spacing: -0.015em; }

/* a chip with several logos (HTML / CSS / JS) keeps them tight */
.chip img + img { margin-left: -4px; }
.chip img:has(+ img) { margin-right: 0; }

/* languages with flags, outside work with icons */
.iconlist { display: grid; gap: 12px; }
.iconlist li { display: flex; align-items: center; gap: 12px; }
.flag { flex: none; width: 28px; height: 21px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px var(--line-strong); }
.hobby-icon { flex: none; display: inline-grid; width: 24px; height: 24px; color: var(--signal); }
.hobby-icon svg { width: 100%; height: 100%; fill: currentColor; display: block; }
.edu { display: flex; align-items: center; gap: 12px; }
.edu__logo { flex: none; width: 32px; height: 32px; object-fit: contain; }

.earlier__body .section__lead { max-width: none; }

.project .job__domain { align-self: start; margin-top: 2px; }

/* company name in the hero lead: red, and every few seconds it slowly fades to ink and back */
.hw--brand { color: var(--signal); }
@keyframes brand-pulse {
  0%, 30% { color: var(--signal); }
  50%, 62% { color: var(--ink); }
  82%, 100% { color: var(--signal); }
}
@media (prefers-reduced-motion: no-preference) {
  /* longhands, so the per-word animation-delay stagger above still applies */
  html.js .hw-scope.in .hw--brand {
    animation-name: hw-appear, brand-pulse;
    animation-duration: 1.2s, 9s;
    animation-timing-function: var(--ease-out), ease-in-out;
    animation-fill-mode: both, none;
    animation-iteration-count: 1, infinite;
  }
}
