/* Yieldpoint site styles, v4
   Direction: a quiet Central-European engineering firm. One light theme on off-white, navy type,
   hairline rules instead of boxes, light Sora headings over IBM Plex Sans text. Teal is the only UI accent
   (decorative #12A4A6, text #0B7375). The navy delivery diagram in the home hero is the one dark element
   besides the footer. Blueprint grid and flowing contour lines give every page hero the same engineering-drawing backdrop.
   Type scale and colors are tokens below; components use only these. Contrast: all text meets WCAG AA. */

@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 100 700; font-display: swap;
  src: url("../fonts/plex-latin-ext.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; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 100 700; font-display: swap;
  src: url("../fonts/plex-latin.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: "Sora"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url("../fonts/sora-latin-ext.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; }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url("../fonts/sora-latin.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; }

:root {
  /* Color */
  --bg: #FAFBFC;
  --paper: #F1F5F8;
  --navy: #0B2A4A;
  --navy-deep: #071D34;
  --teal: #12A4A6;          /* lines, dots, accents on navy */
  --teal-ink: #0B7375;      /* teal text on light backgrounds, 5:1 */
  --ink: #0D1726;
  --slate: #4F6478;         /* secondary text, 5.9:1 */
  --soft: #6F8599;          /* large display text only, 3.7:1 */
  --rule: #DCE4EA;
  --field: #6E8397;         /* input borders and quiet button borders, 3.8:1 */
  --on-navy: #EEF3F6;
  --on-navy-soft: #A9BCCD;
  --rule-navy: rgba(238, 243, 246, 0.16);
  /* Type */
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --fs-display: clamp(2.3rem, 4.3vw, 3.6rem);
  --fs-h1: clamp(2.2rem, 4vw, 3.4rem);
  --fs-h2: clamp(1.6rem, 2.6vw, 2.15rem);
  --fs-h3: 1.35rem;
  --fs-h4: 1.05rem;
  --fs-lead: 1.075rem;
  --fs-body: 1rem;
  --fs-small: 0.9rem;
  --fs-label: 0.8rem;
  /* Layout */
  --max: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); color: var(--navy); text-wrap: balance; }
h2 { font-size: var(--fs-h2); font-weight: 300; line-height: 1.12; letter-spacing: -0.028em; }
h3 { font-size: var(--fs-h3); font-weight: 400; line-height: 1.25; letter-spacing: -0.018em; }
h4 { font-size: var(--fs-h4); font-weight: 500; line-height: 1.35; letter-spacing: -0.01em; }
a { color: var(--teal-ink); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.hero-panel :focus-visible, .book :focus-visible, .site-footer :focus-visible, .jump :focus-visible { outline-color: var(--teal); }
::selection { background: var(--navy); color: var(--on-navy); }

.container { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--navy); color: var(--on-navy); padding: 8px 14px; }
.skip:focus { left: 8px; }

.lead { font-size: var(--fs-lead); line-height: 1.65; color: var(--slate); max-width: 58ch; }
.muted { color: var(--slate); }
.small { font-size: var(--fs-small); }
.label { font-family: var(--font-display); font-size: var(--fs-label); font-weight: 500; color: var(--teal-ink); }

/* Buttons: one label per intent across the site ("Book a call", "Send a brief") */
.btn { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 500; font-size: 0.95rem; padding: 13px 22px; border-radius: var(--radius); border: 1px solid transparent; text-decoration: none; cursor: pointer; line-height: 1.2; white-space: nowrap; transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.15s; }
.btn:active { transform: translateY(1px); }
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--navy); color: var(--on-navy); }
.btn-primary:hover { background: var(--navy-deep); color: var(--on-navy); }
.btn-quiet { border-color: var(--field); color: var(--navy); background: transparent; }
.btn-quiet:hover { border-color: var(--navy); color: var(--navy); }
.btn-light { background: var(--on-navy); color: var(--navy); }
.btn-light:hover { background: #FFFFFF; color: var(--navy); }
.btn-line { border-color: rgba(238, 243, 246, 0.4); color: var(--on-navy); background: transparent; }
.btn-line:hover { border-color: var(--on-navy); color: #FFFFFF; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { font-family: var(--font-display); font-weight: 500; font-size: 0.95rem; text-decoration: none; color: var(--navy); border-bottom: 1px solid var(--teal); padding-bottom: 3px; transition: color 0.2s; }
.text-link:hover { color: var(--teal-ink); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 251, 252, 0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.brand .mark { width: 30px; height: 30px; flex: none; }
.wordmark { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: 0.26em; color: var(--navy); }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a:not(.btn) { position: relative; color: var(--slate); text-decoration: none; font-size: 0.95rem; font-weight: 500; padding: 6px 0; transition: color 0.2s; }
.site-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.site-nav a:not(.btn):hover { color: var(--navy); }
.site-nav a:not(.btn):hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--navy); }
.site-nav .btn { padding: 10px 18px; font-size: 0.88rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--field); color: var(--navy); padding: 8px 14px; font: 500 0.88rem var(--font-display); cursor: pointer; border-radius: var(--radius); }
@media (max-width: 960px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--rule); padding: 4px var(--gutter) 24px; }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 15px 0; border-bottom: 1px solid var(--rule); font-size: 1.05rem; }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav a[aria-current="page"] { color: var(--teal-ink); }
  .site-nav .btn { margin-top: 20px; justify-content: center; }
}

