/* Cube IT AS — site styles.
   One file, no build step. Sections follow the page from top to bottom; each says which effect it
   carries (M-numbers refer to the motion list in the design notes, playbooks/designs/gpg/DNA.md).

   States set on <html>:
     .js       main.js is expected to run          .motion  the visitor has not asked for reduced motion
     .pre      first visit this session (curtain)  .scenes  desktop scroll scenes are on (set by main.js)
   Everything that hides content before an animation is scoped to `.js.motion`, and every pinned or
   scroll-tied layout to `.scenes`, so without JavaScript or with reduced motion each page is a normal,
   complete document. */

/* ---------------------------------------------------------------- fonts */

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/hanken-grotesk-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/hanken-grotesk-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------------------------------------------------------------- tokens */

:root {
  /* Cube's own blues, from the logo */
  --cube: #3A96CA;        /* accent on white: dots, the travelling node, numbers, focus rings (3.3:1, graphics and large text) */
  --light: #84C5E8;       /* accent on the blue sheets (4.7:1 on --sheet) */

  /* the deep shade of Cube's hue used for sheets and headings, and its family (DNA 12.3) */
  --sheet: #0F4C81;       /* white on it 8.9:1; on white 8.9:1 */
  --curtain: #115793;     /* the first-visit curtain, a touch brighter than the sheets */
  --tone: #1774C6;        /* tone-on-tone words on the sheet (decorative) */
  --hair-b: #4B79A0;      /* hairlines on blue: sheet mixed 25 % with white */
  --pale: #B7C9D9;        /* body text on blue: sheet mixed 70 % with white, 5.2:1 */

  /* neutrals */
  --ink: #686F7A;         /* body text on white, 5.1:1 */
  --mute: #7D7D8A;        /* the hero headline's grey, large text only, 4.1:1 */
  --line: #D9DDE3;        /* hairlines on white */
  --mist: #F2F5F8;        /* light panels */
  --white: #FFFFFF;

  --m: clamp(23px, 4.86vw, 70px);   /* side margin: 70 px at 1440, 23 px on phones */
  --gap: clamp(16px, 2.8vw, 40px);  /* grid gutter */
  --hdr: 79px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
}
@media (max-width: 767px) {
  :root { --hdr: 60px; }
}

/* ---------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--sheet) var(--white); }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 clamp(16px, 1.11vw, 22px)/1.5 "Hanken Grotesk", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; color: var(--sheet); }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--sheet); color: var(--white); }
.sheet ::selection { background: var(--white); color: var(--sheet); }
:focus-visible { outline: 2px solid var(--cube); outline-offset: 3px; }
.sheet :focus-visible, .menu-sheet :focus-visible { outline-color: var(--light); }

.wrap { padding-inline: var(--m); }
.skip {
  position: fixed; left: 12px; top: 12px; z-index: 100;
  padding: 10px 16px; background: var(--sheet); color: var(--white);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* type scale (DNA 3.2): fluid steps, the 1440 px values in the middle */
.t1 { font-size: clamp(48px, 6.67vw, 128px); line-height: .98; letter-spacing: -.05em; }
.t2 { font-size: clamp(34px, 4.45vw, 82px); line-height: 1.04; letter-spacing: -.05em; }
.t3 { font-size: clamp(26px, 3.05vw, 60px); line-height: 1.15; letter-spacing: -.035em; }
.t4 { font-size: clamp(21px, 2.22vw, 44px); line-height: 1.2; letter-spacing: -.03em; }
.big { font-size: clamp(18px, 1.67vw, 32px); line-height: 1.32; }
.mid { font-size: clamp(16px, 1.25vw, 24px); line-height: 1.5; }
.label { font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--sheet); margin-bottom: 24px; }
.pale { color: var(--pale); }
.crumb { font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.crumb a { text-decoration: underline; text-underline-offset: 3px; }

/* the 5 + 1 + 6 split: title left, text in the right half (DNA 3.3) */
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 32px; }
.split-l { grid-column: 1 / span 5; }
.split-r { grid-column: 7 / span 6; }
@media (max-width: 960px) {
  .split-l, .split-r { grid-column: 1 / -1; }
}

/* blue sheets (DNA signature 2) */
.sheet { background: var(--sheet); color: var(--pale); }
.sheet h1, .sheet h2, .sheet h3 { color: var(--white); }

/* ---------------------------------------------------------------- buttons and links */

/* Pill with a dot; on hover the dot grows into a circle and an arrow slides through (M17). */
.btn {
  --bg: var(--sheet); --fg: var(--white); --dot: var(--white); --arrow: var(--sheet); --bd: transparent;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; gap: 14px;
  height: 47px; padding: 0 30px 0 22px;
  border: 0; border-radius: 90px; background: none; cursor: pointer;
  color: var(--fg); font-size: 16px; font-weight: 600; line-height: 1; white-space: nowrap;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; background: var(--bg); box-shadow: inset 0 0 0 var(--bw, 0) var(--bd);
  transition: transform .95s var(--ease);
}
.btn-dot {
  position: relative; flex: none;
  width: 31px; height: 31px; margin: 0 -11px 0 -11px;
  border-radius: 50%; background: var(--dot);
  transform: scale(.26); transition: transform .45s var(--ease);
  display: grid; place-items: center; overflow: hidden;
}
.btn-dot svg {
  width: 15px; fill: none; stroke: var(--arrow); stroke-width: 1.6;
  transform: translateX(-28px); transition: transform .55s var(--ease) .05s;
}
.btn:hover::before { transform: scale(.98, .93); }
.btn:hover .btn-dot { transform: scale(1); }
.btn:hover .btn-dot svg { transform: none; }
.btn--sm { height: 42px; font-size: 15px; }
.btn--line { --bg: transparent; --fg: var(--sheet); --dot: var(--sheet); --arrow: var(--white); --bd: var(--sheet); --bw: 2px; }
.btn--line-w { --bg: transparent; --fg: var(--white); --dot: var(--white); --arrow: var(--sheet); --bd: var(--hair-b); --bw: 1px; }
.btn--white { --bg: var(--white); --fg: var(--sheet); --dot: var(--sheet); --arrow: var(--white); }
@media (max-width: 767px) {
  .btn { height: 44px; font-size: 15px; }
}

