/* ============================================================
   PORTFOLIO UI KIT — layout CSS (kit-local, not a token file).
   One continuous ink ground (--neutral-950) from hero to footer.
   No colour cuts: sections separate by space, hairlines and
   scroll-driven motion, never by background swaps.
   ============================================================ */

.pf { max-width: 100%; overflow-x: clip; font-family: var(--font-sans); color: var(--text-body); background: var(--surface-page); position: relative; }
.pf__main { position: relative; z-index: 2; }
.pf__container { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.pf__eyebrow { color: var(--text-muted); display: inline-flex; align-items: center; gap: 10px; }
.pf__eyebrow::before { content: ''; width: 26px; height: 1px; background: currentColor; opacity: .5; }
.pf__eyebrow:has(.pf__eyeline)::before { display: none; }
.pf__eyeline { width: 26px; height: 1px; background: currentColor; opacity: .6; transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease-soft) .1s; }
.is-in .pf__eyeline, .pf-reveal.is-in .pf__eyeline { transform: scaleX(1); }
.pf-serif { font-family: var(--font-serif); font-style: italic; font-weight: 300; }

/* ---------- SCROLL REVEALS (fade-in-up, shared) ---------- */
.pf-reveal { opacity: 0; transform: translateY(var(--pf-rise, 18px)); transition: opacity var(--pf-reveal-dur, .62s) var(--ease-soft), transform var(--pf-reveal-dur, .62s) var(--ease-soft); transition-delay: calc(var(--i, 0) * 58ms); }
.pf-reveal.is-in { opacity: 1; transform: none; }
.pf-noreveal .pf-reveal, .pf-noreveal .pf-draw path { opacity: 1 !important; transform: none !important; transition: none !important; }
.pf-draw path { stroke: var(--border-strong); stroke-width: 1.5; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.1s var(--ease-soft) .25s; }
.pf-draw.is-in path { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) {
  .pf-reveal { opacity: 1; transform: none; transition: none; }
  .pf-draw path { stroke-dashoffset: 0; transition: none; }
}

/* ---------- PERSISTENT BACKDROP (fixed, monochrome) ---------- */
.pf-backdrop { position: fixed; inset: 0; z-index: 1; pointer-events: none; --p: 0; }
.pf-backdrop__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pf-bd-arc, .pf-bd-line { fill: none; stroke: #fff; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; }
.pf-bd-arc { stroke-width: 1; opacity: .05; }
.pf-bd-arc--1 { transform: rotate(calc(var(--p) * 40deg)) translateY(calc(var(--p) * -50px)); stroke-dasharray: 3 9; }
.pf-bd-arc--2 { transform: rotate(calc(var(--p) * -32deg)) translateX(calc(var(--p) * 60px)); opacity: .045; }
.pf-bd-arc--3 { transform: scale(calc(1 + var(--p) * 0.4)); opacity: .035; }
.pf-bd-line { stroke-width: 1; opacity: .04; stroke-dasharray: 4 10; }
.pf-bd-line--1 { transform: translateY(calc(var(--p) * 110px)); }
.pf-bd-line--2 { transform: translateY(calc(var(--p) * -90px)); }

/* ---------- PROGRESS RAIL (persistent companion) ---------- */
/* fixed height; dots are placed by each section's REAL distance down the page,
   so a segment fills only once that section has actually been scrolled. */
.pf-rail { position: fixed; left: 26px; top: 50%; transform: translateY(-50%); z-index: 40; display: flex; align-items: stretch; gap: 14px; height: 46vh; max-height: 460px; }
.pf-rail__track { width: 1px; border-radius: 1px; background: color-mix(in srgb, #fff 12%, transparent); position: relative; overflow: hidden; height: 100%; }
.pf-rail__fill { position: absolute; inset: 0; background: linear-gradient(to bottom, var(--aqua-300), var(--aqua-500)); transform: scaleY(0); transform-origin: top; display: block; will-change: transform; }
.pf-rail__dots { position: relative; height: 100%; width: max-content; }
.pf-rail__dot { position: absolute; left: 0; transform: translateY(-50%); display: flex; align-items: center; gap: 10px; background: none; border: none; padding: 0; cursor: pointer; }
.pf-rail__dot i { width: 7px; height: 7px; border-radius: 50%; background: color-mix(in srgb, #fff 24%, transparent); transition: background var(--dur) var(--ease-out), transform var(--dur) var(--ease-spring), box-shadow var(--dur) var(--ease-out); }
.pf-rail__dot span {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-muted); opacity: 0; transform: translateX(-6px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
  white-space: nowrap; pointer-events: none;
}
.pf-rail__dot:hover span { opacity: 1; transform: none; }
.pf-rail__dot:hover i { background: #fff; }
.pf-rail__dot.is-active i { background: var(--aqua-400); transform: scale(1.6); box-shadow: 0 0 0 5px color-mix(in srgb, var(--aqua-400) 16%, transparent); }
.pf-rail__dot.is-active span { opacity: 1; transform: none; color: var(--text-body); }
/* over the white-ground sections the rail flips to ink so it stays visible */
.pf-rail.is-light .pf-rail__track { background: color-mix(in srgb, #111315 16%, transparent); }
.pf-rail.is-light .pf-rail__fill { background: linear-gradient(to bottom, var(--emerald-500), var(--emerald-700)); }
.pf-rail.is-light .pf-rail__dot i { background: color-mix(in srgb, #111315 28%, transparent); }
.pf-rail.is-light .pf-rail__dot:hover i { background: #111315; }
.pf-rail.is-light .pf-rail__dot span { color: #5e676c; }
.pf-rail.is-light .pf-rail__dot.is-active i { background: var(--emerald-600); box-shadow: 0 0 0 5px color-mix(in srgb, var(--emerald-600) 18%, transparent); }
.pf-rail.is-light .pf-rail__dot.is-active span { color: #111315; }
@media (max-width: 1100px) { .pf-rail { display: none; } }

/* ---------- TOP NAVBAR (3 zones at rest → merge into one pill on scroll) ---------- */
.pf-nav-shell {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-sticky);
  padding: 14px clamp(16px, 3vw, 44px);
  pointer-events: none;
}
.pf-nav-shell > * { pointer-events: auto; }
/* the bar hugs its content and is centred; name + CTA are pushed out to the
   edges at rest, then collapse inward on scroll into a single unified pill. */
.pf-nav {
  position: relative;
  width: max-content; max-width: 100%;
  margin: 0 auto;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 6px;
  border-radius: var(--radius-pill);
  background: transparent; border: 1px solid transparent;
  transition: background var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), gap var(--dur) var(--ease-out);
}
.pf-nav-shell.is-scrolled .pf-nav {
  background: color-mix(in srgb, var(--neutral-950) 64%, transparent);
  border-color: color-mix(in srgb, #fff 11%, transparent);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 14px 40px -16px rgba(0,0,0,.55);
}
.pf-nav__brand {
  display: inline-flex; align-items: center; gap: 10px; background: none; border: none; cursor: pointer;
  padding: 8px 12px; white-space: nowrap;
  transform: translateX(var(--brand-x, 0px));
  transition: transform .6s var(--ease-spring); will-change: transform;
}
.pf-nav__brand img { height: 20px; display: block; }
.pf-nav__brand b { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: -0.01em; color: #fff; white-space: nowrap; }
.pf-nav__links {
  display: flex; align-items: center; gap: 4px;
  padding: 6px; border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--neutral-950) 42%, transparent);
  border: 1px solid color-mix(in srgb, #fff 10%, transparent);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  transition: background var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), backdrop-filter var(--dur) var(--ease-out);
}
/* on scroll the centre pill dissolves so the three zones read as ONE bar */
.pf-nav-shell.is-scrolled .pf-nav__links {
  background: transparent; border-color: transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.pf-nav-shell.is-scrolled .pf-nav__brand { transform: translateX(0); transition-delay: .02s; }
.pf-nav-shell.is-scrolled .pf-nav__cta { transform: translateX(0); transition-delay: .07s; }
.pf-nav__link {
  position: relative;
  font-family: var(--font-display); font-weight: 500; font-size: 13.5px; color: rgba(255,255,255,.74);
  background: none; border: none; cursor: pointer; padding: 8px 13px; border-radius: var(--radius-pill);
  transition: color var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
.pf-nav__link:hover { color: #fff; background: color-mix(in srgb, #fff 10%, transparent); }
.pf-nav__link.is-active { color: #fff; }
.pf-nav__link.is-active::after {
  content: ''; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 1.5px; border-radius: 1px;
  background: var(--aqua-400); animation: pf-linkline .45s var(--ease-soft);
}
@keyframes pf-linkline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.pf-nav__cta {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-display); font-weight: 600; font-size: 13.5px;
  color: var(--neutral-950); background: var(--aqua-400); border: none; cursor: pointer;
  padding: 9px 16px; border-radius: var(--radius-pill);
  transform: translateX(var(--cta-x, 0px));
  transition: background var(--dur) var(--ease-out), transform .6s var(--ease-spring); will-change: transform;
}
.pf-nav__cta svg { width: 15px; height: 15px; }
.pf-nav__cta:hover { background: var(--aqua-300); }
.pf-nav__cta:active { filter: brightness(.95); }
@media (max-width: 720px) {
  .pf-nav__links { display: none; }
}

/* ---------- HERO (flow field, same ground as the page) ---------- */
.pf-hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100svh; display: flex; align-items: center;
  background: var(--neutral-950);
}
.pf-hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.pf-hero__veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(52% 44% at 50% 46%, color-mix(in srgb, var(--neutral-950) 52%, transparent), transparent 72%),
    linear-gradient(to bottom, transparent 0%, transparent 64%, color-mix(in srgb, var(--neutral-950) 72%, transparent) 90%, var(--neutral-950) 100%);
}
.pf-hero__content { position: relative; z-index: 3; text-align: center; padding-top: 64px; }
.pf-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 500; font-size: 13px; letter-spacing: .04em;
  color: rgba(255,255,255,.7); text-transform: uppercase;
  padding: 7px 15px; border-radius: var(--radius-pill);
  background: color-mix(in srgb, #fff 6%, transparent); border: 1px solid color-mix(in srgb, #fff 12%, transparent);
  backdrop-filter: blur(6px);
}
.pf-hero__pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--aqua-400); box-shadow: 0 0 0 0 color-mix(in srgb, var(--aqua-400) 70%, transparent); animation: pf-pulse 2.4s var(--ease-out) infinite; }
@keyframes pf-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--aqua-400) 65%, transparent); } 70%,100% { box-shadow: 0 0 0 10px transparent; } }
.pf-hero__display {
  font-family: var(--font-display); font-weight: 800; color: #fff;
  font-size: clamp(40px, 6.2vw, 88px); line-height: 1.04; letter-spacing: -0.035em;
  margin: 24px auto 0; max-width: 18ch; text-wrap: balance;
  text-shadow: 0 2px 30px rgba(10,12,12,.8);
}
.pf-hero__display em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--aqua-300); text-shadow: none; }
.pf-hero__lead { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6; color: rgba(255,255,255,.76); max-width: 48ch; margin: 22px auto 32px; }
.pf-hero__cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.pf-hero__metric {
  display: inline-flex; align-items: center; gap: 16px; margin-top: 44px;
  padding: 14px 22px 14px 18px; border-radius: var(--radius-xl);
  background: color-mix(in srgb, var(--neutral-900) 55%, transparent);
  border: 1px solid color-mix(in srgb, #fff 10%, transparent); backdrop-filter: blur(10px);
}
.pf-hero__metric-num { font-family: var(--font-display); font-weight: 800; font-size: 38px; letter-spacing: -0.02em; line-height: 1; color: var(--aqua-300); min-width: 120px; text-align: right; }
.pf-hero__metric-txt { text-align: left; display: flex; flex-direction: column; gap: 2px; }
.pf-hero__metric-txt b { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: #fff; }
.pf-hero__metric-txt span { font-size: 12.5px; color: rgba(255,255,255,.6); }

.pf-hero__scroll {
  position: absolute; z-index: 3; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer; color: rgba(255,255,255,.55);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
}
.pf-hero__scroll svg { width: 16px; height: 16px; animation: pf-bob 2s var(--ease-in-out) infinite; }
@keyframes pf-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
.pf-hero__scroll:hover { color: #fff; }
@media (prefers-reduced-motion: reduce) { .pf-hero__pulse, .pf-hero__scroll svg { animation: none; } }

/* ---------- SECTION SHELL ---------- */
.pf-section { padding-block: var(--section-y); position: relative; }
.pf-section__head { max-width: 62ch; margin-bottom: 48px; }
.pf-section__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -0.025em; color: var(--text-strong); margin: 16px 0 0; line-height: 1.08; }
.pf-section__title em { font-family: var(--font-serif); font-style: italic; font-weight: 300; color: var(--aqua-300); }
.pf-section__sub { font-size: 17.5px; color: var(--text-muted); margin: 16px 0 0; line-height: 1.6; max-width: 56ch; }

/* ---------- STATS STRIP ---------- */
.pf-statwrap { padding-block: 8px clamp(28px, 4vw, 56px); }
.pf-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-top: 36px; border-top: 1px solid var(--border-subtle); }
.pf-stat__num { font-family: var(--font-display); font-weight: 800; font-size: 38px; color: var(--text-strong); letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.pf-stat__label { font-size: 13.5px; color: var(--text-muted); margin-top: 10px; line-height: 1.45; max-width: 24ch; }

/* ---------- WORK (flagship case + editorial index on a thread) ---------- */
.pf-work2 { position: relative; }
.pf-work__bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 0 0 6px; }
.pf-work__count { color: var(--text-subtle); font-family: var(--font-mono); }

/* flagship — the headline case, asymmetric split */
.pf-flag {
  display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(18px, 2.6vw, 40px);
  align-items: stretch; cursor: pointer; margin-bottom: clamp(40px, 6vw, 76px);
  padding: 14px; border-radius: var(--radius-2xl);
  border: 1px solid var(--border-subtle); background: color-mix(in srgb, #fff 2.5%, transparent);
  transition: border-color var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
.pf-flag:hover { border-color: var(--border-default); background: color-mix(in srgb, #fff 4.5%, transparent); }
/* media fills the column at the row height — never derive width from height (it
   would overflow over the body text) */
.pf-flag__media { position: relative; overflow: hidden; height: 100%; min-height: clamp(320px, 30vw, 460px); border-radius: calc(var(--radius-2xl) - 6px); background: var(--neutral-900); border: 1px solid var(--border-subtle); }
.pf-flag__media image-slot { position: absolute; inset: 0; transition: transform .8s var(--ease-soft); }
.pf-flag:hover .pf-flag__media image-slot { transform: scale(1.04); }
.pf-flag__num { position: absolute; left: 20px; top: 14px; z-index: 2; font-family: var(--font-display); font-weight: 800; font-size: clamp(42px, 5vw, 76px); line-height: 1; letter-spacing: -.04em; color: rgba(255,255,255,.16); }
.pf-flag__open {
  position: absolute; right: 16px; top: 16px; z-index: 2; width: 46px; height: 46px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--neutral-950) 55%, transparent); border: 1px solid var(--border-default);
  color: #fff; backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(8px); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-soft);
}
.pf-flag:hover .pf-flag__open { opacity: 1; transform: none; }
.pf-flag__open svg { width: 18px; height: 18px; }
.pf-flag__body { display: flex; flex-direction: column; min-width: 0; padding: 22px 26px; }
.pf-flag__titlerow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.pf-flag__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 3vw, 42px); letter-spacing: -.025em; line-height: 1.04; color: var(--text-strong); margin: 0; }
.pf-flag__blurb { font-size: 15.5px; line-height: 1.6; color: var(--text-muted); margin: 16px 0 0; max-width: 52ch; }
.pf-flag__metrics { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border-subtle); }
.pf-flag__metric { display: flex; flex-direction: column; gap: 5px; max-width: 22ch; }
.pf-flag__metric-num { font-family: var(--font-display); font-weight: 800; font-size: 30px; letter-spacing: -.02em; line-height: 1; color: var(--aqua-300); }
.pf-flag__metric-label { font-size: 11.5px; color: var(--text-subtle); line-height: 1.4; }
.pf-flag__cta { display: inline-flex; align-items: center; gap: 9px; margin-top: auto; padding-top: 26px; font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--text-strong); }
.pf-flag__cta svg { width: 16px; height: 16px; color: var(--aqua-300); transition: transform var(--dur) var(--ease-soft); }
.pf-flag:hover .pf-flag__cta svg { transform: translateX(5px); }

/* editorial index — items strung on a scroll-drawn thread */
.pf-worklist { position: relative; margin-top: 18px; }
.pf-worklist__rail { position: absolute; left: 18px; top: 6px; bottom: 6px; width: 1px; background: var(--border-subtle); overflow: hidden; }
.pf-worklist__rail i { position: absolute; inset: 0; transform-origin: top; transform: scaleY(var(--sp, 0)); background: linear-gradient(to bottom, var(--aqua-300), var(--aqua-500)); }
.pf-worklist__empty { padding: 26px 0 26px 44px; color: var(--text-subtle); }
.pf-wrow {
  position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto 36px;
  align-items: center; gap: 22px; padding: 26px 6px 26px 0; cursor: pointer;
  border-bottom: 1px solid var(--border-subtle); transition: opacity var(--dur) var(--ease-out);
}
.pf-wrow:first-of-type { border-top: 1px solid var(--border-subtle); }
.pf-worklist:hover .pf-wrow:not(:hover) { opacity: .4; }
.pf-wrow__node { position: absolute; left: 18px; top: 50%; width: 9px; height: 9px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--neutral-700); border: 1px solid var(--border-default); transition: background var(--dur) var(--ease-out), transform var(--dur) var(--ease-spring), box-shadow var(--dur) var(--ease-out); }
.pf-wrow.is-in .pf-wrow__node { background: var(--aqua-400); border-color: var(--aqua-400); box-shadow: 0 0 0 5px color-mix(in srgb, var(--aqua-400) 14%, transparent); }
.pf-wrow:hover .pf-wrow__node { transform: scale(1.5); }
.pf-wrow__idx { padding-left: 40px; align-self: start; padding-top: 6px; font-family: var(--font-mono); font-size: 13px; letter-spacing: .05em; color: var(--text-subtle); }
.pf-wrow__main { min-width: 0; }
.pf-wrow__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 3.2vw, 40px); letter-spacing: -.025em; line-height: 1.04; color: var(--text-strong); margin: 0; transition: color var(--dur) var(--ease-out), transform var(--dur) var(--ease-soft); }
.pf-wrow:hover .pf-wrow__title { color: var(--aqua-300); transform: translateX(6px); }
.pf-wrow__blurb { font-size: 14px; line-height: 1.55; color: var(--text-muted); margin: 10px 0 0; max-width: 58ch; display: none; }
.pf-wrow__tags { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 14px; }
.pf-wrow__tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--aqua-100); padding: 4px 10px; border-radius: var(--radius-pill); border: 1px solid color-mix(in srgb, var(--aqua-400) 32%, transparent); background: color-mix(in srgb, var(--aqua-500) 12%, transparent); }
.pf-wrow__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; text-align: right; }
.pf-wrow__cat { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); }
.pf-wrow__arrow { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-subtle); color: var(--text-muted); transition: transform var(--dur) var(--ease-soft), color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), background var(--dur) var(--ease-out); }
.pf-wrow__arrow svg { width: 16px; height: 16px; }
.pf-wrow:hover .pf-wrow__arrow { background: var(--aqua-400); border-color: var(--aqua-400); color: var(--neutral-950); transform: translate(2px, -2px); }

