/* One visual thread: a process connects, then progresses through its steps. */
html { --motion-ease: cubic-bezier(.16, 1, .3, 1); }
body, .nav-logo, .nav-burger, .overlay-link, .sv-item { cursor: auto; }
a, button { cursor: pointer; }
#cursor-halo, #cursor-dot { display: none; }
.hero { position: relative; isolation: isolate; }
.hero-left, .hero-photo-wrap { z-index: 1; }
.connection-art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; overflow: visible; pointer-events: none; }
.connection-art path { fill: none; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.connection-track { stroke: var(--rosa); opacity: .7; }
.connection-ink { stroke: var(--fucsia); stroke-dasharray: 1; stroke-dashoffset: 0; opacity: .7; }
.connection-node { fill: var(--bg); stroke: var(--fucsia); stroke-width: 1.5; }
.hero-photo { will-change: auto !important; transition: transform 450ms var(--motion-ease); }
.hero-photo::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 25%, rgba(255,255,255,.22) 48%, transparent 70%); transform: translateX(-130%); }
.hero-blob { will-change: auto !important; }
.pb-p { opacity: 1; }
.pb-progress-bar { width: 100%; transform-origin: left; transform: scaleX(var(--reading-progress, 1)); }
.como-steps { position: relative; }
.como-steps::before, .como-steps::after { content: ''; position: absolute; top: 53px; bottom: 77px; left: 22px; width: 1px; background: rgba(229,209,224,.22); pointer-events: none; }
.como-steps::after { background: var(--rosa); transform-origin: top; transform: scaleY(var(--process-progress, 1)); }
.como-n { position: relative; z-index: 1; background: var(--ink); width: 46px; padding-bottom: 10px; color: var(--rosa); transition: color 180ms ease; font-variant-numeric: tabular-nums; }
.motion-enabled .como-n { color: rgba(255,255,255,.45); }
.motion-enabled .como-step.is-connected .como-n { color: var(--warm); }
.sv-item { position: relative; }
.sv-item::after { content: ''; position: absolute; bottom: -1px; inset-inline: 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 350ms var(--motion-ease); }
.sv-item:hover::after { transform: scaleX(1); }
.overlay-link:focus-visible { color: #fff; }
:focus-visible { outline: 2px solid var(--fucsia); outline-offset: 6px; }
::selection { background: var(--rosa); color: var(--ink); }
input, textarea { caret-color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .motion-enter .connection-ink { animation: connect-line 1400ms var(--motion-ease) both; }
  .motion-enter .hero-name { animation: name-arrival 800ms var(--motion-ease) both; }
  .motion-enter .hero-photo { animation: photo-arrival 900ms var(--motion-ease) both; }
  .motion-enter .hero-photo::after { animation: photo-light 1300ms var(--motion-ease) both; }
  #nav-overlay { clip-path: inset(0 0 100% 0); transition: clip-path 450ms var(--motion-ease), opacity 300ms ease; }
  #nav-overlay.open { clip-path: inset(0); }
}
@keyframes connect-line { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes name-arrival { from { clip-path: inset(0 0 100% 0); transform: translateY(15px); } to { clip-path: inset(0); transform: none; } }
@keyframes photo-arrival { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes photo-light { to { transform: translateX(130%); } }
@media (max-width: 768px) {
  .connection-art { inset: 10px -12px auto auto; width: 65%; height: 260px; opacity: .45; }
  .hero-photo-wrap { display: none; }
  .como-steps::before, .como-steps::after { left: 18px; bottom: 100px; }
  .como-n { width: 38px; }
}
@media (hover: none), (pointer: coarse) { .sv-detail { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-photo, .sv-name, .char, .overlay-link { transform: none !important; }
  .connection-ink { stroke-dashoffset: 0; }
  .ticker-track, .hero-live-dot { animation: none !important; }
  .como-steps::after, .pb-progress-bar { transform: none; }
  .chars-bot { display: none; }
}
/* No unattended loops: the connection entrance is the only autoplay sequence. */
.ticker-track, .hero-live-dot { animation: none !important; }
/* Flagship scene: loose work becomes a connected system. */
.hero { width: min(1440px, 100% - 64px); padding: 128px 0 48px; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 42px; align-items: center; min-height: 100svh; }
.hero-name { font-size: clamp(4rem, 7.2vw, 7.5rem); margin-bottom: 28px; }
.hero-kicker { max-width: 30ch; }
.hero-desc { max-width: 36ch; }
/* The two offers are the headline. */
.hero-left { align-self: start; justify-content: flex-start; }
.hero-offers { margin-bottom: 24px; border-top: 1px solid #e1d1d7; }
.offer { display: block; padding: 15px 0 17px; border-bottom: 1px solid #e1d1d7; color: var(--ink); text-decoration: none; }
.offer-name { display: block; font-size: clamp(2.1rem, 3.45vw, 3.1rem); font-weight: 800; line-height: .94; letter-spacing: -.04em; }
.offer-name .o { -webkit-text-stroke: 2px var(--ink); color: transparent; white-space: nowrap; transition: color 250ms ease; }
.offer:hover .offer-name .o, .offer:focus-visible .offer-name .o { color: var(--ink); }
.offer-sub { display: block; margin-top: 8px; max-width: 46ch; font-size: clamp(.875rem, 1.1vw, 1rem); line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.offer-sub b { font-weight: 700; color: var(--ink); }
.hero-person { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; font-size: .8125rem; line-height: 1.5; color: var(--muted); }
.hero-person img { width: 48px; height: 58px; object-fit: cover; border-radius: 2px; }
.system-scene { --assembly: 1; --wire: 1; position: relative; min-width: 0; border: 1px solid #e1d1d7; border-radius: 8px; background: #f2e9ed; box-shadow: 0 24px 60px -40px rgba(94,64,70,.4); }
.scene-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; border-bottom: 1px solid #e1d1d7; font-size: .8125rem; font-weight: 700; }
.scene-example { font-size: .6875rem; font-weight: 400; color: var(--muted); white-space: nowrap; }
.system-stage { position: relative; aspect-ratio: 620 / 540; overflow: hidden; isolation: isolate; }
.system-wires { position: absolute; inset: 0; width: 100%; height: 100%; }
.system-wires path { fill: none; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.wire-tracks { stroke: #cfb7c3; opacity: var(--assembly); }
.wire-signals { stroke: var(--fucsia); }
.system-orbit { position: absolute; top: 50%; left: 50%; border: 1px solid #d9c5cf; border-radius: 50%; pointer-events: none; opacity: calc(.25 + var(--assembly) * .6); }
.orbit-one { width: 45%; aspect-ratio: 1; transform: translate(-50%,-50%) scale(calc(1.2 - var(--assembly) * .2)); }
.orbit-two { width: 66%; aspect-ratio: 1; border-style: dashed; transform: translate(-50%,-50%) rotate(calc(var(--assembly) * 60deg)); opacity: .35; }
.system-core { position: absolute; left: 50%; top: 50%; width: 22%; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border-radius: 50%; background: var(--ink); color: var(--bg); box-shadow: 0 12px 26px -12px rgba(94,64,70,.5); transform: translate(-50%,-50%) scale(calc(.82 + var(--assembly) * .18)); z-index: 2; }
.system-core svg { width: 30px; height: 30px; color: var(--rosa); }
.system-core strong { font-size: clamp(.8rem,1.25vw,1rem); }
.system-core span { font-size: .5625rem; opacity: var(--assembly); color: var(--rosa); }
.task-slip { position: absolute; top: 0; left: 0; width: 26%; height: 21%; padding: 13px 15px; display: flex; flex-direction: column; justify-content: center; gap: 5px; background: var(--bg); border: 1px solid #ddcbd3; border-radius: 3px; box-shadow: 0 10px 20px -13px rgba(94,64,70,.4); z-index: 3; transform: translate(var(--tx),var(--ty)) rotate(var(--turn)); }
.task-slip strong { font-size: clamp(.875rem,1.45vw,1.2rem); letter-spacing: -.02em; }
.task-slip > span:not(.slip-symbol) { font-size: clamp(.5rem,.83vw,.6875rem); color: var(--muted); white-space: nowrap; }
.slip-symbol { color: var(--ink); line-height: 1; }
.slip-symbol svg { width: 20px; height: 20px; }
.slip-result { background: var(--warm); }
.task-slip i { position: absolute; top: 12px; right: 12px; height: 5px; width: 5px; border-radius: 50%; background: var(--fucsia); opacity: var(--assembly); }
.scene-bottom { padding: 19px 24px 22px; border-top: 1px solid #e1d1d7; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.scene-caption { font-size: .8125rem; line-height: 1.5; color: var(--muted); }
.scene-caption strong { color: var(--ink); }
.scene-controls { display: flex; padding: 4px; border: 1px solid #d3bdc7; border-radius: 4px; gap: 3px; }
.scene-controls button { padding: 10px 12px; background: transparent; border: 0; border-radius: 2px; color: var(--ink); font: inherit; font-size: .75rem; cursor: pointer; white-space: nowrap; transition: background 180ms ease, color 180ms ease; }
.scene-controls button[aria-pressed="true"] { color: var(--bg); background: var(--ink); }
.scene-instruction { position: absolute; top: calc(100% + 15px); width: 100%; text-align: center; font-size: .6875rem; color: var(--muted); }
.scene-instruction span { display: inline-block; margin-left: 8px; }
@media (max-width: 1000px) and (min-width: 769px) {
  .hero { gap: 24px; width: calc(100% - 48px); }
  .scene-top, .scene-bottom { padding: 16px; }
  .scene-caption { font-size: .6875rem; }
  .scene-controls button { padding: 8px; font-size: .6875rem; }
  .task-slip { padding: 9px; }
}
@media (max-width: 768px) {
  .hero { width: calc(100% - 32px); grid-template-columns: 1fr; padding: 94px 0 60px; gap: 24px; }
  .hero-left { display: contents; }
  .hero-kicker { order: 0; margin: 0; }
  .hero-name { order: 1; }
  .hero-offers { order: 1; margin-bottom: 0; }
  .offer { padding: 15px 0 17px; }
  .offer-name { font-size: clamp(2rem, 10vw, 3.25rem); }
  .offer-sub { font-size: .9375rem; }
  .system-scene { order: 2; margin-bottom: 32px; }
  .hero-desc { order: 3; }
  .hero-person { order: 4; }
  .hero-links { order: 5; }
  .hero-name { font-size: clamp(3.9rem, 15vw, 6.5rem); margin-bottom: 0; }
  .hero-desc { margin-bottom: 20px; }
  .hero-person { margin-bottom: 20px; }
  .scene-top { padding: 16px; font-size: .6875rem; }
  .scene-example { font-size: .5625rem; }
  .system-stage { aspect-ratio: 620 / 650; }
  .task-slip { padding: 8px; gap: 7px; }
  .task-slip strong { font-size: clamp(.6875rem,3.1vw,1rem); }
  .task-slip > span:not(.slip-symbol) { display: none; }
  .slip-symbol svg { width: 16px; height: 16px; }
  .task-slip i { top: 7px; right: 7px; width: 4px; height: 4px; }
  .system-core { gap: 3px; }
  .system-core svg { width: 23px; height: 23px; }
  .system-core strong { font-size: .6875rem; }
  .system-core span { display: none; }
  .scene-bottom { padding: 14px; gap: 12px; flex-wrap: wrap; }
  .scene-caption { font-size: .75rem; }
  .scene-controls { margin-left: auto; }
  .scene-controls button { padding: 12px; font-size: .75rem; min-height: 44px; }
}
/* The illustration remains composed if scripting is unavailable. */
.task-slip { left: 18%; top: 20%; transform: translate(-50%,-50%); }
.task-slip[data-task="1"] { top: 50%; }
.task-slip[data-task="2"] { top: 80%; }
.task-slip[data-task="3"] { left: 82%; }
.task-slip[data-task="4"] { left: 82%; top: 50%; }
.task-slip[data-task="5"] { left: 82%; top: 80%; }
.system-scene[data-ready] .task-slip { left: 0; top: 0; transform: translate(var(--tx),var(--ty)) rotate(var(--turn)); }
