/* Homepage refinements (loaded on / only).
   Same system as the rest of the site: black, white and one off-white, sharp corners, hairline rules, display type.
   Motion is CSS-only except one tiny reveal script (assets/js/home.js); everything is visible without JavaScript and
   under prefers-reduced-motion. */

:root { --tint: #141414; }
.section--mist, .section--tint { background: var(--tint); border-top: 0; }

/* ---------- Hero: bold, balanced, CTAs above the fold ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(36px, 4.6vw, 64px) 0 clamp(48px, 6vw, 88px); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--hairline) 1px, transparent 1px), linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 72px 72px; background-position: -1px -1px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, transparent 88%); mask-image: linear-gradient(to bottom, #000 0, transparent 88%);
}
.hero__grid { position: relative; row-gap: 32px; align-items: center; width: 100%; }
@media (min-width: 700px) {
  /* the hero fills the visible area below the sticky header; content is centred in it and may grow it on short screens */
  .hero { display: flex; align-items: center; min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); padding-block: clamp(32px, 5vh, 72px); }
  .hero > .container { width: 100%; }
}
.hero .display { font-size: clamp(42px, min(6.6vw, 10.6vh), 96px); margin-bottom: 22px; max-width: 9.6em; }
.hero__copy .lead { max-width: 31em; font-size: clamp(17px, 1.45vw, 20px); line-height: 1.5; }
.hero .btn-row { margin-top: 28px; }
.hero__drawing { grid-column: 8 / -1; max-width: 500px; width: 100%; justify-self: end; }
@media (max-width: 960px) {
  .hero__grid { row-gap: 36px; }
  .hero__drawing { grid-column: 1 / -1; justify-self: start; max-width: 360px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero__copy .lead { animation: hm-rise .7s .1s cubic-bezier(.2, .6, .2, 1) both; }
  .hero .btn-row { animation: hm-rise .7s .25s cubic-bezier(.2, .6, .2, 1) both; }
  .hero__drawing { animation: hm-fade 1.1s .2s ease both; }
}
@media (max-width: 400px) { .hero { padding-top: 22px; } .hero .btn-row { margin-top: 22px; } }
@keyframes hm-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes hm-fade { from { opacity: 0; } }

/* ---------- Scroll reveal (below the fold only; added by home.js, so no-JS and reduced-motion users see everything) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .6, .2, 1); transition-delay: var(--d, 0s); }
.js [data-reveal="1"] { --d: .08s; } .js [data-reveal="2"] { --d: .16s; } .js [data-reveal="3"] { --d: .24s; } .js [data-reveal="4"] { --d: .32s; }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Four services: same list, clearer to act on ---------- */
.rows--go .row {
  grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.3fr) 40px;
  padding: clamp(28px, 3.2vw, 42px) 0; align-items: center; position: relative;
  transition: background-color .25s ease, padding-left .25s ease;
}
.rows--go .row .h3 { font-size: clamp(22px, 2vw, 26px); }
.row__go { justify-self: end; font-family: var(--font-display); font-size: 24px; line-height: 1; transition: transform .25s ease; }
.rows--go .row:hover, .rows--go .row:focus-visible { background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0)); padding-left: 14px; }
.rows--go .row:hover .row__go, .rows--go .row:focus-visible .row__go { transform: translateX(6px); }
.rows--go .row:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
@media (max-width: 700px) {
  .rows--go .row { grid-template-columns: 40px minmax(0, 1fr) 28px; }
  .rows--go .row p { grid-column: 2 / -1; }
  .rows--go .row .row__go { grid-column: 3; grid-row: 1; }
}
.also { display: grid; grid-template-columns: 1fr 1fr; margin-top: 40px; }
.also p { margin: 0; padding: 22px 32px 0 0; color: var(--slate); font-size: 16px; }
.also p + p { padding-left: 32px; border-left: 1px solid var(--hairline); }
.also a { display: inline-block; margin-top: 8px; color: var(--ink); }
.also span { display: block; }
@media (max-width: 700px) { .also { grid-template-columns: 1fr; } .also p, .also p + p { padding: 20px 0 0; border-left: 0; } .also p + p { margin-top: 20px; border-top: 1px solid var(--hairline); } }