/* Page backgrounds: blueprint grid and contour lines, shared by every hero */
.hero, .page-hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--rule); }
.hero::before, .page-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image: linear-gradient(to right, rgba(11, 42, 74, 0.055) 1px, transparent 1px), linear-gradient(to bottom, rgba(11, 42, 74, 0.055) 1px, transparent 1px);
  background-size: 44px 44px; background-position: -1px -1px; }
.hero::before { -webkit-mask-image: radial-gradient(ellipse 75% 85% at 62% 45%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 75% 85% at 62% 45%, #000 20%, transparent 75%); }
.page-hero::before { -webkit-mask-image: linear-gradient(to right, transparent 40%, #000 80%); mask-image: linear-gradient(to right, transparent 40%, #000 80%); }
.contours { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.contours path { fill: none; stroke: var(--teal); stroke-width: 1; vector-effect: non-scaling-stroke; }
.contours path:nth-child(odd) { stroke-opacity: 0.16; }
.contours path:nth-child(even) { stroke-opacity: 0.08; }
.contours path:nth-child(6) { stroke-opacity: 0.3; }
.page-hero .contours { -webkit-mask-image: linear-gradient(to right, transparent 35%, #000 75%); mask-image: linear-gradient(to right, transparent 35%, #000 75%); }

/* Home hero */
.hero .container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 24px 56px; align-items: center; padding-block: clamp(22px, 2.8vw, 36px) clamp(26px, 3.2vw, 40px); }
.hero-copy { display: grid; gap: 20px; align-content: center; }
.display { font-size: var(--fs-display); font-weight: 300; line-height: 1.05; letter-spacing: -0.04em; color: var(--navy); }
.display .soft { color: var(--soft); }
.hero-lede { font-size: 1.1rem; line-height: 1.6; color: var(--slate); max-width: 46ch; }
@media (max-width: 1100px) { .hero .container { grid-template-columns: 1fr; } .hero-panel { max-width: 760px; } }

/* Hero facts: 2 by 2 under the buttons */
.facts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--navy); margin-top: 6px; }
.facts div { display: grid; gap: 4px; align-content: start; padding: 12px 16px 12px 0; min-width: 0; }
.facts div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--rule); }
.facts div:nth-child(n+3) { border-top: 1px solid var(--rule); }
.facts dt { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.15rem, 1.5vw, 1.4rem); letter-spacing: -0.03em; line-height: 1.15; color: var(--navy); }
.facts dd { font-size: 0.85rem; line-height: 1.5; color: var(--slate); max-width: 30ch; }

/* Hero panel: delivery diagram. Four practice boxes joined to the architect hub by bracket connectors. */
.hero-panel { position: relative; background: var(--navy); color: var(--on-navy); border-radius: var(--radius); padding: 18px 22px 0; display: grid; gap: 14px; overflow: hidden; min-width: 0; box-shadow: 0 24px 48px -28px rgba(11, 42, 74, 0.55); }
.hp-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 16px; padding-bottom: 12px; border-bottom: 1px solid var(--rule-navy); font-family: var(--font-display); font-size: var(--fs-label); font-weight: 500; color: var(--on-navy-soft); }
.hp-head b { font-weight: 500; color: var(--on-navy); }
.motion-toggle { display: none; align-items: center; gap: 8px; background: none; border: 1px solid var(--rule-navy); border-radius: var(--radius); color: var(--on-navy-soft); font: 500 0.75rem var(--font-display); padding: 4px 10px; cursor: pointer; }
.motion-toggle:hover { color: var(--on-navy); border-color: var(--on-navy-soft); }
.arch { position: relative; display: grid; grid-template-columns: 36% 28% 36%; grid-template-rows: 1fr 1fr; row-gap: 14px; }
.arch-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.arch-lines path { fill: none; stroke: var(--teal); stroke-width: 1; vector-effect: non-scaling-stroke; }
.arch-lines .base { stroke-opacity: 0.55; }
.arch-lines .flow { stroke-opacity: 0; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 0.035 0.3; }
.arch-dot { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); transform: translate(-50%, -50%); }
.arch-dot.hollow { width: 9px; height: 9px; background: var(--navy); border: 1px solid var(--teal); }
.arch-dot.j1 { left: 37.5%; top: 50%; }
.arch-dot.j2 { left: 62.5%; top: 50%; }
.arch-dot.e1 { left: 36%; top: 24%; }
.arch-dot.e2 { left: 36%; top: 76%; }
.arch-dot.e3 { left: 64%; top: 24%; }
.arch-dot.e4 { left: 64%; top: 76%; }
.node { position: relative; z-index: 1; display: grid; gap: 3px; align-content: start; padding: 12px 14px; border: 1px solid var(--rule-navy); background: rgba(238, 243, 246, 0.03); text-decoration: none; min-width: 0; transition: border-color 0.2s, background-color 0.2s; }
.node:hover { border-color: var(--teal); background: rgba(18, 164, 166, 0.08); }
.node b { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-h4); letter-spacing: -0.01em; color: var(--on-navy); }
.node span { font-size: 0.84rem; line-height: 1.45; color: var(--on-navy-soft); }
.n-build { grid-column: 1; grid-row: 1; }
.n-automate { grid-column: 3; grid-row: 1; }
.n-modern { grid-column: 1; grid-row: 2; }
.n-secure { grid-column: 3; grid-row: 2; }
.hub { position: relative; z-index: 1; grid-column: 2; grid-row: 1 / 3; align-self: center; justify-self: center; width: 80%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(18, 164, 166, 0.7); background: var(--navy); display: grid; place-content: center; gap: 3px; text-align: center; padding: 6px; }
.hub::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1px dashed rgba(18, 164, 166, 0.35); }
.hub::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--teal); opacity: 0; pointer-events: none; }
.hub b { font-family: var(--font-display); font-weight: 500; font-size: 0.86rem; line-height: 1.2; color: var(--on-navy); }
.hub .hub-k, .hub .hub-s { font-size: 0.75rem; line-height: 1.3; color: var(--on-navy-soft); }
.hub .hub-k { font-family: var(--font-display); font-weight: 500; color: var(--teal); }
.hp-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding-top: 12px; border-top: 1px solid var(--rule-navy); font-size: 0.84rem; color: var(--on-navy-soft); }
.hp-foot b { font-family: var(--font-display); font-weight: 500; color: var(--on-navy); margin-right: 8px; }
.hero-panel .river { display: block; width: calc(100% + 44px); max-width: none; height: 34px; margin: -8px -22px 0; }
.river path { fill: none; stroke: var(--teal); vector-effect: non-scaling-stroke; }
.river .r1 { stroke-width: 2; }
.river .r2 { stroke-width: 1; stroke-opacity: 0.35; }
@media (max-width: 620px) {
  .arch { grid-template-columns: 1fr 1fr; grid-template-rows: auto; gap: 12px; }
  .arch-lines, .arch-dot { display: none; }
  .hub { grid-column: 1 / -1; grid-row: 1; width: 132px; }
  .n-build { grid-column: 1; grid-row: 2; } .n-automate { grid-column: 2; grid-row: 2; }
  .n-modern { grid-column: 1; grid-row: 3; } .n-secure { grid-column: 2; grid-row: 3; }
}
@media (max-width: 400px) {
  .arch { grid-template-columns: 1fr; }
  .n-build, .n-automate, .n-modern, .n-secure { grid-column: 1; grid-row: auto; }
}