/* Text link with a dot; the label rolls up to a second copy on hover (M18). */
.lnk { display: inline-flex; align-items: center; gap: 12px; color: var(--sheet); font-weight: 600; font-size: 16px; }
.lnk::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.roll { display: inline-block; overflow: hidden; vertical-align: top; line-height: 1.25; }
.roll > span { position: relative; display: inline-block; transition: transform .32s var(--ease); }
.roll > span::after {
  content: attr(data-text);
  content: attr(data-text) / "";   /* the copy is decoration: not read out twice */
  position: absolute; left: 0; top: 100%; white-space: nowrap;
}
a:hover .roll > span { transform: translateY(-100%); }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 36px; margin-top: 36px; }

/* ---------------------------------------------------------------- logo */

.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--cube); }
.mark { width: 34px; height: 34px; flex: none; }
.mark .m-b { fill: var(--cube); }
.mark .m-l { fill: var(--light); }
.mark .m-w { fill: var(--white); stroke: var(--light); stroke-width: .8; }
.logo-word { font-size: 27px; font-weight: 600; letter-spacing: -.04em; line-height: 1; }

/* ---------------------------------------------------------------- first-visit curtain (M1) */

.curtain { display: none; }
.curtain .mark .m-w { stroke: none; }
@property --pct { syntax: "<integer>"; inherits: true; initial-value: 0; }
.js.motion.pre .curtain {
  display: block; position: fixed; inset: 0; z-index: 90;
  background: var(--curtain); color: var(--white);
  clip-path: inset(0 0 0 0);
  transition: clip-path .62s var(--ease-io);
}
.pre-mark { position: absolute; right: var(--m); top: 46px; }
.pre-mark .mark { width: 40px; height: 40px; }
.pre-mark rect { animation: blink 1.2s ease-in-out infinite; }
.pre-mark rect:nth-child(3n+2) { animation-delay: .12s; }
.pre-mark rect:nth-child(3n) { animation-delay: .24s; }
@keyframes blink { 50% { opacity: .35; } }
.pre-name {
  position: absolute; left: var(--m); top: 36px; margin: 0;
  font-size: clamp(48px, 6.67vw, 128px); line-height: 1; letter-spacing: -.05em;
}
.pre-name span { display: inline-block; animation: rise .7s var(--ease) both; }
.pre-name span + span { animation-delay: .07s; }
.pre-line { position: absolute; left: 52%; top: 0; bottom: 0; width: 1px; background: rgb(255 255 255 / .3); }
.pre-pct {
  position: absolute; left: 14px; bottom: 0;
  font-size: 15px; font-weight: 600; white-space: nowrap;
  animation: climb .9s linear both;
  counter-reset: pct var(--pct);
}
.pre-pct::before { content: ""; display: inline-block; width: 11px; height: 11px; margin-right: 8px; background: var(--light); }
.pre-pct::after { content: counter(pct) " %"; }
@keyframes climb {
  from { --pct: 0; transform: translateY(0); }
  to { --pct: 100; transform: translateY(calc(-100vh + 60px)); }
}
@keyframes rise { from { transform: translateY(60%); opacity: 0; } }
.curtain.is-out { clip-path: inset(0 0 100% 0); }

/* ---------------------------------------------------------------- header (M26) */