/* ---------- Nexus teaser: a minimal product introduction ---------- */
.nx { position: relative; overflow: hidden; padding: clamp(64px, 8vw, 120px) 0 clamp(56px, 7vw, 104px); background: #101010; }
.nx::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 55% 38% at 50% 78%, rgba(120, 140, 255, .09), transparent 72%); }
.nx .container { position: relative; z-index: 1; }
.nx__head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: clamp(24px, 3.5vw, 48px); }
.nx__word { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(18px, 1.8vw, 24px); letter-spacing: .32em; text-transform: uppercase; color: var(--stone); }
.nx__body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.nx__title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(36px, 5.4vw, 76px); line-height: 1.02; letter-spacing: -.03em; max-width: 9.5em; }
.nx .lead { color: #CFCFCF; max-width: 26em; margin: 0; }
.nx .btn-row { margin-top: 24px; }
.nx__note { margin: 18px 0 0; font-size: 14px; color: var(--stone); }
/* a large, flat interface that belongs to the page: thin border, a hairline of light along the top edge, and a bottom that dissolves into the section */
.nx__app { margin: clamp(40px, 6vw, 80px) 0 0; }
.nx__frame { position: relative; border: 1px solid var(--line-strong); border-bottom: 0; background: #0A0A0A; overflow: hidden; aspect-ratio: 16 / 8.6;
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%); mask-image: linear-gradient(180deg, #000 62%, transparent 100%); }
.nx__frame::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; z-index: 2; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); }
.nx__frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.nx__tiles { list-style: none; margin: clamp(18px, 2.4vw, 32px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.nx__tile { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); background: #0A0A0A; transition: border-color .3s ease; }
.nx__tile::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 55%, rgba(16, 16, 16, .7)); }
.nx__tile img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.nx__tiles li:hover .nx__tile { border-color: var(--line-strong); }
.nx__tiles span { display: block; margin-top: 10px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }
.nx__app figcaption { margin-top: 18px; font-size: 12px; color: var(--stone); }
@media (max-width: 900px) {
  .nx__body { grid-template-columns: 1fr; align-items: start; row-gap: 24px; }
  .nx__title { max-width: 10em; }
  .nx__frame { aspect-ratio: 16 / 10; }
}
@media (max-width: 700px) {
  .nx__frame { aspect-ratio: auto; max-height: 520px; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); }
  .nx__frame img { height: auto; }
  .nx__tiles { display: none; }
}

/* ---------- Method on white with a quiet drafting grid ---------- */
.method-sec { position: relative; }
.method-sec .cells { background: var(--paper); }


/* ---------- Closing call to action: breathing room ---------- */
.cta { padding-block: clamp(88px, 11vw, 150px); }