/* Motion. Why: the diagram shows how work flows into an architect-led team, so it assembles once,
   then signals move along the connectors. A pause button (WCAG 2.2.2) stops every loop in the hero.
   Reduced-motion users get the finished, static state. */
@media (prefers-reduced-motion: no-preference) {
  .motion-toggle { display: inline-flex; }
  .contours g { animation: hero-drift 22s ease-in-out infinite alternate; }
  .page-hero .contours g { animation: none; }
  .hero-panel .river { animation: river-in 1.6s var(--ease) 0.1s both; }
  .hero-panel .hp-head, .hero-panel .node, .hero-panel .hp-foot { animation: dg-rise 0.9s var(--ease) both; }
  .hero-panel .hp-head { animation-delay: 0.05s; }
  .hero-panel .n-build { animation-delay: 0.2s; }
  .hero-panel .n-automate { animation-delay: 0.3s; }
  .hero-panel .n-modern { animation-delay: 0.4s; }
  .hero-panel .n-secure { animation-delay: 0.5s; }
  .hero-panel .hp-foot { animation-delay: 1.4s; }
  .hero-panel .hub { animation: dg-hub 1s var(--ease) 0.55s both; }
  .hero-panel .hub::before { animation: dg-orbit 60s linear 1.5s infinite; }
  .hero-panel .hub::after { animation: dg-ping 3.6s ease-out 2.4s infinite; }
  .arch-lines .base { stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: dg-draw 1.1s var(--ease) 0.8s forwards; }
  .arch-lines .c2.base, .arch-lines .c4.base { animation-delay: 0.95s; }
  .arch-lines .flow { animation: dg-flow-in 0.6s ease 2s forwards, dg-flow 2.4s linear 2s infinite; }
  .arch-lines .c2.flow { animation-delay: 2s, 2.6s; }
  .arch-lines .c3.flow { animation-delay: 2s, 3.2s; }
  .arch-lines .c4.flow { animation-delay: 2s, 3.8s; }
  .hero-panel .arch-dot { animation: dg-dot 0.5s var(--ease) both; }
  .hero-panel .arch-dot.hollow { animation-delay: 0.75s; }
  .hero-panel .arch-dot.j1, .hero-panel .arch-dot.j2 { animation-delay: 1.5s; }
  .hero.is-paused *, .hero.is-paused *::before, .hero.is-paused *::after { animation-play-state: paused !important; }
}
@keyframes hero-drift { from { transform: translateX(-24px); } to { transform: translateX(24px); } }
@keyframes river-in { from { opacity: 0; transform: translateX(-3%); } to { opacity: 1; transform: none; } }
@keyframes dg-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes dg-hub { from { opacity: 0; transform: scale(0.82); } to { opacity: 1; transform: none; } }
@keyframes dg-orbit { to { transform: rotate(360deg); } }
@keyframes dg-ping { 0% { opacity: 0.55; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.32); } }
@keyframes dg-draw { to { stroke-dashoffset: 0; } }
@keyframes dg-flow-in { to { stroke-opacity: 0.95; } }
@keyframes dg-flow { from { stroke-dashoffset: 0.335; } to { stroke-dashoffset: 0; } }
@keyframes dg-dot { from { opacity: 0; transform: translate(-50%, -50%) scale(0); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }

/* Inner page hero */
.page-hero .container { display: grid; gap: 16px; padding-block: clamp(34px, 4.5vw, 60px) clamp(34px, 4.5vw, 56px); }
.crumb { font-size: 0.85rem; color: var(--slate); }
.crumb a { color: var(--slate); text-decoration: none; }
.crumb a:hover { color: var(--navy); }
.page-hero h1 { font-size: var(--fs-h1); font-weight: 300; line-height: 1.05; letter-spacing: -0.038em; color: var(--navy); max-width: 20ch; }

/* In-page jump navigation (services) */
.jump { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--rule-navy); border-radius: var(--radius); overflow: hidden; margin-top: 10px; max-width: 880px; }
.jump a { display: grid; gap: 2px; padding: 14px 16px; background: var(--navy); text-decoration: none; transition: background-color 0.2s; }
.jump a:hover { background: #10345A; }
.jump b { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-h4); color: var(--on-navy); }
.jump span { font-size: 0.84rem; color: var(--on-navy-soft); }
@media (max-width: 700px) { .jump { grid-template-columns: 1fr 1fr; } }