.hdr {
  position: absolute; inset: 0 0 auto; z-index: 50;
  height: var(--hdr);
  transition: transform .6s var(--ease), opacity .6s;
}
.js .hdr { position: fixed; }
.hdr::before {
  content: ""; position: absolute; inset: 0;
  background: var(--white); border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity .4s;
}
.hdr.is-solid::before { opacity: 1; }
.hdr.is-hidden { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.hdr-in { position: relative; height: 100%; display: flex; align-items: center; gap: 32px; }
.nav { display: flex; gap: 30px; margin-left: auto; color: var(--sheet); font-size: 16px; font-weight: 600; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.hdr-end { display: flex; align-items: center; gap: 24px; margin-left: 32px; }
.hdr-tel { color: var(--sheet); font-weight: 600; font-size: 16px; white-space: nowrap; }
.hdr-tel::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; background: var(--cube); vertical-align: 1px; }

/* over the dark media of a sub-page hero, until the visitor scrolls */
[data-hero="dark"] .hdr:not(.is-solid) :is(.nav, .hdr-tel, .logo) { color: var(--white); }
[data-hero="dark"] .hdr:not(.is-solid) .mark .m-w { stroke: none; }
[data-hero="dark"] .hdr:not(.is-solid) .btn--sm { --bg: var(--white); --fg: var(--sheet); --dot: var(--sheet); --arrow: var(--white); }
[data-hero="dark"] .hdr:not(.is-solid) .menu-btn { color: var(--white); border-color: rgb(255 255 255 / .6); }

/* the menu: a <details>, so it opens without JavaScript too */
.menu { display: none; }
.menu-btn {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; height: 40px; padding: 0 20px;
  border: 1px solid var(--sheet); border-radius: 90px; color: var(--sheet);
  font-weight: 600; font-size: 15px;
}
.menu-btn::-webkit-details-marker { display: none; }
.menu-close, .menu[open] .menu-open { display: none; }
.menu[open] .menu-close { display: inline; }
.menu-sheet {
  position: fixed; inset: 0; z-index: -1;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: calc(var(--hdr) + 32px) var(--m) 32px;
  background: var(--sheet); color: var(--pale); overflow-y: auto;
}
.menu-nav { display: flex; flex-direction: column; border-top: 1px solid var(--hair-b); }
.menu-nav a { padding: 14px 0; border-bottom: 1px solid var(--hair-b); color: var(--white); font-size: 28px; letter-spacing: -.03em; }
.menu-foot { display: flex; flex-direction: column; gap: 6px; }
.menu-foot .btn { margin-top: 20px; justify-content: center; }
.menu-tel { color: var(--white); font-size: 24px; }
.menu[open] .menu-sheet { animation: sheet-in .5s var(--ease-io); }
@keyframes sheet-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
.hdr:has(.menu[open]) { transform: none; opacity: 1; }
.hdr:has(.menu[open])::before { opacity: 0; }
.hdr:has(.menu[open]) :is(.logo, .menu-btn) { color: var(--white); border-color: var(--hair-b); }
.hdr:has(.menu[open]) .mark .m-w { stroke: none; }

@media (max-width: 1180px) {
  .nav, .hdr-end > .btn { display: none; }
  .hdr-end { margin-left: auto; }
  .menu { display: block; }
}
@media (max-width: 767px) {
  .hdr-tel { display: none; }
  .logo-word { font-size: 23px; }
  .mark { width: 28px; height: 28px; }
}

/* ---------------------------------------------------------------- words that rise in (M3) */

/* main.js wraps each word of a [data-split] block in .w and adds .is-in when the block reaches
   mid-screen. Until it is split the block is invisible, so nothing flashes. */
.js.motion [data-split]:not(.is-split) { visibility: hidden; }
.w { display: inline-block; }
.js.motion .is-split .w {
  opacity: 0; transform: translateY(var(--rise, 45px));
  transition: transform .9s var(--ease), opacity .9s var(--ease);
  transition-delay: calc(var(--d, 0s) + var(--i) * var(--st, 55ms));
}
.js.motion p.is-split, .js.motion .is-split p { --rise: 14px; --d: .15s; --st: 22ms; }
.js.motion .is-split.is-in .w { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- films */

.film { width: 100%; height: 100%; object-fit: cover; background: #1b4a90; }

/* ---------------------------------------------------------------- home: hero (M2, M3) */

.hero-in { padding-top: calc(var(--hdr) + clamp(64px, 9vw, 150px)); padding-bottom: clamp(56px, 8vw, 124px); }
.hero-h { color: var(--mute); max-width: 15.5em; }
.hero-h em { font-style: normal; color: var(--sheet); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 48px; margin-top: clamp(32px, 3.5vw, 56px); }
.js.motion .hero-cta > * { opacity: 0; transform: translateY(40px); transition: transform .9s var(--ease) .65s, opacity .9s var(--ease) .65s; }
.js.motion .hero-cta > * + * { transition-delay: .75s; }
.js.motion .hero.is-in .hero-cta > * { opacity: 1; transform: none; }
.hero-film { height: 100vh; height: 100svh; overflow: hidden; }
@media (max-width: 767px) {
  .hero-film { height: 72svh; }
}

/* ---------------------------------------------------------------- blue sheet with square orbits (M4–M7) */

.orbits-sheet { padding: clamp(80px, 15vw, 225px) 0 clamp(72px, 13vw, 200px); overflow: hidden; }
.orbit-lead { color: var(--white); margin-left: calc((100% + var(--gap)) * 6 / 12); max-width: 620px; }
.orbits { position: relative; margin-top: clamp(64px, 9vw, 140px); }
.orbit-row {
  --s: 280px;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  align-items: center; min-height: 440px;
}
.orbit-fig { position: relative; width: var(--s); height: var(--s); grid-column: 8 / span 4; justify-self: center; grid-row: 1; }
.orbit-txt { grid-column: 1 / span 5; grid-row: 1; padding-left: calc((100% + var(--gap)) / 5); }
.orbit-row:nth-child(even) .orbit-fig { grid-column: 2 / span 4; }
.orbit-row:nth-child(even) .orbit-txt { grid-column: 7 / span 5; padding-left: 0; }
.orbit-txt p { margin-top: 24px; max-width: 340px; }
.of-frame { position: absolute; inset: 0; border: 1px solid var(--hair-b); transition: border-color .35s; }
.of-core { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; background: var(--white); }
.of-node {
  position: absolute; left: 0; top: 0; width: 30px; height: 30px; margin: -15px 0 0 -15px;
  background: var(--sheet); border: 1px solid var(--hair-b);
  transform: translate(calc(var(--s) / 2), 0);
  transition: border-color .35s;
}
.of-node::after { content: ""; position: absolute; inset: 8px; background: var(--light); }
.orbit-row.is-on .of-frame, .orbit-row.is-on .of-node { border-color: var(--white); }
.orbit-line { display: none; }
.orbit-more { margin-top: 48px; text-align: center; }

/* Without the desktop scenes the node walks the frame on its own, slowly. */
.js.motion:not(.scenes) .of-node { animation: perimeter 14s linear infinite; }
@keyframes perimeter {
  0%    { transform: translate(calc(var(--s) * .5), 0); }
  12.5% { transform: translate(var(--s), 0); }
  37.5% { transform: translate(var(--s), var(--s)); }
  62.5% { transform: translate(0, var(--s)); }
  87.5% { transform: translate(0, 0); }
  100%  { transform: translate(calc(var(--s) * .5), 0); }
}

/* desktop scenes: the connector lines draw from figure to figure (M6) */
.scenes .orbit-line {
  display: block; position: absolute; left: 0; top: 0; height: 1px; width: 0;
  background: var(--hair-b); transform-origin: 0 50%; pointer-events: none;
}
.orbit-line i { position: absolute; inset: 0; background: var(--white); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
.scenes .orbit-row .of-frame { transform: scale(var(--k, 1)); }

@media (max-width: 960px) {
  .orbit-lead { margin-left: 0; }
  .orbit-row, .orbit-row:nth-child(even) { --s: 120px; grid-template-columns: var(--s) 1fr; column-gap: 32px; min-height: 0; margin-bottom: 64px; align-items: start; }
  .orbit-row .orbit-fig, .orbit-row:nth-child(even) .orbit-fig { grid-column: 1; margin-top: 8px; }
  .orbit-row .orbit-txt, .orbit-row:nth-child(even) .orbit-txt { grid-column: 2; padding: 0; }
  .of-core { width: 16px; height: 16px; margin: -8px 0 0 -8px; }
  .of-node { width: 18px; height: 18px; margin: -9px 0 0 -9px; }
  .of-node::after { inset: 5px; }
  .orbit-more { text-align: left; }
}
@media (max-width: 480px) {
  .orbit-row, .orbit-row:nth-child(even) { --s: 72px; column-gap: 24px; }
  .of-core { width: 10px; height: 10px; margin: -5px 0 0 -5px; }
  .of-node { width: 14px; height: 14px; margin: -7px 0 0 -7px; }
  .of-node::after { inset: 4px; }
}

/* ---------------------------------------------------------------- giant word (M8) */

/* The word is sized so that it fills the content width: its width is 3.39 em at -0.05 em tracking
   (measured in Hanken Grotesk 400). In the scenes it starts at 30 % and grows as you scroll. */
.giant { padding: clamp(72px, 10vw, 140px) var(--m) 0; overflow: hidden; }
.giant-word {
  font-size: calc((100vw - 2 * var(--m)) / 3.4);
  line-height: .9; letter-spacing: -.05em; white-space: nowrap;
  transform-origin: 50% 0;
}
.scenes .giant { height: 175vh; padding-top: 0; overflow: visible; }
.scenes .giant-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; padding-top: calc(var(--hdr) + 8px); }

/* ---------------------------------------------------------------- the five areas (M9) */

.svc { padding: clamp(48px, 6vw, 96px) 0 clamp(64px, 8vw, 140px); }
.svc-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.svc-rows { grid-column: 7 / span 6; }
.svc-row { padding: 56px 0; border-top: 1px solid var(--line); }
.svc-row .t3 { margin-bottom: 24px; }
.svc-row p { max-width: 580px; margin-bottom: 36px; }
.svc-panel { display: none; }
.art--row { width: min(100%, 260px); height: auto; margin-bottom: 28px; }
@media (max-width: 960px) {
  .svc-rows { grid-column: 1 / -1; }
}
/* wide screens without the scenes (tablets, reduced motion): each row's drawing sits on the left */
@media (min-width: 961px) {
  :root:not(.scenes) .svc-rows { grid-column: 1 / -1; }
  :root:not(.scenes) .svc-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
  :root:not(.scenes) .svc-row > * { grid-column: 7 / span 6; justify-self: start; }
  :root:not(.scenes) .svc-row > .art--row { grid-column: 2 / span 3; grid-row: 1 / span 3; width: 100%; max-width: 260px; margin: 0; }
}
/* desktop scenes: one tall row per area, the drawings swap in a sticky panel on the left */
.scenes .svc-panel {
  display: block; grid-column: 1 / span 5; grid-row: 1;
  position: sticky; top: 0; height: 100vh;
}
.scenes .svc-rows { grid-row: 1; }
.scenes .svc-row { min-height: 88vh; padding: 26vh 0 0; border: 0; }
.scenes .art--row { display: none; }
.art--panel { position: absolute; inset: 5vh 0; width: 100%; height: 90vh; }

/* ---------------------------------------------------------------- line drawings (art.py) */

.art { overflow: visible; }
.art path { fill: none; stroke: var(--sheet); stroke-width: 1.1; opacity: var(--o, 1); }   /* no non-scaling-stroke: it breaks pathLength */
.art .a-bold { stroke-width: 2.4; }
.art--row path { stroke-width: 1.6; }   /* drawn small on phones: keep the line near 1 px */
.art .a-dot { fill: var(--cube); }
.art g { transform-box: fill-box; transform-origin: 50% 50%; }
.art .a-spin { transform-box: view-box; }

/* hidden state, only while motion is allowed; .is-on draws it */
.js.motion .art path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js.motion .art .a-dot { opacity: 0; transform-box: fill-box; transform-origin: 50% 50%; transform: scale(0); }
.js.motion .art .a-rise { transform: translateY(46px); opacity: 0; }
.js.motion .art .a-pop { transform: scale(.4); opacity: 0; }
.js.motion .art .a-slide { transform: translate(var(--dx), var(--dy)); opacity: 0; }
.js.motion .art.is-on path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.3s var(--ease) calc(var(--i) * 45ms);
}
.js.motion .art.is-on :is(.a-rise, .a-pop, .a-slide) {
  transform: none; opacity: 1;
  transition: transform 1.1s var(--ease) calc(var(--i) * 55ms), opacity .5s calc(var(--i) * 55ms);
}
.js.motion .art.is-on .a-dot { opacity: 1; transform: none; transition: transform .6s cubic-bezier(.16, 1, .3, 1) .9s, opacity .2s .9s; }
.js.motion .art.is-on .a-spin { animation: spin 48s linear 1.2s infinite; }
.js.motion .art.is-on .a-float { animation: float 5s ease-in-out 1.4s infinite alternate; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { to { transform: translateY(-12px); } }

/* the panel copies leave quickly when another area takes over */
.art--panel { transition: opacity .45s; }
.js.motion .art--panel:not(.is-on) { opacity: 0; }

/* ---------------------------------------------------------------- skills list with the pointer light (M10) */

.skills { overflow: hidden; }
.skills-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); min-height: 100vh; }
.skills-txt {
  grid-column: 1 / span 5; padding: clamp(56px, 6vw, 75px) 0;
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
}
.skills-txt .t4 { margin-bottom: 20px; }
.skills-txt p { max-width: 440px; }
.pill-tag {
  align-self: flex-start; padding: 12px 22px;
  border: 1px solid var(--hair-b); border-radius: 90px; color: var(--light); font-size: 15px; font-weight: 600;
}
.skl { grid-column: 7 / -1; position: relative; height: 100vh; overflow: hidden; margin-right: calc(-1 * var(--m)); }
.skl-list { font-size: clamp(44px, 6.67vw, 128px); line-height: 1.08; letter-spacing: -.05em; white-space: nowrap; color: var(--tone); }
.skl-list li { padding-bottom: 10px; }
.js.motion .skl-track { animation: marquee-up 60s linear infinite; }
@keyframes marquee-up { to { transform: translateY(-50%); } }

/* the light: an identical copy in light blue, clipped to a circle that follows the pointer */
@property --lx { syntax: "<length-percentage>"; inherits: true; initial-value: 50%; }
@property --ly { syntax: "<length-percentage>"; inherits: true; initial-value: 40%; }
.skl-light { position: absolute; inset: 0; pointer-events: none; display: none; }
.js.motion .skl-light {
  display: block;
  --r: 175px;
  clip-path: circle(calc(var(--r) * var(--k, 0)) at var(--lx) var(--ly));
}
.skl-light .skl-list { color: var(--light); }
.skl-light::after {
  content: ""; position: absolute; inset: 0; mix-blend-mode: overlay;
  background:
    repeating-radial-gradient(circle at var(--lx) var(--ly), rgb(255 255 255 / .35) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(135deg, rgb(255 255 255 / .18) 0 1px, transparent 1px 7px);
}
.skl.has-pointer { cursor: none; }
/* touch screens and pointers not on the list: the light drifts on its own */
.js.motion .skl:not(.has-pointer) .skl-light { --k: .8; animation: roam 16s ease-in-out infinite alternate; }
@keyframes roam {
  0% { --lx: 25%; --ly: 25%; }
  33% { --lx: 60%; --ly: 55%; }
  66% { --lx: 30%; --ly: 75%; }
  100% { --lx: 55%; --ly: 35%; }
}
@media (max-width: 960px) {
  .skills-grid { min-height: 0; }
  .skills-txt { grid-column: 1 / -1; padding-bottom: 32px; }
  .skl { grid-column: 1 / -1; height: 440px; margin-inline: 0 calc(-1 * var(--m)); }
  .skl-light { --r: 120px !important; }
}

/* ---------------------------------------------------------------- how it works: sticky stepper (M11, M12) */

.how { position: relative; padding: clamp(72px, 9vw, 140px) 0; overflow: hidden; }
.steps { display: grid; gap: 56px; counter-reset: step; }
.step .t1 { margin: 8px 0 20px; }
.step .mid { max-width: 620px; }
.step-n { font-size: 15px; font-weight: 600; color: var(--cube); }
.how-prog { display: none; }

/* the band of squares on a grey line, re-arranged for each step */
.band { position: relative; height: clamp(150px, 20vw, 300px); margin-top: 48px; }
.band::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }
.band i {
  position: absolute; left: 0; top: 50%;
  width: var(--w); height: var(--w); margin-top: calc(var(--w) / -2);
  transform: translateX(calc(var(--x) * 1vw));
  transition: transform 1.25s var(--ease-io);
}
.band .b1  { --w: 3.3vw; border: 1px solid var(--line); --x: 3; }
.band .b2  { --w: 1.5vw; background: var(--cube); --x: 13; }
.band .b3  { --w: 12vw; border: 1px solid var(--sheet); --x: 18; }
.band .b4  { --w: 16vw; border: 2px dotted var(--cube); --x: 26; }
.band .b5  { --w: 6.2vw; background: var(--sheet); --x: 35; }
.band .b6  { --w: 2.3vw; background: var(--cube); --x: 51; }
.band .b7  { --w: 20vw; border: 2px solid var(--light); --x: 57; }
.band .b8  { --w: 7.6vw; background: var(--line); --x: 71; }
.band .b9  { --w: 1.5vw; background: var(--sheet); --x: 87; z-index: 2; }
.band .b10 { --w: 2.2vw; border: 1px solid var(--cube); --x: 88; }
.band[data-state="2"] .b3 { --x: 8; }   .band[data-state="2"] .b4 { --x: 40; }  .band[data-state="2"] .b5 { --x: 18; }
.band[data-state="2"] .b7 { --x: 70; }  .band[data-state="2"] .b8 { --x: 52; }  .band[data-state="2"] .b2 { --x: 34; }
.band[data-state="3"] .b3 { --x: 30; }  .band[data-state="3"] .b4 { --x: 6; }   .band[data-state="3"] .b5 { --x: 46; }
.band[data-state="3"] .b7 { --x: 48; }  .band[data-state="3"] .b8 { --x: 80; }  .band[data-state="3"] .b6 { --x: 24; }
.band[data-state="4"] .b3 { --x: 62; }  .band[data-state="4"] .b4 { --x: 22; }  .band[data-state="4"] .b5 { --x: 9; }
.band[data-state="4"] .b7 { --x: 30; }  .band[data-state="4"] .b8 { --x: 66; }  .band[data-state="4"] .b9 { --x: 49; }
.band[data-state="4"] .b10 { --x: 50; }
@media (max-width: 767px) {
  .band { height: 130px; }
}

/* desktop scenes: one screen, pinned; the steps take turns as you scroll */
.scenes .how { height: 400vh; padding: 0; overflow: visible; }
.scenes .how-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.scenes .how-in { position: relative; }
.scenes .steps { display: grid; }
.scenes .step { grid-area: 1 / 1; transition: opacity .6s; }
.scenes .step:not(.is-on) { opacity: 0; pointer-events: none; }
.scenes .how-prog { display: flex; gap: 8px; position: absolute; right: var(--m); top: 6px; }
.how-prog i { width: 10px; height: 10px; border: 1px solid var(--sheet); transition: background .3s; }
.how-prog i.is-on { background: var(--sheet); }
.scenes .band { margin-top: 5vh; }

/* ---------------------------------------------------------------- numbers (M13, M14) */

.stats { position: relative; overflow: hidden; min-height: 100vh; padding: clamp(72px, 8vw, 120px) 0 0; display: flex; flex-direction: column; }
.stats-in { position: relative; z-index: 1; }
.stats-top { display: flex; justify-content: space-between; gap: 40px; align-items: flex-start; }
.stats-top .t1 { margin-bottom: 18px; }
.stat-big { position: relative; text-align: right; max-width: 460px; }
.stat-big-n { font-size: clamp(72px, 11vw, 200px); line-height: .9; letter-spacing: -.05em; color: var(--light); margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.marker { display: none; position: absolute; right: 22%; top: 100%; height: 26vh; width: 1px; margin-top: 24px; }
.js .marker { display: block; }
.marker::before { content: ""; position: absolute; inset: 0; background: var(--light); transform-origin: 0 0; }
.marker i { position: absolute; left: -7px; top: -7px; width: 15px; height: 15px; border: 1px solid var(--light); }
.marker i::before { content: ""; position: absolute; inset: 3px; background: var(--light); }
.marker i::after { content: ""; position: absolute; inset: -1px; border: 2px solid var(--light); opacity: 0; }
.js.motion .stats.is-in .marker i::after { animation: pulse 1.8s ease-out 2s infinite; }
@keyframes pulse { from { opacity: .65; transform: scale(1); } to { opacity: 0; transform: scale(3.2); } }
.js.motion .stats .marker::before { transform: scaleY(0); transition: transform 1s var(--ease-io) .2s; }
.js.motion .stats.is-in .marker::before { transform: none; }
.stats-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin: clamp(40px, 5vw, 72px) 0 0; max-width: 900px; }
.stat { border-top: 1px solid var(--hair-b); padding-top: 18px; }
.stat-n { font-size: clamp(40px, 4.45vw, 82px); line-height: 1; letter-spacing: -.05em; color: var(--white); margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.stat dd { margin: 0; max-width: 220px; }
.graph {
  position: relative; margin-top: auto; height: 42vh;
  display: flex; align-items: flex-end; justify-content: space-between; padding: 0 2px;
}
.graph i { width: 1px; height: var(--h); background: #5B8FC0; transform-origin: 50% 100%; }
.graph i b { display: block; height: 100%; }
.js.motion .graph i { transform: translateY(101%); transition: transform 1.1s cubic-bezier(.16, 1, .3, 1) var(--d); }
.js.motion .stats.is-in .graph i { transform: translateY(0) scaleY(var(--bend, 1)); }
.stats.is-bending .graph i { transition: transform .35s var(--ease); }
@media (max-width: 767px) {
  .stats { min-height: 0; }
  .stats-top { flex-direction: column; }
  .stat-big { text-align: left; }
  .js .marker { display: none; }
  .stats-row { grid-template-columns: 1fr; gap: 20px; }
  .graph { height: 26vh; margin-top: 48px; }
}
/* the white variant (about page) */
.stats-row--light .stat { border-color: var(--line); }
.stats-row--light .stat-n { color: var(--sheet); }

/* ---------------------------------------------------------------- "Build your team — with the best" (M15) */

/* The film ends with Cube's logo assembled in the middle; the headline's halves stand on either side.
   Without the scenes (phones, tablets, reduced motion) the last frame stands with the headline. */
.build { position: relative; }
.build-stage { position: relative; height: 80vh; min-height: 480px; overflow: hidden; background: #e9edf2; }
.build-still, .build-still img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.build-window { display: none; }
.build-h {
  position: absolute; inset: 0; z-index: 2; margin: 0; padding: 0 var(--m);
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  font-size: clamp(32px, 4.45vw, 82px); font-weight: 600; line-height: 1.02; letter-spacing: -.05em;
  color: var(--mute);
}
.build-h span { display: block; }
.build-h span + span { color: var(--sheet); text-align: right; }
@media (max-width: 767px) {
  .build-stage { height: auto; min-height: 0; aspect-ratio: 720 / 900; }
  .build-h { flex-direction: column; align-items: stretch; padding-block: 28px; }
}
/* desktop scenes: a square window in the middle opens to the full screen while the film scrubs;
   the two halves start beside the small window and move out to the edges (main.js) */
.scenes .build { height: 280vh; }
.scenes .build-stage { position: sticky; top: 0; height: 100vh; background: var(--white); }
.scenes .build-still { display: none; }
.scenes .build-window { display: block; position: absolute; inset: 0; clip-path: inset(var(--t, 35%) var(--l, 37%)); }
.build-film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #e9edf2; }

/* ---------------------------------------------------------------- latest requests (M16, M19) */

.reqs { padding: clamp(80px, 10vw, 160px) 0; }
.reqs-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 24px; margin-bottom: 56px; }
.reqs-head .t2 { grid-column: 1 / span 5; }
.reqs-intro { grid-column: 7 / span 6; }
.reqs-intro p { margin-bottom: 20px; max-width: 520px; }
.req-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.req {
  display: flex; flex-direction: column; gap: 12px; height: 100%; min-height: 300px;
  padding: 28px 28px 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background .35s, color .35s;
}
.req-top { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.req-state { font-weight: 600; color: var(--ink); }
.req-state.is-open { color: var(--sheet); }
.req-state.is-open::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; background: var(--cube); }
.req-title { font-size: clamp(21px, 1.67vw, 30px); line-height: 1.2; letter-spacing: -.02em; overflow-wrap: anywhere; }
.req-meta { font-size: 14px; }
.req .tags { margin-top: auto; }
.req:hover { background: var(--sheet); color: var(--pale); }
.req:hover :is(.req-title, .req-state) { color: var(--white); }
.req:hover .tag { border-color: var(--hair-b); }
.reqs-note { margin-top: 20px; font-size: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 5px 12px; border: 1px solid var(--line); border-radius: 90px; font-size: 14px; line-height: 1.35; }
.tags--big .tag { font-size: 16px; padding: 7px 16px; }
@media (max-width: 1100px) { .req-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .reqs-head .t2, .reqs-intro { grid-column: 1 / -1; }
  .req-grid { grid-template-columns: 1fr; }
  .req { min-height: 0; }
}

/* the label cursor that follows the pointer over the cards (M19) */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none;
  display: flex; align-items: center; gap: 8px;
  color: var(--white); font-size: 14px; font-weight: 600; white-space: nowrap;
  mix-blend-mode: difference; opacity: 0; transition: opacity .2s;
}
.cursor::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--white); }
.cursor.is-on { opacity: 1; }

