@font-face {
  font-family: Barlow;
  src: url("assets/barlow-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url("assets/barlow-semibold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
:root {
  --paper: oklch(98.3% .006 89);
  --ink: oklch(23% .026 281);
  --quiet: oklch(41% .026 281);
  --accent: oklch(42% .139 286);
  --lavender: oklch(89.4% .035 295);
  --line: oklch(85% .012 285);
  --night: oklch(25% .060 285);
  --pad: clamp(1.25rem, 5.8vw, 6.75rem);
  --gap: clamp(2rem, 5vw, 6rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --rhythm: clamp(3.6rem, 7vw, 6.5rem);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); background: var(--paper);
  font: 400 1.075rem/1.5 Barlow, "Helvetica Neue", sans-serif;
}
::selection { background: #ccc0ef; color: var(--ink); }
a { color: inherit; text-underline-offset: .22em; }
:focus-visible { outline: 3px solid #6557d4; outline-offset: 4px; }
.service :focus-visible { outline-color: var(--lavender); }
[hidden] { display: none !important; }
.wrap { width: min(100%, 92rem); margin-inline: auto; padding-inline: var(--pad); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3, strong, b { font-weight: 600; }
h1, h2, h3 { text-wrap: balance; }
.skip { position: fixed; z-index: 5; top: .5rem; left: .5rem; background: var(--paper); padding: .65rem 1rem; transform: translateY(-150%); }
.skip:focus { transform: none; }
.mast { border-bottom: 1px solid var(--line); }
.mast-inner, .brand, nav, .actions, .button, .line-link, .foot { display: flex; align-items: center; }
.mast-inner, .foot { justify-content: space-between; gap: 1.5rem; }
.mast-inner { min-height: 4.7rem; }
.brand { width: fit-content; gap: .58rem; font-size: 1.52rem; font-weight: 600; letter-spacing: -.065em; text-decoration: none; }
.brand-mark { display: inline-block; width: 1.55rem; height: 1.6rem; background: var(--accent); clip-path: polygon(0 0, 35% 0, 35% 63%, 100% 63%, 100% 100%, 0 100%); }
nav { gap: clamp(.9rem, 3vw, 2.7rem); }
nav a, .button, .line-link, .back { text-decoration: none; font-weight: 600; }
nav a { display: grid; align-items: center; min-height: 44px; font-size: 1rem; }
nav a:hover, nav a[aria-current], .back:hover { color: var(--accent); text-decoration: underline; }
.hero { overflow: clip; background: var(--lavender); }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 0; padding-block: clamp(2.4rem, 4.5vw, 4.8rem); }
.hero-copy { position: relative; z-index: 1; }
.identity { display: flex; align-items: center; gap: .6rem; font-size: .96rem; font-weight: 600; margin-bottom: clamp(1.3rem, 2vw, 2rem); }
.identity span { width: 1.8rem; height: 2px; background: var(--accent); }
h1 { font-size: clamp(3.5rem, 6.9vw, 6.7rem); line-height: .95; letter-spacing: -.063em; }
h1 em { font-style: normal; color: var(--accent); }
.lede { color: var(--quiet); max-width: 41ch; font-size: clamp(1.12rem, 1.55vw, 1.46rem); line-height: 1.42; margin-top: 1.5rem; }
.actions { flex-wrap: wrap; gap: .7rem 1.5rem; margin-top: 1.8rem; }
.button, .line-link { width: fit-content; min-height: 44px; gap: .65rem; font-size: 1rem; }
.button { justify-content: center; color: var(--paper); background: var(--ink); border-radius: .4rem; padding: .74rem 1rem; transition: background .18s, transform .2s var(--ease); }
.button:hover { background: var(--accent); }
.button:active { transform: scale(.98); }
.line-link { color: var(--accent); text-decoration: underline; text-decoration-color: color-mix(in oklch, var(--accent) 45%, transparent); }
.arrow { display: inline-block; transition: transform .25s var(--ease); }
a:hover > .arrow { transform: translate(2px, -2px); }
.mark-study { display: grid; place-items: center; position: relative; }
.mark-study img {
  display: block; width: 106%; max-width: 46rem; height: auto;
  mask-image: radial-gradient(ellipse 64% 64% at center, black 58%, transparent 96%);
  animation: settle .85s var(--ease) both;
}
@keyframes settle { from { transform: translateY(12px) rotate(-2deg); opacity: .76; } to { transform: none; opacity: 1; } }
.section { padding-block: var(--rhythm); }
h2 { font-size: clamp(2.8rem, 5vw, 5rem); letter-spacing: -.06em; line-height: 1; }
.suite-intro { text-wrap: balance; max-width: 65ch; margin-top: .85rem; color: var(--quiet); font-size: 1.16rem; }
.journey { --panel-pad: clamp(.85rem,2.1vw,2rem); display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 3rem); margin-top: clamp(1.8rem, 3.5vw, 3.4rem); align-items: start; }
.route-map {
  --action: oklch(52% .16 45); --learning: oklch(45% .085 170); --enamel: oklch(96% .016 95);
  display: block; color: var(--ink); background: var(--enamel); border: 1px solid #acae9e;
  border-top: 5px solid #303f43; box-shadow: 0 3px 0 #d7d6c8;
  padding: clamp(.85rem,2.1vw,2rem); border-radius: .18rem;
}
.map-key { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.3rem; }
.map-key > span { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: 1rem; }
.line-code { font-style: normal; background: var(--action); color: var(--paper); width: 1.5rem; height: 1.5rem; border-radius: .12rem; display: grid; place-items: center; }
.line-code.learning { background: var(--learning); }
.network { position: relative; height: clamp(19rem,24vw,22rem); margin-block: .4rem .7rem; isolation: isolate; }
.rails { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rails use[href="#rail-network"] { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.rail-shadow { stroke: #aaa58c; opacity: .24; stroke-width: 17px; transform: translate(3px,8px); }
.rail-foundation { stroke: #84867a; stroke-width: 14px; transform: translate(0,4px); }
.rail-bed { stroke: #bbbcb0; stroke-width: 14px; }
.rail-ballast { stroke: #ebe9d9; stroke-width: 10px; }
.rails use.rail-sleepers { stroke: #b3b2a6; stroke-width: 9px; stroke-dasharray: 1.5 8; stroke-linecap: butt; }
.rails .rail-groove { stroke: #eee9ce; stroke-width: 1.2px; }
.rail-steel { fill: none; stroke-width: 4.5px; stroke-linecap: round; stroke-linejoin: round; }
.steel-action { stroke: var(--action); }
.steel-learning { stroke: var(--learning); }
.branch-caption { position: absolute; font-size: .82rem; font-weight: 600; color: #694a36; background: var(--enamel); padding-inline: .2rem; pointer-events: none; }
.decision-caption { left: 4%; top: 59%; }
.result-caption { right: 4%; top: 51%; }
.station { position: absolute; left: var(--x); top: var(--y); width: 30%; max-width: 10rem; min-height: 44px;
  display: flex; flex-direction: column; align-items: center; gap: 0; padding: .25rem 0 2.2rem;
  text-align: center; transform: translate(-50%,-100%); text-decoration: none; }
.station[href="#zilo-example"], .station[href="#zethea-example"] { transform: translate(-50%,0); padding: 1.85rem 0 .25rem; }
.route-map .station:hover, .route-map .station:focus-visible { color: var(--ink); text-decoration: none; }
.station img { width: 2rem; height: 2rem; margin-bottom: .3rem; transition: transform .25s var(--ease); }
.station:hover img { transform: translateY(-2px); }
.station strong { font-size: clamp(1rem,1.4vw,1.25rem); line-height: 1.15; letter-spacing: -.035em; }
.station small { font-size: .86rem; line-height: 1.15; color: var(--quiet); margin-top: .12rem; }
.station[aria-current] strong { text-decoration: underline; text-underline-offset: .2em; }
.station::after { content: ""; position: absolute; bottom: 0; left: 50%; transform: translate(-50%,50%); box-sizing: border-box;
  width: .9rem; height: .9rem; border: 3px solid var(--action); background: var(--enamel); border-radius: 50%; }
.station[href="#zilo-example"]::after, .station[href="#zethea-example"]::after { top: 0; bottom: auto; transform: translate(-50%,-50%); border-color: var(--learning); }
.station[href="#zilo-example"]::after { width: 1.25rem; height: 1.25rem; border: 3px solid var(--ink); box-shadow: inset 0 0 0 2px var(--enamel), inset 0 0 0 4px var(--learning); }
.network-train { position: absolute; top: 0; left: 0; width: clamp(4.15rem,6.7vw,6.5rem); height: auto; pointer-events: none; overflow: visible; filter: drop-shadow(1px 2px 1px rgb(35 42 46 / .28)); }

.roller-controls { padding-top: .65rem; border-top: 1px solid var(--line); }
.story { min-width: 0; }
.journey-card { --route-ink: oklch(52% .16 45); }
#zilo-example, #zethea-example { --route-ink: oklch(45% .085 170); }
.roller { position: relative; }
.journey-card { background: oklch(97.7% .015 94); padding: clamp(1.15rem, 2.1vw, 2.1rem); border-radius: .18rem; border: 1px solid #c7c5b7; border-top: 5px solid var(--route-ink); scroll-margin-top: 1rem; }
.journey-card + .journey-card { margin-top: 1rem; }
.enhanced .journey { align-items: stretch; }
.enhanced .route-map, .enhanced .story { display: flex; flex-direction: column; }
.enhanced .route-map { align-items: stretch; }
.enhanced .network { flex: 1 0 auto; }
.enhanced .story { background: oklch(97.7% .015 94); border: 1px solid #c7c5b7; border-top: 5px solid oklch(52% .16 45); border-radius: .18rem; }
.enhanced .story:has(:is(#zilo-example,#zethea-example):not([inert])) { border-top-color: oklch(45% .085 170); }
.flap-window { position: relative; min-width: 0; }
.enhanced .flap-window { min-height: var(--card-height, 0px); display: grid; flex: 1 0 auto; }
.enhanced .roller { min-width: 0; display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: .18rem; }
.enhanced .roller.size-probe { position: absolute; inset: 0 0 auto; visibility: hidden; pointer-events: none; }
.enhanced .roller::-webkit-scrollbar { display: none; }
.enhanced .journey-card[inert] { contain: size; overflow: hidden; }
.enhanced .journey-card { border: 0; padding: var(--panel-pad); flex: 0 0 100%; min-width: 0; margin: 0; scroll-snap-align: start; }
.journey-card:focus-visible { outline-offset: -4px; }
.card-id { display: flex; align-items: center; gap: .65rem; }
.card-id strong, .card-id small, .work-sample > strong, .work-sample small { display: block; }
.card-id img { width: 30px; height: 30px; }
.card-id strong { color: var(--ink); font-size: 1.07rem; }
.card-id small, .work-sample small { color: var(--quiet); font-size: .88rem; }
.journey-card h3 { font-size: clamp(1.75rem, 2.7vw, 2.7rem); line-height: 1.04; letter-spacing: -.045em; margin: 1.25rem 0 .55rem; }
.journey-card > p { max-width: 51ch; color: var(--quiet); }
.work-sample { margin-block: 1.1rem .45rem; padding: 1rem 1.2rem; background: var(--paper); border: 1px solid var(--line); border-radius: .14rem; }
.work-sample blockquote { margin: .45rem 0; font-size: 1.16rem; line-height: 1.34; }
.work-sample details { margin-top: .5rem; border-top: 1px solid var(--line); }
.work-sample summary { padding: .35rem 0; min-height: 44px; color: var(--ink); font-size: .99rem; }
.work-sample details p { margin-bottom: .45rem; }
.work-sample fieldset { border: 0; padding: 0; margin: .35rem 0; }
.work-sample legend { font-weight: 600; }
.work-sample label { display: flex; align-items: center; gap: .55rem; cursor: pointer; min-height: 32px; }
.work-sample input { accent-color: var(--ink); width: 16px; height: 16px; }
.draft-lines { margin: .45rem 0; padding-left: 1.35rem; }
.handoffs { display: flex; flex-wrap: wrap; gap: .1rem 1.1rem; }
.handoffs a { display: inline-flex; gap: .45rem; align-items: center; min-height: 44px; color: var(--ink); font-weight: 600; font-size: 1rem; }
.roller-controls { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 var(--panel-pad) var(--panel-pad); }
.flap-effect { position: absolute; inset: 0; overflow: hidden; perspective: 1400px; pointer-events: none; }
.flap-half { position: absolute; inset-inline: 0; height: 50%; overflow: hidden; backface-visibility: hidden; background: oklch(97.7% .015 94); }
.flap-upper { top: 0; transform-origin: center bottom; }
.flap-lower { bottom: 0; transform-origin: center top; }
.flap-half .flap-copy { position: absolute; inset-inline: 0; height: 200%; padding: var(--panel-pad); margin: 0; border: 0; contain: none; }
.flap-upper .flap-copy { top: 0; }
.flap-lower .flap-copy { bottom: 0; }
.flap-effect::after { content: ""; position: absolute; top: 50%; inset-inline: 0; height: 1px; background: rgb(41 38 45 / .24); }
.roller-controls > span { color: var(--quiet); font-size: .93rem; }
.position { margin-left: .6rem; font-variant-numeric: tabular-nums; }
.roller-controls button { cursor: pointer; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; border-radius: .18rem; transition: background .2s; }
.roller-controls button:hover:enabled { background: var(--lavender); }
.roller-controls button:disabled { opacity: .4; cursor: default; }
.service { background: var(--night); color: var(--paper); }
.service-inner { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); padding-block: var(--rhythm); }
.service-intro p { max-width: 36ch; margin: 1.35rem 0 1.7rem; font-size: 1.25rem; color: #e1dfee; }
.button.light { background: #ddd8f7; color: var(--ink); }
.button.light:hover { background: #eeeafb; }
.service-steps { list-style: none; counter-reset: steps; padding: 0; margin: 0; }
.service-steps li { counter-increment: steps; display: grid; grid-template-columns: 2.2rem 1fr; column-gap: .6rem; padding: 1.3rem 0; border-top: 1px solid #655e79; }
.service-steps li::before { content: "0" counter(steps); color: #c2b8ec; font-size: 1rem; font-variant-numeric: tabular-nums; }
.service-steps h3 { font-size: 1.48rem; }
.service-steps p { grid-column: 2; margin-top: .35rem; color: #d6d2e3; }
.about, .support-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.about { padding-block: var(--rhythm); }
.about p { max-width: 46ch; font-size: 1.25rem; }
.about p + p { color: var(--quiet); margin-top: .8rem; font-size: 1.05rem; }
#analytics-settings { font: inherit; font-size: .93rem; color: var(--quiet); background: transparent; border: 0; padding: .4rem 0; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.analytics-choice { position: fixed; z-index: 8; inset: auto 1rem 1rem auto; max-width: min(27rem,calc(100% - 2rem)); padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: .3rem; background: var(--paper); color: var(--ink); box-shadow: 0 4px 18px rgb(35 32 50 / .14); }
.analytics-choice p { margin: .2rem 0 .6rem; font-size: .98rem; }
.analytics-actions { display: flex; gap: .55rem; }
.analytics-actions button { min-height: 40px; padding: .3rem 1.15rem; font: 600 .98rem Barlow,sans-serif; cursor: pointer; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: .25rem; }
.analytics-actions button:hover { border-color: var(--accent); }
footer { border-top: 1px solid var(--line); background: oklch(95.6% .009 91); }
.foot { display: grid; grid-template-columns: minmax(10rem,1.4fr) 1fr 1fr minmax(12rem,1.2fr); align-items: start; gap: 2rem; padding-block: clamp(2.1rem,4vw,4rem); }
.foot-brand p { color: var(--quiet); margin-top: .55rem; font-size: .93rem; }
.foot-group h2 { margin: 0 0 .35rem; font: 600 1rem/1.4 Barlow,sans-serif; letter-spacing: 0; }
.foot-group ul { list-style: none; padding: 0; margin: 0; }
.foot-group a { display: inline-flex; align-items: center; gap: .5rem; min-height: 36px; color: var(--quiet); text-decoration: none; font-size: 1rem; overflow-wrap: anywhere; }
.foot-group a:hover, .foot-group a:focus-visible { color: var(--accent); text-decoration: underline; }
.support-main { padding-block: clamp(2.5rem, 6vw, 6.5rem); min-height: 68vh; }
.back { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); margin-bottom: 2rem; }
.support-layout h1 { font-size: clamp(3.35rem, 6vw, 6rem); }
.questions details { border-top: 1px solid var(--line); }
summary { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 1rem 0; cursor: pointer; font-weight: 600; font-size: 1.2rem; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.45rem; line-height: 1; color: var(--accent); transition: transform .2s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
.questions details p { padding-bottom: 1.2rem; color: var(--quiet); }
address { border-top: 1px solid var(--line); margin-top: .5rem; padding-top: 1.4rem; font-style: normal; }
@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; padding-block: 2.5rem 0; }
  .hero h1 { font-size: clamp(3.6rem, 10vw, 5.25rem); }
  .mark-study { width: min(100%, 28rem); margin: .25rem auto 0; }
  .mark-study img { width: 100%; }
  .journey, .about, .support-layout, .service-inner { grid-template-columns: 1fr; }
  .journey { gap: 1.25rem; }
  .work-sample label { min-height: 44px; }
  .service-intro h2 br { display: none; }
  .service-intro h2 br::after { content: " "; }
  .foot { grid-template-columns: 1fr 1fr; gap: 1.4rem 1rem; }
  .foot-brand, .foot-studio { grid-column: 1 / -1; }
  .foot-group a { min-height: 44px; }
  .service-inner, .support-layout { gap: 1.8rem; }
  .about { gap: 1.3rem; }
  .identity { margin-bottom: 1.1rem; }
}
@media (max-width: 470px) {
  .mast-inner { min-height: 4.1rem; gap: .65rem; }
  .brand { font-size: 1.22rem; gap: .36rem; }
  .brand-mark { width: 1.18rem; height: 1.22rem; }
  nav { gap: .82rem; }
  nav a { font-size: .9rem; }
  .actions { gap: .4rem 1rem; }
  .mark-study { width: 85%; }
}
@media (max-width: 350px) {
  .mast-inner { flex-wrap: wrap; gap: 0 1rem; padding-block: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Match the studio's route cards when they are headed directly under the page title. */
.journey-card h2 {
  font-size: clamp(1.75rem, 2.7vw, 2.7rem);
  line-height: 1.04;
  letter-spacing: -.045em;
  margin: 1.25rem 0 .55rem;
}
.support-layout { align-items: start; }
.support-layout .journey-card h2 { margin-top: 0; }