/* Sections */
.section { padding-block: clamp(52px, 6vw, 84px); }
.paper { background: var(--paper); }
.head { display: grid; gap: 12px; margin-bottom: clamp(26px, 3.5vw, 40px); max-width: 720px; }
.subhead { margin: clamp(36px, 4vw, 52px) 0 18px; font-size: var(--fs-h4); font-weight: 500; }

/* Statement */
.statement { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.3rem, 2.2vw, 1.8rem); line-height: 1.35; letter-spacing: -0.02em; color: var(--navy); max-width: 40ch; text-wrap: pretty; }
.statement em { font-style: normal; background-image: linear-gradient(var(--teal), var(--teal)); background-size: 100% 1.5px; background-position: 0 94%; background-repeat: no-repeat; }
.statement .soft { display: block; margin-top: 0.4em; color: var(--slate); }

/* Grouped index: services, sectors */
.groups { display: grid; gap: clamp(24px, 3vw, 36px); }
.group { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 16px 48px; }
.group > h3 { font-size: var(--fs-h4); font-weight: 500; padding-top: 16px; border-top: 1px solid var(--navy); }
.index { border-top: 1px solid var(--navy); }
.index li { border-bottom: 1px solid var(--rule); }
.index-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) 28px; gap: 24px; align-items: baseline; padding: 15px 0; text-decoration: none; color: var(--ink); }
.index-row::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); }
a.index-row:hover::after { transform: scaleX(1); }
.index-name { font-family: var(--font-display); font-size: var(--fs-h4); font-weight: 400; letter-spacing: -0.015em; line-height: 1.3; color: var(--navy); transition: color 0.2s; }
.index-desc { color: var(--slate); font-size: 0.94rem; line-height: 1.6; }
.index-arrow { justify-self: end; color: var(--navy); transition: transform 0.3s var(--ease), color 0.2s; }
a.index-row:hover .index-name, a.index-row:hover .index-arrow { color: var(--teal-ink); }
a.index-row:hover .index-arrow { transform: translateX(5px); }
.index.plain .index-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
@media (max-width: 860px) {
  .group { grid-template-columns: 1fr; }
  .group > h3 { border-top: 0; padding-top: 0; }
  .index-row, .index.plain .index-row { grid-template-columns: minmax(0, 1fr) 24px; gap: 6px 16px; padding: 16px 0; }
  .index-desc { grid-column: 1 / -1; }
  .index.plain .index-row { grid-template-columns: minmax(0, 1fr); }
}