/* ---------------------------------------------------------------- FAQ (M21) */

.faq { padding: clamp(80px, 10vw, 160px) 0; border-top: 1px solid var(--line); }
.tabs { display: flex; gap: 10px; margin-bottom: 32px; }
.tab {
  height: 42px; padding: 0 22px; border: 1px solid var(--sheet); border-radius: 90px;
  background: none; color: var(--sheet); font-weight: 600; font-size: 15px; cursor: pointer;
  transition: background .3s, color .3s;
}
.tab[aria-selected="true"] { background: var(--sheet); color: var(--white); }
.tabs { display: none; }
.js .tabs { display: flex; }
.js .faq-panel[hidden] { display: none; }
.faq-sub { font-size: 15px; font-weight: 600; margin: 0 0 12px; }
.faq-panel + .faq-panel .faq-sub { margin-top: 48px; }
.js .tabs ~ .faq-panel .faq-sub { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; color: var(--sheet); font-size: clamp(18px, 1.53vw, 28px); line-height: 1.3; letter-spacing: -.02em;
}
.qa summary::-webkit-details-marker { display: none; }
.qa-x { position: relative; flex: none; width: 40px; height: 40px; border: 2px solid var(--sheet); border-radius: 50%; transition: transform .3s var(--ease), background .3s; }
.qa-x::before, .qa-x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: var(--sheet); }
.qa-x::after { transform: rotate(90deg); }
.qa[open] .qa-x { transform: rotate(-45deg); }
.qa summary:hover .qa-x { background: var(--mist); }
.qa-a { padding: 0 64px 28px 0; max-width: 720px; }
.qa-a ul { margin: 0 0 1em; padding-left: 0; }
.qa-a li { position: relative; padding-left: 22px; margin-bottom: 6px; }
.qa-a li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: var(--cube); }
.js.motion .qa[open] .qa-a { animation: qa-in .45s var(--ease); }
@keyframes qa-in { from { opacity: 0; transform: translateY(-8px); } }