/* ---------- Contrast: small labels on light backgrounds were #A3A3A3 (2.5:1); on the homepage they now meet WCAG AA ---------- */
.eyebrow, .index, .site-footer h3 { color: var(--slate); }
.site-footer h3 { margin-bottom: 16px; font-family: var(--font-body); font-weight: 600; font-size: 13px; line-height: 1.4; letter-spacing: 0.14em; text-transform: uppercase; }
.section--ink .eyebrow, .section--ink .index { color: var(--stone); }
/* Framework illustration system: thin isometric linework drawn in currentColor. Light on dark, dark on light. */
.ill { display: block; width: 100%; height: auto; overflow: visible; }
.ill :is(path, ellipse, circle, line, polyline, rect) { fill: none; stroke: currentColor; stroke-width: 1; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ill .f1 { fill: currentColor; fill-opacity: .035; }
.ill .f2 { fill: currentColor; fill-opacity: .08; }
.ill .dim { stroke-opacity: .42; }
.ill .g { stroke-opacity: .16; }
.ill .dash { stroke-dasharray: 2 4; }
.ill .hl { stroke-width: 1.5; }
.ill .dr { vector-effect: none; }

/* ---------- Architectural structure: thin structural lines at the content edges, numbered annotations ---------- */
.ruled { position: relative; }
.ruled::before, .ruled::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 1px; pointer-events: none; z-index: 0;
  background: rgba(10, 10, 10, .09);
}
.ruled::before { left: calc((100% - min(var(--max), 100%)) / 2 + var(--gutter)); }
.ruled::after { right: calc((100% - min(var(--max), 100%)) / 2 + var(--gutter)); }
.ruled > .container { position: relative; z-index: 1; }
.eyebrow--n::before { content: attr(data-n) " / "; }
@media (max-width: 700px) { .ruled::before, .ruled::after { display: none; } }

