/* Inner pages */
.phero--full { min-height: 100svh; display: flex; align-items: flex-end; }
.phero--doc { padding-bottom: clamp(24px, 3vw, 48px); }

.split { display: grid; gap: 32px var(--gap); }
@media (min-width: 900px) {
  .split { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .split__head { grid-column: 1 / span 5; }
  .split > :not(.split__head) { grid-column: 6 / -1; }
}
.duo { display: grid; gap: 48px var(--gap); }
.duo .blist { margin-top: 20px; border-top: 1px solid var(--line); }
.trio { display: grid; gap: 40px var(--gap); }
.trio .blist { margin-top: 14px; border-top: 1px solid var(--line); }
@media (min-width: 800px) { .duo { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .trio { grid-template-columns: repeat(3, 1fr); } }

/* White pages */
.page-contact, .page-contact .site-header, .page-training, .page-training .site-header,
.page-apps, .page-apps .site-header { background: var(--white); }
.apps-index { padding-top: clamp(24px, 3vw, 48px); }

/* Tight scale, for reference pages (Services, Apps): closer spacing and smaller display type. */
.page-tight {
  --section: clamp(56px, 6.4vw, 96px);
  --fs-d1: clamp(2.5rem, 4.6vw, 4.75rem);
  --fs-d2: clamp(1.875rem, 3.3vw, 3.25rem);
}
html:has(.page-tight) { scroll-padding-top: calc(var(--header-h) + 47px); }
.page-tight .shead { gap: 14px 0; margin-bottom: clamp(28px, 3vw, 44px); }
.page-tight .shead__title { max-width: none; }
.page-tight .shead__side { gap: 14px; }
.page-tight .faq__q { padding-block: 18px; font-size: 1.125rem; }

.tight-hero { padding-top: calc(var(--header-h) + clamp(36px, 4vw, 60px)); padding-bottom: clamp(32px, 3.2vw, 48px); }
.tight-hero .phero__kicker { margin-bottom: 16px; }
.tight-hero .phero__title { max-width: 19ch; }
.tight-hero .phero__foot { margin-top: 20px; }
@media (min-width: 960px) {
  .tight-hero .container { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
  .tight-hero .phero__kicker { grid-column: 1 / -1; }
  .tight-hero .phero__title { grid-column: 1 / span 8; max-width: none; }
  .tight-hero .phero__foot { grid-column: 9 / -1; display: block; margin-top: 0; }
  .tight-hero .phero__lede { font-size: var(--fs-body); line-height: 1.5; letter-spacing: 0; color: var(--mute); }
}

.subnav { position: sticky; top: 0; z-index: 90; background: var(--paper); border-block: 1px solid var(--line); transition: top 0.42s var(--ease); }
.page-tight:has(.site-header:not(.is-hidden)) .subnav { top: var(--header-h); }
.subnav__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 46px; }
.subnav__list { display: flex; gap: clamp(20px, 2.4vw, 32px); height: 100%; overflow-x: auto; scrollbar-width: none; }
.subnav__list::-webkit-scrollbar { display: none; }
.subnav__link { display: flex; align-items: center; flex: none; font-size: var(--fs-sm); font-weight: 500; letter-spacing: -0.008em; color: var(--mute); transition: color var(--t); }
.subnav__link:hover { color: var(--ink); }
.subnav__link[aria-current='true'] { color: var(--ink); }
/* One marker that travels: sized with scaleX so moving it never touches layout. */
.subnav__list { position: relative; }
.subnav__ind { position: absolute; left: 0; bottom: 0; width: 1px; height: 2px; background: var(--ink); opacity: 0; transform-origin: left; transition: transform 0.5s var(--ease-box), opacity var(--t); }
.subnav__cta { flex: none; font-size: var(--fs-sm); }
@media (max-width: 639px) { .subnav__cta { display: none; } }

.svcx__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; grid-column: 1 / -1; }
.svcx__cta { font-size: var(--fs-sm); }
.svcx__body { display: grid; gap: 28px var(--gap); }
.svcx__panel { max-width: 460px; min-width: 0; border-radius: var(--r); overflow: hidden; }
.svcx__panel .spec__frame { margin-block: auto; }
.svcx__detail { display: grid; grid-template-rows: 1fr auto; min-width: 0; }
/* Spacing does the separating here, not rules. */
.page-tight .cells { border-top: 0; }
.page-tight .cell { border-bottom: 0; }
.cells.svcx__caps { row-gap: clamp(20px, 2vw, 28px); align-content: space-between; }
.svcx__caps .cell { gap: 3px; padding-block: 0; }
.svcx__caps .cell__title, .shapes .cell__title { font-size: 1.0625rem; letter-spacing: -0.012em; }
.svcx__caps .cell__text, .shapes .cell__text { font-size: var(--fs-sm); line-height: 1.45; }
.svcx__meta { display: grid; gap: 20px 0; padding-top: clamp(24px, 2.4vw, 32px); font-size: var(--fs-sm); line-height: 1.5; }
.svcx__label { margin-bottom: 8px; font-size: var(--fs-sm); font-weight: 600; letter-spacing: -0.008em; }
.svcx__list li + li { margin-top: 3px; }
.svcx__tools { display: grid; gap: 3px; }
.svcx__tools > div { display: grid; grid-template-columns: 5em 1fr; column-gap: 8px; }
.svcx__tools dt { color: var(--mute); }
.on-white .chip { background: var(--paper); }
@media (min-width: 640px) { .svcx__meta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .svcx__meta > :first-child { padding-right: var(--gap); } }
@media (min-width: 1024px) {
  .svcx__body { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .svcx__panel { grid-column: 1 / span 5; max-width: none; }
  .svcx__panel .panel { aspect-ratio: auto; height: 100%; min-height: 100%; }
  .svcx__detail { grid-column: 6 / -1; padding-left: clamp(0px, 1.6vw, 28px); }
  .svcx__body--flip .svcx__panel { grid-column: 8 / -1; grid-row: 1; }
  .svcx__body--flip .svcx__detail { grid-column: 1 / span 7; grid-row: 1; padding: 0 clamp(0px, 1.6vw, 28px) 0 0; }
}
.cells.svc-steps { row-gap: 24px; }
.svc-steps .cell { gap: 4px; padding-block: 0; }
.svc-steps .cell__title { font-size: 1.125rem; }
.svc-steps .cell__text { font-size: var(--fs-sm); line-height: 1.45; }

.shapes { display: grid; gap: clamp(24px, 2.6vw, 36px); }
.shapes__row { display: grid; gap: 12px var(--gap); }
.shapes__name { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.012em; line-height: 1.25; }
.shapes__cell { display: grid; gap: 3px; align-content: start; }
@media (min-width: 900px) { .shapes__row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Apps: one stage. Pick an app, try a brand. The window itself lives in css/product.css. */
.stage { display: grid; gap: 18px; }
.stage__top { display: grid; gap: 14px 40px; align-items: center; min-width: 0; }
.stage__right { min-width: 0; }
.stage__panels { display: grid; gap: 48px; }
.stage__rail, .brandbar { display: none; }
.js .stage__rail { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; }
.js .brandbar { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; }
.stage__rail::-webkit-scrollbar { display: none; }
.stage__tab { position: relative; flex: none; padding-block: 6px; color: var(--mute); font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; transition: color var(--t), padding-left 0.5s var(--ease); }
.stage__tab::before { content: ''; position: absolute; left: 0; top: 50%; width: 0.42em; height: 0.42em; margin-top: -0.21em; background: var(--orange); transform: scale(0); transition: transform 0.4s var(--ease); }
.stage__tab:hover, .stage__tab[aria-selected='true'] { color: var(--ink); }
.stage__tab[aria-selected='true'] { padding-left: 0.8em; }
.stage__tab[aria-selected='true']::before { transform: none; }
.brandbar .svcx__label { margin: 0; white-space: nowrap; }
.brandbar__name { flex: 1 1 150px; width: 190px; min-width: 0; height: 40px; padding-inline: 12px; background: var(--white); border: 1px solid var(--line-field); font-size: var(--fs-sm); }
.brandbar__name:focus { outline: 2px solid var(--ink); outline-offset: -2px; }
.brandbar__swatches { display: flex; gap: 4px; margin: 0; padding: 0; border: 0; }
.swatch { position: relative; display: block; width: 28px; height: 28px; cursor: pointer; }
.swatch i { display: block; width: 100%; height: 100%; background: var(--c); transform: scale(0.72); transition: transform 0.3s var(--ease); }
.swatch:hover i, .swatch input:checked ~ i { transform: none; }
.swatch input:focus-visible ~ i { outline: 2px solid var(--orange); outline-offset: 2px; }
.stage__cap { display: grid; gap: 10px; justify-items: start; margin-top: 16px; font-size: var(--fs-sm); line-height: 1.45; }
.stage__name { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.012em; }
.includes__note { margin-top: clamp(20px, 2vw, 28px); }
@media (min-width: 640px) {
  .stage__cap { grid-template-columns: minmax(0, 1fr) auto; column-gap: 40px; align-items: start; }
}

/* Apps index: a plain table, read across. */
.appindex { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); line-height: 1.45; }
.appindex thead th { padding: 0 var(--gap) 12px 0; text-align: left; font-weight: 500; color: var(--mute); border-bottom: 1px solid var(--ink); }
.appindex tbody th, .appindex td { padding: 18px var(--gap) 20px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.appindex tbody th { font-weight: 400; }
.appindex tbody th a { display: block; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; transition: color var(--t); }
.appindex tbody th a:hover { color: var(--mute); }
.appindex tbody th .muted { display: block; margin-top: 2px; }
.appindex td:first-of-type { max-width: 38ch; }
.appindex li + li { margin-top: 2px; }
@media (min-width: 900px) {
  .appindex thead th:nth-child(1) { width: 26%; }
  .appindex thead th:nth-child(2) { width: 40%; }
}
@media (max-width: 899px) {
  .appindex thead { display: none; }
  .appindex, .appindex tbody, .appindex tr, .appindex tbody th, .appindex td { display: block; }
  .appindex tr { padding-block: 18px 20px; border-bottom: 1px solid var(--line); }
  .appindex tr:first-child { border-top: 1px solid var(--ink); }
  .appindex tbody th, .appindex td { padding: 0; border: 0; }
  .appindex td { margin-top: 10px; }
  .appindex td:last-child { color: var(--mute); }
}

.change__note { max-width: 40ch; margin-top: 24px; font-size: var(--fs-sm); line-height: 1.5; }
.change__link { margin-top: 14px; }
@media (min-width: 1280px) { .stage__top { grid-template-columns: minmax(0, 1fr) auto; } }
/* Training: the same stage, with the list down the side. */
.tlink--quiet { color: var(--mute); }
@media (min-width: 1024px) {
}
/* With JS the panels share one cell; the new one wipes across the old. */
.js .stage__panels { gap: 0; }
.js .stage__panel { grid-area: 1 / 1; min-width: 0; background: var(--paper); }
.js .stage__panel:not(.is-active):not(.was-active) { visibility: hidden; }
.js .stage__panel.is-active { z-index: 2; }
.js .stage__panel.was-active { z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
  .js .stage__panel.is-changing { animation: stageIn 0.75s var(--ease-box) both; }
}
@keyframes stageIn { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }

/* Section motion, shared by tight pages. One system: masked headlines, ordered arrivals, the box that opens.
   Everything here moves only transform, opacity or clip-path. The hidden states exist only
   with JS and motion allowed, so anyone else gets the finished page at once. */
.ln { display: block; overflow: clip; padding-bottom: 0.16em; margin-bottom: -0.16em; }
.ln > span { display: block; }
.ink-stage { background: var(--white); }
.ink-stage--paper { background: var(--paper); }
@media (prefers-reduced-motion: no-preference) {
  .js .tight-hero .phero__kicker, .js .tight-hero .phero__lede { animation: svcFade 0.8s var(--ease) both 0.45s; }
  .js .tight-hero .ln > span { animation: svcRise 1s var(--ease) both; }
  .js .tight-hero .ln + .ln > span { animation-delay: 0.09s; }
  .js .subnav { animation: svcFade 0.8s var(--ease) both 0.6s; }

  .js [data-seq] > * { opacity: 0; transform: translateY(16px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0ms); }
  .js [data-seq].is-in > * { opacity: 1; transform: none; }
  .js [data-seq] > :has(> .ln) { opacity: 1; transform: none; }
  .js [data-seq] .ln > span { transform: translateY(112%); transition: transform 1s var(--ease); transition-delay: var(--d, 0ms); }
  .js [data-seq].is-in .ln > span { transform: none; }

  .js .wipe { clip-path: inset(0 100% 0 0); transition: clip-path 1s var(--ease-box); }
  .js .wipe--right { clip-path: inset(0 0 0 100%); }
  .js .wipe.is-in { clip-path: inset(0); }
}
/* The dark section opens from the corner nearest the design panel. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .ink-open { animation: inkOpen linear both; animation-timeline: view(); animation-range: entry 8% cover 36%; }
  }
}
@keyframes inkOpen { from { clip-path: inset(0 0 calc(100% - 16vh) calc(100% - 16vh)); } to { clip-path: inset(0); } }
@keyframes svcRise { from { transform: translateY(112%); } to { transform: none; } }
@keyframes svcFade { from { opacity: 0; } to { opacity: 1; } }
/* Answers glide open where the browser can animate to auto height. */
@supports selector(::details-content) {
  @media (prefers-reduced-motion: no-preference) {
    .page-tight { interpolate-size: allow-keywords; }
    .page-tight .faq__item::details-content { block-size: 0; overflow: clip; transition: block-size 0.45s var(--ease), content-visibility 0.45s allow-discrete; }
    .page-tight .faq__item[open]::details-content { block-size: auto; }
  }
}

/* App hero */
.ahero { padding-top: calc(var(--header-h) + clamp(32px, 4vw, 56px)); padding-bottom: clamp(32px, 4vw, 56px); }
.ahero__copy { display: grid; gap: 20px var(--gap); align-items: end; margin-bottom: clamp(24px, 3vw, 40px); }
.ahero__name { display: grid; gap: 14px; justify-items: start; }
.ahero__side { display: grid; gap: 16px; justify-items: start; }
.ahero__side .lede { max-width: 32ch; }
@media (min-width: 960px) {
  .ahero__copy { grid-template-columns: minmax(0, 1fr) auto; }
  .ahero__side { grid-template-columns: auto auto; align-items: center; column-gap: 32px; }
}
.overview { max-width: 28ch; }

/* Pager */
.pager { display: grid; border-top: 1px solid var(--line); }
.pager__link { display: grid; gap: 4px; padding: clamp(28px, 4vw, 48px) var(--gutter); transition: color var(--t); }
.pager__link .small { color: var(--mute); }
.pager__link:hover { color: var(--mute); }
.pager__link--next { border-top: 1px solid var(--line); }
@media (min-width: 720px) {
  .pager { grid-template-columns: 1fr 1fr; }
  .pager--one { grid-template-columns: 1fr; }
  .pager__link--next { text-align: right; border-top: 0; border-left: 1px solid var(--line); justify-items: end; }
  .pager--one .pager__link--next { border-left: 0; }
}

.course__topics { margin-top: 14px; }

/* About */
.about__hero { padding-bottom: clamp(40px, 5vw, 80px); }
.about__story { padding-top: clamp(40px, 5vw, 80px); }
.about__split { display: grid; gap: clamp(32px, 5vw, 56px); }
.about__copy { display: grid; gap: 1.2em; max-width: 34em; }
.about__intro { display: grid; gap: clamp(20px, 2.4vw, 32px); align-content: start; }
.about__pledge { padding-block: clamp(96px, 14vw, 220px); }
.about__line { max-width: 19ch; }
.about__hold { padding-block: clamp(44px, 5vw, 72px); }
.about__holdhead { display: grid; gap: 10px; margin-bottom: clamp(24px, 2.8vw, 40px); }
.about__holdhead .d2 { font-size: clamp(1.75rem, 3vw, 2.875rem); }
.rules { display: grid; gap: 20px var(--gap); }
.rule { display: grid; gap: 4px; align-content: start; }
.rule__title { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.012em; line-height: 1.25; }
.rule__text { font-size: var(--fs-sm); line-height: 1.45; }
@media (min-width: 640px) { .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .rules { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 960px) {
  .about__split { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
  .about__split > .about__intro { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
  .about__split > .about__copy { grid-column: 7 / -1; }
}
.sectors { border-top: 1px solid var(--line); }
.sector { display: grid; gap: 10px; padding-block: clamp(20px, 2.2vw, 32px); border-top: 1px solid var(--line); }
.sector:first-child { padding-block: clamp(28px, 3.6vw, 56px); border-top: 0; }
.sector__text { max-width: 38ch; }
@media (min-width: 900px) {
  .sector { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: baseline; }
  .sector > h3 { grid-column: 1 / span 8; }
  .sector__text { grid-column: 9 / -1; }
}
/* The logo's square opens out into the section as it scrolls in. Browsers without
   scroll timelines, and visitors who prefer less motion, get the plain orange band. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .about__pledge { animation: pledgeOpen linear both; animation-timeline: view(); animation-range: entry 10% cover 42%; }
  }
}
@keyframes pledgeOpen { from { clip-path: inset(0 calc(100% - 18vh) calc(100% - 18vh) 0); } to { clip-path: inset(0); } }

/* Contact */
.contact { display: grid; gap: 28px; padding: calc(var(--header-h) + clamp(28px, 4vw, 64px)) var(--gutter) clamp(44px, 5vw, 72px); background: var(--white); }
.contact__intro { display: grid; gap: 10px; align-content: start; justify-items: start; }
.contact__title { font-size: var(--fs-d1); font-weight: 600; line-height: 1; letter-spacing: -0.04em; max-width: 11ch; }
.contact__lede { font-size: var(--fs-lede); line-height: 1.3; }
.contact__mail { margin-top: 10px; font-size: var(--fs-h4); font-weight: 500; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.contact__formwrap { max-width: 720px; }
.cf-grid { display: grid; gap: 16px var(--gap); }
.field--full { grid-column: 1 / -1; }
.cf-picks { margin: 0; padding: 0; border: 0; min-width: 0; }
.cf-picks legend { padding: 0; margin-bottom: 8px; }
.picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.pick span { border-radius: var(--r-sm); display: flex; align-items: center; min-height: 46px; padding: 8px 14px; background: var(--paper); color: var(--ink); font-size: var(--fs-sm); font-weight: 500; line-height: 1.2; cursor: pointer; transition: background-color var(--t), color var(--t); }
.pick:hover span { background: var(--paper-2); }
.pick input:checked + span { background: var(--ink); color: var(--white); }
.pick input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.field--error .pick span { outline: 1px solid #b42000; outline-offset: -1px; }
.page-contact .field__control { min-height: 46px; padding: 10px 14px; }
.page-contact textarea.field__control { min-height: 112px; }
.cf-actions { display: grid; gap: 12px; justify-items: start; margin-top: 16px; }
.contact-regarding { display: inline-flex; align-items: center; gap: 10px; padding: 6px 6px 6px 12px; background: var(--paper-2); font-size: var(--fs-sm); margin-bottom: 8px; }
.contact-regarding button { display: grid; place-items: center; width: 28px; height: 28px; }
.contact-regarding .icon { width: 16px; height: 16px; }
.contact-success { display: grid; gap: 14px; justify-items: start; }
.contact-success:focus { outline: none; }
.contact-success__actions { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 12px; }
@media (min-width: 640px) {
  .cf-grid { grid-template-columns: 1fr 1fr; }
  .picks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .contact { grid-template-columns: 5fr 7fr; gap: clamp(36px, 5vw, 88px); }
}


/* Training: two tracks, named plainly */
.ttracks-wrap { padding-top: clamp(4px, 1vw, 16px); }
.ttracks { display: grid; gap: 44px var(--gap); }
.ttrack { display: grid; gap: 8px; justify-items: start; align-content: start; }
.ttrack__title { font-size: var(--fs-d2); font-weight: 600; line-height: 1.05; letter-spacing: -0.035em; }
.ttrack__sum { max-width: 40ch; }
.ttrack__list { display: grid; justify-items: start; width: 100%; margin-block: 14px 12px; }
.ttrack__list a { display: block; padding-block: 5px; font-size: clamp(1.125rem, 1.5vw, 1.375rem); font-weight: 500; letter-spacing: -0.015em; line-height: 1.25; transition: opacity 0.3s, transform 0.45s var(--ease); }
.ttracks__note { margin-top: clamp(28px, 3vw, 44px); }
@media (hover: hover) {
  .ttrack__list:hover a:not(:hover) { opacity: 0.35; }
  .ttrack__list a:hover { transform: translateX(6px); }
}
@media (min-width: 860px) { .ttracks { grid-template-columns: 1fr 1fr; } }

/* Legal */
.doc { padding-bottom: var(--section); }
.doc__inner { display: grid; gap: 12px; }
.doc__inner > * { max-width: 68ch; }
.doc__inner h2 { margin-top: 24px; }
.doc__notice { padding: 16px 18px; background: var(--paper-2); font-size: var(--fs-sm); }

/* ---- Our expertise (services.html) ---- */
.page-services, .page-services .site-header { background: var(--white); }
.xhero { position: relative; display: flex; align-items: flex-end; min-height: clamp(420px, 64svh, 680px); overflow: hidden; }
.xhero__photo { position: absolute; inset: 0; }
.xhero__photo img { width: 100%; height: 100%; object-fit: cover; }
.xhero__photo::after { content: ''; position: absolute; inset: 0; background: rgba(14, 14, 20, 0.5); }
.xhero__in { position: relative; display: grid; gap: 12px; justify-items: start; width: 100%; padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(24px, 3vw, 44px); }
.xhero__in .kicker { color: rgba(255, 255, 255, 0.75); }
.xhero__title { font-size: clamp(2.5rem, 6vw, 6rem); font-weight: 400; line-height: 1; letter-spacing: -0.04em; }
.xhero__down { display: grid; place-items: center; width: 40px; height: 40px; margin-top: clamp(16px, 3vw, 40px); border-radius: 50%; color: var(--white); transition: background-color var(--t); }
.xhero__down:hover { background: rgba(255, 255, 255, 0.14); }
.xhero__down .icon { width: 18px; height: 18px; }

.xbar { background: var(--white); border-block: 0; border-bottom: 1px solid var(--line); }
.xbar .subnav__in { height: 56px; }
.xbar .subnav__list { gap: 0; width: 100%; }
.xbar .subnav__link { flex: 1 0 auto; gap: 6px; padding-inline: 0 24px; font-size: 1rem; color: var(--mute); }
.xbar .subnav__link + .subnav__link { padding-left: 16px; border-left: 1px solid var(--line); }
.xbar .subnav__link sup { font-size: 0.6875rem; font-weight: 500; color: var(--mute); }
.xbar .subnav__link[aria-current='true'] { color: var(--ink); }

.xarea { padding-block: clamp(48px, 6vw, 96px); }
.xarea + .xarea { border-top: 1px solid var(--line); }
.xarea__grid { display: grid; gap: 24px var(--gap); }
.xarea__n { color: #a6a6ae; font-size: clamp(2rem, 3vw, 3rem); font-weight: 400; line-height: 1; letter-spacing: -0.03em; }
.xarea__title { margin-top: 10px; max-width: 12ch; font-size: clamp(2.125rem, 3.6vw, 3.5rem); font-weight: 400; line-height: 1.04; letter-spacing: -0.035em; }
.xarea__intro { display: grid; gap: 20px; justify-items: start; }
.xarea__text { max-width: 46ch; font-size: clamp(1.0625rem, 1.25vw, 1.25rem); line-height: 1.45; letter-spacing: -0.01em; }
.xarea__photo { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r) var(--r) var(--r) 120px; background: var(--paper); }
.xarea__photo img { width: 100%; height: 100%; object-fit: cover; }
.xarea__label { display: flex; align-items: center; gap: 20px; margin-bottom: 12px; font-size: var(--fs-sm); font-weight: 500; }
.xarea__label .icon { width: 16px; height: 16px; color: var(--mute); }
.xarea__list ul { display: grid; }
.xarea__list li + li a { border-top: 1px solid var(--line); }
.xarea__list li:first-child a { border-top: 1px solid var(--line); }
.xarea__list a { display: grid; grid-template-columns: 20px minmax(0, 1fr) 16px; align-items: center; gap: 16px; padding-block: 13px; color: var(--mute); font-size: var(--fs-sm); transition: color var(--t); }
.xarea__list a .icon { width: 18px; height: 18px; }
.xarea__list a .icon-chevron-right { width: 16px; height: 16px; transition: transform 0.4s var(--ease); }
.xarea__list a:hover { color: var(--ink); }
.xarea__list a:hover .icon-chevron-right { transform: translateX(3px); }
@media (min-width: 1000px) {
  .xarea__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); row-gap: clamp(40px, 4.4vw, 72px); }
  .xarea__head { grid-column: 1 / span 5; }
  .xarea__intro { grid-column: 7 / -1; align-self: start; }
  .xarea__photo { grid-column: 1 / span 5; }
  .xarea__list { grid-column: 7 / -1; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .xhero__title .ln > span { animation: svcRise 1s var(--ease) both; }
  .js .xhero__title .ln + .ln > span { animation-delay: 0.09s; }
}

/* ---- Our work (work.html) ---- */
.page-work, .page-work .site-header { background: var(--white); }
.whead { display: grid; gap: 12px; justify-items: start; padding-top: calc(var(--header-h) + clamp(32px, 4vw, 64px)); padding-bottom: clamp(24px, 3vw, 40px); }
.whead__title { font-size: clamp(2.5rem, 5.4vw, 5.25rem); font-weight: 400; line-height: 1; letter-spacing: -0.04em; }
.wfilters { display: none; gap: 10px; margin-top: clamp(12px, 2vw, 24px); }
.work-js .wfilters { display: flex; flex-wrap: wrap; }
.wfilter { position: relative; display: inline-flex; align-items: center; }
.wfilter select { appearance: none; -webkit-appearance: none; min-height: 40px; padding: 0 38px 0 18px; border: 1px solid var(--line-field); border-radius: var(--pill); background: var(--white); color: var(--ink); font-size: var(--fs-sm); font-weight: 500; cursor: pointer; transition: border-color var(--t), background-color var(--t); }
.wfilter select:hover { border-color: var(--ink); }
.wfilter .icon { position: absolute; right: 14px; width: 16px; height: 16px; pointer-events: none; }
.wfilter.is-set select { background: var(--ink); border-color: var(--ink); color: var(--white); }
.wfilter.is-set .icon { color: var(--white); }

.wgrid-wrap { padding-bottom: clamp(56px, 6vw, 96px); }
.wgrid { display: grid; gap: clamp(36px, 4vw, 56px) var(--gap); }
.wcard { display: grid; gap: 3px; align-content: start; min-width: 0; }
.wcard__img { aspect-ratio: 4 / 3; margin-bottom: 12px; overflow: hidden; border-radius: 4px; background: var(--paper); transition: border-radius 0.6s var(--ease); }
.wcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.wcard:hover .wcard__img { border-radius: 4px 4px 4px clamp(64px, 9vw, 140px); }
.wcard:hover .wcard__img img { transform: scale(1.03); }
.wcard__client { color: var(--mute); font-size: var(--fs-sm); }
.wcard__title { font-size: clamp(1.0625rem, 1.3vw, 1.25rem); font-weight: 500; letter-spacing: -0.015em; line-height: 1.25; }
.wcard__tags { display: flex; gap: 6px; margin-top: 4px; color: var(--mute); font-size: var(--fs-xs); }
.wgrid__empty { padding-block: 40px; }
.wgrid__note { margin-top: clamp(32px, 4vw, 56px); }
@media (min-width: 800px) {
  /* Pairs alternate: wide then narrow, then narrow then wide. Without JS this follows source order. */
  .wgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wcard__img { aspect-ratio: auto; height: clamp(260px, 30vw, 560px); }
  .wgrid > .wcard:nth-child(4n + 1), .wgrid > .wcard:nth-child(4n) { grid-column: span 2; }
  .work-js .wgrid > .wcard { grid-column: span 1; }
  .work-js .wgrid > .wcard.is-wide { grid-column: span 2; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .whead__title .ln > span { animation: svcRise 1s var(--ease) both; }
  .js .whead__title .ln + .ln > span { animation-delay: 0.09s; }
}
.wcard__link { display: grid; gap: 3px; align-content: start; color: inherit; }
.wcard__link:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
.wcard__link:focus-visible .wcard__img { border-radius: 4px 4px 4px clamp(64px, 9vw, 140px); }

/* ---- One project (work/<slug>.html) ---- */
.page-case, .page-case .site-header { background: var(--white); }
.ph { color: var(--mute); }
.chead { display: grid; gap: clamp(20px, 2.4vw, 32px); padding-top: calc(var(--header-h) + clamp(32px, 4vw, 64px)); padding-bottom: clamp(24px, 3vw, 40px); }
.chead__title { font-size: clamp(2.5rem, 5vw, 5rem); font-weight: 400; line-height: 1.02; letter-spacing: -0.04em; }
.chead__client { color: #a6a6ae; }
.chead__meta { display: flex; flex-wrap: wrap; gap: 12px clamp(28px, 4vw, 64px); margin: 0; font-size: var(--fs-sm); }
.chead__meta dt { color: var(--mute); }
.chead__meta dd { margin: 2px 0 0; }

.chero { position: relative; }
.chero__img { height: clamp(320px, 52vw, 860px); overflow: hidden; border-radius: var(--r); background: var(--paper); }
.chero__img img { width: 100%; height: 100%; object-fit: cover; }
.cpill { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 14px; border-radius: var(--pill); background: var(--ink); color: var(--white); font-size: var(--fs-xs); font-weight: 500; transition: background-color var(--t); }
.cpill:hover { background: var(--ink-3); }
.cpill .icon { width: 14px; height: 14px; }
.chero__all, .chero__pager { position: absolute; top: 16px; }
.chero__all { left: calc(var(--gutter) + 16px); }
.chero__pager { right: calc(var(--gutter) + 16px); display: flex; gap: 6px; }

.cblock { padding-block: clamp(48px, 6vw, 104px); }
.csplit { display: grid; gap: 16px var(--gap); }
.clabel { display: flex; align-items: center; gap: 14px; font-size: var(--fs-sm); font-weight: 500; }
.clabel::before { content: ''; width: 2px; height: 1.2em; background: var(--ink); }
.clabel--plain { color: var(--mute); font-weight: 400; margin-bottom: 14px; }
.clabel--plain::before { display: none; }
.ctext { max-width: 56ch; font-size: clamp(1rem, 1.15vw, 1.125rem); line-height: 1.55; }
.cmuted { max-width: 52ch; color: var(--mute); line-height: 1.55; }
.chx { font-size: clamp(1.75rem, 2.8vw, 2.75rem); font-weight: 400; line-height: 1.08; letter-spacing: -0.03em; }
.chx--lg { max-width: 18ch; font-size: clamp(2rem, 3.4vw, 3.25rem); }
.cnarrow { display: grid; gap: 14px; }

.cimg { overflow: hidden; border-radius: var(--r); background: var(--paper); }
.cimg img { width: 100%; height: 100%; object-fit: cover; }
.cpair { display: grid; gap: var(--gap); }
.cpair .cimg { aspect-ratio: 4 / 3; }
.cimg--b { border-radius: var(--r) var(--r) clamp(64px, 9vw, 140px) var(--r); }
.cband { background: var(--paper); padding-block: clamp(36px, 4vw, 64px); }
.cscreens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.cscreens .cimg { aspect-ratio: 3 / 4; }
.cimg--wide { aspect-ratio: 16 / 9; }

.cimpact { display: grid; gap: 32px var(--gap); }
.cstats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); margin: 0; }
.cstats div { display: flex; flex-direction: column; justify-content: space-between; min-height: 160px; padding-left: 16px; border-left: 1px solid var(--line); }
.cstats dt { font-size: clamp(2rem, 3vw, 2.75rem); font-weight: 400; letter-spacing: -0.03em; color: var(--mute); }
.cstats dd { margin: 0; color: var(--mute); font-size: var(--fs-xs); }

.cfeature { display: grid; gap: 28px var(--gap); align-items: center; }
.cfeature .cimg { aspect-ratio: 4 / 3; }
.cimg--cut { border-radius: var(--r) var(--r) var(--r) clamp(64px, 9vw, 140px); }
.cimg--cut-r { border-radius: var(--r) var(--r) clamp(64px, 9vw, 140px) var(--r); }
.cfeature__copy { display: grid; gap: 14px; }

.cquote blockquote { display: grid; gap: 24px; max-width: 46ch; margin: 0; }
.cquote__text { font-size: clamp(1.25rem, 1.8vw, 1.625rem); line-height: 1.35; letter-spacing: -0.015em; }
.cquote__who { display: flex; align-items: center; gap: 12px; font-size: var(--fs-sm); }
.cquote__who b { display: block; font-weight: 500; }
.cquote__who span span { color: var(--mute); }
.cquote__av { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--paper-2); color: var(--mute); font-weight: 600; }

.crail { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.crail__track { display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.crail__track::-webkit-scrollbar { display: none; }
.crail__track .cimg { flex: 0 0 min(72vw, 520px); aspect-ratio: 4 / 3; scroll-snap-align: start; }
.cround { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--white); color: var(--ink); transition: background-color var(--t), color var(--t); }
.cround:hover { background: var(--ink); color: var(--white); }
.cround:disabled { opacity: 0.35; pointer-events: none; }
.cround .icon { width: 16px; height: 16px; }
@media (max-width: 639px) { .cround { display: none; } .crail { grid-template-columns: minmax(0, 1fr); } }

@media (min-width: 900px) {
  .csplit { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .csplit .clabel { grid-column: 1 / span 4; }
  .csplit .ctext { grid-column: 8 / -1; }
  .cpair { grid-template-columns: 5fr 7fr; }
  .cpair .cimg { aspect-ratio: auto; height: clamp(360px, 40vw, 680px); }
  .cnarrow { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .cnarrow > * { grid-column: 3 / span 7; }
  .cscreens { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cimpact { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .cimpact > div { grid-column: 1 / span 6; }
  .cstats { grid-column: 8 / -1; }
  .cfeature { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .cfeature .cimg { grid-column: 1 / span 6; }
  .cfeature .cfeature__copy { grid-column: 8 / -1; }
  .cfeature--flip .cfeature__copy { grid-column: 1 / span 5; grid-row: 1; }
  .cfeature--flip .cimg { grid-column: 7 / -1; }
  .cquote blockquote { margin-left: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .chead__title .ln > span { animation: svcRise 1s var(--ease) both; }
  .js .chead__title .ln + .ln > span { animation-delay: 0.09s; }
}

/* ---- About (about.html) ---- */
.page-about, .page-about .site-header { background: var(--white); }
.abig { margin: 0 0 clamp(28px, 4vw, 64px) -0.05em; font-size: clamp(5rem, 19vw, 20rem); font-weight: 500; line-height: 0.82; letter-spacing: -0.06em; white-space: nowrap; color: var(--ink-3); user-select: none; }
.abig--light { color: #ececea; }
.ahx { font-size: clamp(2rem, 3.4vw, 3.25rem); font-weight: 400; line-height: 1.06; letter-spacing: -0.035em; }
.amuted { max-width: 44ch; color: var(--mute-on-ink); line-height: 1.55; }
.aphoto { overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--r); background: var(--ink-2); }
.aphoto img { width: 100%; height: 100%; object-fit: cover; }
.aphoto--cut { border-radius: var(--r) var(--r) var(--r) clamp(72px, 10vw, 160px); }
.aphoto--wide { aspect-ratio: 16 / 10; }

.aintro { padding-top: calc(var(--header-h) + clamp(32px, 4vw, 64px)); padding-bottom: clamp(48px, 6vw, 96px); }
.aintro__title { font-size: clamp(2.5rem, 5.4vw, 5.25rem); font-weight: 400; line-height: 1; letter-spacing: -0.04em; margin-bottom: clamp(28px, 3vw, 48px); }
.aintro__grid { display: grid; gap: 28px var(--gap); }
.aintro__photo { overflow: hidden; aspect-ratio: 16 / 10; border-radius: var(--r) var(--r) var(--r) clamp(72px, 10vw, 160px); background: var(--paper); }
.aintro__photo img { width: 100%; height: 100%; object-fit: cover; }
.aintro__side { display: grid; gap: 18px; justify-items: start; align-content: start; }
.aintro__text { max-width: 44ch; color: var(--mute); line-height: 1.55; }
.aintro__side .tlink { font-size: var(--fs-sm); }
.aintro__logo { display: flex; align-items: center; gap: 14px; margin-top: clamp(12px, 3vw, 48px); padding: clamp(28px, 3vw, 48px) clamp(28px, 3.4vw, 56px); border-radius: var(--r) var(--r) var(--r) 72px; background: var(--ink); color: var(--white); font-size: clamp(1.375rem, 2.4vw, 2.25rem); font-weight: 600; letter-spacing: 0.02em; }
.aintro__mark { display: block; width: 1.4em; height: 1.4em; }
.aintro__mark svg { width: 100%; height: 100%; }
@media (min-width: 1000px) {
  .aintro__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .aintro__photo { grid-column: 1 / span 6; }
  .aintro__side { grid-column: 8 / -1; padding-top: 8px; }
}

.aband { padding-block: clamp(56px, 7vw, 112px); overflow: hidden; }
.arow { display: grid; gap: 28px var(--gap); align-items: center; margin-bottom: clamp(56px, 7vw, 112px); }
.arow__copy { display: grid; gap: 18px; justify-items: start; }
.astats { display: grid; gap: 28px var(--gap); margin: 0; }
.astats li { display: grid; gap: 4px; align-content: start; justify-items: start; }
.astats b { font-size: clamp(2.5rem, 4vw, 3.75rem); font-weight: 400; line-height: 1; letter-spacing: -0.04em; }
.astat__label { margin-top: 10px; font-size: 1.125rem; }
.astat__note { max-width: 30ch; color: var(--mute-on-ink); font-size: var(--fs-sm); line-height: 1.45; }
.astats .tlink { margin-top: 10px; font-size: var(--fs-sm); }
.astats--two { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; }
.astats--three li { padding-top: 18px; border-top: 1px solid var(--line-on-ink); }
@media (min-width: 720px) { .astats--three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) {
  .arow { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .arow > .arow__copy { grid-column: 1 / span 5; }
  .arow > .aphoto { grid-column: 7 / -1; }
  .arow--flip > .aphoto { grid-column: 1 / span 5; grid-row: 1; }
  .arow--flip > .arow__copy { grid-column: 8 / -1; }
}

.apeople__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: clamp(28px, 3vw, 48px); }
.apeople__head .ahx { margin-top: 10px; }
.ateam { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px var(--gap); }
.ateam__photo { display: grid; place-items: center; aspect-ratio: 4 / 5; margin-bottom: 12px; border-radius: var(--r); background: var(--paper); color: #cfcec8; transition: border-radius 0.6s var(--ease); }
.ateam li:hover .ateam__photo { border-radius: var(--r) var(--r) var(--r) 72px; }
.ateam__photo span { display: block; width: 22%; aspect-ratio: 1; opacity: 0.5; }
.ateam__photo svg { width: 100%; height: 100%; }
.ateam__name { font-weight: 500; }
.ateam__role { color: var(--mute); font-size: var(--fs-sm); }
.ateam__note { margin-top: clamp(24px, 3vw, 40px); }
@media (min-width: 900px) { .ateam { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.avalues__grid { display: grid; gap: 40px var(--gap); }
.avalues__left { display: grid; gap: 18px; align-content: start; }
.avalues__left p { max-width: 40ch; }
.avalues__left .aphoto { margin-top: 12px; background: var(--paper); }
.avalues__list { display: grid; gap: 28px; align-content: start; }
.avalues__list h3 { font-size: 1.125rem; font-weight: 500; letter-spacing: -0.012em; }
.avalues__list p { max-width: 46ch; margin-top: 6px; color: var(--mute); font-size: var(--fs-sm); line-height: 1.5; }
@media (min-width: 1000px) {
  .avalues__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .avalues__left { grid-column: 1 / span 5; }
  .avalues__list { grid-column: 7 / -1; padding-top: 8px; }
}

.ajoin { padding-block: clamp(48px, 6vw, 88px); background: var(--paper); }
.ajoin .container { display: grid; gap: 14px; justify-items: start; }
.ajoin__kicker { color: #a6a6ae; font-size: clamp(2rem, 3.4vw, 3.25rem); font-weight: 400; line-height: 1; letter-spacing: -0.035em; }
.ajoin .btn { margin-top: 12px; }

.alocs__grid { display: grid; gap: 28px var(--gap); }
.alocs__list { display: grid; gap: var(--gap); }
.alocs__photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); background: var(--paper); }
.alocs__photo img { width: 100%; height: 100%; object-fit: cover; }
.alocs__photo::after { content: ''; position: absolute; inset: 0; background: rgba(14, 14, 20, 0.28); }
.alocs__photo span { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; color: var(--white); font-size: clamp(1.5rem, 2.4vw, 2.25rem); letter-spacing: -0.02em; }
.alocs address { margin-top: 10px; color: var(--mute); font-size: var(--fs-sm); font-style: normal; }
@media (min-width: 1000px) {
  .alocs__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .alocs__grid > .ahx { grid-column: 1 / span 4; }
  .alocs__list { grid-column: 5 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: no-preference) {
  .js .aintro__title .ln > span { animation: svcRise 1s var(--ease) both; }
  .js .aintro__title .ln + .ln > span { animation-delay: 0.09s; }
}

/* ---- Learn (learn.html) ---- */
.page-learn { background: var(--white); }
.lhero { padding-top: calc(var(--header-h) + clamp(32px, 4vw, 64px)); padding-bottom: clamp(40px, 5vw, 72px); }
.lhero .kicker { margin-bottom: 12px; }
.lhero__title { font-size: clamp(2.5rem, 5.4vw, 5.25rem); font-weight: 400; line-height: 1; letter-spacing: -0.04em; margin-bottom: clamp(32px, 4vw, 64px); }
.ltiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ltile { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: clamp(150px, 15vw, 230px); padding: 18px; overflow: hidden; border: 1px solid var(--line-on-ink); border-radius: 6px; background: var(--ink-2); color: var(--white); text-align: left; transition: border-radius 0.6s var(--ease), background-color var(--t), border-color var(--t); }
.ltile:hover, .ltile[aria-pressed='true'] { border-radius: 6px 6px 6px 56px; background: var(--ink-3); border-color: var(--ink-3); }
.ltile__name { position: relative; z-index: 1; font-size: clamp(1.125rem, 1.6vw, 1.5rem); letter-spacing: -0.02em; }
.ltile__go { position: relative; z-index: 1; align-self: flex-end; color: var(--mute-on-ink); font-size: var(--fs-xs); }
.ltile[aria-pressed='true'] .ltile__go { color: var(--white); }
.ltile:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.lbox { position: absolute; right: -14%; bottom: -26%; width: 62%; aspect-ratio: 1; border: 10px solid currentColor; opacity: 0.08; transition: transform 0.8s var(--ease), opacity 0.4s; }
.lbox i { position: absolute; right: 16%; bottom: 16%; width: 30%; height: 30%; background: currentColor; }
.ltile:hover .lbox, .ltile[aria-pressed='true'] .lbox { transform: translate(-6%, -6%); opacity: 0.16; }
.ltile[aria-pressed='true'] .lbox i { background: var(--orange); opacity: 1; }
@media (min-width: 900px) { .ltiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.lgrid__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: clamp(24px, 3vw, 40px); }
.lclear { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--mute); }
.lclear:hover { color: var(--ink); }
.lclear .icon { width: 14px; height: 14px; }
.lgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3.4vw, 48px) var(--gap); }
.lcard { display: grid; gap: 12px; align-content: start; }
.lcard__art { position: relative; aspect-ratio: 4 / 5; overflow: hidden; padding: clamp(18px, 1.8vw, 28px); border-radius: 4px; background: var(--paper-2); color: var(--ink); transition: border-radius 0.6s var(--ease); }
.lcard:hover .lcard__art { border-radius: 4px 4px 4px clamp(64px, 8vw, 120px); }
.lcard__rule { display: block; width: 32px; height: 2px; margin-bottom: 14px; background: var(--ink); }
.lcard__title { position: relative; z-index: 1; max-width: 16ch; font-size: clamp(1rem, 1.7vw, 1.625rem); font-weight: 400; line-height: 1.15; letter-spacing: -0.02em; }
.lcard .lbox { right: -18%; bottom: -18%; width: 78%; border-width: 14px; opacity: 0.07; }
.lcard:hover .lbox { transform: translate(-5%, -5%); opacity: 0.12; }
.lcard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--mute); font-size: var(--fs-xs); }
.lcard__tag { padding: 3px 10px; border-radius: var(--pill); background: var(--paper-2); color: var(--ink); font-weight: 500; }
.lgrid__note { margin-top: clamp(32px, 4vw, 56px); }
@media (min-width: 1000px) { .lgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: no-preference) {
  .js .lhero__title .ln > span { animation: svcRise 1s var(--ease) both; }
  .js .lhero__title .ln + .ln > span { animation-delay: 0.09s; }
}

/* ---- Insights (insights.html) ---- */
.page-insights, .page-insights .site-header { background: var(--white); }
.nhead { display: grid; gap: 24px var(--gap); align-items: end; padding-top: calc(var(--header-h) + clamp(32px, 4vw, 64px)); padding-bottom: clamp(32px, 4vw, 56px); }
.nhead__title { font-size: clamp(2.5rem, 5.4vw, 5.25rem); font-weight: 400; line-height: 1; letter-spacing: -0.04em; }
.ntools { display: none; align-items: center; gap: 8px 20px; flex-wrap: wrap; }
.news-js .ntools { display: flex; }
.ntabs { display: flex; gap: 4px 22px; flex-wrap: wrap; }
.ntabs button { padding-block: 6px; color: var(--mute); font-size: var(--fs-sm); transition: color var(--t); }
.ntabs button:hover, .ntabs button[aria-pressed='true'] { color: var(--ink); }
.ntabs button[aria-pressed='true'] { font-weight: 500; }
.nsearch { display: flex; align-items: center; gap: 6px; }
.nsearch__btn { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--mute); transition: color var(--t), background-color var(--t); }
.nsearch__btn:hover, .nsearch.is-open .nsearch__btn { color: var(--ink); background: var(--paper); }
.nsearch__btn .icon { width: 16px; height: 16px; }
.nsearch__input { width: 0; padding: 0; border: 0; border-bottom: 1px solid transparent; background: none; font-size: var(--fs-sm); transition: width 0.45s var(--ease), border-color var(--t); }
.nsearch.is-open .nsearch__input { width: 170px; padding: 6px 0; border-bottom-color: var(--line-field); }
.nsearch__input:focus { outline: none; border-bottom-color: var(--ink); }
@media (min-width: 1000px) {
  .nhead { grid-template-columns: minmax(0, 1fr) auto; }
  .ntools { padding-bottom: 8px; }
}

.ngrid-wrap { padding-bottom: clamp(56px, 6vw, 96px); }
.ngrid { display: grid; gap: clamp(40px, 4.4vw, 72px) var(--gap); }
.ncard { display: grid; gap: 8px; align-content: start; }
.ncard__img { aspect-ratio: 6 / 7; margin-bottom: 10px; overflow: hidden; border-radius: 4px; background: var(--paper); transition: border-radius 0.6s var(--ease); }
.ncard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.ncard:hover .ncard__img { border-radius: 4px 4px 4px clamp(64px, 8vw, 120px); }
.ncard:hover .ncard__img img { transform: scale(1.03); }
.ncard__meta { display: flex; gap: 12px; font-size: var(--fs-xs); color: #a6a6ae; }
.ncard__meta b { color: var(--ink); font-weight: 500; }
.ncard__title { max-width: 26ch; font-size: clamp(1.125rem, 1.4vw, 1.375rem); font-weight: 400; line-height: 1.25; letter-spacing: -0.015em; }
.ngrid__empty { padding-block: 40px; }
.ngrid__note { margin-top: clamp(32px, 4vw, 56px); }
@media (min-width: 640px) { .ngrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .ngrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: no-preference) {
  .js .nhead__title .ln > span { animation: svcRise 1s var(--ease) both; }
  .js .nhead__title .ln + .ln > span { animation-delay: 0.09s; }
}

/* ---- Training overview (training.html), after the reference careers page ---- */
.thead { padding-top: calc(var(--header-h) + clamp(32px, 4vw, 64px)); overflow: hidden; }
.thead .kicker { margin-bottom: 12px; }
.thead__title { font-size: clamp(2.5rem, 5.4vw, 5.25rem); font-weight: 400; line-height: 1; letter-spacing: -0.04em; margin-bottom: clamp(28px, 3vw, 48px); }
.tstrip { display: flex; gap: 10px; margin-inline: -4vw; }
.tstrip__img { flex: 0 0 clamp(220px, 27vw, 460px); aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: var(--paper); }
.tstrip__img img { width: 100%; height: 100%; object-fit: cover; }
.tstrip__img:nth-child(2) { border-radius: 4px 4px 4px clamp(64px, 8vw, 120px); }
.tkick { color: #a6a6ae; font-size: clamp(1.5rem, 2.4vw, 2.25rem); letter-spacing: -0.03em; margin-bottom: 4px; }
.tkick--dark { color: var(--mute); font-size: var(--fs-sm); letter-spacing: 0; margin-bottom: 12px; }
.tcourses__head { max-width: 22ch; margin-bottom: clamp(32px, 4vw, 64px); }
.tcourses__head .ahx { font-size: clamp(1.75rem, 2.8vw, 2.75rem); }
.tcourses__grid { display: grid; gap: 28px var(--gap); }
.tcourses__side { display: grid; gap: 24px; align-content: space-between; }
.tfilter { display: none; gap: 2px 20px; flex-wrap: wrap; border-left: 2px solid var(--ink); padding-left: 16px; }
.course-js .tfilter { display: flex; }
.tfilter button { color: #a6a6ae; font-size: clamp(1.25rem, 1.8vw, 1.75rem); letter-spacing: -0.02em; text-align: left; transition: color var(--t); }
.tfilter button:hover, .tfilter button[aria-pressed='true'] { color: var(--ink); }
.tbox { display: grid; gap: 14px; justify-items: start; max-width: 340px; padding: 22px; border-radius: var(--r) var(--r) var(--r) 56px; background: var(--paper); font-size: var(--fs-sm); line-height: 1.45; }
.tlist li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.tlist li:first-child { border-top: 1px solid var(--line); }
.tlist__main { min-width: 0; }
.tlist__name { font-weight: 500; letter-spacing: -0.01em; transition: color var(--t); }
.tlist__name:hover { color: var(--mute); }
.tlist__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 4px; color: var(--mute); font-size: var(--fs-xs); }
.tlist__meta .icon { width: 13px; height: 13px; }
.tlist__meta span + .icon { margin-left: 10px; }
.tpill { display: inline-flex; flex: none; align-items: center; gap: 6px; min-height: 34px; padding: 0 14px; border-radius: var(--pill); background: var(--paper-2); font-size: var(--fs-xs); font-weight: 500; transition: background-color var(--t), color var(--t); }
.tpill:hover { background: var(--ink); color: var(--white); }
.tpill .icon { width: 13px; height: 13px; }
.tcourses__note { margin-top: clamp(24px, 3vw, 40px); }
@media (min-width: 1000px) {
  .tcourses__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .tcourses__side { grid-column: 1 / span 3; }
  .tfilter { flex-direction: column; }
  .tlist { grid-column: 4 / -1; }
}

.tgets__title { margin-bottom: clamp(32px, 4vw, 56px); }
.tgets__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px) var(--gap); }
.tgets__grid li { display: grid; gap: 14px; align-content: start; }
.tgets__grid .icon { width: 22px; height: 22px; }
.tgets__grid h3 { max-width: 26ch; font-size: 1rem; font-weight: 400; line-height: 1.4; }
@media (min-width: 900px) { .tgets__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.tformats { display: grid; gap: 32px var(--gap); }
.tformats__photo { aspect-ratio: 4 / 5; }
.tformats__list { display: grid; gap: 32px var(--gap); }
.tformats__list span { display: block; color: #6f6f7e; font-size: var(--fs-sm); margin-bottom: 8px; }
.tformats__list h3 { font-size: clamp(1.5rem, 2.2vw, 2.125rem); font-weight: 400; letter-spacing: -0.03em; line-height: 1.1; }
.tformats__list p { max-width: 34ch; margin-top: 10px; color: var(--mute-on-ink); font-size: var(--fs-sm); line-height: 1.5; }
@media (min-width: 640px) { .tformats__list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) {
  .tformats { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .tformats__photo { grid-column: 1 / span 4; }
  .tformats > div:last-child { grid-column: 6 / -1; }
}

.tcounts { padding-block: clamp(56px, 6vw, 96px); background: var(--paper-2); }
.tcounts__grid { display: grid; gap: 32px var(--gap); }
.tcounts em { font-style: normal; color: #9a9aa2; }
.tcounts__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin: 0; }
.tcounts__list div { display: flex; flex-direction: column; justify-content: space-between; min-height: 150px; padding-left: 16px; border-left: 1px solid #d6d5cf; }
.tcounts__list dt { font-size: clamp(2.5rem, 4vw, 3.75rem); font-weight: 400; letter-spacing: -0.04em; line-height: 1; }
.tcounts__list dd { margin: 0; color: var(--mute); font-size: var(--fs-sm); }
@media (min-width: 1000px) {
  .tcounts__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; }
  .tcounts__grid > div:first-child { grid-column: 1 / span 5; }
  .tcounts__list { grid-column: 7 / -1; }
}

.tlast__grid { display: grid; gap: 28px var(--gap); align-items: center; }
.tlast__copy { display: grid; gap: 16px; justify-items: start; }
.tlast__copy p { max-width: 40ch; }
.ln--soft { color: #9a9aa2; }
.tlast__photo { background: var(--paper); }
@media (min-width: 1000px) {
  .tlast__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .tlast__photo { grid-column: 1 / span 6; }
  .tlast__copy { grid-column: 8 / -1; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .thead__title .ln > span { animation: svcRise 1s var(--ease) both; }
  .js .thead__title .ln + .ln > span { animation-delay: 0.09s; }
}

/* ---- Apps catalogue (apps.html), after the reference service-detail page ---- */
.dhead { padding-top: calc(var(--header-h) + clamp(28px, 3.4vw, 56px)); padding-bottom: clamp(40px, 5vw, 80px); border-bottom: 1px solid var(--line); }
.dhead__crumb { display: inline-flex; align-items: center; gap: 8px; color: var(--mute); font-size: var(--fs-sm); transition: color var(--t); }
.dhead__crumb:hover { color: var(--ink); }
.dhead__crumb .icon { width: 14px; height: 14px; }
.dhead__pick { position: relative; margin: 10px 0 clamp(28px, 3.4vw, 56px); }
.dhead__pick summary { display: inline-flex; align-items: center; gap: 14px; list-style: none; cursor: pointer; }
.dhead__pick summary::-webkit-details-marker { display: none; }
.dhead__pick summary .icon { width: clamp(20px, 2.2vw, 32px); height: clamp(20px, 2.2vw, 32px); transition: transform 0.4s var(--ease); }
.dhead__pick[open] summary .icon { transform: rotate(180deg); }
.dhead__title { font-size: clamp(2.25rem, 4.4vw, 4.25rem); font-weight: 400; line-height: 1.04; letter-spacing: -0.035em; }
.dhead__pick ul { position: absolute; left: 0; top: calc(100% + 10px); z-index: 20; min-width: 280px; padding: 8px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); }
.dhead__pick ul a { display: block; padding: 10px 12px; border-radius: 8px; transition: background-color var(--t); }
.dhead__pick ul a:hover { background: var(--paper); }
.dhead__grid { display: grid; gap: 32px var(--gap); }
.dhead__lede { max-width: 34ch; color: var(--mute); font-size: clamp(1.125rem, 1.5vw, 1.375rem); line-height: 1.4; letter-spacing: -0.012em; }
.dhead__jump { margin-top: clamp(24px, 3vw, 48px); max-width: 440px; }
.dhead__jump a { display: block; padding-block: 11px; border-bottom: 1px solid var(--line); color: var(--mute); font-size: var(--fs-sm); transition: color var(--t), padding-left 0.4s var(--ease); }
.dhead__jump a:hover { color: var(--ink); padding-left: 6px; }
.dhead__photo { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r) var(--r) clamp(72px, 9vw, 140px) var(--r); background: var(--paper); }
.dhead__photo img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1000px) {
  .dhead__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .dhead__copy { grid-column: 1 / span 5; }
  .dhead__photo { grid-column: 7 / -1; aspect-ratio: 5 / 4; }
}

.dapp { padding-block: clamp(56px, 7vw, 112px); scroll-margin-top: var(--header-h); }
.dapp + .dapp { border-top: 1px solid var(--line); }
.dapp__grid { display: grid; gap: 28px var(--gap); }
.dapp__side { display: grid; gap: 28px; align-content: space-between; }
.dapp__title { display: flex; align-items: flex-start; gap: 16px; font-size: clamp(1.875rem, 3vw, 2.75rem); font-weight: 400; line-height: 1.06; letter-spacing: -0.03em; }
.dapp__title .icon { flex: none; width: 0.6em; height: 0.6em; margin-top: 0.24em; }
.dapp__card { display: flex; align-items: center; gap: 16px; max-width: 380px; font-size: var(--fs-sm); line-height: 1.35; }
.dapp__thumb { flex: none; width: 72px; aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: var(--paper); transition: border-radius 0.5s var(--ease); }
.dapp__thumb img { width: 100%; height: 100%; object-fit: cover; }
.dapp__card:hover .dapp__thumb { border-radius: 8px 8px 8px 28px; }
.dapp__card b { display: block; font-weight: 500; }
.dapp__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--mute); font-size: var(--fs-xs); }
.dapp__more .icon { width: 12px; height: 12px; transition: transform 0.4s var(--ease); }
.dapp__card:hover .dapp__more .icon { transform: translate(2px, -2px); }
.dapp__text { display: grid; gap: 1.2em; max-width: 60ch; color: var(--mute); line-height: 1.6; }
.dapp__text p:first-child { color: var(--ink); }
.dapp__note { padding-bottom: clamp(40px, 5vw, 72px); }
@media (min-width: 1000px) {
  .dapp__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .dapp__side { grid-column: 1 / span 5; }
  .dapp__text { grid-column: 7 / -1; }
}

/* ---- One app (apps/<slug>.html) ---- */
.page-app-detail, .page-app-detail .site-header { background: var(--white); }
.xd-head { display: grid; gap: clamp(20px, 2.4vw, 32px); padding-top: calc(var(--header-h) + clamp(28px, 3.4vw, 56px)); padding-bottom: clamp(28px, 3vw, 48px); }
.xd-head__grid { display: grid; gap: 20px var(--gap); align-items: end; }
.xd-head__title { font-size: clamp(2.5rem, 5vw, 5rem); font-weight: 400; line-height: 1.02; letter-spacing: -0.04em; }
.xd-head__cat { color: #a6a6ae; }
.xd-head__side { display: grid; gap: 16px; justify-items: start; }
.xd-head__tag { max-width: 30ch; font-size: clamp(1.125rem, 1.5vw, 1.375rem); line-height: 1.35; letter-spacing: -0.012em; }
@media (min-width: 1000px) {
  .xd-head__grid { grid-template-columns: minmax(0, 1fr) auto; }
  .xd-head__side { padding-bottom: 8px; }
}
.xd-screen { padding-block: clamp(28px, 3.4vw, 56px); background: var(--paper); }
.xd-screen__frame .pw { border-color: #dcdbd5; }
.xd-screen__note { margin-top: 14px; }
.xd-feats__grid { display: grid; gap: clamp(28px, 3vw, 48px) var(--gap); margin-top: clamp(28px, 3vw, 48px); }
.xd-feats__grid li { display: grid; gap: 10px; align-content: start; }
.xd-feats__grid .icon { width: 22px; height: 22px; margin-bottom: 4px; }
.xd-feats__grid h3 { font-size: 1.125rem; font-weight: 500; letter-spacing: -0.012em; }
.xd-feats__grid p { max-width: 32ch; color: var(--mute); font-size: var(--fs-sm); line-height: 1.5; }
@media (min-width: 640px) { .xd-feats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .xd-feats__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.xd-mods { border-top: 1px solid var(--line); }
.xd-fit__title { margin-bottom: clamp(32px, 4vw, 64px); }
.xd-fit { display: grid; gap: 40px var(--gap); }
.xd-fit__label { color: var(--mute-on-ink); font-size: var(--fs-sm); margin-bottom: 16px; }
.xd-fit__list { display: grid; gap: 14px; }
.xd-fit__list li { display: grid; grid-template-columns: 32px minmax(0, 1fr); font-size: clamp(1.125rem, 1.6vw, 1.5rem); letter-spacing: -0.02em; line-height: 1.25; }
.xd-fit__list span { color: #6f6f7e; font-size: var(--fs-sm); line-height: 2; }
@media (min-width: 900px) { .xd-fit { grid-template-columns: 1fr 1fr; } }
.xd-more__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: clamp(24px, 3vw, 40px); }
.xd-more__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px var(--gap); }
.xd-more__img { aspect-ratio: 4 / 3 !important; }
@media (min-width: 1000px) { .xd-more__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: no-preference) {
  .js .xd-head__title .ln > span { animation: svcRise 1s var(--ease) both; }
  .js .xd-head__title .ln + .ln > span { animation-delay: 0.09s; }
}
/* Contact form spam trap: off screen for people, still in the form for bots. */
.cf-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