/* ---------------------------------------------------------------- footer: sticky film, rising letters (M23, M24) */

.foot-wrap { position: relative; }
.foot-film { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.foot-tint { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(58 150 202 / .28), rgb(132 197 232 / .2)); mix-blend-mode: screen; }
.foot { position: relative; z-index: 1; background: var(--white); color: var(--ink); }
.foot-big {
  position: absolute; left: 0; right: 0; bottom: 100%;
  display: block; overflow: hidden; text-align: center;
  color: var(--white); font-weight: 600; white-space: nowrap;
  font-size: calc(100vw / 3.8);   /* "Let's talk" is 3.74 em wide */
  line-height: .74; letter-spacing: -.03em;
}
.foot-letters { display: inline-block; }
.foot-letters span { display: inline-block; }
.foot-letters .sp { width: .22em; }
.js.motion .foot-letters span { transform: translateY(105%); transition: transform 1.2s cubic-bezier(.215, .61, .355, 1) calc(var(--i) * 70ms); }
.js.motion .foot-big.is-in .foot-letters span { transform: none; }
.foot-grid { display: flex; justify-content: space-between; gap: 48px; padding-top: clamp(64px, 6vw, 110px); padding-bottom: 72px; }
.foot-nav { display: flex; flex-direction: column; gap: 6px; }
.foot-nav a { color: var(--sheet); font-size: clamp(21px, 2.22vw, 44px); line-height: 1.2; letter-spacing: -.03em; transition: color .25s; }
.foot-nav a:hover, .foot-contact a:hover { color: var(--cube); }
.foot-contact { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; text-align: right; }
.foot-contact a { color: var(--sheet); }
.foot-contact p { margin-top: 18px; }
.foot-legal { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 36px; font-size: 14px; }
.foot-legal a { color: var(--sheet); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 767px) {
  .foot-film { height: 70vh; }
  .foot-grid { flex-direction: column; }
  .foot-contact { align-items: flex-start; text-align: left; }
}