.hero__foot {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  width: min(var(--max), 100%); margin: 0 auto; padding: 18px var(--gutter); border-top: 1px solid rgba(10, 10, 10, .14);
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); z-index: 1;
}
.hero__cue i { display: inline-block; width: 1px; height: 14px; margin-left: 10px; vertical-align: -3px; background: currentColor; transform-origin: top; }
@media (prefers-reduced-motion: no-preference) { .hero__cue i { animation: hm-cue 2.4s ease-in-out infinite; } }
@keyframes hm-cue { 0%, 100% { transform: scaleY(.3); opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }
@media (min-width: 700px) { .hero { padding-bottom: clamp(72px, 9vh, 104px); } }
@media (max-width: 699px) { .hero__foot { display: none; } }

/* ---------- Services: asymmetric illustrated grid ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.svc {
  position: relative; display: flex; flex-direction: column; gap: 0; padding: clamp(20px, 2.2vw, 30px); text-decoration: none; color: var(--ink);
  background: var(--paper); border: 1px solid var(--hairline); overflow: hidden;
  transition: border-color .3s ease, background-color .3s ease;
}
.svc--ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.svc--lg { grid-column: 1 / span 7; grid-row: 1 / span 2; }
.svc--seo { grid-column: 8 / -1; }
.svc--brand { grid-column: 8 / -1; }
.svc--wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: clamp(20px, 4vw, 64px); }
.svc__n { font-size: 12px; letter-spacing: .14em; color: var(--slate); }
.svc--ink .svc__n { color: var(--stone); }
.svc__ill { display: block; flex: 1 1 auto; margin: 6px 0 4px; color: var(--ink); }
.svc--ink .svc__ill { color: var(--paper); }
.svc--seo .svc__ill, .svc--brand .svc__ill { max-width: 300px; margin-inline: auto; }
.svc__txt { display: block; }
.svc__txt .h3 { display: block; font-weight: 600; font-size: clamp(22px, 2.2vw, 30px); margin-bottom: 8px; }
.svc--lg .svc__txt .h3 { font-size: clamp(26px, 3vw, 40px); }
.svc__p { margin: 0; display: block; max-width: 28em; color: var(--slate); font-size: 16px; line-height: 1.5; }
.svc--ink .svc__p { color: #c4c4c4; }
.svc__go { position: absolute; right: clamp(18px, 2vw, 28px); bottom: clamp(16px, 1.8vw, 24px); font-family: var(--font-display); font-size: 24px; line-height: 1; transition: transform .3s ease; }
.svc--wide .svc__txt { flex: 0 1 38%; }
.svc--wide .svc__ill { flex: 1 1 58%; max-width: 560px; margin: 0 0 0 auto; }
.svc--wide .svc__n { position: absolute; top: clamp(20px, 2.2vw, 30px); left: clamp(20px, 2.2vw, 30px); }
.svc--wide .svc__txt { padding-top: 28px; }
.svc:hover { border-color: var(--ink); }
.svc--ink:hover { border-color: var(--paper); }
.svc:hover .svc__go, .svc:focus-visible .svc__go { transform: translateX(6px); }
.svc:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.svc--ink:focus-visible { outline-color: var(--ink); box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink); }
/* the linework assembles when the card enters, and the layers part a little more on hover */
.svc .lyr { transition: transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.svc .lyr-2 { transform: translateY(-5px); } .svc .lyr-3 { transform: translateY(-10px); }
.svc:hover .lyr-2 { transform: translateY(-11px); } .svc:hover .lyr-3 { transform: translateY(-20px); }
.js .svc:not(.is-in) .lyr-2, .js .svc:not(.is-in) .lyr-3 { transform: none; }
.js .svc .dr { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s cubic-bezier(.6, 0, .2, 1) .35s; }
.js .svc.is-in .dr { stroke-dashoffset: 0; }
@media (max-width: 900px) {
  .svc--lg, .svc--seo, .svc--brand { grid-column: 1 / -1; grid-row: auto; }
  .svc--seo .svc__ill, .svc--brand .svc__ill { max-width: 340px; }
  .svc--wide { flex-direction: column; align-items: stretch; }
  .svc--wide .svc__ill { order: -1; max-width: none; margin: 18px 0 4px; }
  .svc--wide .svc__txt { flex: 0 0 auto; padding-top: 0; }
  .svc--wide .svc__n { position: static; }
}
@media (prefers-reduced-motion: reduce) { .svc .lyr, .svc__go { transition: none; } .js .svc .dr { stroke-dasharray: none; stroke-dashoffset: 0; transition: none; } }

/* ---------- Selected work: oversized layered stages (dark, perspective, accent light) ---------- */
.work { --glow: 255, 255, 255; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 3vw, 48px); align-items: center; padding: clamp(32px, 5vw, 72px) 0; border-top: 1px solid var(--line); }
.work--a { --glow: 63, 214, 166; } .work--b { --glow: 214, 58, 58; } .work--c { --glow: 226, 170, 72; }
.work__vis { grid-column: 1 / span 8; position: relative; aspect-ratio: 16 / 10.5; perspective: 1600px; overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(ellipse 60% 55% at 50% 62%, rgba(var(--glow), .20), transparent 70%), radial-gradient(ellipse 80% 40% at 50% 0%, rgba(255, 255, 255, .05), transparent 70%), #0C0C0C; }
.work__vis::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 70%, rgba(0, 0, 0, .45)); }
.work__txt { grid-column: 9 / -1; }
.work--b .work__vis { grid-column: 5 / -1; grid-row: 1; }
.work--b .work__txt { grid-column: 1 / span 4; grid-row: 1; }
.bw { display: block; position: absolute; background: #0A0A0A; border: 1px solid rgba(255, 255, 255, .14); overflow: hidden; transform-style: preserve-3d;
  box-shadow: 0 50px 80px -24px rgba(0, 0, 0, .9), 0 18px 30px -12px rgba(0, 0, 0, .7), 0 0 60px -20px rgba(var(--glow), .35); transform: var(--t, none); }