/* Timeline: a real sequence, labelled by when it happens */
.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; }
.timeline li { position: relative; display: grid; gap: 8px; align-content: start; padding-top: 30px; }
.timeline li::before { content: ""; position: absolute; top: 5px; left: 0; right: -32px; height: 1px; background: var(--teal); opacity: 0.55; }
.timeline li:last-child::before { right: 0; }
.timeline li::after { content: ""; position: absolute; top: 0; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--teal); }
.paper .timeline li::after { background: var(--paper); }
.timeline .when { font-family: var(--font-display); font-size: var(--fs-label); font-weight: 500; color: var(--teal-ink); }
.timeline h3 { font-size: var(--fs-h4); font-weight: 500; }
.timeline p { color: var(--slate); font-size: 0.95rem; }
@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr; gap: 0; padding-left: 28px; }
  .timeline li { padding: 0 0 28px; }
  .timeline li::before { top: 8px; bottom: -8px; left: -23px; right: auto; width: 1px; height: auto; }
  .timeline li:last-child::before { display: none; }
  .timeline li::after { top: 4px; left: -28px; }
}

/* Columns separated by hairlines */
.columns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--navy); }
.columns.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.columns.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.columns > * { display: grid; gap: 8px; align-content: start; padding: 20px 24px 4px 0; min-width: 0; }
.columns > * + * { padding-left: 24px; border-left: 1px solid var(--rule); }
.columns h3 { font-size: var(--fs-h4); font-weight: 500; }
.columns p { color: var(--slate); font-size: 0.95rem; }
.columns.big h3 { font-size: var(--fs-h3); font-weight: 400; }
@media (max-width: 1000px) {
  .columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .columns > *:nth-child(odd) { padding-left: 0; border-left: 0; }
  .columns > *:nth-child(n+3) { border-top: 1px solid var(--rule); margin-top: 18px; }
  .columns.three { grid-template-columns: 1fr; }
  .columns.three > * { padding-left: 0; border-left: 0; }
  .columns.three > * + * { border-top: 1px solid var(--rule); margin-top: 10px; }
}
@media (max-width: 620px) {
  .columns, .columns.two { grid-template-columns: 1fr; }
  .columns > * + * { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); margin-top: 6px; }
}

/* Career ladder: junior to architect */
.ladder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; gap: 12px; }
.ladder li { display: grid; gap: 8px; align-content: start; padding: 18px 20px 20px; background: var(--bg); border-top: 2px solid var(--teal); min-width: 0; }
.ladder li:nth-child(1) { margin-top: 48px; }
.ladder li:nth-child(2) { margin-top: 32px; }
.ladder li:nth-child(3) { margin-top: 16px; }
.ladder .lvl { font-family: var(--font-display); font-size: var(--fs-h4); font-weight: 500; color: var(--navy); }
.ladder p { color: var(--slate); font-size: 0.94rem; }
@media (max-width: 900px) { .ladder { grid-template-columns: 1fr 1fr; } .ladder li { margin-top: 0 !important; } }
@media (max-width: 520px) { .ladder { grid-template-columns: 1fr; } }

/* Split: intro beside content */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 32px 80px; align-items: start; }
.split .intro { display: grid; gap: 14px; }
.split + .split { margin-top: clamp(40px, 5vw, 64px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--rule); }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } }
.ticks li { position: relative; padding: 9px 0 9px 28px; border-bottom: 1px solid var(--rule); }
.ticks li:first-child { border-top: 1px solid var(--rule); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.3em; width: 16px; height: 1px; background: var(--teal); }
.ticks b { font-weight: 600; color: var(--navy); }

/* Certifications */
.cert-list { border-top: 1px solid var(--navy); }
.cert-list li { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 4px 24px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.cert-list .area { font-family: var(--font-display); font-size: var(--fs-label); font-weight: 500; color: var(--teal-ink); padding-top: 5px; }
.cert-list h3 { font-size: var(--fs-h4); font-weight: 500; }
.cert-list p { grid-column: 2; color: var(--slate); font-size: 0.95rem; }
@media (max-width: 620px) { .cert-list li { grid-template-columns: 1fr; } .cert-list p { grid-column: 1; } }

/* Labs */
.name { font-family: var(--font-display); font-weight: 300; font-size: var(--fs-h2); letter-spacing: -0.035em; line-height: 1.05; color: var(--navy); }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 28px 64px; padding: clamp(24px, 3vw, 36px) 0; border-top: 1px solid var(--navy); border-bottom: 1px solid var(--rule); }
.feature .copy { display: grid; gap: 14px; align-content: start; }
@media (max-width: 960px) { .feature { grid-template-columns: 1fr; } }
.specs { border-top: 1px solid var(--rule); }
.specs div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.specs dt { font-family: var(--font-display); font-size: var(--fs-label); font-weight: 500; color: var(--teal-ink); padding-top: 3px; }
@media (max-width: 520px) { .specs div { grid-template-columns: 1fr; gap: 4px; } }
.minis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mini { display: grid; gap: 10px; align-content: start; padding: clamp(22px, 3vw, 32px) 48px 0 0; }
.mini + .mini { padding-left: 48px; padding-right: 0; border-left: 1px solid var(--rule); }
.mini p { color: var(--slate); }
.mini .text-link { justify-self: start; }
@media (max-width: 760px) { .minis { grid-template-columns: 1fr; } .mini + .mini { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); margin-top: 28px; } }