/* ---------------------------------------------------------------- sub-pages */

/* hero with a rendered still or the film (M27) */
.sub-hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; color: var(--white); }
.sub-media, .sub-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sub-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(10 30 60 / .35), rgb(10 30 60 / 0) 30%, rgb(10 30 60 / .55)); pointer-events: none; }
.sub-hero-in { position: relative; z-index: 1; height: 100%; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; padding-bottom: clamp(40px, 6vw, 80px); }
.sub-hero-txt { grid-column: 7 / span 6; grid-row: 1; }
.sub-hero h1 { color: var(--white); overflow-wrap: break-word; }
/* a light still: blue text, a light veil instead of the dark one */
.sub-hero--light { color: var(--sheet); }
.sub-hero--light h1 { color: var(--sheet); }
.sub-hero--light::after { background: linear-gradient(180deg, rgb(255 255 255 / .25), rgb(255 255 255 / 0) 35%, rgb(255 255 255 / .55)); }
.sub-hero--light .sub-down-i { border-color: var(--sheet); }
.sub-lead { margin-top: 20px; }
.sub-down { grid-column: 1 / span 5; grid-row: 1; display: inline-flex; align-items: center; gap: 14px; justify-self: start; font-weight: 600; font-size: 15px; }
.sub-down-i { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgb(255 255 255 / .7); border-radius: 50%; }
.sub-down-i svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; transform: rotate(90deg); }
@media (max-width: 960px) {
  .sub-hero { height: 78svh; }
  .sub-hero-txt, .sub-down { grid-column: 1 / -1; }
  .sub-down { display: none; }
}