/* media preview that drifts toward the cursor */
.pf-follow { position: fixed; top: 0; left: 0; z-index: 60; pointer-events: none; will-change: transform; }
.pf-follow__card {
  position: absolute; top: 0; left: 0; width: 322px; aspect-ratio: 16/11; overflow: hidden;
  border-radius: var(--radius-lg); border: 1px solid var(--border-default); background: var(--neutral-900);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.8);
  transform: translate(28px, -50%) scale(.82) rotate(-3deg); opacity: 0;
  transition: opacity .32s var(--ease-out), transform .45s var(--ease-soft);
}
.pf-follow__card.is-on { opacity: 1; transform: translate(28px, -50%) scale(1) rotate(-2deg); }
.pf-follow__card image-slot { position: absolute; inset: 0; }
.pf-follow__label { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--neutral-950) 64%, transparent); border: 1px solid var(--border-default); backdrop-filter: blur(8px); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 12px; }
.pf-follow__label svg { width: 14px; height: 14px; color: var(--aqua-300); }
@media (pointer: coarse) { .pf-follow { display: none; } }
@media (prefers-reduced-motion: reduce) { .pf-follow { display: none; } }

/* ---------- SYSTEMS (honest model: Odoo core contains automations + dashboards) ---------- */
.pf-systems2 { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.pf-systems2__points { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.pf-systems2__points li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; color: var(--text-muted); line-height: 1.55; }
.pf-systems2__points li b { color: var(--text-strong); font-weight: 600; }
.pf-systems2__points li svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--aqua-400); }
.pf-systems2__diagram { display: flex; flex-direction: column; align-items: stretch; }
.pf-sys-node {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  border-radius: var(--radius-lg); border: 1px solid var(--border-default);
  background: color-mix(in srgb, #fff 4%, transparent);
}
.pf-sys-node b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--text-strong); }
.pf-sys-node span:not(.pf-sys-node__icon) { font-size: 12.5px; color: var(--text-subtle); }
.pf-sys-node__icon { width: 38px; height: 38px; flex: none; border-radius: var(--radius-md); display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, #fff 7%, transparent); color: var(--text-body); }
.pf-sys-node__icon svg { width: 18px; height: 18px; }
.pf-sys-node__icon--core { background: color-mix(in srgb, var(--aqua-500) 18%, transparent); color: var(--aqua-300); }
.pf-sys-flow { width: 40px; height: 44px; align-self: center; }
.pf-sys-core { border-radius: var(--radius-xl); border: 1px solid color-mix(in srgb, var(--aqua-400) 28%, transparent); background: color-mix(in srgb, var(--aqua-500) 5%, transparent); padding: 18px; }
.pf-sys-core__head { display: flex; align-items: center; gap: 14px; }
.pf-sys-core__head b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 15.5px; color: var(--text-strong); }
.pf-sys-core__head span { font-size: 12.5px; color: var(--text-subtle); }
.pf-sys-core__chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.pf-sys-chip { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); padding: 5px 10px; border-radius: var(--radius-pill); border: 1px solid var(--border-subtle); }
.pf-sys-core__nested { margin-top: 16px; padding: 14px; border-radius: var(--radius-lg); border: 1px dashed color-mix(in srgb, var(--aqua-400) 30%, transparent); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: relative; }
.pf-sys-core__nestedlbl { position: absolute; top: -8px; left: 14px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--aqua-300); background: var(--neutral-950); padding-inline: 6px; }
.pf-sys-sub { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-md); background: color-mix(in srgb, #fff 4%, transparent); }
.pf-sys-sub b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 13.5px; color: var(--text-strong); }
.pf-sys-sub span:not(.pf-sys-sub__icon) { font-size: 11.5px; color: var(--text-subtle); }
.pf-sys-sub__icon { width: 30px; height: 30px; flex: none; border-radius: var(--radius-sm); display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--aqua-500) 14%, transparent); color: var(--aqua-300); }
.pf-sys-sub__icon svg { width: 15px; height: 15px; }
.pf-sys-base { display: flex; align-items: center; gap: 10px; justify-content: center; margin-top: 14px; padding: 12px; border-radius: var(--radius-lg); border: 1px solid var(--border-subtle); color: var(--text-subtle); font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.pf-sys-base svg { width: 15px; height: 15px; }
@media (max-width: 980px) { .pf-systems2 { grid-template-columns: 1fr; } .pf-sys-core__nested { grid-template-columns: 1fr; } }

/* ---------- SERVICES ---------- */
.pf-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pf-service {
  padding: 30px; border-radius: var(--radius-xl); border: 1px solid var(--border-subtle);
  background: color-mix(in srgb, #fff 3%, transparent);
  transition: transform var(--dur) var(--ease-soft), border-color var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
.pf-service:hover { transform: translateY(-4px); border-color: var(--border-default); background: color-mix(in srgb, #fff 5%, transparent); }
.pf-service__icon { width: 48px; height: 48px; border-radius: var(--radius-lg); display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--aqua-500) 14%, transparent); color: var(--aqua-300); margin-bottom: 20px; }
.pf-service__icon svg { width: 22px; height: 22px; }
.pf-service h3 { font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--text-strong); margin: 0 0 8px; letter-spacing: -0.01em; }
.pf-service p { font-size: 14.5px; color: var(--text-muted); line-height: 1.55; margin: 0; }
@media (max-width: 980px) { .pf-services { grid-template-columns: 1fr; } }

/* ---------- PROCESS ---------- */
.pf-process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pf-step { position: relative; padding: 28px 24px; }
.pf-step__n { font-family: var(--font-mono); font-size: 13px; color: var(--aqua-300); letter-spacing: .1em; }
.pf-step__bar { height: 2px; background: var(--border-subtle); margin: 14px 0 18px; position: relative; overflow: hidden; }
.pf-step__bar i { position: absolute; inset: 0 60% 0 0; background: var(--aqua-400); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease-soft) calc(var(--i, 0) * 140ms + .2s); }
.pf-step:nth-child(2) .pf-step__bar i { inset: 0 40% 0 0; }
.pf-step:nth-child(3) .pf-step__bar i { inset: 0 20% 0 0; }
.pf-step:nth-child(4) .pf-step__bar i { inset: 0 0 0 0; }
.pf-step.is-in .pf-step__bar i { transform: scaleX(1); }
.pf-step h3 { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--text-strong); margin: 0 0 8px; }
.pf-step p { font-size: 14.5px; color: var(--text-muted); line-height: 1.55; margin: 0; }

/* ---------- CONTACT / FOOTER ---------- */
.pf-contact {
  border-radius: var(--radius-2xl); padding: clamp(40px, 6vw, 80px); position: relative; overflow: hidden;
  background: color-mix(in srgb, #fff 3%, transparent); border: 1px solid var(--border-subtle);
}
.pf-contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.pf-contact__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 4.5vw, 56px); letter-spacing: -0.03em; line-height: 1.04; color: var(--text-strong); margin: 18px 0 0; }
.pf-contact__title em { font-family: var(--font-serif); font-style: italic; font-weight: 300; color: var(--aqua-300); }
.pf-contact__lead { font-size: 17.5px; color: var(--text-muted); line-height: 1.6; margin: 22px 0 0; max-width: 38ch; }
.pf-contact__arc { position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; border: 1px solid var(--border-subtle); }
.pf-contact__arc::before { content: ''; position: absolute; inset: 60px; border-radius: 50%; border: 1px dashed var(--border-subtle); }
.pf-form { display: flex; flex-direction: column; gap: 16px; }

.pf-footer { padding-block: 56px 40px; border-top: 1px solid var(--border-subtle); position: relative; z-index: 2; }
.pf-footer__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.pf-footer__brand { display: flex; align-items: center; gap: 12px; }
.pf-footer__brand img { height: 24px; }
.pf-footer__brand b { font-family: var(--font-display); font-weight: 700; color: var(--text-strong); }
.pf-footer__links { display: flex; gap: 26px; }
.pf-footer__links a { font-family: var(--font-display); font-size: 14px; color: var(--text-muted); }
.pf-footer__links a:hover { color: var(--text-strong); }
.pf-footer__meta { font-family: var(--font-mono); font-size: 12px; color: var(--text-subtle); margin-top: 28px; }

/* ---------- PROJECT CASE STUDY (full overlay, self-animated) ---------- */
.pf-cs {
  position: fixed; inset: 0; z-index: 1000; overflow-y: auto; overflow-x: hidden;
  background: var(--neutral-950); color: var(--text-body); --par: 0;
  animation: pf-cs-in .38s var(--ease-soft) both; scroll-behavior: smooth;
}
@keyframes pf-cs-in {
  from { opacity: 0; transform: translate3d(0, 12px, 0); }
  to { opacity: 1; transform: none; }
}
.pf-cs.is-leaving {
  pointer-events: none;
  animation: pf-cs-out .24s cubic-bezier(.76, 0, .24, 1) both;
}
@keyframes pf-cs-out {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translate3d(3%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .pf-cs,
  .pf-cs.is-leaving { animation: none; }
}
.pf-cs__bar { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--neutral-950) 82%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border-subtle); }
.pf-cs__progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.pf-cs__progress i { display: block; height: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--aqua-300), var(--aqua-500)); }
.pf-cs__bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.pf-cs__back { display: inline-flex; align-items: center; gap: 8px; background: none; border: none; cursor: pointer; color: var(--text-muted); font-family: var(--font-display); font-weight: 600; font-size: 13.5px; padding: 8px 12px; border-radius: var(--radius-pill); transition: color var(--dur) var(--ease-out), background var(--dur) var(--ease-out); }
.pf-cs__back:hover { color: var(--text-strong); background: color-mix(in srgb, #fff 8%, transparent); }
.pf-cs__back svg { width: 16px; height: 16px; }
.pf-cs__barnum { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: var(--text-subtle); }
.pf-cs__barnum em { font-style: normal; opacity: .55; }
@media (max-width: 620px) { .pf-cs__barnum { display: none; } }

.pf-cs__inner { padding-block: clamp(36px, 6vw, 76px) 96px; }
.pf-cs__head { max-width: 66ch; }
.pf-cs__index { font-family: var(--font-mono); font-size: 13px; letter-spacing: .1em; color: var(--aqua-300); }
.pf-cs__index em { font-style: normal; color: var(--text-subtle); }
.pf-cs__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(38px, 6vw, 84px); letter-spacing: -.035em; line-height: 1.0; color: var(--text-strong); margin: 18px 0 0; text-wrap: balance; }
.pf-cs__lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--text-muted); margin: 22px 0 0; max-width: 60ch; }
.pf-cs__facts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 28px; }
.pf-cs__facts > span { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-muted); }
.pf-cs__facts svg { width: 15px; height: 15px; color: var(--aqua-300); }

.pf-cs__hero { position: relative; margin: clamp(36px, 5vw, 64px) 0 0; border-radius: var(--radius-2xl); overflow: hidden; aspect-ratio: 16/9; background: var(--neutral-900); border: 1px solid var(--border-subtle); }
.pf-cs__hero-media { position: absolute; left: 0; right: 0; top: -10%; height: 120%; transform: translateY(calc(var(--par, 0) * 10%)) scale(calc(1 + var(--par, 0) * .04)); will-change: transform; }
.pf-cs__hero-media image-slot { position: absolute; inset: 0; }
@media (prefers-reduced-motion: reduce) { .pf-cs__hero-media { transform: none; top: 0; height: 100%; } }

.pf-cs__cols { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); margin-top: clamp(40px, 6vw, 80px); align-items: start; }
.pf-cs__scheda { position: sticky; top: 92px; padding: 24px; border-radius: var(--radius-xl); border: 1px solid var(--border-subtle); background: color-mix(in srgb, #fff 3%, transparent); }
.pf-cs__scheda h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-subtle); margin: 0 0 16px; font-weight: 600; }
.pf-cs__scheda dl { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.pf-cs__scheda dl > div { display: flex; flex-direction: column; gap: 3px; }
.pf-cs__scheda dt { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-subtle); }
.pf-cs__scheda dd { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 14.5px; color: var(--text-strong); }
.pf-cs__deliv { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border-subtle); display: flex; flex-wrap: wrap; gap: 7px; }
.pf-cs__deliv-lbl { width: 100%; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-subtle); margin-bottom: 4px; }
.pf-cs__chip { font-size: 12px; color: var(--aqua-100); padding: 6px 11px; border-radius: var(--radius-pill); border: 1px solid color-mix(in srgb, var(--aqua-400) 30%, transparent); background: color-mix(in srgb, var(--aqua-500) 11%, transparent); }
.pf-cs__visit { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-family: var(--font-display); font-weight: 600; font-size: 13.5px; color: var(--aqua-300); }
.pf-cs__visit svg { width: 15px; height: 15px; }