/* Service detail */
.group-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; padding-top: clamp(32px, 4vw, 48px); scroll-margin-top: 90px; }
.group-title span { color: var(--slate); font-size: 0.95rem; }
.service { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px 64px; padding-block: clamp(28px, 3.5vw, 44px); border-top: 1px solid var(--rule); scroll-margin-top: 90px; }
.group-title + .service { border-top: 1px solid var(--navy); margin-top: 18px; }
.service .intro { display: grid; gap: 12px; align-content: start; }
.service .intro p { color: var(--slate); }
.service .body { display: grid; gap: 16px; align-content: start; }
.tools, .gets { font-size: 0.93rem; color: var(--slate); line-height: 1.8; }
.tools b, .gets b { font-family: var(--font-display); font-weight: 500; color: var(--navy); margin-right: 8px; }
.start-with { font-size: 0.95rem; color: var(--slate); }
.start-with a { font-weight: 500; }
@media (max-width: 960px) { .service { grid-template-columns: 1fr; } }

/* Tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.96rem; border-top: 1px solid var(--navy); }
.table caption { text-align: left; font-family: var(--font-display); font-size: var(--fs-h4); font-weight: 500; color: var(--navy); padding-bottom: 12px; }
.table th, .table td { text-align: left; vertical-align: top; padding: 13px 24px 13px 0; border-bottom: 1px solid var(--rule); }
.table th { font-family: var(--font-display); font-size: var(--fs-label); font-weight: 500; color: var(--slate); }
.table td { color: var(--slate); }
.table td:first-child { font-family: var(--font-display); font-weight: 400; color: var(--navy); scroll-margin-top: 90px; }
.table .nowrap { white-space: nowrap; color: var(--navy); }
.table .go { text-align: right; padding-right: 0; white-space: nowrap; }
.table .go a { font-family: var(--font-display); font-weight: 500; font-size: 0.9rem; text-decoration: none; color: var(--navy); border-bottom: 1px solid var(--teal); }
.table .go a:hover { color: var(--teal-ink); }
.table tr:target td { background: rgba(18, 164, 166, 0.08); }
.tables { display: grid; gap: clamp(36px, 4.5vw, 56px); }
@media (max-width: 680px) {
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table, .table tbody, .table tr, .table td { display: block; }
  .table tr { padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .table td { border: 0; padding: 2px 0; }
  .table td[data-label]::before { content: attr(data-label) ": "; font-family: var(--font-display); font-size: var(--fs-label); font-weight: 500; color: var(--teal-ink); }
  .table .go { text-align: left; padding-top: 8px; }
}

/* FAQ */
.faq { border-top: 1px solid var(--navy); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 16px 0; font-family: var(--font-display); font-size: var(--fs-h4); font-weight: 400; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 300; color: var(--teal-ink); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--slate); max-width: 70ch; }

/* Lab detail */
.lab { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 24px 64px; padding-block: clamp(32px, 4vw, 56px); border-top: 1px solid var(--rule); scroll-margin-top: 90px; }
.lab:first-child { border-top: 1px solid var(--navy); }
.lab .intro { display: grid; gap: 14px; align-content: start; }
.lab .body { display: grid; gap: 22px; align-content: start; }
.note { font-size: 0.93rem; color: var(--slate); border-left: 1px solid var(--teal); padding-left: 16px; }
@media (max-width: 960px) { .lab { grid-template-columns: 1fr; } }