/* a statement whose words light up with scroll (M28) */
.statement { padding: clamp(96px, 14vw, 220px) 0; }
.statement .t2 { max-width: 17em; color: var(--white); }
.js.motion .lit .lw { opacity: var(--a, .14); transition: opacity .2s linear; }

.cta { padding: clamp(80px, 10vw, 160px) 0; border-top: 1px solid var(--line); }
.cta .big { color: var(--sheet); }

/* area page: drawing left, roles and tools right */
.area { padding: clamp(80px, 10vw, 160px) 0; }
.area-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.area-art { grid-column: 1 / span 5; }
.art--area { position: sticky; top: calc(var(--hdr) + 40px); width: min(100%, 420px); height: auto; }
.area-groups { grid-column: 7 / span 6; display: grid; gap: 72px; }
.group .t4 { margin-bottom: 24px; }
.numlist { position: relative; border-left: 1px solid var(--line); }
.numlist li { position: relative; padding: 12px 0 12px 64px; color: var(--sheet); font-size: clamp(18px, 1.39vw, 26px); letter-spacing: -.02em; }
.numlist .num {
  position: absolute; left: -16px; top: 50%; margin-top: -16px;
  display: grid; place-items: center; width: 32px; height: 32px;
  background: var(--white); border: 1px solid var(--line); color: var(--cube); font-size: 12px; font-weight: 600; letter-spacing: 0;
}
.numlist--text li { font-size: inherit; color: var(--ink); letter-spacing: 0; padding-block: 18px; }
.numlist--text li strong { display: block; color: var(--sheet); font-weight: 400; font-size: clamp(21px, 2.22vw, 44px); letter-spacing: -.03em; line-height: 1.2; margin-bottom: 6px; }
.numlist--text .num { top: 28px; margin-top: 0; }
@media (max-width: 960px) {
  .area-art { grid-column: 1 / -1; margin-bottom: 48px; }
  .art--area { position: static; width: 220px; }
  .area-groups { grid-column: 1 / -1; }
}