.pf-cs__narrative { display: flex; flex-direction: column; gap: clamp(32px, 4vw, 52px); }
.pf-cs__kicker { display: inline-block; font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--aqua-300); margin-bottom: 8px; }
.pf-cs__kicker--center { display: block; text-align: center; margin-bottom: 4px; }
.pf-cs__h { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.02em; line-height: 1.1; color: var(--text-strong); margin: 0 0 16px; }
.pf-cs__block p { font-size: clamp(16.5px, 1.5vw, 19px); line-height: 1.75; color: var(--text-body); margin: 0; max-width: 62ch; }
.pf-cs__steps { list-style: none; margin: 4px 0 0; padding: 0; position: relative; }
.pf-cs__steps::before { content: ''; position: absolute; left: 15px; top: 14px; bottom: 14px; width: 1px; background: var(--border-subtle); }
.pf-cs__steps li { position: relative; display: grid; grid-template-columns: 32px 1fr; gap: 16px; align-items: start; padding: 11px 0; }
.pf-cs__steps-n { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; font-family: var(--font-mono); font-size: 12px; color: var(--aqua-300); background: var(--neutral-950); border: 1px solid var(--border-default); }
.pf-cs__steps-t { font-size: 15.5px; line-height: 1.55; color: var(--text-body); padding-top: 6px; }

.pf-cs__metrics { margin: clamp(44px, 6vw, 84px) 0; padding: clamp(32px, 4vw, 48px) 0; border-block: 1px solid var(--border-subtle); }
.pf-cs__metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 28px; margin-top: 20px; }
.pf-cs__metric { text-align: center; }
.pf-cs__metric-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 4vw, 56px); letter-spacing: -.03em; line-height: 1; color: var(--aqua-300); font-variant-numeric: tabular-nums; }
.pf-cs__metric-label { font-size: 13px; color: var(--text-muted); margin: 12px auto 0; line-height: 1.45; max-width: 26ch; }

.pf-cs__gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: clamp(36px, 5vw, 64px) 0; }
.pf-cs__shot { position: relative; margin: 0; border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 16/10; background: var(--neutral-900); border: 1px solid var(--border-subtle); }
.pf-cs__shot:first-child:nth-last-child(odd) { grid-column: 1 / -1; aspect-ratio: 21/9; }
.pf-cs__shot image-slot { position: absolute; inset: 0; }

.pf-cs__note { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius-lg); border: 1px solid var(--border-subtle); background: color-mix(in srgb, #fff 2.5%, transparent); color: var(--text-subtle); font-size: 13.5px; line-height: 1.55; margin-bottom: 36px; }
.pf-cs__note svg { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--text-subtle); }
.pf-cs__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 56px; }

.pf-cs__next { width: 100%; text-align: left; cursor: pointer; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto auto; gap: 4px 0; align-items: center; padding: clamp(28px, 4vw, 48px) clamp(24px, 3vw, 40px); border-radius: var(--radius-2xl); border: 1px solid var(--border-subtle); background: color-mix(in srgb, #fff 2.5%, transparent); margin-bottom: 56px; transition: border-color var(--dur) var(--ease-out), background var(--dur) var(--ease-out); }
.pf-cs__next:hover { border-color: var(--border-default); background: color-mix(in srgb, #fff 4.5%, transparent); }
.pf-cs__next-lbl { grid-column: 1; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-subtle); }
.pf-cs__next-title { grid-column: 1; font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 3.4vw, 46px); letter-spacing: -.025em; line-height: 1.05; color: var(--text-strong); transition: color var(--dur) var(--ease-out), transform var(--dur) var(--ease-soft); }
.pf-cs__next:hover .pf-cs__next-title { color: var(--aqua-300); transform: translateX(6px); }
.pf-cs__next-meta { grid-column: 1; font-family: var(--font-mono); font-size: 12px; color: var(--text-subtle); margin-top: 6px; text-transform: uppercase; letter-spacing: .08em; }
.pf-cs__next-arrow { grid-column: 2; grid-row: 1 / span 3; align-self: center; width: 54px; height: 54px; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid var(--border-default); color: var(--text-strong); transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out), transform var(--dur) var(--ease-soft); }
.pf-cs__next-arrow svg { width: 20px; height: 20px; }
.pf-cs__next:hover .pf-cs__next-arrow { background: var(--aqua-400); border-color: var(--aqua-400); color: var(--neutral-950); transform: translateX(5px); }

.pf-cs__cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: clamp(28px, 3vw, 40px); border-radius: var(--radius-xl); border: 1px solid var(--border-default); background: color-mix(in srgb, var(--aqua-500) 5%, transparent); }
.pf-cs__cta h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.02em; color: var(--text-strong); margin: 6px 0 0; }

/* overlay reveals — toggled by the overlay's own scroll handler */
.pf-cs [data-rev] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft); transition-delay: calc(var(--i, 0) * 70ms); }
.pf-cs [data-rev].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .pf-cs [data-rev] { opacity: 1; transform: none; transition: none; } }

@media (max-width: 860px) {
  .pf-cs__cols { grid-template-columns: 1fr; }
  .pf-cs__scheda { position: relative; top: 0; }
  .pf-cs__gallery { grid-template-columns: 1fr; }
  .pf-cs__shot:first-child:nth-last-child(odd) { aspect-ratio: 16/10; }
}

/* systems diagram = a CRON TIMELINE. The site/core/base cards use the shared
   .pf-reveal (with bespoke --i delays in the markup) so they rise in one after
   another; the connector line draws in the gap between the site and the core. */
.pf-sys-flow { opacity: 0; transition: opacity .2s var(--ease-out) .5s; }
.pf-sys-flow path {
  stroke: var(--border-strong); stroke-width: 1.5;
  stroke-dasharray: 100; stroke-dashoffset: 100;
  transition: stroke-dashoffset .6s var(--ease-soft) .55s;
}
.pf-systems2__diagram.is-in .pf-sys-flow { opacity: 1; }
.pf-systems2__diagram.is-in .pf-sys-flow path { stroke-dashoffset: 0; }
.pf-noreveal .pf-sys-flow { opacity: 1 !important; }
.pf-noreveal .pf-sys-flow path { stroke-dashoffset: 0 !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .pf-sys-flow { opacity: 1; }
  .pf-sys-flow path { stroke-dashoffset: 0; transition: none; }
}

/* ============================================================
   MOTION LAYER — added on top: loader curtain, scroll-linked
   parallax/zoom (driven by --sp from the scrub engine), and
   directional + rotational reveals. Ordered, never chaotic.
   ============================================================ */

/* ---------- INITIAL LOADER (branded curtain) ---------- */
.pf-loading { /* page frozen behind the curtain */ }
.pf-loader {
  position: fixed; inset: 0; z-index: 2000; cursor: pointer;
  display: grid; place-items: center; background: var(--neutral-950);
  transform: translateY(0);
  transition: transform .76s var(--ease-soft);
}
.pf-loader.is-exiting { transform: translateY(-101%); }
.pf-loader__inner {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  text-align: center; padding: 24px;
  transition: opacity .4s var(--ease-out), transform .55s var(--ease-soft);
}
.pf-loader.is-exiting .pf-loader__inner { opacity: 0; transform: translateY(-14px); }
.pf-loader__mark { display: flex; align-items: center; gap: 14px; animation: pf-load-mark .9s var(--ease-spring) both; }
.pf-loader__mark img { height: 42px; display: block; }
.pf-loader__name { font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -0.02em; color: #fff; }
@keyframes pf-load-mark { from { opacity: 0; transform: translateY(14px) scale(.94); } to { opacity: 1; transform: none; } }
.pf-loader__eyebrow {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.5); animation: pf-fade-up .8s var(--ease-out) .15s both;
}
.pf-loader__bar { width: 240px; max-width: 60vw; height: 2px; border-radius: 2px; overflow: hidden; background: color-mix(in srgb,#fff 12%,transparent); animation: pf-fade-up .8s var(--ease-out) .25s both; }
.pf-loader__bar i { display: block; height: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--aqua-300), var(--aqua-500)); transition: transform .12s linear; }
.pf-loader__pct { font-family: var(--font-mono); font-size: 11px; letter-spacing: .3em; color: rgba(255,255,255,.4); font-variant-numeric: tabular-nums; }
@keyframes pf-fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .pf-loader, .pf-loader__mark, .pf-loader__eyebrow, .pf-loader__bar { animation: none; transition: none; }
}

/* ---------- HERO: scroll-linked departure (parallax + scale out) ---------- */
.pf-hero__parallax {
  transform: translateY(calc(var(--sp, 0) * -90px)) scale(calc(1 - var(--sp, 0) * 0.07));
  opacity: calc(1 - var(--sp, 0) * 1.25);
  will-change: transform, opacity;
}
.pf-hero__scroll { opacity: calc(1 - var(--sp, 0) * 3.2); transition: color var(--dur) var(--ease-out); }
@media (prefers-reduced-motion: reduce) {
  .pf-hero__parallax { transform: none; opacity: 1; }
  .pf-hero__scroll { opacity: 1; }
}