/* Forms and contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); gap: 40px 72px; align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.panel-title { font-size: var(--fs-h3); font-weight: 400; }
.book { background: var(--navy); color: var(--on-navy); padding: clamp(24px, 3vw, 36px); display: grid; gap: 16px; scroll-margin-top: 90px; border-radius: var(--radius); }
.book .panel-title { color: var(--on-navy); }
.book p { color: var(--on-navy-soft); }
.agenda { display: grid; gap: 8px; }
.agenda li { position: relative; padding-left: 24px; color: var(--on-navy); font-size: 0.95rem; }
.agenda li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 12px; height: 1px; background: var(--teal); }
.contact-lines { border-top: 1px solid var(--rule-navy); }
.contact-lines li { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule-navy); font-size: 0.95rem; }
.contact-lines b { font-family: var(--font-display); font-size: var(--fs-label); font-weight: 500; color: var(--teal); padding-top: 2px; }
.contact-lines span { color: var(--on-navy); }
.side-info { display: grid; gap: 22px; align-content: start; }
.form { display: grid; gap: 20px; scroll-margin-top: 90px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 2px; min-width: 0; }
.field label { font-family: var(--font-display); font-size: var(--fs-label); font-weight: 500; color: var(--slate); }
.field .opt { font-weight: 400; color: var(--slate); }
input[type="text"], input[type="email"], input[type="url"], select, textarea {
  width: 100%; font: inherit; font-size: 1.02rem; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--field); border-radius: 0; padding: 9px 0; transition: border-color 0.2s;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%); background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 24px; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-bottom-color: var(--navy); box-shadow: 0 1px 0 0 var(--navy); }
input:user-invalid, select:user-invalid, textarea:user-invalid { border-bottom-color: #B5473D; }
::placeholder { color: var(--slate); opacity: 0.85; }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 0.92rem; color: var(--slate); }
.check input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--navy); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 0.95rem; padding: 14px 16px; border-left: 2px solid transparent; }
.form-status:empty { display: none; }
.form-status.ok { border-color: var(--teal); background: #E3F3F3; color: #0B5556; }
.form-status.err { border-color: #B5473D; background: #F8E6E3; color: #7E2A23; }

/* Prose */
.prose { max-width: 66ch; display: grid; gap: 16px; }
.prose h2 { font-size: var(--fs-h3); font-weight: 400; margin-top: 20px; }
.prose ul { list-style: disc; padding-left: 1.2em; display: grid; gap: 8px; }

/* Footer, with the closing call to action */
.site-footer { background: var(--navy-deep); color: var(--on-navy-soft); font-size: 0.92rem; }
.footer-cta { display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 24px 48px; align-items: end; padding-block: clamp(44px, 5.5vw, 68px) 36px; border-bottom: 1px solid var(--rule-navy); }
.footer-cta h2 { color: var(--on-navy); font-size: var(--fs-h2); }
.footer-cta p { margin-top: 10px; color: var(--on-navy-soft); max-width: 52ch; }
@media (max-width: 760px) { .footer-cta { grid-template-columns: 1fr; } }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 36px; }
.footer-grid h3 { font-size: 0.85rem; font-weight: 500; color: var(--on-navy); margin-bottom: 14px; letter-spacing: 0; }
.footer-grid ul { display: grid; gap: 9px; }
.site-footer a:not(.btn) { color: var(--on-navy-soft); text-decoration: none; transition: color 0.2s; }
.site-footer a:not(.btn):hover { color: var(--on-navy); }
.site-footer .wordmark { color: var(--on-navy); }
.footer-about { display: grid; gap: 16px; align-content: start; max-width: 32ch; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 20px 34px; border-top: 1px solid var(--rule-navy); font-size: 0.84rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Careers: hiring steps run vertically in the narrow side column */
.side-info .timeline { grid-template-columns: 1fr; gap: 0; padding-left: 28px; }
.side-info .timeline li { padding: 0 0 22px; }
.side-info .timeline li::before { top: 8px; bottom: -8px; left: -23px; right: auto; width: 1px; height: auto; }
.side-info .timeline li:last-child::before { display: none; }
.side-info .timeline li::after { top: 4px; left: -28px; }

/* v3.1 refinements after the second design review */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.motion-toggle { min-height: 32px; padding: 6px 12px; }
.seal-large { width: clamp(120px, 14vw, 168px); height: auto; margin-top: 12px; }

/* Motion toggle: icon only. Pause bars, switching to a play triangle when pressed. */
.motion-toggle { width: 32px; height: 32px; min-height: 0; padding: 0; justify-content: center; flex: none; }
.mt-icon { position: relative; display: block; width: 10px; height: 12px; }
.mt-icon::before, .mt-icon::after { content: ""; position: absolute; top: 0; width: 3px; height: 12px; border-radius: 1px; background: currentColor; }
.mt-icon::before { left: 0; }
.mt-icon::after { right: 0; }
.motion-toggle[aria-pressed="true"] .mt-icon::before { left: 1px; width: 0; height: 0; border-radius: 0; background: none; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.motion-toggle[aria-pressed="true"] .mt-icon::after { display: none; }

/* Prices in the offers tables */
.table .price { color: var(--navy); font-family: var(--font-display); font-weight: 500; }
.table-note { margin-top: 20px; max-width: 72ch; }


/* Fixed-scope offers: compact two-column list, prices on enquiry */
.offer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 56px; }
.offer-cols h3 { font-size: var(--fs-h4); font-weight: 500; margin-bottom: 12px; }
.offer-list { border-top: 1px solid var(--navy); }
.offer-list li { border-bottom: 1px solid var(--rule); scroll-margin-top: 90px; }
.offer-list a { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto 24px; gap: 16px; align-items: baseline; padding: 13px 0; text-decoration: none; color: var(--navy); }
.offer-list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); }
.offer-list a:hover::after { transform: scaleX(1); }
.offer-list a:hover .o-name, .offer-list a:hover .index-arrow { color: var(--teal-ink); }
.offer-list a:hover .index-arrow { transform: translateX(5px); }
.o-name { font-family: var(--font-display); font-size: var(--fs-h4); font-weight: 400; letter-spacing: -0.01em; transition: color 0.2s; }
.o-len { font-size: 0.9rem; color: var(--slate); white-space: nowrap; }
.offer-list li:target a { background: rgba(18, 164, 166, 0.08); }
@media (max-width: 860px) { .offer-cols { grid-template-columns: 1fr; } }

