/* Home page */
html:has(.page-home) { scroll-padding-top: 0; }
.page-home { background: var(--white); }

/* Two-tone section heads: regular weight, the second part muted. */
.hx { font-size: clamp(2rem, 3.6vw, 3.5rem); font-weight: 400; line-height: 1.06; letter-spacing: -0.035em; }
.ln--mute { color: var(--mute); }
.on-ink .ln--mute { color: #6f6f7e; }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; min-height: 100svh; display: flex; }
.hero__stage { position: relative; z-index: 1; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: clamp(20px, 2.4vw, 32px) var(--gap); width: 100%; padding-top: calc(var(--header-h) + clamp(28px, 4vw, 64px)); padding-bottom: clamp(24px, 3vw, 44px); }
.hero__top { min-width: 0; }
.hero__title { font-size: clamp(2.5rem, 10.5vw, 5.75rem); font-weight: 400; line-height: 1; letter-spacing: -0.045em; margin-left: -0.04em; }
.hero__line { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.hero__line > span { display: block; }
.hero__line--mute { color: #6f6f7e; }
.hero__stop { display: inline-block; width: 0.2em; height: 0.2em; margin-left: 0.06em; background: var(--orange); }
.hero__left { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-height: 0; }
.hero__intro { max-width: 40ch; color: var(--mute-on-ink); font-size: var(--fs-sm); line-height: 1.5; }
.hero__photo { width: 100%; aspect-ratio: 4 / 3; margin-top: 8px; overflow: hidden; border-radius: var(--r) var(--r) var(--r) 96px; background: var(--ink-2); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__side { display: grid; gap: 22px; justify-items: start; align-self: end; }
.hero__sidetext { max-width: 30ch; font-size: clamp(1.25rem, 1.7vw, 1.625rem); font-weight: 400; line-height: 1.25; letter-spacing: -0.02em; }
.hero__svc { display: grid; gap: 4px 28px; width: 100%; color: var(--mute-on-ink); font-size: var(--fs-sm); }
.hero__svc a { display: flex; align-items: center; gap: 10px; padding-block: 5px; transition: color var(--t); }
.hero__svc a:hover { color: var(--white); }
.hero__svc .icon { width: 1.1em; height: 1.1em; flex: none; }
.hero__side .tlink { font-size: var(--fs-sm); color: var(--mute-on-ink); }
.hero__grow { position: absolute; left: 0; top: 0; width: 10px; height: 10px; background: var(--orange); z-index: 2; opacity: 0; transform-origin: 50% 50%; will-change: transform; pointer-events: none; }
.hero-pin.is-pinned .hero__grow { opacity: 1; }
@media (min-width: 560px) { .hero__svc { grid-template-columns: repeat(2, max-content); } }
@media (min-width: 1000px) {
  .hero__stage { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .hero__top { grid-column: 1 / -1; }
  .hero__title { font-size: min(6.4vw, 7.5rem, calc((100svh - 420px) / 2)); white-space: nowrap; }
  .hero__left { grid-column: 1 / span 5; }
  .hero__side { grid-column: 8 / -1; }
  /* Held on screen: the photo takes whatever height is left. */
  .hero-pin.is-pinned .hero__photo { flex: 1 1 0; min-height: 140px; aspect-ratio: auto; }
}
.hero-pin.is-pinned { height: calc(100svh + 130vh); }
.hero-pin.is-pinned .hero { position: sticky; top: 0; height: 100svh; min-height: 0; }
@media (prefers-reduced-motion: no-preference) {
  .js .hero__line > span { transform: translateY(105%); animation: lineUp 1s var(--ease) forwards; animation-delay: calc(var(--i) * 90ms + 120ms); }
  .js .hero__stop { transform: scale(0); animation: stopIn 0.5s var(--ease) forwards 0.95s; }
  .js .hero__left > *, .js .hero__side { opacity: 0; animation: fadeUp 0.8s var(--ease) forwards 0.55s; }
  .js .hero__photo { animation-delay: 0.7s; }
  .js .hero__side { animation-delay: 0.8s; }
}
@keyframes lineUp { to { transform: none; } }
@keyframes stopIn { to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---- Statement ---- */
.statement { padding-block: clamp(48px, 5.6vw, 88px); }
.statement__grid { display: grid; gap: 24px var(--gap); }
.statement__title { font-size: clamp(2.125rem, 4.9vw, 5.25rem); font-weight: 500; line-height: 1.02; letter-spacing: -0.04em; }
.statement__title span { display: block; }
.statement__side { display: grid; gap: 14px; justify-items: start; }
.statement__lede { max-width: 40ch; }
@media (min-width: 1000px) {
  .statement__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; }
  .statement__title { grid-column: 1 / span 8; }
  .statement__side { grid-column: 9 / -1; }
}

/* ---- Card rows: photo cards that run off the edge ---- */
.rail + .rail { padding-top: 0; }
.rail__grid { display: grid; gap: 28px var(--gap); }
.rail__head { display: grid; gap: 14px; justify-items: start; align-content: start; }
.rail__head p { max-width: 34ch; }
.rail__nav { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.sqbtn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--paper); color: var(--ink); transition: background-color var(--t), color var(--t); }
.sqbtn:hover { background: var(--ink); color: var(--white); }
.sqbtn .icon { width: 18px; height: 18px; }
.sqbtn:disabled { opacity: 0.35; pointer-events: none; }
.rail__track { display: flex; gap: var(--gap); margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
.rail__track::-webkit-scrollbar { display: none; }
.scard { flex: 0 0 min(66vw, 340px); display: grid; gap: 4px; align-content: start; scroll-snap-align: start; }
.scard__art { aspect-ratio: 1; margin-bottom: 12px; overflow: hidden; border-radius: var(--r); background: var(--paper); }
.scard__art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.scard:hover .scard__art img { transform: scale(1.05); }
.scard__name { color: var(--mute); font-size: var(--fs-sm); font-weight: 400; }
.scard__link { display: grid; gap: 4px; }
.scard__text { max-width: 30ch; font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.012em; line-height: 1.3; }
@media (min-width: 1000px) {
  .rail__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .rail__head { grid-column: 1 / span 4; position: sticky; top: calc(var(--header-h) + 24px); }
  .rail__track { grid-column: 5 / -1; margin-left: 0; padding-left: 0; scroll-padding-inline: 0; }
  .scard { flex-basis: clamp(280px, 25vw, 380px); }
  .scard__art { aspect-ratio: 4 / 5; }
}

/* ---- What we do ---- */
.wwd { padding-block: var(--section); }
.wwd__grid { display: grid; gap: 40px var(--gap); }
.wwd__side { display: grid; gap: clamp(28px, 3vw, 44px); align-content: start; }
.wwd__side header { display: grid; gap: 12px; }
.wwd__list { display: grid; gap: 6px; }
.wwd__name { font-size: clamp(1.625rem, 2.6vw, 2.5rem); font-weight: 500; line-height: 1.1; letter-spacing: -0.03em; }
.wwd__tab { display: flex; align-items: flex-start; gap: 12px; padding: 4px 0; font: inherit; letter-spacing: inherit; text-align: left; color: #6f6f7e; transition: color 0.4s; }
.wwd__tab sup { min-width: 2ch; padding-top: 0.55em; font-size: 0.34em; font-weight: 500; letter-spacing: 0; line-height: 1; color: var(--mute-on-ink); }
.wwd__tab:hover, .wwd__item.is-active .wwd__tab { color: var(--white); }
.wwd__body > div { display: grid; justify-items: start; padding: 6px 0 14px calc(2ch * 0.34 + 12px + 0.2em); }
.wwd__sum { max-width: 40ch; color: var(--mute-on-ink); }
.wwd__stage { width: 100%; }
.wwd__stage .bbox { aspect-ratio: 4 / 3; }
.bbox { position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; background: var(--ink-2); border-radius: var(--r) var(--r) var(--r) 120px; }
.wwd__all { margin-top: 16px; float: right; }
.rail__all { margin-top: 6px; }
.hold__all { margin-top: clamp(28px, 3vw, 44px); }
.bbox .panel { position: absolute; inset: 0; clip-path: inset(100% 0 0 0); transition: clip-path 0.75s var(--ease-box); z-index: 1; }
.bbox .panel.was-active { clip-path: inset(0); z-index: 2; transition: none; }
.bbox .panel.is-active { clip-path: inset(0); z-index: 3; }
html:not(.js) .bbox .panel:first-child { clip-path: none; }
.bbox .panel { margin: 0; }
.bbox .panel img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1000px) {
  .wwd__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .wwd__side { grid-column: 1 / span 6; }
  .wwd__stage { display: block; grid-column: 7 / -1; position: sticky; top: calc(var(--header-h) + 24px); }
  .bbox { aspect-ratio: auto; height: min(78svh, 46vw); }
}
/* Closed items fold away only when the script can open them. */
.js .wwd__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.55s var(--ease); }
.js .wwd__body > div { min-height: 0; overflow: hidden; opacity: 0; transition: opacity 0.35s; }
.js .wwd__item.is-active .wwd__body { grid-template-rows: 1fr; }
.js .wwd__item.is-active .wwd__body > div { opacity: 1; transition-delay: 0.15s; }

/* ---- Principles, on grey ---- */
.hold { background: var(--paper); }
.hold__head { display: grid; gap: 12px; margin-bottom: clamp(32px, 4vw, 64px); }
.hold__list { display: grid; gap: 28px var(--gap); }
.hold__title { font-size: clamp(1.375rem, 2vw, 1.875rem); font-weight: 500; line-height: 1.12; letter-spacing: -0.025em; }
.hold__text { margin-top: 10px; max-width: 32ch; color: var(--mute); font-size: var(--fs-sm); line-height: 1.5; }
@media (min-width: 640px) { .hold__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .hold__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---- Training: photo left, words right ---- */
.learn__grid { display: grid; gap: 28px var(--gap); align-items: center; }
.learn__photo { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r) var(--r) 120px var(--r); }
.learn__photo img { width: 100%; height: 100%; object-fit: cover; }
.learn__copy { display: grid; gap: 14px; justify-items: start; }
.learn__copy p { max-width: 38ch; }
.learn__copy .btns { gap: 12px 24px; margin-top: 8px; }
@media (min-width: 1000px) {
  .learn__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .learn__photo { grid-column: 1 / span 6; aspect-ratio: 5 / 4; }
  .learn__copy { grid-column: 8 / -1; }
}