/* ---------- "CHI SONO" — scroll-zoom into a window ---------- */
.pf-zoom { position: relative; height: 300vh; }
.pf-zoom__sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: grid; place-items: center; perspective: 1500px;
}
/* the browser window you fly into */
.pf-zoom__frame {
  position: relative; width: min(780px, 82vw); aspect-ratio: 16 / 10;
  border: 1px solid color-mix(in srgb, #fff 14%, transparent);
  border-radius: calc(20px * (1 - min(1, var(--sp, 0) / .5)));
  background: var(--neutral-900);
  box-shadow: 0 60px 120px -50px rgba(0,0,0,.8), 0 0 0 1px color-mix(in srgb,#fff 4%,transparent);
  overflow: hidden; transform-style: preserve-3d; transform-origin: center 58%;
  transform:
    rotateX(calc((1 - min(1, var(--sp, 0) / .5)) * 7deg))
    scale(calc(0.66 + var(--sp, 0) * 1.7));
  opacity: clamp(0, calc(1 - (var(--sp, 0) - .46) / .26), 1);
  will-change: transform, opacity;
}
.pf-zoom__chrome {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px;
  border-bottom: 1px solid color-mix(in srgb,#fff 9%,transparent);
  background: color-mix(in srgb,#fff 3%,transparent);
}
.pf-zoom__dots { display: inline-flex; gap: 6px; }
.pf-zoom__dots i { width: 9px; height: 9px; border-radius: 50%; background: color-mix(in srgb,#fff 18%,transparent); }
.pf-zoom__dots i:first-child { background: #ff5f57; } .pf-zoom__dots i:nth-child(2){ background:#febc2e; } .pf-zoom__dots i:nth-child(3){ background:#28c840; }
.pf-zoom__url {
  display: inline-flex; align-items: center; gap: 7px; margin: 0 auto;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; color: var(--text-subtle);
  padding: 4px 14px; border-radius: var(--radius-pill); background: color-mix(in srgb,#fff 5%,transparent);
}
.pf-zoom__url svg { width: 12px; height: 12px; color: var(--aqua-400); }
.pf-zoom__screen { position: relative; height: calc(100% - 41px); padding: 30px 34px; display: flex; flex-direction: column; gap: 16px; }
.pf-zoom__bigline { height: 22px; width: 62%; border-radius: 6px; background: linear-gradient(90deg, color-mix(in srgb,var(--aqua-400) 50%,transparent), transparent); }
.pf-zoom__line { height: 11px; width: 86%; border-radius: 6px; background: color-mix(in srgb,#fff 10%,transparent); }
.pf-zoom__line--short { width: 54%; }
.pf-zoom__previewgrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: auto; }
.pf-zoom__previewgrid span { height: 70px; border-radius: 10px; background: color-mix(in srgb,#fff 5%,transparent); border: 1px solid color-mix(in srgb,#fff 7%,transparent); }
.pf-zoom__enter {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.55);
  opacity: clamp(0, calc(1 - var(--sp, 0) / .12), 1);
}
.pf-zoom__enter svg { width: 14px; height: 14px; }
/* what you arrive at: the About panel materialises as the window dissolves */
.pf-zoom__about {
  position: absolute; inset: 0; display: grid; align-items: center;
  opacity: clamp(0, calc((var(--sp, 0) - .5) / .22), 1);
  transform: translateY(calc((1 - clamp(0, calc((var(--sp, 0) - .42) / .34), 1)) * 46px));
  will-change: transform, opacity;
}
.pf-zoom__aboutgrid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.pf-zoom__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -0.03em; color: var(--text-strong); margin: 16px 0 0; }
.pf-zoom__title em { font-family: var(--font-serif); font-style: italic; font-weight: 300; color: var(--aqua-300); }
.pf-zoom__copy { font-size: 16.5px; line-height: 1.62; color: var(--text-muted); margin: 18px 0 0; max-width: 52ch; }
.pf-zoom__copy b { color: var(--text-body); font-weight: 600; }
.pf-zoom__stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.pf-zoom__chip { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); padding: 6px 12px; border-radius: var(--radius-pill); border: 1px solid var(--border-subtle); background: color-mix(in srgb,#fff 3%,transparent); }
.pf-zoom__facts { display: flex; flex-direction: column; gap: 14px; }
.pf-zoom__fact { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius-lg); border: 1px solid var(--border-subtle); background: color-mix(in srgb,#fff 3%,transparent); }
.pf-zoom__facticon { width: 40px; height: 40px; flex: none; border-radius: var(--radius-md); display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb,var(--aqua-500) 16%,transparent); color: var(--aqua-300); }
.pf-zoom__facticon svg { width: 19px; height: 19px; }
.pf-zoom__fact b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--text-strong); margin-bottom: 4px; }
.pf-zoom__fact span { font-size: 13.5px; line-height: 1.5; color: var(--text-muted); }

.pf-about-immersive {
  margin-top: clamp(24px, 5vw, 80px);
}
.pf-about-immersive .pf-zoom__sticky {
  background:
    radial-gradient(44% 32% at 50% 46%, color-mix(in srgb, var(--aqua-500) 12%, transparent), transparent 72%),
    linear-gradient(to bottom, transparent 0%, color-mix(in srgb, #000 10%, transparent) 50%, transparent 100%);
}
.pf-about-immersive__frame {
  width: min(960px, 84vw);
  aspect-ratio: 16 / 9;
  transform:
    rotateX(calc((1 - min(1, var(--sp, 0) / .48)) * 8deg))
    rotateY(calc((1 - min(1, var(--sp, 0) / .48)) * -5deg))
    scale(calc(0.58 + var(--sp, 0) * 1.58));
}
.pf-about-immersive__screen {
  padding: 0;
}
.pf-about-scene {
  position: relative;
  flex: 1;
  min-height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--aqua-400) 16%, transparent), transparent 34%),
    linear-gradient(90deg, color-mix(in srgb, #fff 4%, transparent) 1px, transparent 1px),
    linear-gradient(0deg, color-mix(in srgb, #fff 4%, transparent) 1px, transparent 1px);
  background-size: auto, 72px 72px, 72px 72px;
}
.pf-about-scene__ring {
  position: absolute;
  inset: 12%;
  border: 1px solid color-mix(in srgb, #fff 12%, transparent);
  border-radius: 50%;
  transform: rotate(calc(var(--sp, 0) * 82deg)) scale(calc(0.92 + var(--sp, 0) * .1));
}
.pf-about-scene__ring--two {
  inset: 21% 27%;
  border-style: dashed;
  opacity: .72;
  transform: rotate(calc(var(--sp, 0) * -120deg)) scale(calc(1.05 - var(--sp, 0) * .12));
}
.pf-about-scene__line {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46%;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--aqua-300) 58%, transparent), transparent);
  transform-origin: left center;
  opacity: .62;
}
.pf-about-scene__line--a { transform: rotate(calc(22deg + var(--sp, 0) * 30deg)); }
.pf-about-scene__line--b { transform: rotate(calc(148deg - var(--sp, 0) * 26deg)); }
.pf-about-scene__core,
.pf-about-scene__node {
  position: absolute;
  border: 1px solid color-mix(in srgb, #fff 12%, transparent);
  background: color-mix(in srgb, var(--neutral-950) 46%, transparent);
  backdrop-filter: blur(14px);
  box-shadow: 0 22px 60px -38px rgba(0,0,0,.8);
}
.pf-about-scene__core {
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 230px;
  height: 112px;
  padding: 18px;
  border-radius: var(--radius-xl);
  transform: translate(-50%, -50%) scale(calc(.92 + var(--sp, 0) * .1));
}
.pf-about-scene__core span {
  font-family: var(--font-display);
  font-weight: 800;
  color: #fff;
  font-size: 24px;
}
.pf-about-scene__core b {
  color: var(--aqua-300);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.pf-about-scene__node {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 8px 12px;
  align-items: center;
  min-width: 176px;
  padding: 14px;
  border-radius: var(--radius-lg);
  transform: translate3d(
    calc(var(--dx, 0px) + (var(--sp, 0) * var(--sx, 0px))),
    calc(var(--dy, 0px) + (var(--sp, 0) * var(--sy, 0px))),
    0
  );
}
.pf-about-scene__node svg {
  grid-row: span 2;
  width: 22px;
  height: 22px;
  color: var(--aqua-300);
}
.pf-about-scene__node b {
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
}
.pf-about-scene__node span {
  color: rgba(255,255,255,.56);
  font-size: 12px;
}
.pf-about-scene__node--client {
  left: 12%;
  top: 18%;
  --dx: 0px;
  --dy: 0px;
  --sx: -22px;
  --sy: 34px;
}
.pf-about-scene__node--product {
  right: 10%;
  top: 24%;
  --dx: 0px;
  --dy: 0px;
  --sx: 24px;
  --sy: 26px;
}
.pf-about-scene__node--stack {
  left: 50%;
  bottom: 13%;
  --dx: -50%;
  --dy: 0px;
  --sx: 0px;
  --sy: -34px;
}
@media (max-width: 920px) {
  .pf-zoom { height: 260vh; }
  .pf-zoom__aboutgrid { grid-template-columns: 1fr; gap: 28px; }
  .pf-zoom__facts { display: none; } /* keep the arrival panel calm on small screens */
  .pf-about-scene__node {
    min-width: 138px;
    padding: 12px;
  }
  .pf-about-scene__core {
    width: 190px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pf-zoom { height: auto; }
  .pf-zoom__sticky { position: relative; height: auto; min-height: 80vh; padding-block: var(--section-y); }
  .pf-zoom__frame { display: none; }
  .pf-zoom__about { position: relative; opacity: 1; transform: none; }
}

/* ---------- DIRECTIONAL + ROTATIONAL REVEALS (ordered) ---------- */
/* the flagship rises with a hair of tilt that settles */
.pf-flag.pf-reveal { transform: translateY(var(--pf-rise, 26px)) scale(.985); }
.pf-flag.pf-reveal.is-in { transform: none; }
/* index rows enter one-by-one, each nudged in from the thread */
.pf-wrow.pf-reveal { transform: translateY(var(--pf-rise, 26px)) translateX(-18px); }
.pf-wrow.pf-reveal.is-in { transform: none; }
/* service + step cards lift with a hair of rotation */
.pf-service.pf-reveal { transform: translateY(var(--pf-rise, 26px)) rotate(-1deg); }
.pf-service.pf-reveal.is-in { transform: none; }
.pf-step.pf-reveal .pf-step__n { display: inline-block; transition: transform var(--pf-reveal-dur,.85s) var(--ease-spring) calc(var(--i,0)*110ms + .1s); transform: translateY(8px) rotate(-8deg); }
.pf-step.pf-reveal.is-in .pf-step__n { transform: none; }
/* stat numbers swing up into place */
.pf-stat.pf-reveal { transform: translateY(var(--pf-rise, 26px)) scale(.96); }
.pf-stat.pf-reveal.is-in { transform: none; }
.pf-noreveal .pf-flag, .pf-noreveal .pf-wrow, .pf-noreveal .pf-service, .pf-noreveal .pf-stat,
.pf-noreveal .pf-step__n { transform: none !important; }

/* ---------- AMBIENT ROTATION (scroll-linked + slow spin) ---------- */
/* backdrop arcs swing further with scroll for a felt sense of motion */
.pf-bd-arc--1 { transform: rotate(calc(var(--p) * 70deg)) translateY(calc(var(--p) * -70px)); }
.pf-bd-arc--2 { transform: rotate(calc(var(--p) * -55deg)) translateX(calc(var(--p) * 80px)); }
.pf-bd-arc--3 { transform: rotate(calc(var(--p) * 26deg)) scale(calc(1 + var(--p) * 0.45)); }
/* the contact rings rotate slowly, a quiet living detail */
.pf-contact__arc { animation: pf-spin 48s linear infinite; }
.pf-contact__arc::before { animation: pf-spin 32s linear infinite reverse; }
@keyframes pf-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pf-contact__arc, .pf-contact__arc::before { animation: none; } }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .pf-stats { grid-template-columns: repeat(2, 1fr); }
  .pf-process { grid-template-columns: 1fr 1fr; }
  .pf-contact__grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 860px) {
  .pf-flag { grid-template-columns: 1fr; }
  .pf-flag__media { aspect-ratio: 16/10; }
}
@media (max-width: 640px) {
  .pf-wrow { grid-template-columns: 1fr auto; gap: 6px 16px; padding: 22px 4px 22px 36px; }
  .pf-wrow__node { left: 12px; }
  .pf-worklist__rail { left: 12px; }
  .pf-wrow__idx { grid-column: 1 / -1; padding: 0; }
  .pf-wrow__main { grid-column: 1; }
  .pf-wrow__blurb { display: block; }
  .pf-wrow__meta { grid-column: 1; flex-direction: row; align-items: center; text-align: left; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
  .pf-wrow__arrow { position: absolute; right: 4px; top: 22px; }
}
@media (max-width: 560px) {
  .pf-process { grid-template-columns: 1fr; }
  .pf-hero__metric { flex-direction: column; align-items: flex-start; gap: 8px; }
  .pf-hero__metric-num { text-align: left; min-width: 0; }
}

/* ---------- ABOUT FLIGHT: dark passage into a white "chi sono" ---------- */
.pf-about-flight {
  height: 320vh;
  margin-top: 40px;
  background: var(--neutral-950);
}
.pf-about-flight .pf-zoom__sticky {
  isolation: isolate;
  background: var(--neutral-950);
}
.pf-about-flight .pf-zoom__sticky::before,
.pf-about-flight .pf-zoom__sticky::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.pf-about-flight .pf-zoom__sticky::before {
  background:
    radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--aqua-400) 12%, transparent), transparent 34%),
    radial-gradient(circle at 16% 80%, color-mix(in srgb, #fff 5%, transparent), transparent 34%),
    var(--neutral-950);
  opacity: clamp(0, calc(1 - ((var(--sp, 0) - .34) / .24)), 1);
}
.pf-about-flight .pf-zoom__sticky::after {
  background:
    radial-gradient(circle at 78% 14%, color-mix(in srgb, var(--aqua-300) 18%, transparent), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f7fbfb 100%);
  opacity: clamp(0, calc((var(--sp, 0) - .36) / .22), 1);
}
.pf-flight-window {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  opacity: clamp(0, calc(1 - ((var(--sp, 0) - .48) / .18)), 1);
  transform: translateY(calc(var(--sp, 0) * -28px));
  will-change: opacity, transform;
}
.pf-flight-window__shell {
  width: 330px;
  height: 500px;
  padding: 22px;
  border-radius: calc(180px - var(--sp, 0) * 120px);
  background:
    linear-gradient(145deg, color-mix(in srgb, #fff 16%, transparent), transparent 30%),
    linear-gradient(160deg, #2a2d2f 0%, #111315 64%, #060708 100%);
  border: 1px solid color-mix(in srgb, #fff 16%, transparent);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, #fff 7%, transparent),
    inset 0 -38px 80px rgba(0,0,0,.48),
    0 70px 140px -76px rgba(0,0,0,.9);
  transform:
    rotateX(calc((1 - min(1, var(--sp, 0) / .45)) * 8deg))
    scale(calc(.74 + var(--sp, 0) * 3.8));
  transform-origin: center;
  will-change: transform;
}
.pf-flight-window__glass {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: calc(150px - var(--sp, 0) * 104px);
  background:
    linear-gradient(180deg, #e9fbff 0%, #ffffff 52%, #eefaf8 100%);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--aqua-500) 18%, transparent),
    inset 0 24px 80px color-mix(in srgb, var(--aqua-300) 20%, transparent);
}
.pf-flight-window__glow {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: color-mix(in srgb, var(--aqua-300) 26%, transparent);
  filter: blur(28px);
  transform: translateY(calc(var(--sp, 0) * -34px)) scale(calc(1 + var(--sp, 0) * .35));
}
.pf-flight-window__horizon {
  position: absolute;
  left: -18%;
  right: -18%;
  top: 53%;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--aqua-500) 44%, transparent), transparent);
  transform: rotate(-7deg) translateY(calc(var(--sp, 0) * -42px));
}
.pf-flight-window__cloud {
  position: absolute;
  width: 190px;
  height: 52px;
  border-radius: 999px;
  background: rgba(255,255,255,.76);
  filter: blur(.2px);
  box-shadow:
    38px -15px 0 4px rgba(255,255,255,.62),
    82px 4px 0 -8px rgba(255,255,255,.68);
}
.pf-flight-window__cloud--one {
  left: -38px;
  top: 34%;
  transform: translateX(calc(var(--sp, 0) * -90px));
}
.pf-flight-window__cloud--two {
  right: -70px;
  top: 62%;
  opacity: .72;
  transform: translateX(calc(var(--sp, 0) * 86px)) scale(.86);
}
.pf-flight-window__thread {
  position: absolute;
  height: 1px;
  width: 72%;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--aqua-600) 44%, transparent), transparent);
  opacity: .54;
}
.pf-flight-window__thread--one {
  left: 12%;
  top: 28%;
  transform: rotate(23deg) translateX(calc(var(--sp, 0) * 50px));
}
.pf-flight-window__thread--two {
  left: 16%;
  bottom: 25%;
  transform: rotate(-16deg) translateX(calc(var(--sp, 0) * -42px));
}
.pf-flight-window__hint {
  position: absolute;
  left: 50%;
  bottom: 48px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transform: translateX(-50%);
  color: rgba(255,255,255,.62);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: clamp(0, calc(1 - (var(--sp, 0) / .18)), 1);
}
.pf-flight-window__hint svg { width: 15px; height: 15px; }

/* the framing line that introduces the act-break, then dissolves as you fly in */
.pf-flight-lead {
  position: absolute;
  z-index: 3;
  top: clamp(48px, 13vh, 120px);
  left: 0; right: 0;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  pointer-events: none;
  opacity: clamp(0, calc(1 - (var(--sp, 0) / .16)), 1);
  transform: translateY(calc(var(--sp, 0) * -26px));
  will-change: opacity, transform;
}
.pf-flight-lead .pf__eyebrow { color: rgba(255,255,255,.6); }
.pf-flight-lead__title {
  margin: 16px 0 0;
  font-family: var(--font-display); font-weight: 800; color: #fff;
  font-size: clamp(28px, 4vw, 52px); line-height: 1.05; letter-spacing: -.03em;
}
.pf-flight-lead__title em { font-family: var(--font-serif); font-style: italic; font-weight: 300; color: var(--aqua-300); }

/* a destination to fly toward — the person waiting on the other side of the glass */
.pf-flight-window__dest {
  position: absolute; left: 50%; top: 47%; z-index: 2;
  display: grid; place-items: center; gap: 10px;
  transform: translate(-50%, -50%) scale(calc(.84 + var(--sp, 0) * .34));
  opacity: clamp(0, calc((var(--sp, 0) - .08) / .2), 1);
}
.pf-flight-window__destring {
  position: absolute; width: 132px; height: 132px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--emerald-700) 30%, transparent);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--aqua-400) 10%, transparent);
  transform: scale(calc(1 + var(--sp, 0) * .25));
}
.pf-flight-window__destcore {
  display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%;
  background: #111315; color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 24px;
  box-shadow: 0 18px 40px -18px rgba(17,19,21,.6);
}
.pf-flight-window__dest b {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--emerald-700); font-weight: 600;
}
@media (max-width: 980px) { .pf-flight-lead { display: none; } }
.pf-about-flight .pf-zoom__about {
  z-index: 3;
  min-height: 100vh;
  color: #111315;
  opacity: clamp(0, calc((var(--sp, 0) - .52) / .2), 1);
  transform: translateY(calc((1 - clamp(0, calc((var(--sp, 0) - .48) / .28), 1)) * 42px));
}
.pf-about-arrival {
  --text-strong: #111315;
  --text-body: #23282b;
  --text-muted: #5e676c;
  --text-subtle: #7b858b;
  --border-subtle: rgba(17,19,21,.11);
  --border-default: rgba(17,19,21,.18);
}
.pf-about-arrival__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 76px;
  align-items: center;
}
.pf-about-arrival__copy h2 {
  margin: 18px 0 0;
  max-width: 760px;
  color: #111315;
  font-family: var(--font-display);
  font-size: 62px;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0;
}
.pf-about-arrival__copy h2 em {
  color: var(--emerald-700);
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: italic;
}
.pf-about-arrival__copy p {
  max-width: 61ch;
  margin: 22px 0 0;
  color: #4c555a;
  font-size: 17px;
  line-height: 1.68;
}
.pf-about-arrival__copy p b { color: #111315; }
.pf-about-arrival__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}
.pf-about-arrival__chips span {
  padding: 7px 12px;
  border: 1px solid rgba(17,19,21,.12);
  border-radius: var(--radius-pill);
  color: #4f5a5e;
  background: rgba(255,255,255,.7);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.pf-about-portrait {
  position: relative;
  display: grid;
  gap: 18px;
}
.pf-about-portrait__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 34% 34% 10px 10px;
  background:
    radial-gradient(circle at 56% 22%, color-mix(in srgb, var(--aqua-300) 42%, transparent), transparent 28%),
    linear-gradient(180deg, #f4fbfb, #e9f2ef);
  border: 1px solid rgba(17,19,21,.12);
  box-shadow: 0 48px 110px -70px rgba(17,19,21,.42);
}
.pf-about-portrait__frame::before {
  content: '';
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(17,19,21,.12);
  border-radius: 32% 32% 8px 8px;
}
.pf-about-portrait__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: #111315;
}
.pf-about-portrait__placeholder span {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: #111315;
  color: #fff;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0;
}
.pf-about-portrait__placeholder small {
  color: #687278;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.pf-about-portrait__caption {
  display: grid;
  gap: 5px;
  padding-left: 18px;
  border-left: 1px solid rgba(17,19,21,.18);
}
.pf-about-portrait__caption b {
  color: #111315;
  font-family: var(--font-display);
  font-size: 15px;
}
.pf-about-portrait__caption span {
  color: #687278;
  font-size: 13.5px;
  line-height: 1.45;
}
.pf-about-arrival__proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 58px;
}
.pf-about-arrival__proof article {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 6px 14px;
  padding: 20px;
  border: 1px solid rgba(17,19,21,.1);
  border-radius: 8px;
  background: rgba(255,255,255,.72);
}
.pf-about-arrival__proof svg {
  grid-row: span 2;
  width: 20px;
  height: 20px;
  color: var(--emerald-700);
  margin-top: 2px;
}
.pf-about-arrival__proof b {
  color: #111315;
  font-family: var(--font-display);
  font-size: 15px;
}
.pf-about-arrival__proof span {
  color: #657075;
  font-size: 13.5px;
  line-height: 1.5;
}

/* ---------- WHITE CONTACT LANDING ---------- */
.pf-contact-light,
.pf-footer-light {
  --text-strong: #111315;
  --text-body: #23282b;
  --text-muted: #687278;
  --text-subtle: #858f94;
  --border-subtle: rgba(17,19,21,.1);
  --border-default: rgba(17,19,21,.18);
  position: relative;
  z-index: 2;
  color: #23282b;
  background: #ffffff;
}
.pf-contact-light {
  overflow: hidden;
  padding: 120px 0 92px;
}
.pf-contact-light::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 10%, color-mix(in srgb, var(--aqua-300) 18%, transparent), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #f7fbfb 100%);
}
.pf-contact-light__word {
  position: relative;
  z-index: 1;
  height: 190px;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
}
.pf-contact-light__word span {
  color: rgba(17,19,21,.08);
  font-family: var(--font-display);
  font-size: 58px;
  font-weight: 800;
  line-height: .9;
  letter-spacing: 0;
  white-space: nowrap;
  transform: scale(calc(.48 + var(--sp, 0) * 4.2));
  transform-origin: center;
  will-change: transform;
}
.pf-contact-card {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 48px;
  align-items: center;
  padding: 38px;
  border-radius: 8px;
  border: 1px solid rgba(17,19,21,.12);
  background: rgba(255,255,255,.86);
  box-shadow: 0 44px 120px -88px rgba(17,19,21,.56);
}
.pf-contact-card__copy h2 {
  margin: 16px 0 0;
  color: #111315;
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0;
}
.pf-contact-card__copy p {
  max-width: 54ch;
  margin: 16px 0 0;
  color: #5d676d;
  font-size: 16px;
  line-height: 1.62;
}
.pf-contact-card__actions {
  display: grid;
  gap: 12px;
  justify-items: stretch;
}
.pf-contact-card__mail,
.pf-contact-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 650;
}
.pf-contact-card__mail {
  border: 1px solid rgba(17,19,21,.14);
  color: #23282b;
  background: #fff;
}
.pf-contact-card__button {
  color: #fff;
  background: #111315;
}
.pf-contact-card__mail svg,
.pf-contact-card__button svg {
  width: 17px;
  height: 17px;
}
.pf-contact-card__button:hover { background: var(--emerald-700); }
.pf-footer-light {
  border-top: 1px solid rgba(17,19,21,.1);
}
.pf-footer-light .pf-footer__brand img { filter: invert(1); }
.pf-footer-light .pf-footer__brand b,
.pf-footer-light .pf-footer__links a:hover { color: #111315; }
.pf-footer-light .pf-footer__links a,
.pf-footer-light .pf-footer__meta { color: #687278; }

@media (max-width: 980px) {
  .pf-about-flight { height: auto; }
  .pf-about-flight .pf-zoom__sticky {
    position: relative;
    min-height: auto;
    height: auto;
    padding: 120px 0 88px;
  }
  .pf-flight-window { display: none; }
  .pf-about-flight .pf-zoom__about {
    position: relative;
    opacity: 1;
    transform: none;
    min-height: auto;
  }
  .pf-about-arrival__grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }
  .pf-about-arrival__copy h2 { font-size: 44px; }
  .pf-about-portrait {
    max-width: 380px;
  }
  .pf-about-arrival__proof {
    grid-template-columns: 1fr;
    margin-top: 38px;
  }
  .pf-contact-card {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .pf-about-arrival__copy h2 { font-size: 36px; }
  .pf-about-arrival__copy p { font-size: 15.5px; }
  .pf-contact-light { padding: 82px 0 68px; }
  .pf-contact-light__word { height: 118px; }
  .pf-contact-light__word span { font-size: 42px; }
  .pf-contact-card { padding: 24px; }
  .pf-contact-card__copy h2 { font-size: 34px; }
  .pf-contact-card__mail span {
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ---------- 2026 portfolio refinement ---------- */

/* Compact section navigator: useful context without becoming a second menu. */
.pf-rail {
  left: 18px;
  width: 76px;
  height: 338px;
  max-height: none;
  padding: 13px 10px 15px;
  flex-direction: column;
  gap: 14px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background: rgba(18,18,19,.72);
  box-shadow: 0 18px 50px -28px rgba(0,0,0,.8);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  transition: color .25s var(--ease-out), background .25s var(--ease-out), border-color .25s var(--ease-out);
}
.pf-rail__meta { display: grid; gap: 3px; min-height: 38px; }
.pf-rail__meta span { color: var(--aqua-300); font-family: var(--font-mono); font-size: 10px; }
.pf-rail__meta b { color: #fff; font-family: var(--font-display); font-size: 11px; font-weight: 650; white-space: nowrap; }
.pf-rail__body { position: relative; width: 100%; flex: 1; min-height: 0; }
.pf-rail__track { position: absolute; left: 5px; top: 0; bottom: 0; width: 1px; height: auto; }
.pf-rail__dots { position: absolute; inset: 0; width: 100%; height: 100%; }
.pf-rail__dot { left: 2px; gap: 12px; }
.pf-rail__dot i { width: 7px; height: 7px; }
.pf-rail__dot span {
  padding: 4px 7px;
  border-radius: 4px;
  color: rgba(255,255,255,.76);
  background: rgba(18,18,19,.9);
  font-size: 9px;
  opacity: 0;
  transform: translateX(-3px);
}
.pf-rail__dot.is-active i { transform: scale(1.35); box-shadow: 0 0 0 4px color-mix(in srgb, var(--aqua-400) 13%, transparent); }
.pf-rail__dot.is-active span { opacity: 0; }
.pf-rail__dot:hover span { opacity: 1; transform: none; }
.pf-rail.is-light {
  background: rgba(255,255,255,.82);
  border-color: rgba(17,19,21,.12);
  box-shadow: 0 18px 50px -30px rgba(17,19,21,.32);
}
.pf-rail.is-light .pf-rail__meta span { color: var(--emerald-700); }
.pf-rail.is-light .pf-rail__meta b { color: #111315; }
.pf-rail.is-light .pf-rail__dot span { color: #111315; background: rgba(255,255,255,.94); }

/* Hero and navigation stay stable before and after the first scroll. */
.pf-hero__display,
.pf-section__title,
.pf-flag__title,
.pf-wrow__title,
.pf-cs__title,
.pf-cs__next-title,
.pf-flight-lead__title { letter-spacing: 0; }
.pf-hero__canvas { contain: strict; }
.pf-nav-shell.is-scrolled .pf-nav { background: rgba(18,18,19,.88); }
.pf-project-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
  transition: transform .75s var(--ease-soft), filter .3s var(--ease-out);
}
.pf-flag:hover .pf-project-image { transform: scale(1.025); }
.pf-flag__media .pf-project-image { object-position: top left; }
.pf-follow__card .pf-project-image { object-position: center; }
.pf-cs__shot:nth-child(2) .pf-project-image { object-fit: contain; background: #eef3f1; }

/* The white arrival introduces the person without an unfinished photo slot. */
.pf-about-flight { height: 260vh; }
.pf-about-identity {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-radius: 8px;
  color: #fff;
  background: #111315;
  border-color: rgba(17,19,21,.08);
}
.pf-about-identity::before { display: none; }
.pf-about-identity__top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.pf-about-identity__mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 800;
}
.pf-about-identity__status { display: inline-flex; align-items: center; gap: 7px; color: rgba(255,255,255,.64); font-size: 11px; }
.pf-about-identity__status i { width: 7px; height: 7px; border-radius: 50%; background: var(--aqua-400); box-shadow: 0 0 0 4px color-mix(in srgb, var(--aqua-400) 12%, transparent); }
.pf-about-identity__body { display: grid; gap: 16px; }
.pf-about-identity__body small { color: var(--aqua-300); font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; }
.pf-about-identity__body strong { color: #fff; font-family: var(--font-display); font-size: clamp(34px, 3vw, 48px); line-height: 1.02; }
.pf-about-identity__body p { margin: 0; color: rgba(255,255,255,.62); font-size: 14px; line-height: 1.55; }
.pf-about-identity__links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pf-about-identity__links a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 6px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 12px;
  transition: background .2s var(--ease-out), border-color .2s var(--ease-out);
}
.pf-about-identity__links a:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.24); }
.pf-about-identity__links svg { width: 14px; height: 14px; color: var(--aqua-300); }
.pf-about-photo {
  position: relative;
  padding: 0;
  border-radius: 8px;
  background: #111315;
}
.pf-about-photo::before { display: none; }
.pf-about-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,12,12,.2) 0%, transparent 42%, rgba(10,12,12,.72) 100%);
  pointer-events: none;
}
.pf-about-photo > img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 48%; }
.pf-about-photo__top {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pf-about-photo__top .pf-about-identity__mark { color: #fff; background: rgba(17,19,21,.58); backdrop-filter: blur(8px); }
.pf-about-photo__top .pf-about-identity__status { padding: 7px 10px; border-radius: 999px; color: rgba(255,255,255,.82); background: rgba(17,19,21,.58); backdrop-filter: blur(8px); }
.pf-about-photo__links {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  bottom: 18px;
}
.pf-about-photo__links a { background: rgba(17,19,21,.58); backdrop-filter: blur(8px); }

.pf-experience {
  position: relative;
  z-index: 2;
  padding: 112px 0 126px;
  color: #23282b;
  background: #fff;
}
.pf-experience__head { display: grid; grid-template-columns: .65fr 1.35fr; gap: 42px; align-items: start; }
.pf-experience__head h2 {
  margin: 0;
  color: #111315;
  font-family: var(--font-display);
  font-size: clamp(38px, 4.5vw, 62px);
  font-weight: 800;
  line-height: 1.03;
}
.pf-experience__head h2 em { color: var(--emerald-700); font-family: var(--font-serif); font-style: italic; font-weight: 300; }
.pf-experience__list { margin-top: 72px; border-top: 1px solid rgba(17,19,21,.15); }
.pf-experience__row {
  display: grid;
  grid-template-columns: .62fr 1fr 1.35fr;
  gap: 42px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid rgba(17,19,21,.13);
}
.pf-experience__period { color: #75807b; font-family: var(--font-mono); font-size: 11px; }
.pf-experience__row h3 { margin: 0; color: #111315; font-family: var(--font-display); font-size: 20px; line-height: 1.22; }
.pf-experience__row b { display: block; margin-top: 7px; color: var(--emerald-700); font-family: var(--font-display); font-size: 12px; font-weight: 650; }
.pf-experience__row p { max-width: 56ch; margin: 0; color: #64706a; font-size: 14px; line-height: 1.58; }

/* Contact: an editorial endpoint for recruiters, clients and collaborators. */
.pf-contact-light {
  padding: 116px 0 100px;
  overflow: hidden;
  background: #f4f7f5;
  border-top: 1px solid rgba(17,19,21,.09);
}
.pf-contact-light::before { display: none; }
.pf-contact-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid rgba(17,19,21,.14);
}
.pf-contact-head__index { color: #7a8580; font-family: var(--font-mono); font-size: 11px; }
.pf-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr);
  gap: clamp(54px, 8vw, 120px);
  align-items: end;
  margin-top: 72px;
}
.pf-contact-copy h2 {
  max-width: 760px;
  margin: 0;
  color: #111315;
  font-family: var(--font-display);
  font-size: clamp(44px, 5.5vw, 76px);
  font-weight: 800;
  line-height: 1.02;
}
.pf-contact-copy h2 em { color: var(--emerald-700); font-family: var(--font-serif); font-style: italic; font-weight: 300; }
.pf-contact-copy > p { max-width: 62ch; margin: 28px 0 0; color: #56615d; font-size: 17px; line-height: 1.66; }
.pf-contact-copy__meta { display: flex; flex-wrap: wrap; gap: 18px 28px; margin-top: 34px; }
.pf-contact-copy__meta span { display: inline-flex; align-items: center; gap: 8px; color: #37413d; font-size: 13px; }
.pf-contact-copy__meta svg { width: 16px; height: 16px; color: var(--emerald-700); }
.pf-contact-list { border-top: 1px solid rgba(17,19,21,.16); }
.pf-contact-list > a {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 18px;
  gap: 14px;
  align-items: center;
  min-height: 76px;
  border-bottom: 1px solid rgba(17,19,21,.14);
  color: #111315;
  transition: padding .25s var(--ease-soft), color .2s var(--ease-out);
}
.pf-contact-list > a:hover { padding-inline: 8px; color: var(--emerald-700); }
.pf-contact-list__icon { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid rgba(17,19,21,.13); border-radius: 50%; }
.pf-contact-list__icon svg, .pf-contact-list > a > svg { width: 16px; height: 16px; }
.pf-contact-list > a > span:nth-child(2) { display: grid; gap: 3px; min-width: 0; }
.pf-contact-list small { color: #7a8580; font-size: 10px; text-transform: uppercase; }
.pf-contact-list b { overflow: hidden; color: currentColor; font-family: var(--font-display); font-size: 14px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.pf-contact-list__cv { color: var(--emerald-700) !important; }

.pf-dialog-contacts { display: grid; gap: 8px; }
.pf-dialog-contacts > a {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 18px;
  gap: 12px;
  align-items: center;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
  color: var(--text-body);
  transition: border-color .2s var(--ease-out), background .2s var(--ease-out);
}
.pf-dialog-contacts > a:hover { border-color: var(--aqua-400); background: color-mix(in srgb, var(--aqua-500) 8%, transparent); }
.pf-dialog-contacts svg { width: 17px; height: 17px; }
.pf-dialog-contacts span { display: grid; gap: 2px; min-width: 0; }
.pf-dialog-contacts small { color: var(--text-subtle); font-size: 10px; text-transform: uppercase; }
.pf-dialog-contacts b { overflow: hidden; color: var(--text-strong); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 980px) {
  .pf-about-flight { height: auto; }
  .pf-experience__head { grid-template-columns: 1fr; }
  .pf-experience__row { grid-template-columns: .45fr 1fr; }
  .pf-experience__row p { grid-column: 2; }
  .pf-contact-grid { grid-template-columns: 1fr; align-items: start; }
  .pf-contact-list { max-width: 620px; }
}

@media (max-width: 720px) {
  .pf-nav-shell { padding: 10px 12px; }
  .pf-nav {
    width: 100%;
    max-width: none;
    justify-content: space-between;
    gap: 8px;
    background: rgba(18,18,19,.72);
    border-color: rgba(255,255,255,.1);
    box-shadow: 0 12px 34px -22px rgba(0,0,0,.78);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
  }
  .pf-nav__brand, .pf-nav__cta { transform: none !important; }
  .pf-nav__brand { padding: 7px 9px; }
  .pf-nav__cta { padding: 9px 12px; }
  .pf-hero__content { padding-top: 74px; }
  .pf-hero__display { font-size: clamp(39px, 12vw, 58px); max-width: 12ch; }
  .pf-hero__display { margin-top: 18px; }
  .pf-hero__lead { max-width: 34ch; margin: 18px auto 22px; }
  .pf-hero__cta { flex-wrap: nowrap; gap: 8px; }
  .pf-hero__cta .sn-btn { padding-inline: 17px; }
  .pf-work__bar { min-width: 0; }
  .pf-work__bar .sn-tabs {
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .pf-work__bar .sn-tabs::-webkit-scrollbar { display: none; }
  .pf-work__bar .sn-tab { flex: 0 0 auto; }
  .pf-flag { width: 100%; max-width: 100%; }
  .pf-footer__links { flex-wrap: wrap; }
  .pf-contact-light { padding: 82px 0 72px; }
  .pf-experience { padding: 84px 0 92px; }
  .pf-experience__list { margin-top: 48px; }
  .pf-experience__row { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; }
  .pf-experience__row p { grid-column: 1; margin-top: 4px; }
  .pf-contact-grid { margin-top: 48px; gap: 46px; }
  .pf-contact-copy h2 { font-size: 42px; }
  .pf-contact-copy > p { font-size: 15.5px; }
  .pf-contact-copy__meta { display: grid; gap: 12px; }
}

@media (max-width: 430px) {
  .pf-nav__brand b { font-size: 14px; }
  .pf-nav__cta { font-size: 12px; }
  .pf-nav__cta svg { display: none; }
  .pf-about-identity { min-height: 460px; padding: 20px; }
  .pf-about-identity__links { grid-template-columns: 1fr; }
  .pf-contact-copy h2 { font-size: 36px; }
  .pf-contact-list > a { grid-template-columns: 34px minmax(0, 1fr) 16px; gap: 10px; }
}

/* ============================================================
   PORTFOLIO V3 — content-first structure and responsive polish
   ============================================================ */

.pf button:focus-visible,
.pf a:focus-visible { outline: 2px solid var(--aqua-300); outline-offset: 3px; }

/* Navigation */
.pf-nav-shell { padding: 14px clamp(14px, 2.6vw, 36px); }
.pf-nav {
  width: min(100%, 1040px);
  max-width: none;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 8px;
  background: rgba(18,18,19,.76);
  box-shadow: 0 18px 46px -28px rgba(0,0,0,.88);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}
.pf-nav-shell.is-scrolled .pf-nav { background: rgba(18,18,19,.88); }
.pf-nav__brand,
.pf-nav__cta { transform: none !important; }
.pf-nav__brand { gap: 10px; padding: 5px 8px; text-align: left; }
.pf-nav__brand > span:last-child { display: grid; gap: 1px; }
.pf-nav__brand b { font-size: 13px; }
.pf-nav__brand small { color: rgba(255,255,255,.48); font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; }
.pf-nav__monogram {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 6px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
}
.pf-nav__links { padding: 0; border: 0; background: transparent; backdrop-filter: none; }
.pf-nav__link { padding: 9px 10px; border-radius: 6px; font-size: 12px; }
.pf-nav__link.is-active::after { left: 10px; right: 10px; bottom: 3px; }
.pf-nav__cta { padding: 9px 13px; border-radius: 6px; }
.pf-nav__menu { display: none; }
.pf-mobile-menu { display: none; }

/* Hero */
.pf-hero { min-height: 100svh; padding: 128px 0 104px; }
.pf-hero__content { padding-top: 0; }
.pf-hero__display { max-width: 14ch; margin-top: 22px; font-size: clamp(46px, 6.1vw, 86px); line-height: 1.03; }
.pf-hero__display .pf-hero__line { display: block; }
.pf-hero__lead { max-width: 54ch; }
.pf-hero__eyebrow { border-radius: 999px; }
.pf-hero__veil {
  background:
    radial-gradient(50% 42% at 50% 45%, rgba(18,18,19,.48), transparent 74%),
    linear-gradient(to bottom, rgba(18,18,19,.08), transparent 58%, var(--neutral-950) 100%);
}

/* Proof */
.pf-stats { grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 5vw, 72px); }
.pf-stat { min-width: 0; }
.pf-stat__num { font-size: clamp(32px, 4vw, 48px); }

/* Selected work */
.pf-work2__head { position: relative; max-width: 70ch; }
.pf-work2__count {
  display: inline-flex;
  margin-top: 24px;
  padding: 7px 10px;
  border: 1px solid var(--border-subtle);
  border-radius: 5px;
  color: var(--text-subtle);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}
.pf-project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.pf-project-card { min-width: 0; }
.pf-project-card--wide { grid-column: 1 / -1; }
.pf-project-card__button {
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: inherit;
  background: rgba(255,255,255,.025);
  cursor: pointer;
  text-align: left;
  transition: transform .35s var(--ease-soft), border-color .25s var(--ease-out), background .25s var(--ease-out);
}
.pf-project-card__button:hover { transform: translateY(-4px); border-color: var(--border-default); background: rgba(255,255,255,.045); }
.pf-project-card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
  background: #0b0c0d;
}
.pf-project-card__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(4,5,5,.04), rgba(4,5,5,.42)); pointer-events: none; }
.pf-project-card__media .pf-project-image { object-position: top center; }
.pf-project-card--wide .pf-project-card__button { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); }
.pf-project-card--wide .pf-project-card__media { height: 100%; min-height: 430px; aspect-ratio: auto; border-right: 1px solid var(--border-subtle); border-bottom: 0; }
.pf-project-card--wide .pf-project-image { object-position: center; }
.pf-project-card__number {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 18px;
  color: rgba(255,255,255,.78);
  font-family: var(--font-mono);
  font-size: 11px;
}
.pf-project-card__media-status {
  position: absolute;
  z-index: 3;
  right: 66px;
  top: 18px;
}
.pf-project-card__media-status .sn-badge {
  box-shadow: 0 8px 24px rgba(0,0,0,.24);
  backdrop-filter: blur(10px);
}
.pf-project-card__open {
  position: absolute;
  z-index: 2;
  right: 16px;
  top: 16px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  color: #fff;
  background: rgba(12,13,14,.58);
  backdrop-filter: blur(8px);
  transition: transform .3s var(--ease-soft), background .2s var(--ease-out);
}
.pf-project-card__button:hover .pf-project-card__open { transform: translate(2px, -2px); background: var(--aqua-500); color: #09100f; }
.pf-project-card__open svg { width: 16px; height: 16px; }
.pf-project-card__body { display: flex; flex-direction: column; min-width: 0; padding: clamp(24px, 3vw, 38px); }
.pf-project-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; color: var(--text-subtle); font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; }
.pf-project-card__title { display: block; margin-top: 18px; color: var(--text-strong); font-family: var(--font-display); font-size: clamp(25px, 3vw, 38px); font-weight: 750; line-height: 1.06; }
.pf-project-card__blurb { display: block; max-width: 58ch; margin-top: 14px; color: var(--text-muted); font-size: 14.5px; line-height: 1.6; }
.pf-project-card__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.pf-project-card__tags > span { padding: 5px 8px; border: 1px solid var(--border-subtle); border-radius: 4px; color: var(--text-subtle); font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; }
.pf-project-card__cta { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 28px; color: var(--text-strong); font-family: var(--font-display); font-size: 13px; font-weight: 650; }
.pf-project-card__cta svg { width: 15px; height: 15px; color: var(--aqua-300); transition: transform .25s var(--ease-soft); }
.pf-project-card__button:hover .pf-project-card__cta svg { transform: translateX(4px); }

/* Technical range */
.pf-systems__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, .85fr); gap: clamp(48px, 8vw, 112px); align-items: center; }
.pf-systems__honesty { max-width: 58ch; margin: 22px 0 0; padding-left: 16px; border-left: 2px solid var(--aqua-400); color: var(--text-subtle); font-size: 13px; line-height: 1.6; }
.pf-layer-stack { display: grid; gap: 12px; }
.pf-layer {
  position: relative;
  display: grid;
  grid-template-columns: 32px 46px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 96px;
  padding: 18px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: rgba(255,255,255,.028);
}
.pf-layer__index { color: var(--text-subtle); font-family: var(--font-mono); font-size: 10px; }
.pf-layer__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 7px; color: var(--aqua-300); background: rgba(47,182,162,.11); }
.pf-layer__icon svg { width: 21px; height: 21px; }
.pf-layer__copy { display: grid; gap: 5px; }
.pf-layer__copy b { color: var(--text-strong); font-family: var(--font-display); font-size: 15px; }
.pf-layer__copy small { color: var(--text-muted); font-size: 12px; line-height: 1.4; }
.pf-layer__connector { position: absolute; z-index: 2; left: 72px; bottom: -13px; width: 1px; height: 13px; background: var(--aqua-400); }