/* Product icons: one matching set, icon beside the product name */
.product-head { display: flex; align-items: center; gap: 16px; }
.product-icon { width: 56px; height: 56px; flex: none; border-radius: 22%; box-shadow: 0 10px 24px -14px rgba(11, 42, 74, 0.6); }
.feature .product-icon, .lab .product-icon { width: 68px; height: 68px; }
.product-head .name { margin: 0; }

/* Site-wide motion. Why: the brand is about work that flows and settles at the right point, so motion
   is quiet, plays once, and only uses opacity and transform (no layout shift). Everything here is
   inside no-preference, so reduced-motion visitors get the static site. Hooks are set by js/head.js
   (logo intro, once per visit) and js/site.js (reveal, timeline, header). */
.site-header { transition: box-shadow 0.3s ease, background-color 0.3s ease; }
.site-header.is-scrolled { background: rgba(250, 251, 252, 0.98); box-shadow: 0 10px 30px -18px rgba(13, 23, 38, 0.35); }
@media (prefers-reduced-motion: no-preference) {
  /* 1. Logo intro: the frames slide in, then the teal point drops beside the stack and settles
        next to the shorter frame, the yield point. Header logo only, first page of a visit. */
  .yp-intro .site-header .mark rect + rect { transform-box: fill-box; transform-origin: left center; animation: yp-frame 0.55s var(--ease) both; }
  .yp-intro .site-header .mark rect:nth-of-type(2) { animation-delay: 0.1s; }
  .yp-intro .site-header .mark rect:nth-of-type(3) { animation-delay: 0.18s; }
  .yp-intro .site-header .mark rect:nth-of-type(4) { animation-delay: 0.26s; }
  .yp-intro .site-header .mark circle { transform-box: fill-box; transform-origin: center; animation: yp-yield 0.95s var(--ease) 0.5s both; }
  .brand .mark { transition: transform 0.3s var(--ease); }
  .site-header.is-scrolled .brand .mark { transform: scale(0.92); }

  /* 2. Scroll reveal: content that starts below the screen rises 14px and fades in. */
  .reveal { opacity: 0; transform: translateY(14px); }
  .reveal.in { opacity: 1; transform: none; transition: opacity 0.7s var(--ease) var(--d, 0s), transform 0.7s var(--ease) var(--d, 0s); }

  /* 3. Timeline: the line draws from step to step and each point lights up as the line reaches it. */
  .timeline.tl-armed li::before { transform: scaleX(0); transform-origin: left center; }
  .timeline.tl-armed li > * { opacity: 0; transform: translateY(8px); }
  .timeline.tl-armed li::after { transition: background-color 0.3s ease, box-shadow 0.6s ease; }
  .timeline.tl-armed.in li::before { transform: none; transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1) calc(var(--i, 0) * 0.45s); }
  .timeline.tl-armed.in li::after { background: var(--teal); box-shadow: 0 0 0 5px rgba(18, 164, 166, 0.14); transition-delay: calc(var(--i, 0) * 0.45s); }
  .timeline.tl-armed.in li > * { opacity: 1; transform: none; transition: opacity 0.5s var(--ease) calc(var(--i, 0) * 0.45s + 0.1s), transform 0.5s var(--ease) calc(var(--i, 0) * 0.45s + 0.1s); }

  /* 4. Page transitions: a soft cross-fade between pages; the header stays put. Browsers without
        cross-document view transitions simply load the next page as before. */
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  ::view-transition-old(root) { animation: vt-out 0.18s ease both; }
  ::view-transition-new(root) { animation: vt-in 0.38s cubic-bezier(0.22, 1, 0.36, 1) both; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 860px) {
  .timeline.tl-armed li::before { transform: scaleY(0); transform-origin: center top; }
}
@media (prefers-reduced-motion: no-preference) {
  .side-info .timeline.tl-armed li::before { transform: scaleY(0); transform-origin: center top; }
  .side-info .timeline.tl-armed.in li::before { transform: none; }
}
@keyframes yp-frame { from { transform: scaleX(0); } }
@keyframes yp-yield {
  0% { opacity: 0; transform: translate(11px, -12.5px) scale(0.4); }
  25% { opacity: 1; transform: translate(11px, -12.5px) scale(1); }
  60% { transform: translate(11px, 0); }
  100% { opacity: 1; transform: none; }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(6px); } }
@media print {
  .reveal, .timeline.tl-armed li > *, .timeline.tl-armed li::before { opacity: 1 !important; transform: none !important; }
}