/* a line of tools passing by (CSS only, 40 s) */
.marquee { display: flex; overflow: hidden; padding: clamp(40px, 5vw, 72px) 0; border-top: 1px solid var(--line); }
.marquee-list { display: flex; flex: none; gap: .6em; padding-right: .6em; font-size: clamp(44px, 6.67vw, 128px); letter-spacing: -.05em; line-height: 1; color: var(--sheet); white-space: nowrap; }
.marquee-list li::after { content: "·"; margin-left: .6em; color: var(--cube); }
.js.motion .marquee-list { animation: marquee-left 60s linear infinite; }
@keyframes marquee-left { to { transform: translateX(-100%); } }

.others { padding: 0 0 clamp(80px, 10vw, 140px); }
.others-list { border-top: 1px solid var(--line); }
.others-list a { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); color: var(--sheet); font-size: clamp(21px, 2.22vw, 44px); letter-spacing: -.03em; transition: padding .4s var(--ease); }
.others-list svg { width: 23px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; }
.others-list a:hover { padding-left: 16px; }

/* three points with a small square figure (consultants, about) */
.points { padding: clamp(80px, 10vw, 160px) 0; }
.points-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px var(--gap); }
.point .t3 { margin: 28px 0 16px; }
.point-sq { position: relative; display: block; width: 72px; height: 72px; border: 1px solid var(--sheet); }
.point-sq i { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; background: var(--cube); }
.js.motion .point-sq i { animation: corner 9s var(--ease-io) infinite; }
.point:nth-child(2) .point-sq i { animation-delay: -3s; }
.point:nth-child(3) .point-sq i { animation-delay: -6s; }
@keyframes corner {
  0%, 20% { transform: none; }
  25%, 45% { transform: translate(29px, -29px); }
  50%, 70% { transform: translate(-29px, 29px); }
  75%, 95% { transform: translate(29px, 29px); }
}
@media (max-width: 960px) { .points-grid { grid-template-columns: 1fr; } }

.flow { padding: clamp(40px, 5vw, 80px) 0 clamp(80px, 10vw, 140px); }

.about-txt { padding: clamp(80px, 10vw, 160px) 0; }
.about-txt .big { color: var(--sheet); margin-bottom: 28px; }
.about-txt .tags { margin-top: 32px; }

/* team: no photos, a square tile built from the mark */
.team { padding: clamp(80px, 10vw, 160px) 0; border-top: 1px solid var(--line); }
.team .t2 { margin-bottom: 56px; }
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px var(--gap); }
.person-tile { position: relative; aspect-ratio: 1; background: var(--mist); display: grid; place-items: center; margin-bottom: 22px; overflow: hidden; }
.person-grid { position: absolute; left: 20px; top: 20px; display: grid; grid-template-columns: repeat(3, 10px); gap: 3px; }
.person-grid i { width: 10px; height: 10px; border: 1px solid var(--light); }
.person-grid i.on { background: var(--cube); border-color: var(--cube); }
.person-in { font-size: clamp(56px, 6vw, 110px); letter-spacing: -.05em; color: var(--sheet); }
.person-name { font-size: clamp(20px, 1.53vw, 28px); letter-spacing: -.02em; }
.person-role { margin: 6px 0 12px; }
.person-contact a { color: var(--sheet); }
.person-contact a:hover { color: var(--cube); }
.person-tile::after { content: ""; position: absolute; inset: 0; background: var(--sheet); transform: translateY(101%); transition: transform .6s var(--ease); }
.person:hover .person-tile::after { transform: translateY(78%); }
@media (max-width: 1100px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .team-grid { gap: 36px 16px; } .person-in { font-size: 44px; } .person-grid { left: 12px; top: 12px; } }

/* contact */
.contact-hero { padding: calc(var(--hdr) + clamp(64px, 9vw, 150px)) 0 clamp(64px, 8vw, 120px); }
.contact-lines { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.contact-lines .big { color: var(--sheet); margin-bottom: 24px; }
.contact-lines a { color: var(--sheet); }
.contact-lines a:hover { color: var(--cube); }
.contact-tel::before { content: ""; display: inline-block; width: .22em; height: .22em; margin-right: .3em; background: var(--cube); vertical-align: .12em; }
.contact-form { padding: clamp(64px, 8vw, 140px) 0; background: var(--mist); }
.contact-form .t4 { margin-bottom: 20px; }
.contact-form a { color: var(--sheet); text-decoration: underline; text-underline-offset: 3px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px var(--gap); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--sheet); }
.field input, .field textarea {
  width: 100%; padding: 14px 0; border: 0; border-bottom: 1px solid #9AA3AE; border-radius: 0;
  background: transparent; color: var(--sheet); font-size: 18px; outline: none; transition: border-color .25s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--cube); box-shadow: 0 1px 0 var(--cube); }
.form .btn { justify-self: start; margin-top: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { display: none; padding: 16px 20px; margin-bottom: 28px; background: var(--white); border-left: 3px solid var(--cube); color: var(--sheet); }
.form-msg--err { border-color: #B3261E; }
.form-msg:target { display: block; scroll-margin-top: calc(var(--hdr) + 24px); }
@media (max-width: 767px) { .form { grid-template-columns: 1fr; } }

/* privacy, 404 */
.text-hero { padding: calc(var(--hdr) + clamp(64px, 9vw, 150px)) 0 clamp(40px, 5vw, 80px); }
.text-hero .big { margin-top: 28px; max-width: 640px; }
.text-hero--404 { min-height: 70vh; }
.prose { padding: 0 0 clamp(80px, 10vw, 140px); }
.prose .split-r { grid-column: 1 / span 8; }
.prose .t4 { margin: 40px 0 12px; }
.prose a { color: var(--sheet); text-decoration: underline; text-underline-offset: 3px; }
.prose code { font-size: .9em; }

/* ---------------------------------------------------------------- page transitions (M25, simplified) */

/* Between pages of this site, Chrome and Safari 18.2+ wipe the new page in from the right.
   Other browsers just load the page. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: none; }
  ::view-transition-new(root) { animation: wipe-in .7s var(--ease-io); }
}
@keyframes wipe-in { from { clip-path: inset(0 0 0 100%); } }

/* ---------------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .btn::before, .btn-dot, .btn-dot svg, .roll > span { transition-duration: .01ms !important; }
}