.bw__bar { display: flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-bottom: 1px solid rgba(255, 255, 255, .1); background: #141414; }
.bw__bar i { width: 6px; height: 6px; border: 1px solid #555; }
.bw img { display: block; width: 100%; height: auto; }
.bw--d { z-index: 2; } .bw--i { z-index: 1; opacity: .85; } .bw--m { z-index: 3; }
/* three compositions, one per project */
.work--a .bw--d { left: 6%; top: 15%; width: 63%; --t: rotateY(11deg) rotateX(3deg) rotateZ(-1deg); }
.work--a .bw--i { left: 38%; top: 5%; width: 54%; --t: rotateY(11deg) rotateX(3deg) rotateZ(-1deg); }
.work--a .bw--m { right: 7%; bottom: 7%; width: 17%; --t: rotateY(-8deg) rotateZ(2deg); }
.work--b .bw--d { left: 27%; top: 16%; width: 66%; --t: rotateY(-11deg) rotateX(3deg) rotateZ(1deg); }
.work--b .bw--i { left: 3%; top: 7%; width: 50%; --t: rotateY(-11deg) rotateX(3deg) rotateZ(1deg); }
.work--b .bw--m { left: 7%; bottom: 7%; width: 17%; --t: rotateY(8deg) rotateZ(-2deg); }
.work--c .bw--d { left: 4%; top: 9%; width: 74%; --t: rotateX(7deg) rotateZ(-1.5deg); }
.work--c .bw--i { left: 46%; top: 50%; width: 48%; z-index: 3; --t: rotateX(7deg) rotateZ(-1.5deg); }
.work--c .bw--m { right: 5%; top: 6%; width: 15%; --t: rotateY(-10deg) rotateZ(3deg); }
.work__n { display: block; font-size: 12px; letter-spacing: .14em; color: var(--slate); margin-bottom: 18px; }
.work__cat { display: block; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); margin-bottom: 10px; }
.work__txt .h2 { margin-bottom: 14px; }
.work__txt p { color: var(--slate); margin: 0 0 12px; max-width: 24em; }
.work__txt .work__did { color: var(--ink); font-size: 14px; margin-bottom: 20px; }
/* scroll reveal: each layer arrives from a different depth (separate `translate` so it never fights the angle) */
.js .work .bw { opacity: 0; translate: 0 36px; transition: translate 1s cubic-bezier(.2, .7, .2, 1), opacity 1s ease; }
.js .work .bw--i { translate: 0 18px; } .js .work .bw--d { transition-delay: .12s; } .js .work .bw--m { transition-delay: .28s; translate: 0 60px; }
.js .work.is-in .bw { translate: 0 0; opacity: 1; } .js .work.is-in .bw--i { opacity: .85; }
@supports (animation-timeline: view()) {
  @keyframes work-drift { from { translate: 0 4%; } to { translate: 0 -4%; } }
  .js .work.is-in .bw--i { animation: work-drift linear both; animation-timeline: view(); }
}
@media (max-width: 900px) {
  .work, .work--b { grid-template-columns: 1fr; row-gap: 22px; }
  .work__vis, .work--b .work__vis, .work__txt, .work--b .work__txt { grid-column: 1 / -1; grid-row: auto; }
  .work__vis { aspect-ratio: 4 / 3; }
  .bw--i { display: none; }
  .work--a .bw--d, .work--b .bw--d, .work--c .bw--d { left: 6%; top: 12%; width: 74%; }
  .work--b .bw--d { left: 20%; }
  .work--c .bw--m { top: auto; bottom: 6%; }
}
@media (prefers-reduced-motion: reduce) { .js .work .bw { translate: 0 0 !important; opacity: 1 !important; transition: none !important; animation: none !important; } .js .work .bw--i { opacity: .85 !important; } }

/* ---------- Method: a statement on the left, the six stages on the right ---------- */
.method { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(32px, 7vw, 112px); align-items: start; }
.method__lead { position: sticky; top: calc(var(--header-h) + 40px); }
.method__lead .h2 { margin-bottom: 20px; max-width: 11em; }
.method__lead .muted { margin: 0 0 24px; max-width: 24em; }
.stages { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); counter-reset: st; }
.stages li { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 20px; padding: clamp(22px, 2.6vw, 34px) 0; border-bottom: 1px solid var(--hairline); position: relative; }
.stages li::before { content: ""; position: absolute; left: 0; top: -1px; width: 0; height: 1px; background: var(--ink); transition: width .8s cubic-bezier(.6, 0, .2, 1); }
.js .stages li.is-in::before { width: 72px; }
.stage__n { grid-row: 1 / span 2; font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 3.4vw, 46px); line-height: 1; letter-spacing: -.02em; color: var(--slate); }
.stage__h { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.1; margin-bottom: 6px; }
.stages p { margin: 0; color: var(--slate); max-width: 26em; }
@media (max-width: 900px) { .method { grid-template-columns: 1fr; row-gap: 40px; } .method__lead { position: static; } }
@media (prefers-reduced-motion: reduce) { .stages li::before { display: none; } }