/* Capabilities and method */
.pf-services { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pf-service { min-width: 0; padding: 26px; border-radius: 8px; }
.pf-service__icon { width: 42px; height: 42px; margin-bottom: 18px; border-radius: 7px; }
.pf-service__icon svg { width: 20px; height: 20px; }
.pf-process { gap: 0; border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.pf-step { padding: 28px 22px; border-right: 1px solid var(--border-subtle); }
.pf-step:last-child { border-right: 0; }

/* About: immediate, readable and personal */
.pf-about {
  position: relative;
  z-index: 2;
  padding: 120px 0 110px;
  color: #23282b;
  background: #fff;
}
.pf-about__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .72fr); gap: clamp(56px, 8vw, 112px); align-items: start; }
.pf-about__copy h2 { margin: 16px 0 0; color: #111315; font-family: var(--font-display); font-size: clamp(40px, 5vw, 66px); font-weight: 800; line-height: 1.03; }
.pf-about__copy h2 em { color: var(--emerald-700); font-family: var(--font-serif); font-style: italic; font-weight: 300; }
.pf-about__copy > p { max-width: 64ch; margin: 24px 0 0; color: #59645f; font-size: 16.5px; line-height: 1.68; }
.pf-about__copy > p b { color: #111315; }
.pf-about__capabilities { display: grid; gap: 16px; margin-top: 34px; padding-top: 28px; border-top: 1px solid rgba(17,19,21,.14); }
.pf-about__capability { display: grid; grid-template-columns: 140px 1fr; gap: 18px; align-items: start; }
.pf-about__capability > b { color: #111315; font-family: var(--font-display); font-size: 12px; }
.pf-about__capability > div { display: flex; flex-wrap: wrap; gap: 7px; }
.pf-about__capability span { padding: 5px 8px; border: 1px solid rgba(17,19,21,.12); border-radius: 4px; color: #59645f; font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; }
.pf-about__portrait { position: sticky; top: 104px; margin: 0; }
.pf-about__photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 8px; background: #151718; }
.pf-about__photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 60%, rgba(8,9,9,.68)); pointer-events: none; }
.pf-about__photo img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 46%; }
.pf-about__status { position: absolute; z-index: 2; top: 16px; right: 16px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 9px; border-radius: 999px; color: #fff; background: rgba(15,17,17,.62); font-size: 10px; backdrop-filter: blur(8px); }
.pf-about__status i { width: 6px; height: 6px; border-radius: 50%; background: var(--aqua-400); box-shadow: 0 0 0 4px rgba(47,182,162,.14); }
.pf-about__portrait figcaption { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 15px; }
.pf-about__portrait figcaption > span:first-child { display: grid; gap: 4px; }
.pf-about__portrait figcaption b { color: #111315; font-family: var(--font-display); font-size: 14px; }
.pf-about__portrait figcaption small { color: #77817d; font-size: 10px; }
.pf-about__actions { display: flex; gap: 7px; }
.pf-about__actions a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; border: 1px solid rgba(17,19,21,.14); border-radius: 5px; color: #111315; font-family: var(--font-display); font-size: 11px; }
.pf-about__actions a:hover { color: var(--emerald-700); border-color: var(--emerald-700); }
.pf-about__actions svg { width: 13px; height: 13px; }
.pf-about__proof { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 92px; border-top: 1px solid rgba(17,19,21,.15); }
.pf-about__proof article { padding: 28px 28px 0 0; border-right: 1px solid rgba(17,19,21,.12); }
.pf-about__proof article:not(:first-child) { padding-left: 28px; }
.pf-about__proof article:last-child { border-right: 0; }
.pf-about__proof svg { width: 20px; height: 20px; color: var(--emerald-700); }
.pf-about__proof h3 { margin: 18px 0 0; color: #111315; font-family: var(--font-display); font-size: 17px; }
.pf-about__proof p { margin: 9px 0 0; color: #67716d; font-size: 13px; line-height: 1.6; }
.pf-experience { padding-top: 104px; border-top: 1px solid rgba(17,19,21,.09); }
.pf-experience__extra { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 34px; color: #65706b; font-size: 12px; }
.pf-experience__extra span { display: inline-flex; align-items: center; gap: 8px; }
.pf-experience__extra svg { width: 15px; height: 15px; color: var(--emerald-700); }
.pf-experience__extra b { color: #111315; }

/* Contact and footer */
.pf-contact-light { padding-top: 112px; }
.pf-contact-grid { align-items: start; }
.pf-contact-list__icon { border-radius: 7px; }
.pf-footer-light { color: #111315; background: #f4f7f5; border-color: rgba(17,19,21,.1); }
.pf-footer__brand > span { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid rgba(17,19,21,.16); border-radius: 6px; font-family: var(--font-display); font-size: 11px; font-weight: 800; }
.pf-footer-light .pf-footer__brand b,
.pf-footer-light .pf-footer__links a { color: #111315; }
.pf-footer-light .pf-footer__meta { color: #74807a; }

/* Case-study media */
.pf-cs__hero--mybrain .pf-project-image,
.pf-cs__gallery--mybrain .pf-project-image { object-fit: contain; object-position: center; background: #0b0c0d; }
.pf-cs__gallery:has(.pf-cs__shot:only-child) { grid-template-columns: 1fr; }
.pf-cs__shot:only-child { aspect-ratio: 16 / 9; }

@media (max-width: 1080px) {
  .pf-nav__link { padding-inline: 8px; }
  .pf-project-card--wide .pf-project-card__button { grid-template-columns: 1fr 1fr; }
  .pf-systems__grid { grid-template-columns: 1fr; }
  .pf-layer-stack { grid-template-columns: repeat(3, 1fr); }
  .pf-layer { grid-template-columns: 26px 40px minmax(0, 1fr); min-height: 120px; }
  .pf-layer__connector { display: none; }
  .pf-about__grid { grid-template-columns: 1fr minmax(320px, .68fr); gap: 54px; }
}

@media (max-width: 860px) {
  .pf-nav__links { display: none; }
  .pf-nav__cta { margin-left: auto; }
  .pf-nav__menu { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid rgba(255,255,255,.12); border-radius: 6px; color: #fff; background: rgba(255,255,255,.05); cursor: pointer; }
  .pf-nav__menu svg { width: 18px; height: 18px; }
  .pf-mobile-menu {
    display: grid;
    width: min(calc(100% - 28px), 1040px);
    max-height: 0;
    margin: 8px auto 0;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 8px;
    background: rgba(18,18,19,.96);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: max-height .35s var(--ease-soft), opacity .2s var(--ease-out), transform .35s var(--ease-soft), border-color .2s var(--ease-out);
  }
  .pf-nav-shell.is-menu-open .pf-mobile-menu { max-height: 430px; padding: 8px; border-color: rgba(255,255,255,.12); opacity: 1; pointer-events: auto; transform: none; }
  .pf-mobile-menu button { display: grid; grid-template-columns: 34px 1fr 18px; align-items: center; gap: 8px; min-height: 50px; padding: 0 12px; border: 0; border-bottom: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.82); background: transparent; font-family: var(--font-display); font-size: 14px; text-align: left; cursor: pointer; }
  .pf-mobile-menu button:last-child { border-bottom: 0; }
  .pf-mobile-menu button span { color: var(--aqua-300); font-family: var(--font-mono); font-size: 9px; }
  .pf-mobile-menu button svg { width: 15px; height: 15px; }
  .pf-mobile-menu button.is-active { color: #fff; background: rgba(255,255,255,.04); }
  .pf-mobile-menu__contact { color: var(--aqua-300) !important; }
  .pf-project-card--wide .pf-project-card__button { display: block; }
  .pf-project-card--wide .pf-project-card__media { height: auto; min-height: 0; aspect-ratio: 16 / 9; border-right: 0; border-bottom: 1px solid var(--border-subtle); }
  .pf-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-process { grid-template-columns: repeat(2, 1fr); }
  .pf-step:nth-child(2) { border-right: 0; }
  .pf-step:nth-child(-n+2) { border-bottom: 1px solid var(--border-subtle); }
  .pf-about__grid { grid-template-columns: 1fr; }
  .pf-about__portrait { position: static; max-width: 560px; }
  .pf-about__proof { grid-template-columns: 1fr; margin-top: 72px; }
  .pf-about__proof article,
  .pf-about__proof article:not(:first-child) { padding: 24px 0; border-right: 0; border-bottom: 1px solid rgba(17,19,21,.12); }
}

@media (max-width: 640px) {
  .pf__container { padding-inline: 18px; }
  .pf-nav-shell { padding: 9px; }
  .pf-nav { gap: 8px; }
  .pf-nav__brand { padding-left: 4px; }
  .pf-nav__cta { display: none; }
  .pf-nav__menu { margin-left: auto; }
  .pf-mobile-menu { width: 100%; }
  .pf-hero { min-height: 100svh; padding: 110px 0 86px; }
  .pf-hero__content { padding-top: 0; }
  .pf-hero__eyebrow { max-width: 100%; padding: 7px 10px; font-size: 10px; }
  .pf-hero__display { max-width: 100%; margin-top: 18px; font-size: clamp(35px, 10.2vw, 44px); line-height: 1.02; }
  .pf-hero__lead { max-width: 36ch; margin: 20px auto 24px; font-size: 15px; line-height: 1.55; }
  .pf-hero__cta { flex-wrap: wrap; }
  .pf-hero__cta .sn-btn { flex: 1 1 150px; justify-content: center; }
  .pf-hero__scroll { bottom: 14px; }
  .pf-stats { grid-template-columns: 1fr; gap: 0; }
  .pf-stat { display: grid; grid-template-columns: 110px 1fr; gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--border-subtle); }
  .pf-stat__label { margin-top: 0; }
  .pf-section { padding-block: 82px; }
  .pf-section__sub { font-size: 15.5px; }
  .pf-project-grid { grid-template-columns: 1fr; gap: 18px; }
  .pf-project-card--wide { grid-column: auto; }
  .pf-project-card__body { padding: 24px 20px; }
  .pf-project-card__meta { align-items: flex-start; }
  .pf-project-card__title { font-size: 28px; }
  .pf-project-card__tags { margin-top: 18px; }
  .pf-project-card__cta { padding-top: 24px; }
  .pf-layer-stack { grid-template-columns: 1fr; }
  .pf-layer { min-height: 0; }
  .pf-services { grid-template-columns: 1fr; }
  .pf-service { padding: 24px 20px; }
  .pf-process { grid-template-columns: 1fr; }
  .pf-step { border-right: 0; border-bottom: 1px solid var(--border-subtle); }
  .pf-step:last-child { border-bottom: 0; }
  .pf-about { padding: 84px 0 78px; }
  .pf-about__copy h2 { font-size: 39px; }
  .pf-about__copy > p { font-size: 15.5px; }
  .pf-about__capability { grid-template-columns: 1fr; gap: 10px; }
  .pf-about__photo { aspect-ratio: 4 / 5; }
  .pf-about__portrait figcaption { align-items: flex-start; flex-direction: column; }
  .pf-experience { padding: 80px 0 84px; }
  .pf-experience__head h2 { font-size: 39px; }
  .pf-experience__extra { display: grid; }
  .pf-contact-light { padding: 82px 0 72px; }
  .pf-contact-copy h2 { font-size: 38px; }
  .pf-contact-list b { font-size: 13px; }
  .pf-footer__row { align-items: flex-start; }
  .pf-footer__links { gap: 14px 20px; }
  .pf-cs__hero--mybrain { min-height: 360px; }
}

@media (prefers-reduced-motion: reduce) {
  .pf-project-card__button,
  .pf-project-card__open,
  .pf-project-card__cta svg,
  .pf-mobile-menu { transition: none; }
}

/* ============================================================
   PORTFOLIO V4 — calmer motion and one intentional zoom
   ============================================================ */

/* The loader is a compact editorial title card, not a brand animation. */
.pf-loader {
  overflow: hidden;
  transform: none;
  clip-path: inset(0 0 0 0);
  transition: clip-path .54s cubic-bezier(.76, 0, .24, 1);
}
.pf-loader::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .22;
  background:
    linear-gradient(90deg, transparent 49.95%, rgba(255,255,255,.08) 50%, transparent 50.05%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 100% 100%, 100% 84px;
  pointer-events: none;
}
.pf-loader.is-exiting { transform: none; clip-path: inset(0 0 100% 0); }
.pf-loader__inner {
  position: relative;
  width: min(920px, calc(100vw - 48px));
  min-height: min(520px, calc(100svh - 64px));
  align-items: stretch;
  justify-content: space-between;
  gap: 46px;
  padding: 0;
  text-align: left;
  transition: opacity .28s var(--ease-out), transform .46s cubic-bezier(.76, 0, .24, 1);
}
.pf-loader.is-exiting .pf-loader__inner { opacity: 0; transform: translateY(-24px) scale(.985); }
.pf-loader__meta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.58);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  animation: pf-load-clean .45s var(--ease-out) both;
}
.pf-loader__statement {
  display: grid;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 92px);
  font-weight: 780;
  line-height: .92;
}
.pf-loader__statement span { animation: pf-load-clean .48s var(--ease-out) both; }
.pf-loader__statement span:nth-child(2) { color: rgba(255,255,255,.64); animation-delay: .05s; }
.pf-loader__statement span:nth-child(3) { color: var(--aqua-300); animation-delay: .1s; }
.pf-loader__progress { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 18px; align-items: center; }
.pf-loader__bar {
  width: 100%; max-width: none; height: 1px; border-radius: 0;
  background: rgba(255,255,255,.13); animation: pf-load-clean .45s var(--ease-out) .12s both;
}
.pf-loader__bar i { background: var(--aqua-300); transition: transform .06s linear; }
.pf-loader__pct { color: rgba(255,255,255,.58); font-size: 10px; text-align: right; }
@keyframes pf-load-clean { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Motion has one direction and a shorter cadence. Content should feel ready,
   not as if every card is performing its own trick. */
.pf-flag.pf-reveal,
.pf-wrow.pf-reveal,
.pf-service.pf-reveal,
.pf-stat.pf-reveal { transform: translateY(var(--pf-rise, 18px)); }
.pf-flag.pf-reveal.is-in,
.pf-wrow.pf-reveal.is-in,
.pf-service.pf-reveal.is-in,
.pf-stat.pf-reveal.is-in { transform: none; }
.pf-step.pf-reveal .pf-step__n {
  transform: translateY(5px);
  transition: transform var(--pf-reveal-dur, .62s) var(--ease-soft) calc(var(--i, 0) * 58ms + .04s);
}
.pf-step.pf-reveal.is-in .pf-step__n { transform: none; }

/* Scroll-linked portrait zoom. The portrait grows until it becomes the whole
   field, then a white circle expands from its centre into the About page. */
.pf-person-zoom {
  position: relative;
  height: 260vh;
  min-height: 1700px;
  background: var(--neutral-950);
}
.pf-person-zoom__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 52%, rgba(47,182,162,.1), transparent 32%),
    var(--neutral-950);
}
.pf-person-zoom__sticky::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: calc(.16 * (1 - var(--sp, 0)));
  background-image:
    linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, #000, transparent 68%);
}
.pf-person-zoom__copy {
  position: absolute;
  z-index: 2;
  top: clamp(98px, 13vh, 140px);
  left: 50%;
  width: min(900px, calc(100% - 40px));
  transform: translateX(-50%) translateY(calc(var(--sp, 0) * -42px));
  opacity: clamp(0, calc(1 - var(--sp, 0) * 3.8), 1);
  text-align: center;
  pointer-events: none;
}
.pf-person-zoom__copy > span {
  color: rgba(255,255,255,.5);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}
.pf-person-zoom__copy h2 {
  margin: 15px 0 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 780;
  line-height: .98;
}
.pf-person-zoom__copy h2 em { color: var(--aqua-300); font-family: var(--font-serif); font-style: italic; font-weight: 300; }
.pf-person-zoom__window {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 57%;
  width: min(350px, 48vw);
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: calc(12px * (1 - clamp(0, var(--sp, 0), 1)));
  background: #17191a;
  box-shadow: 0 38px 100px -42px rgba(0,0,0,.92);
  transform: translate(-50%, -50%) scale(calc(.72 + var(--sp, 0) * 6.8));
  transform-origin: 50% 48%;
  will-change: transform, border-radius;
}
.pf-person-zoom__window::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 62%, rgba(7,8,8,.72)); }
.pf-person-zoom__window img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 45%; }
.pf-person-zoom__window figcaption {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  bottom: 16px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #fff;
  opacity: clamp(0, calc(1 - var(--sp, 0) * 5), 1);
}
.pf-person-zoom__window figcaption span { font-family: var(--font-display); font-size: 12px; font-weight: 650; }
.pf-person-zoom__window figcaption small { color: rgba(255,255,255,.62); font-family: var(--font-mono); font-size: 8px; text-transform: uppercase; }
.pf-person-zoom__hint {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 26px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  color: rgba(255,255,255,.46);
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  opacity: clamp(0, calc(1 - var(--sp, 0) * 7), 1);
}
.pf-person-zoom__hint svg { width: 14px; height: 14px; }
.pf-person-zoom__white {
  --white-progress: clamp(0, calc((var(--sp, 0) - .72) / .28), 1);
  position: absolute;
  z-index: 4;
  inset: 0;
  background: #fff;
  clip-path: circle(calc(var(--white-progress) * 120vmax) at 50% 50%);
  will-change: clip-path;
  pointer-events: none;
}
.pf-person-zoom + .pf-about { margin-top: -1px; }

@media (max-width: 640px) {
  .pf-loader__inner { width: calc(100vw - 36px); min-height: calc(100svh - 52px); gap: 30px; }
  .pf-loader__statement { font-size: clamp(34px, 9.7vw, 44px); line-height: .98; }
  .pf-loader__statement span { white-space: nowrap; }
  .pf-person-zoom { height: 190vh; min-height: 1180px; }
  .pf-person-zoom__copy { top: 104px; }
  .pf-person-zoom__copy h2 { font-size: 40px; }
  .pf-person-zoom__window { top: 58%; width: min(270px, 66vw); transform: translate(-50%, -50%) scale(calc(.78 + var(--sp, 0) * 7.2)); }
}

@media (prefers-reduced-motion: reduce) {
  .pf-loader, .pf-loader__meta, .pf-loader__statement span, .pf-loader__bar { animation: none; transition: none; }
  .pf-person-zoom { height: auto; min-height: 0; }
  .pf-person-zoom__sticky { position: relative; min-height: 78svh; }
  .pf-person-zoom__copy { opacity: 1; transform: translateX(-50%); }
  .pf-person-zoom__window { width: min(320px, 68vw); transform: translate(-50%, -42%); }
  .pf-person-zoom__white { display: none; }
}

/* MyBrain is demonstrated as a short product walkthrough. The same component
   works in the project card and inside the full case study. */
.pf-graph-demo {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 420px;
  overflow: hidden;
  color: #fff;
  background: #090a0b;
  isolation: isolate;
}
.pf-graph-demo__top {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 43px;
  padding: 0 15px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: rgba(11,12,13,.94);
  backdrop-filter: blur(12px);
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
}
.pf-graph-demo__top > span { display: inline-flex; align-items: center; gap: 7px; }
.pf-graph-demo__top > span:first-child { justify-self: start; font-family: var(--font-display); font-size: 11px; font-weight: 700; text-transform: none; }
.pf-graph-demo__top > span:first-child i { width: 8px; height: 8px; border-radius: 2px; background: var(--aqua-400); transform: rotate(45deg); }
.pf-graph-demo__mode { justify-self: center; padding: 5px 8px; border-radius: 4px; color: #0a1412; background: var(--aqua-400); }
.pf-graph-demo__live { justify-self: end; color: rgba(255,255,255,.58); }
.pf-graph-demo__live i { width: 6px; height: 6px; border-radius: 50%; background: #3ed0a7; box-shadow: 0 0 0 4px rgba(62,208,167,.1); }
.pf-graph-demo__viewport { position: absolute; z-index: 1; inset: 0; overflow: hidden; }
.pf-graph-demo__canvas {
  position: absolute;
  inset: 43px 0 72px;
  transform-origin: center;
  transition: transform .75s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}
.pf-graph-demo__graph { width: 100%; height: 100%; display: block; overflow: visible; }
.pf-graph-demo.is-filter .pf-graph-demo__canvas { transform: scale(1.025); }
.pf-graph-demo.is-focus .pf-graph-demo__canvas { transform: scale(1.055); }
.pf-graph-demo.is-relation .pf-graph-demo__canvas { transform: scale(1.035); }
.pf-graph-edge {
  fill: none;
  stroke: rgba(155,177,174,.42);
  stroke-width: 2;
  transition: opacity .35s var(--ease-out), stroke .35s var(--ease-out), stroke-width .35s var(--ease-out);
}
.pf-graph-node {
  opacity: .9;
  transition: opacity .35s var(--ease-out), filter .35s var(--ease-out);
}
.pf-graph-node > circle:first-child { fill: #121718; stroke: rgba(133,174,168,.66); stroke-width: 2; }
.pf-graph-node__core { fill: #78918e; stroke: rgba(255,255,255,.16); stroke-width: 2; }
.pf-graph-node text { fill: rgba(240,246,245,.78); font-family: var(--font-mono); font-size: 15px; letter-spacing: .02em; }
.pf-graph-node--mybrain > circle:first-child { fill: #123c38; stroke: var(--aqua-300); stroke-width: 3; }
.pf-graph-node--mybrain .pf-graph-node__core { fill: var(--aqua-400); }
.pf-graph-node--mybrain text:not(.pf-graph-node__title) { fill: #07100f; font-family: var(--font-display); font-size: 15px; font-weight: 800; }
.pf-graph-node--mybrain .pf-graph-node__title { fill: #fff; font-family: var(--font-display); font-size: 18px; font-weight: 750; }
.pf-graph-relation {
  opacity: 0;
  transition: opacity .3s var(--ease-out);
}
.pf-graph-relation rect { fill: rgba(10,18,17,.96); stroke: var(--aqua-300); stroke-width: 1.5; }
.pf-graph-relation text { fill: var(--aqua-200); font-family: var(--font-mono); font-size: 13px; }
.pf-graph-demo.is-filter .pf-graph-node:not(.pf-graph-node--mybrain):not(.pf-graph-node--graph):not(.pf-graph-node--lightrag),
.pf-graph-demo.is-focus .pf-graph-node--documents,
.pf-graph-demo.is-focus .pf-graph-node--dashboard { opacity: .42; }
.pf-graph-demo.is-focus .pf-graph-node--mybrain,
.pf-graph-demo.is-focus .pf-graph-node--graph,
.pf-graph-demo.is-focus .pf-graph-node--lightrag,
.pf-graph-demo.is-relation .pf-graph-node--mybrain,
.pf-graph-demo.is-relation .pf-graph-node--graph { opacity: 1; filter: drop-shadow(0 0 12px rgba(99,220,201,.35)); }
.pf-graph-demo.is-relation .pf-graph-node:not(.pf-graph-node--mybrain):not(.pf-graph-node--graph) { opacity: .36; }
.pf-graph-demo.is-relation .pf-graph-edge { opacity: .3; }
.pf-graph-demo.is-relation .pf-graph-edge--graph {
  opacity: 1;
  stroke: var(--aqua-300);
  stroke-width: 3;
  stroke-dasharray: 9 7;
  animation: pf-graph-line 1.2s linear infinite;
}
.pf-graph-demo.is-relation .pf-graph-relation { opacity: 1; }
@keyframes pf-graph-line { to { stroke-dashoffset: -32; } }
.pf-graph-demo__search {
  position: absolute;
  z-index: 4;
  top: 58px;
  left: 50%;
  display: grid;
  grid-template-columns: 14px minmax(100px, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: min(290px, calc(100% - 36px));
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 6px;
  color: rgba(255,255,255,.82);
  background: rgba(12,13,14,.88);
  box-shadow: 0 16px 40px -20px #000;
  opacity: 0;
  transform: translate(-50%, -8px);
  transition: opacity .25s var(--ease-out), transform .4s var(--ease-soft);
}
.pf-graph-demo__search svg { width: 13px; height: 13px; color: var(--aqua-300); }
.pf-graph-demo__search span { overflow: hidden; font-family: var(--font-mono); font-size: 9px; white-space: nowrap; }
.pf-graph-demo__search kbd { padding: 3px 5px; border: 1px solid rgba(255,255,255,.13); border-radius: 3px; color: rgba(255,255,255,.45); font-family: var(--font-mono); font-size: 7px; }
.pf-graph-demo.is-filter .pf-graph-demo__search { opacity: 1; transform: translate(-50%, 0); }
.pf-graph-demo__caption {
  position: absolute;
  z-index: 6;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 7px;
  background: rgba(10,11,12,.86);
  backdrop-filter: blur(12px);
}
.pf-graph-demo__caption > span { color: var(--aqua-300); font-family: var(--font-mono); font-size: 8px; }
.pf-graph-demo__caption > div:nth-child(2) { display: grid; gap: 3px; min-width: 0; }
.pf-graph-demo__caption b { font-family: var(--font-display); font-size: 11px; }
.pf-graph-demo__caption small { overflow: hidden; color: rgba(255,255,255,.57); font-size: 9px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.pf-graph-demo__ticks { display: flex; gap: 4px; }
.pf-graph-demo__ticks i { width: 14px; height: 2px; background: rgba(255,255,255,.18); transition: background .2s var(--ease-out), transform .2s var(--ease-out); }
.pf-graph-demo__ticks i.is-on { background: var(--aqua-300); transform: scaleX(1.2); }
.pf-project-card__media .pf-graph-demo { min-height: 100%; }
.pf-project-card__media--graph::after { display: none; }
.pf-cs__feature--graph { background: #090a0b; }
.pf-cs__feature--graph .pf-cs__feature-frame {
  aspect-ratio: var(--media-ratio, 16 / 9);
  min-height: clamp(420px, 56vw, 660px);
}
.pf-cs__feature--graph .pf-graph-demo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
}
.pf-cs__hero-media > .pf-graph-demo,
.pf-cs__hero-media > video { position: absolute; inset: 0; width: 100%; height: 100%; }
.pf-cs__hero-media > video { display: block; object-fit: cover; }

@media (max-width: 640px) {
  .pf-project-card__media-status {
    left: 50px;
    right: 64px;
    top: 12px;
    min-width: 0;
  }
  .pf-project-card__media-status .sn-badge {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    padding-inline: 7px;
    overflow: hidden;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .pf-project-card--wide .pf-project-card__media--graph {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 5;
  }
  .pf-graph-demo { min-height: 330px; }
  .pf-project-card__media--graph .pf-graph-demo {
    height: 100%;
    min-height: 0;
  }
  .pf-graph-demo__canvas {
    inset: 48px 5px 104px;
    transform: none !important;
  }
  .pf-graph-demo__graph { overflow: hidden; }
  .pf-graph-node text { font-size: 15px; }
  .pf-graph-node--mybrain .pf-graph-node__title { font-size: 18px; }
  .pf-graph-node--mybrain text:not(.pf-graph-node__title) { font-size: 15px; }
  .pf-graph-relation text { font-size: 13px; }
  .pf-graph-node--documents text,
  .pf-graph-node--dashboard text { display: none; }
  .pf-graph-demo.is-filter .pf-graph-node:not(.pf-graph-node--mybrain):not(.pf-graph-node--graph):not(.pf-graph-node--lightrag),
  .pf-graph-demo.is-focus .pf-graph-node--documents,
  .pf-graph-demo.is-focus .pf-graph-node--dashboard { opacity: .52; }
  .pf-graph-demo.is-relation .pf-graph-node:not(.pf-graph-node--mybrain):not(.pf-graph-node--graph) { opacity: .58; }
  .pf-graph-demo.is-relation .pf-graph-edge { opacity: .42; }
  .pf-graph-demo__top {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-inline: 12px;
  }
  .pf-graph-demo__mode { display: none !important; }
  .pf-graph-demo__caption {
    left: 10px;
    right: 10px;
    bottom: 10px;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
    min-height: 80px;
    padding: 10px 11px;
  }
  .pf-graph-demo__caption b { font-size: 12px; }
  .pf-graph-demo__ticks { display: none; }
  .pf-graph-demo__caption small {
    display: -webkit-box;
    overflow: hidden;
    font-size: 9px;
    line-height: 1.4;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .pf-cs__feature--graph .pf-cs__feature-frame {
    min-height: 420px;
    aspect-ratio: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pf-graph-demo__canvas { transition: none; }
  .pf-graph-demo.is-relation .pf-graph-edge--graph { animation: none; }
}

/* ============================================================
   PORTFOLIO V5 — unified navigation and monogram loader
   ============================================================ */

/* On large screens the three navigation zones breathe independently at the
   top of the page, then close into one bar once the content starts moving. */
@media (min-width: 861px) {
  .pf-nav {
    width: 100%;
    max-width: 1180px;
    gap: 14px;
    padding: 0;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition:
      max-width .52s cubic-bezier(.22, 1, .36, 1),
      gap .42s cubic-bezier(.22, 1, .36, 1),
      padding .42s cubic-bezier(.22, 1, .36, 1),
      background .24s var(--ease-out),
      border-color .24s var(--ease-out),
      box-shadow .24s var(--ease-out);
  }
  .pf-nav__brand,
  .pf-nav__links {
    border: 1px solid rgba(255,255,255,.11);
    background: rgba(18,18,19,.62);
    box-shadow: 0 16px 38px -28px rgba(0,0,0,.9);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
  }
  .pf-nav__brand { padding: 7px 10px; border-radius: 8px; }
  .pf-nav__links { padding: 6px; border-radius: 8px; }
  .pf-nav__cta { min-height: 48px; padding-inline: 18px; border-radius: 8px; }

  .pf-nav-shell.is-scrolled .pf-nav {
    max-width: 1040px;
    gap: 4px;
    padding: 6px;
    border-color: rgba(255,255,255,.11);
    background: rgba(18,18,19,.84);
    box-shadow: 0 18px 46px -28px rgba(0,0,0,.9);
    backdrop-filter: blur(18px) saturate(1.22);
    -webkit-backdrop-filter: blur(18px) saturate(1.22);
  }
  .pf-nav-shell.is-scrolled .pf-nav__brand,
  .pf-nav-shell.is-scrolled .pf-nav__links {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .pf-nav-shell.is-scrolled .pf-nav__brand { padding-block: 5px; }
  .pf-nav-shell.is-scrolled .pf-nav__links { padding-block: 0; }
  .pf-nav-shell.is-scrolled .pf-nav__cta { min-height: 38px; border-radius: 6px; }
}

/* The initials are the progress indicator: an outline remains fixed while the
   aqua fill rises from the baseline. */
.pf-loader { transition: clip-path .48s cubic-bezier(.76, 0, .24, 1); }
.pf-loader__inner {
  width: min(1040px, calc(100vw - 56px));
  min-height: min(620px, calc(100svh - 64px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 24px;
}
.pf-loader__mark {
  position: relative;
  align-self: center;
  justify-self: center;
  display: grid;
  place-items: center;
  width: min-content;
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(148px, 23vw, 330px);
  font-weight: 850;
  line-height: .74;
  letter-spacing: -.085em !important;
  animation: pf-loader-mark-in .46s cubic-bezier(.22, 1, .36, 1) both;
}
.pf-loader__mark-outline,
.pf-loader__mark-fill {
  grid-area: 1 / 1;
  display: block;
  padding-right: .085em;
  white-space: nowrap;
}
.pf-loader__mark-outline {
  color: rgba(255,255,255,.035);
  -webkit-text-stroke: 1px rgba(255,255,255,.23);
}
.pf-loader__mark-fill {
  color: var(--aqua-300);
  transition: clip-path .07s linear;
  text-shadow: 0 22px 70px rgba(47,182,162,.14);
}
.pf-loader__mark > i {
  position: absolute;
  left: .06em;
  right: 0;
  bottom: -.22em;
  height: 1px;
  background: var(--aqua-300);
  transform-origin: left;
  transition: transform .07s linear;
}
.pf-loader__progress {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.13);
  color: rgba(255,255,255,.54);
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
}
.pf-loader__pct { color: var(--aqua-300); font-size: inherit; letter-spacing: 0 !important; }
.pf-loader.is-exiting .pf-loader__inner { opacity: 0; transform: translateY(-18px) scale(1.015); }
@keyframes pf-loader-mark-in {
  from { opacity: 0; transform: scale(.94); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  .pf-loader__inner {
    width: calc(100vw - 36px);
    min-height: calc(100svh - 52px);
    gap: 18px;
  }
  .pf-loader__mark { font-size: clamp(132px, 45vw, 176px); }
  .pf-loader__meta { font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .pf-nav, .pf-nav__brand, .pf-nav__links, .pf-nav__cta,
  .pf-loader__mark, .pf-loader__mark-fill, .pf-loader__mark > i { transition: none; animation: none; }
}

/* ============================================================
   PORTFOLIO V6 — restored curves, quiet loader and flight zoom
   ============================================================ */

/* The loader only communicates progress. The white monogram fills upward,
   then the curtain dissolves without moving the page underneath it. */
.pf-loader {
  overflow: hidden;
  clip-path: none;
  transform: none;
  opacity: 1;
  background: #121722;
  transition: opacity .42s var(--ease-out);
}
.pf-loader::before { display: none; }
.pf-loader.is-exiting {
  clip-path: none;
  transform: none;
  opacity: 0;
  pointer-events: none;
}
.pf-loader__inner {
  width: auto;
  min-height: 0;
  display: grid;
  place-items: center;
  gap: 0;
  padding: 0;
  text-align: center;
  transition: opacity .3s var(--ease-out), transform .42s var(--ease-soft);
}
.pf-loader.is-exiting .pf-loader__inner {
  opacity: 0;
  transform: scale(1.035);
}
.pf-loader__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: min-content;
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(116px, 14vw, 184px);
  font-weight: 260;
  line-height: .82;
  letter-spacing: -.105em !important;
  animation: pf-loader-mark-in .5s cubic-bezier(.22, 1, .36, 1) both;
}
.pf-loader__mark-outline,
.pf-loader__mark-fill {
  grid-area: 1 / 1;
  display: block;
  padding-right: .105em;
  white-space: nowrap;
}
.pf-loader__mark-outline {
  color: rgba(255,255,255,.16);
  -webkit-text-stroke: 0;
}
.pf-loader__mark-fill {
  color: #fff;
  text-shadow: none;
  transition: clip-path .06s linear;
}
.pf-loader__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Airplane-window act break. The dark shell remains recognisable while its
   white glass expands until it becomes the following About surface. */
.pf-about-flight {
  height: 340vh;
  margin-top: 40px;
  background: var(--neutral-950);
}
.pf-about-flight .pf-zoom__sticky {
  position: sticky;
  top: 0;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100svh;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  perspective: 1500px;
  background: var(--neutral-950);
}
.pf-about-flight .pf-zoom__sticky::before {
  z-index: 0;
  opacity: clamp(0, calc(1 - ((var(--sp, 0) - .80) / .18)), 1);
}
.pf-about-flight .pf-zoom__sticky::after {
  z-index: 1;
  background: #fff;
  opacity: clamp(0, calc((var(--sp, 0) - .91) / .09), 1);
}
.pf-flight-window {
  z-index: 2;
  display: grid;
  opacity: 1;
  transform: none;
}
.pf-flight-window__shell {
  width: 330px;
  height: 500px;
  padding: 22px;
  border-radius: calc(180px - var(--zoom-e, 0) * 154px);
  transform:
    rotateX(calc((1 - var(--zoom-e, 0)) * 8deg))
    scale(calc(.72 + var(--zoom-e, 0) * 22));
  transform-origin: center;
}
.pf-flight-window__glass {
  border-radius: calc(150px - var(--zoom-e, 0) * 126px);
}
.pf-flight-window__glow,
.pf-flight-window__horizon,
.pf-flight-window__thread,
.pf-flight-window__cloud--one {
  opacity: clamp(0, calc(1 - var(--zoom-e, 0)), 1);
}
.pf-flight-window__cloud--two {
  opacity: clamp(0, calc(.72 - var(--zoom-e, 0)), .72);
}
.pf-flight-window__hint {
  opacity: clamp(0, calc(1 - (var(--sp, 0) / .18)), 1);
}
.pf-flight-lead {
  display: flex;
  opacity: clamp(0, calc(1 - (var(--sp, 0) / .18)), 1);
}
.pf-about-flight + .pf-about { margin-top: -1px; }

/* Restore the soft geometry defined by the original design system. */
.pf-nav,
.pf-mobile-menu { border-radius: var(--radius-xl); }
.pf-nav__brand,
.pf-nav__links,
.pf-nav__cta,
.pf-nav__menu { border-radius: var(--radius-lg); }
.pf-nav__monogram,
.pf-footer__brand > span { border-radius: var(--radius-md); }
.pf-nav__link { border-radius: var(--radius-md); }
.pf-project-card__button,
.pf-layer,
.pf-service,
.pf-about__photo { border-radius: var(--radius-xl); }
.pf-layer__icon,
.pf-service__icon,
.pf-contact-list__icon { border-radius: var(--radius-lg); }
.pf-project-card__tags > span,
.pf-about__capability span,
.pf-work2__count,
.pf-about__actions a { border-radius: var(--radius-md); }

@media (min-width: 861px) {
  .pf-nav__brand,
  .pf-nav__links,
  .pf-nav__cta { border-radius: var(--radius-lg); }
  .pf-nav-shell.is-scrolled .pf-nav { border-radius: var(--radius-xl); }
  .pf-nav-shell.is-scrolled .pf-nav__cta { border-radius: var(--radius-lg); }
}

/* Real project footage stays fully legible; these are interface demos, not
   decorative crops. */
.pf-cs__hero--fourlife,
.pf-cs__hero--mybrain { aspect-ratio: 1439 / 743; }
.pf-cs__hero-media > video {
  display: block;
  object-fit: contain;
  background: #0b0c0d;
}
.pf-cs__hero--fourlife .pf-cs__hero-media > video { background: #f5f4ef; }
.pf-cs__shot figcaption {
  position: absolute;
  z-index: 2;
  left: 16px;
  bottom: 16px;
  max-width: calc(100% - 32px);
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-md);
  color: #fff;
  background: rgba(10,11,12,.76);
  font-family: var(--font-mono);
  font-size: 9px;
  backdrop-filter: blur(10px);
}
.pf-cs__gallery--fourlife .pf-cs__shot:nth-child(3) {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, 940px);
  aspect-ratio: 1143 / 1377;
  background: #f2f1ed;
}
.pf-cs__gallery--fourlife .pf-cs__shot:nth-child(3) .pf-project-image {
  object-fit: contain;
  object-position: center;
  background: #f2f1ed;
}

@media (max-width: 980px) {
  .pf-about-flight {
    height: 270svh;
    margin-top: 0;
  }
  .pf-about-flight .pf-zoom__sticky {
    position: sticky;
    height: 100svh;
    min-height: 0;
    padding: 0;
  }
  .pf-flight-window { display: grid; }
  .pf-flight-lead {
    top: clamp(58px, 10vh, 92px);
    display: flex;
  }
  .pf-flight-lead__title { font-size: clamp(30px, 8vw, 44px); }
  .pf-flight-window__shell {
    width: min(244px, 64vw);
    height: min(380px, 54vh);
    padding: 16px;
    transform:
      rotateX(calc((1 - var(--zoom-e, 0)) * 7deg))
      scale(calc(.72 + var(--zoom-e, 0) * 16));
  }
}

@media (max-width: 640px) {
  .pf-loader__mark { font-size: clamp(108px, 34vw, 150px); }
  .pf-cs__shot figcaption { left: 10px; bottom: 10px; max-width: calc(100% - 20px); }
}

@media (prefers-reduced-motion: reduce) {
  .pf-loader,
  .pf-loader__inner,
  .pf-loader__mark-fill { transition: none; }
  .pf-about-flight { height: auto; }
  .pf-about-flight .pf-zoom__sticky {
    position: relative;
    height: 78svh;
    min-height: 580px;
  }
  .pf-flight-window__shell { transform: scale(.72); }
  .pf-flight-lead { opacity: 1; transform: none; }
  .pf-about-flight .pf-zoom__sticky::after { opacity: 0; }
}