/* ---------- Testimonials: a compact banner (heading left, one quote at a time right), thin ruled lines ---------- */
.tm { position: relative; padding: clamp(32px, 4vw, 56px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.tm__layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); column-gap: clamp(24px, 4vw, 64px); align-items: start; }
.tm__title { margin: 12px 0 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.15; letter-spacing: -.01em; }
.tm__slides { display: grid; }
.tm__slide { grid-area: 1 / 1; margin: 0; display: grid; align-content: start; row-gap: 14px; }
.tm__quote { margin: 0; }
.tm__quote p { margin: 0; max-width: 28em; font-family: var(--font-display); font-weight: 600; font-size: clamp(21px, 2.3vw, 31px); line-height: 1.2; letter-spacing: -.012em; }
.tm__who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; font-size: 15px; }
.tm__who strong { font-size: 16px; }
.tm__who .text-link { font-size: 14px; }
.tm__full { max-width: 40em; }
.tm__full summary { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; padding: 6px 0; font-size: 14px; color: var(--slate); list-style: none; }
.tm__full summary::-webkit-details-marker { display: none; }
.tm__full summary::after { content: "+"; font-size: 18px; line-height: 1; }
.tm__full[open] summary::after { content: "\2212"; }
.tm__full summary:hover { color: var(--ink); }
.tm__full summary:focus-visible { outline: 2px solid var(--light); outline-offset: 3px; }
.tm__full p { margin: 6px 0 4px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--slate); font-size: 16px; line-height: 1.6; }
.tm__controls { display: flex; align-items: center; gap: clamp(10px, 1.6vw, 18px); margin-top: clamp(16px, 2vw, 24px); padding-top: 14px; border-top: 1px solid var(--line); }
.tm__btn { width: 40px; height: 40px; display: inline-grid; place-items: center; background: transparent; color: var(--ink); border: 1px solid var(--line-strong); font: inherit; font-size: 17px; line-height: 1; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.tm__btn:hover { background: var(--light); color: #090909; border-color: var(--light); }
.tm__btn:focus-visible, .tm__pause:focus-visible { outline: 2px solid var(--light); outline-offset: 3px; }
.tm__count { margin: 0; min-width: 5em; text-align: center; font-family: var(--font-display); font-size: 14px; letter-spacing: .12em; color: var(--slate); font-variant-numeric: tabular-nums; }
.tm__cur { color: var(--ink); }
.tm__pause { margin-left: auto; background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); color: var(--slate); font: inherit; font-size: 14px; padding: 10px 0 5px; cursor: pointer; }
.tm__pause:hover { color: var(--ink); border-bottom-color: var(--ink); }
/* with JavaScript: stack the slides and cross-fade; inactive ones are hidden from sight and from assistive technology */
.tm__carousel.is-carousel .tm__slide { opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility 0s linear .8s; }
.tm__carousel.is-carousel .tm__slide[data-active] { opacity: 1; visibility: visible; transition: opacity .8s ease, visibility 0s; }
/* without JavaScript the three simply follow one another */
.tm__carousel:not(.is-carousel) .tm__slides { gap: 28px; }
.tm__carousel:not(.is-carousel) .tm__slide { grid-area: auto; }
@media (max-width: 900px) {
  .tm__layout { grid-template-columns: 1fr; row-gap: 18px; }
  .tm__title { margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) { .tm__carousel.is-carousel .tm__slide, .tm__carousel.is-carousel .tm__slide[data-active], .tm__btn { transition: none; } }
