/* The Cube — site styles. Tokens from the CUBE design system (Kletskop Studio huisstijlhandboek). */

@font-face {
  font-family: "Integral CF";
  src: url("/fonts/IntegralCF-HeavyOblique.ttf") format("truetype");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Brand colours (design-system tokens) */
  --static: #fff4d7;
  --pulse: #97c1db;
  --horizon: #2d5786;
  --frequency: #2525a5;
  --monolith: #000000;
  --transmission: #ea3d1b;

  /* Night-mode roles */
  --ground: #111111;          /* page ground, soft black */
  --tile: #1a1a1a;            /* quiet surface block */
  --tile-2: #222222;
  --ink: var(--static);       /* 17.2:1 on ground */
  --ink-muted: #bdb5a1;       /* 9.0:1 on ground */
  --ink-faint: #8a8475;       /* 5.0:1 on ground, captions only */
  --accent: var(--transmission);
  --on-accent: #111111;       /* 4.9:1 on transmission */
  --hairline: rgba(255, 244, 215, 0.16);

  /* Type */
  --font-display: "Integral CF", "Arial Black", "Helvetica Neue", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-sans: "Manrope", "Helvetica Neue", Arial, sans-serif;

  /* The logo grid: blocks split by one gutter */
  --gutter: clamp(6px, 0.9vw, 14px);
  --margin: clamp(16px, 5.2vw, 100px);
  --max: 1720px;
  --header-h: 72px;

  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--transmission); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--pulse); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--static); color: #111; padding: 10px 16px; }
.skip:focus { left: 8px; }

/* ---------- Type ---------- */
.display-xl, .display-l, .display-m, .display-s {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0;
}
.display-xl { font-size: clamp(52px, 10.4vw, 200px); line-height: 0.84; }
.display-l  { font-size: clamp(44px, 7.4vw, 140px); line-height: 0.86; }
.display-m  { font-size: clamp(34px, 4.6vw, 84px);  line-height: 0.9; }
.display-s  { font-size: clamp(24px, 2.4vw, 44px);  line-height: 0.95; }

.serif-xl, .serif-l, .serif-m {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0;
}
.serif-xl { font-size: clamp(56px, 9vw, 160px); line-height: 0.9; }
.serif-l  { font-size: clamp(42px, 5.2vw, 88px); line-height: 0.98; }
.serif-m  { font-size: clamp(30px, 3vw, 52px);   line-height: 1.04; }

.kicker {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 14px;
}
.lead { font-size: clamp(20px, 1.7vw, 27px); line-height: 1.35; font-weight: 500; margin: 0; max-width: 34ch; }
.body { color: var(--ink-muted); max-width: 58ch; }
.body p { margin: 0 0 1em; }
.caption { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
.accent { color: var(--transmission); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--margin); }
.section { padding: clamp(72px, 10vw, 160px) 0; }
.section--tight { padding: clamp(48px, 6vw, 96px) 0; }
.sec-head { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: clamp(36px, 4.5vw, 72px); }
@media (min-width: 900px) {
  .sec-head { grid-template-columns: 5fr 7fr; align-items: end; }
  .sec-head .body { justify-self: end; }
  .sec-head--top { align-items: start; }
}
.rule { border: 0; border-top: 1px solid var(--hairline); margin: 0; }

/* ---------- The logo grid ---------- */
.grid { display: grid; gap: var(--gutter); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 760px) {
  .grid--2 { grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.tile {
  position: relative;
  background: var(--tile);
  padding: clamp(24px, 2.6vw, 44px);
  overflow: hidden;
  min-width: 0;
}
.tile--static { background: var(--static); color: #111; }
.tile--static .body, .tile--static .kicker { color: #3a362d; }
.tile--accent { background: var(--transmission); color: #111; }
.tile--accent .body, .tile--accent .kicker { color: #2a0c05; }
.tile--horizon { background: var(--horizon); color: var(--static); }
.tile--frequency { background: var(--frequency); color: var(--static); }
.tile--photo { padding: 0; background: #0b0b0b; }
.tile--photo img { width: 100%; height: 100%; object-fit: cover; }

/* The slit from the mark: a short cut into a block's edge, in ground colour */
.slit::after {
  content: "";
  position: absolute;
  background: var(--ground);
  pointer-events: none;
  z-index: 0;
}
.slit > * { position: relative; z-index: 1; }
@media (max-width: 899px) { .slit--right::after, .slit--left::after { display: none; } }
.slit--top::after    { top: 0; left: 74%; width: calc(var(--gutter) * 0.9); height: 24%; }
.slit--left::after   { left: 0; top: 46%; height: calc(var(--gutter) * 0.9); width: 22%; }
.slit--right::after  { right: 0; top: 62%; height: calc(var(--gutter) * 0.9); width: 26%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn--primary { background: var(--transmission); color: var(--on-accent); }
.btn--primary:hover { background: var(--static); }
.btn--ghost { border-color: rgba(255, 244, 215, 0.4); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--static); background: var(--static); color: #111; }
.tile--static .btn--ghost, .tile--accent .btn--ghost { border-color: rgba(17,17,17,0.45); color: #111; }
.tile--static .btn--ghost:hover, .tile--accent .btn--ghost:hover { background: #111; color: var(--static); border-color: #111; }
.btn .arrow { width: 14px; height: 14px; transform: rotate(90deg); transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: rotate(90deg) translateY(-3px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; padding: 12px 0;
  border-bottom: 1px solid currentColor;
}
.link-arrow .arrow { width: 13px; height: 13px; transform: rotate(90deg); transition: transform 0.25s var(--ease); }
.link-arrow:hover .arrow { transform: rotate(90deg) translateY(-3px); }

/* Arrow from the CUBE shapes, recoloured with currentColor */
.arrow {
  display: inline-block;
  background: currentColor;
  -webkit-mask: url("/assets/arrow.svg") center / contain no-repeat;
          mask: url("/assets/arrow.svg") center / contain no-repeat;
}

/* The Cube 2×2 mark, recoloured with currentColor */
.mark {
  display: block;
  aspect-ratio: 1;
  background: currentColor;
  -webkit-mask: url("/assets/mark.png") center / contain no-repeat;
          mask: url("/assets/mark.png") center / contain no-repeat;
}

/* ---------- Header: floats over the page, turns to slim glass on scroll ---------- */
:root { --header-top: 104px; --header-slim: 64px; }
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-top);
  transition: height .45s var(--ease), background-color .45s var(--ease), border-color .45s var(--ease);
  border-bottom: 1px solid transparent;
}
/* A soft shade at the top keeps white text readable over any photo */
.site-header::before {
  content: ""; position: absolute; inset: 0 0 -40px 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.22) 55%, rgba(0,0,0,0) 100%);
  transition: opacity .45s var(--ease);
}
.scrolled .site-header, .menu-open .site-header {
  height: var(--header-slim);
  background: rgba(17, 17, 17, 0.72);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
          backdrop-filter: saturate(150%) blur(16px);
  border-bottom-color: var(--hairline);
}
.scrolled .site-header::before, .menu-open .site-header::before { opacity: 0; }
@media (prefers-reduced-transparency: reduce) {
  .scrolled .site-header, .menu-open .site-header { background: var(--ground); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.site-header .wrap { position: relative; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

/* The mark starts big and shrinks into the bar */
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--static); }
.brand .mark { width: 72px; color: var(--static); transition: width .45s var(--ease); }
.brand-name { font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: 18px; letter-spacing: 0.02em; transition: font-size .45s var(--ease); }
.scrolled .brand .mark, .menu-open .brand .mark { width: 36px; }
.scrolled .brand-name, .menu-open .brand-name { font-size: 15px; }
@media (max-width: 1039px) { .brand .mark { width: 52px; } }

/* Menu links: the container rib draws itself underneath on hover */
.nav { display: none; align-items: center; }
.nav a {
  text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255, 244, 215, 0.78); padding: 12px 2px; position: relative;
  text-shadow: 0 1px 12px rgba(0,0,0,.35);
  transition: color .2s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 2px; right: 2px; bottom: 2px; height: 6px;
  background: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 5px);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .35s var(--ease);
}
.nav a:hover, .nav a:focus-visible, .nav a[aria-current="page"] { color: var(--static); }
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }
.nav a[aria-current="page"]::after { transform: scaleX(1); color: var(--transmission); }
.nav-divider { width: 1px; height: 20px; background: rgba(255, 244, 215, 0.3); }
.nav .nav-cube { display: inline-flex; align-items: center; gap: 8px; }
.nav-cube .cube-c { width: 26px; color: var(--transmission); transition: transform .35s var(--ease); }
.nav-cube:hover .cube-c { transform: translateX(-2px) scale(1.08); }
.header-cta { display: none; min-height: 44px; padding: 0 20px; font-size: 13px; }

.menu-btn {
  position: relative; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  display: grid; place-items: center;
}
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--static); position: relative; transition: background-color .2s var(--ease); }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; width: 24px; height: 2px; background: var(--static); transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-btn span::before { top: -7px; }
.menu-btn span::after { top: 7px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { top: 0; transform: rotate(45deg); }
.menu-open .menu-btn span::after { top: 0; transform: rotate(-45deg); }

/* Phone menu: full screen, one block per page, the logo's gutter between them */
.mobile-nav {
  position: fixed; inset: 0; z-index: 49;
  background: var(--ground);
  padding: calc(var(--header-slim) + var(--gutter)) var(--gutter) var(--gutter);
  display: none; grid-auto-rows: 1fr; gap: var(--gutter);
  overflow-y: auto;
}
.menu-open { overflow: hidden; }
.menu-open .mobile-nav { display: grid; }
.m-block {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  min-height: 64px; padding: 14px 18px;
  background: var(--tile); color: var(--static); text-decoration: none;
  font-family: var(--font-display); font-style: italic; font-weight: 900; text-transform: uppercase;
  font-size: clamp(26px, 8vw, 44px); line-height: 1;
}
.m-block[aria-current="page"] { box-shadow: inset 4px 0 0 var(--transmission); }
.m-block--cube { background: var(--static); color: #000; align-items: center; justify-content: flex-start; }
.m-block--cube .cube-c { width: 44px; color: var(--transmission); }
.m-block--cta { background: var(--transmission); color: #111; align-items: center; }
.m-block--cta .arrow { width: 22px; height: 22px; transform: rotate(90deg); }
.motion .menu-open .m-block { animation: block-in .5s var(--ease) both; animation-delay: calc(var(--i) * 45ms); }
@keyframes block-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (min-width: 1040px) {
  .nav { display: flex; gap: clamp(16px, 1.9vw, 32px); }
  .header-cta { display: inline-flex; }
  .menu-btn, .mobile-nav { display: none !important; }
}

/* Pages without a full-bleed hero start below the bar */
main { padding-top: var(--header-top); }
.page-home main, .page-cube main { padding-top: 0; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(56px, 8vw, 130px) 0 clamp(40px, 5vw, 80px); }
.page-hero .display-xl { margin-top: 8px; }
.page-hero .serif-l { margin-top: 10px; color: var(--ink-muted); }

/* ---------- Home hero: full-bleed light show ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  max-height: 1080px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: #0b0b0b;
}
.hero-media { position: absolute; inset: 0; transform: translate3d(var(--hx, 0px), var(--hy, 0px), 0) scale(var(--hs, 1.06)); will-change: transform; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11,11,11,0.35) 0%, rgba(11,11,11,0) 28%),
    linear-gradient(0deg, rgba(11,11,11,0.92) 0%, rgba(11,11,11,0.62) 32%, rgba(11,11,11,0) 64%);
}
.hero-content { position: relative; z-index: 1; padding-bottom: clamp(28px, 4.5vw, 72px); transform: translate3d(0, var(--lift, 0px), 0); opacity: var(--fade, 1); }
.hero-grid { display: grid; gap: 8px 40px; align-items: end; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: auto 1fr; } .hero-night { justify-self: end; text-align: right; padding-bottom: 0.12em; white-space: nowrap; } }
.hero .display-xl { font-size: clamp(52px, 9vw, 176px); white-space: nowrap; }
.hero-night { color: var(--static); }
.hero-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin-top: clamp(24px, 3vw, 44px); }
.hero .cycler-count { color: var(--ink-muted); }
.hero .cycler-count b { color: var(--static); font-weight: 700; }

/* ---------- Motion (only when html.motion: JS on, reduced motion off) ---------- */

/* Hero photo cycler: a slow light show */
.cycler img { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.cycler img.on { opacity: 1; }
.motion .cycler img.on { animation: drift-zoom 7s linear both; }
@keyframes drift-zoom { from { transform: scale(1.1); } to { transform: scale(1); } }

/* Line-by-line headline reveal */
/* Each line is masked only while it slides up; slanted letters get room on both sides, and the mask is lifted once the reveal is done */
.lines .line { display: block; padding: 0.04em 0.16em 0.08em 0.16em; margin: 0 -0.16em 0 -0.16em; }
.motion .lines:not(.revealed) .line { overflow: hidden; }
.lines .line > span { display: inline-block; }
.motion .lines .line > span { transform: translateY(105%); transition: transform 1s var(--ease); }
.motion .is-open .lines .line > span { transform: none; }
.motion .is-open .lines .line:nth-child(2) > span { transition-delay: .12s; }
.motion .page-hero .lines + .lines .line > span { transition-delay: .3s; }
.motion .hero-night .line > span { transition-delay: .4s; }
.motion .hero-fade { opacity: 0; transition: opacity .9s var(--ease) .75s; }
.motion .hero.is-open .hero-fade { opacity: 1; }

/* Scroll reveals */
.motion [data-reveal]:not([data-reveal="stagger"]) { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.motion [data-reveal="stagger"] > * { opacity: 0; transform: translateY(48px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.motion [data-reveal="stagger"] > :nth-child(2) { transition-delay: .1s; }
.motion [data-reveal="stagger"] > :nth-child(3) { transition-delay: .2s; }
.motion [data-reveal].in, .motion [data-reveal="stagger"].in > * { opacity: 1; transform: none; }

/* Parallax photos: JS sets --py */
.motion [data-parallax] { transform: translate3d(0, var(--py, 0px), 0) scale(1.12); will-change: transform; }

/* Hover: photos breathe */
@media (hover: hover) {
  .tile--photo:not(.cycler) img:not([data-parallax]) { transition: transform 1.2s var(--ease); }
  .tile--photo:not(.case-media--full):hover img:not([data-parallax]) { transform: scale(1.05); }
}

/* Package renders tilt toward the cursor: JS sets --rx/--ry */
.pkg { perspective: 900px; }
.pkg-render .render { transition: transform .5s var(--ease), filter .5s var(--ease); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0); }
.pkg:hover .pkg-render .render { filter: drop-shadow(0 30px 40px rgba(0,0,0,.55)); }
.pkg.tilting .pkg-render .render { transition: transform .12s linear, filter .5s var(--ease); transform: rotateX(var(--rx)) rotateY(var(--ry)) scale(1.06); }

/* Magnetic primary buttons: JS sets --mx/--my */
.motion .btn--primary { transform: translate(var(--mx, 0px), var(--my, 0px)); transition: background-color .2s var(--ease), color .2s var(--ease), transform .35s var(--ease); }

/* ---------- City strip ---------- */
.cities { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); overflow: hidden; }
.cities-track { display: flex; gap: 56px; padding: 22px 0; width: max-content; }
.cities-track span { font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: clamp(22px, 2.4vw, 36px); text-transform: uppercase; white-space: nowrap; color: var(--ink); }
.cities-track span.dim { color: transparent; -webkit-text-stroke: 1px rgba(255,244,215,.5); }
@media (prefers-reduced-motion: no-preference) {
  .cities-track { animation: drift 40s linear infinite; }
}
@keyframes drift { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stat .num { font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: clamp(56px, 6.4vw, 120px); line-height: 0.9; text-transform: uppercase; }
.stat .num small { font-size: 0.45em; }
.stat p { margin: 18px 0 0; max-width: 24ch; }

/* ---------- Packages ---------- */
.pkg { display: flex; flex-direction: column; gap: 22px; }
.pkg-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pkg .badge { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; background: var(--transmission); color: #111; padding: 6px 10px; }
.pkg-render { aspect-ratio: 4 / 3; margin: -6px -10px 0; }
.pkg-render { display: grid; place-items: center; }
.pkg-render .render { height: 100%; width: auto; }

/* Container render with the new mark: base image, wall patches, marks */
.render { position: relative; display: block; width: 100%; aspect-ratio: var(--w) / var(--h); max-height: 100%; }
.render .r-base { position: absolute; inset: 0; width: 100%; height: 100%; }
.r-patch {
  position: absolute; overflow: hidden;
  left: calc(var(--x) / var(--w) * 100%); top: calc(var(--y) / var(--h) * 100%);
  width: calc(var(--pw) / var(--w) * 100%); height: calc(var(--ph) / var(--h) * 100%);
  -webkit-mask: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent), linear-gradient(180deg, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-composite: source-in;
          mask: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent), linear-gradient(180deg, transparent, #000 9%, #000 91%, transparent);
          mask-composite: intersect;
}
.r-patch img {
  position: absolute; max-width: none;
  width: calc(var(--w) / var(--pw) * 100%); height: calc(var(--h) / var(--ph) * 100%);
  left: calc(var(--x) / var(--pw) * -100%); top: calc((var(--y) + var(--dy)) / var(--ph) * -100%);
}
.r-mark {
  position: absolute; display: flex; align-items: center; gap: 0.6em;
  left: calc(var(--x) / var(--w) * 100%); top: calc(var(--y) / var(--h) * 100%);
  transform: translate(-50%, -50%) var(--t, );
  color: var(--logo, var(--static));
  font-size: calc(var(--s) / var(--w) * 100cqw);
}
.render { container-type: inline-size; }
.r-mark .mark { width: calc(var(--s) / var(--w) * 100cqw); opacity: 0.94; }
.r-word { display: none; font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: 0.2em; line-height: 0.9; white-space: nowrap; opacity: 0.94; }
.logo-orange { --logo: var(--transmission); }
.logo-pulse { --logo: var(--pulse); }
.logo-word .r-mark { transform: translate(-38%, -50%) var(--t, ); gap: 0.4em; }
.logo-word .r-word { display: block; width: 3.2em; white-space: normal; }
.pkg ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hairline); }
.pkg li { padding: 12px 0; border-bottom: 1px solid var(--hairline); color: var(--ink-muted); font-size: 16px; display: flex; gap: 12px; }
.pkg li::before { content: ""; flex: 0 0 8px; height: 8px; margin-top: 9px; background: var(--transmission); }
.pkg .btn { margin-top: auto; align-self: stretch; }
.pkg--featured { background: var(--tile-2); outline: 1px solid rgba(234, 61, 27, 0.55); outline-offset: -1px; }

/* ---------- Work ---------- */
.case { display: grid; gap: var(--gutter); grid-template-columns: 1fr; }
@media (min-width: 900px) { .case { grid-template-columns: 7fr 5fr; } .case.flip { grid-template-columns: 5fr 7fr; } .case.flip .case-media { order: 2; } }
.case-media { min-height: 360px; }
.case-media--full { min-height: 0; align-self: start; }
.case-media--full img { height: auto; object-fit: contain; }
.case-body { display: flex; flex-direction: column; justify-content: space-between; gap: 36px; }
.case-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); margin-top: 8px; }
.case-facts div { border-top: 1px solid var(--hairline); padding-top: 14px; }
.case-facts b { display: block; font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: clamp(28px, 2.6vw, 44px); line-height: 1; }
.case-facts span { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.tile--static .case-facts div { border-color: rgba(17,17,17,.2); }
.tile--static .case-facts span { color: #4a4537; }

/* ---------- Quote ---------- */
.quote { font-family: var(--font-serif); font-style: italic; font-size: clamp(28px, 3.1vw, 54px); line-height: 1.12; margin: 0; max-width: 26ch; }
.quote-more { color: var(--ink-muted); max-width: 58ch; margin-top: 32px; }
.quote-more p:last-child { margin-bottom: 0; }
.quote-by {
  margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--hairline);
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
}
.testimonial { margin-top: 0; margin-bottom: 0; display: grid; gap: 0 clamp(32px, 6vw, 120px); grid-template-columns: 1fr; }
@media (min-width: 900px) {
  /* same split as the other section heads; the right column starts level with the quote, below the kicker */
  .testimonial { grid-template-columns: 6fr 5fr; align-items: start; }
  .quote-side { padding-top: calc(13px * 1.55 + 14px); }
  .testimonial .quote-more { margin-top: 0; }
}

/* ---------- Steps ---------- */
@media (max-width: 759px) { .grid--4.steps { grid-template-columns: 1fr; } }
.step .idx { font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: 15px; color: var(--transmission); letter-spacing: 0.04em; }
.step h3 { margin: 40px 0 14px; }
.step p { margin: 0; color: var(--ink-muted); font-size: 16px; }

/* ---------- Compare lists ---------- */
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { padding: 13px 0; border-bottom: 1px solid var(--hairline); display: flex; justify-content: space-between; gap: 16px; font-size: 17px; }
.list-plain li em { font-style: normal; color: var(--ink-faint); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.list-plain.strike li { color: var(--ink-faint); text-decoration: line-through; text-decoration-color: rgba(234,61,27,.8); }
.tile--static .list-plain li { border-color: rgba(17,17,17,.18); }

.tally { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); }
@media (max-width: 640px) { .tally { grid-template-columns: repeat(2, 1fr); } }
.tally .tile { text-align: left; }
.tally .tile { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: clamp(160px, 16vw, 240px); }
.tally b {font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: clamp(54px, 6vw, 110px); line-height: .9; display: block; }

/* ---------- FAQ ---------- */
.faq-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.faq-tabs button {
  min-height: 44px; padding: 0 18px; border: 1px solid var(--hairline); background: transparent; cursor: pointer;
  font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted);
}
.faq-tabs button[aria-selected="true"] { background: var(--static); color: #111; border-color: var(--static); }
.faq-list details { border-top: 1px solid var(--hairline); }
.faq-list details:last-child { border-bottom: 1px solid var(--hairline); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 26px 56px 26px 0; position: relative;
  font-family: var(--font-serif); font-style: italic; font-size: clamp(24px, 2.2vw, 36px); line-height: 1.15;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  background:
    linear-gradient(var(--static), var(--static)) center / 18px 2px no-repeat,
    linear-gradient(var(--static), var(--static)) center / 2px 18px no-repeat;
  transition: transform .3s var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(45deg); background-image: linear-gradient(var(--transmission), var(--transmission)), linear-gradient(var(--transmission), var(--transmission)); }
.faq-list .answer { padding: 0 0 30px; color: var(--ink-muted); max-width: 64ch; }

/* ---------- Form ---------- */
.form-shell { display: grid; gap: var(--gutter); grid-template-columns: 1fr; }
@media (min-width: 1000px) { .form-shell { grid-template-columns: 8fr 4fr; } }
.progress { display: flex; gap: 6px; margin-bottom: 36px; }
.progress span { flex: 1; height: 3px; background: rgba(255,244,215,.16); }
.progress span.on { background: var(--transmission); }
.fstep[hidden] { display: none; }
.fstep legend { padding: 0; margin-bottom: 28px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.choices { display: grid; grid-template-columns: 1fr; gap: var(--gutter); }
@media (min-width: 640px) { .choices { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .choices { grid-template-columns: repeat(3, 1fr); } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: flex-end; min-height: 120px; padding: 20px;
  background: var(--tile-2); border: 1px solid transparent;
  font-family: var(--font-display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 20px; line-height: 1;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.choice input:hover + span { border-color: rgba(255,244,215,.4); }
.choice input:checked + span { background: var(--transmission); color: #111; }
.choice input:focus-visible + span { outline: 2px solid var(--pulse); outline-offset: 3px; }
.fields { display: grid; grid-template-columns: 1fr; gap: 22px 18px; }
@media (min-width: 700px) { .fields { grid-template-columns: 1fr 1fr; } .fields .full { grid-column: 1 / -1; } }
.field label { display: block; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  color-scheme: dark;
  width: 100%; min-height: 54px; padding: 14px 16px;
  background: #0b0b0b; color: var(--ink); border: 1px solid rgba(255,244,215,.22); border-radius: 0;
  font-family: var(--font-sans); font-size: 17px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--static); outline: none; box-shadow: 0 0 0 1px var(--static); }
.field .err { display: none; color: #ff8a70; font-size: 14px; margin-top: 6px; }
.field.invalid input, .field.invalid select { border-color: #ff8a70; }
.field.invalid .err { display: block; }
.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.form-status { margin-top: 18px; color: var(--ink-muted); min-height: 1.5em; }
.form-done[hidden] { display: none; }
.field-label { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 12px; }
.field .req { color: var(--transmission); }
.field .help { font-size: 15px; color: var(--ink-faint); margin: 6px 0 0; }
.field.invalid .choice span { border-color: #ff8a70; }
.form-error { color: #ff8a70; margin: 18px 0 0; min-height: 1em; }
.form-error:empty { display: none; }
.form-skeleton { display: grid; gap: 14px; }
.form-skeleton span { height: 54px; background: linear-gradient(90deg, #161616, #222 50%, #161616); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.form-skeleton span:first-child { height: 3px; margin-bottom: 30px; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .form-skeleton span { animation: none; } }

/* ---------- CTA band ---------- */
.cta-band { display: grid; gap: var(--gutter); grid-template-columns: 1fr; padding: var(--gutter); }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr 1fr; } }
.cta-band .tile { min-height: clamp(280px, 30vw, 460px); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--hairline); padding: clamp(56px, 7vw, 110px) 0 32px; }
.foot-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 5fr 3fr 4fr; } }
.foot-mark { width: clamp(120px, 14vw, 220px); color: var(--static); }
.foot-col h2 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 18px; font-weight: 600; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { padding: 4px 0; }
.foot-col a { text-decoration: none; color: var(--ink-muted); }
.foot-col a:hover { color: var(--ink); }
.foot-col address { font-style: normal; color: var(--ink-muted); line-height: 1.8; }
.foot-base { margin-top: 64px; padding-top: 22px; border-top: 1px solid var(--hairline); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* ---------- Utilities ---------- */
.mt-s { margin-top: 18px; } .mt-m { margin-top: 32px; } .mt-l { margin-top: 56px; }
.stack > * + * { margin-top: 18px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ratio-wide { aspect-ratio: 16 / 10; }
.ratio-tall { aspect-ratio: 4 / 5; }

/* ---------- CUBE events page: the sub-brand in full ---------- */
.page-cube main {
  --ink: #000000;
  --ink-muted: #3a362d;   /* 10.9:1 on static */
  --ink-faint: #5c5647;   /* 6.6:1 on static */
  --hairline: rgba(0, 0, 0, 0.18);
  background: var(--static);
  color: var(--ink);
}
.page-cube .kicker { color: var(--ink-muted); }
.cube-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .32; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cube-c {
  display: block; aspect-ratio: 817 / 460; background: currentColor;
  -webkit-mask: url("/assets/cube-c.svg") center / contain no-repeat;
          mask: url("/assets/cube-c.svg") center / contain no-repeat;
}

/* Hero: the Lucht gradient, dark at the top, with a big C in Transmission */
.cube-hero {
  position: relative; overflow: hidden;
  min-height: 100svh; max-height: 1080px;
  background: linear-gradient(180deg, #2d5786 0%, #97c1db 100%);
  color: var(--static);
  display: flex; align-items: flex-start;
}
@media (max-width: 759px) { .cube-c--hero { width: 96vw; right: -22vw; bottom: -4vw; } }
.cube-hero-in { position: relative; z-index: 1; padding-top: calc(var(--header-top) + clamp(32px, 6vw, 96px)); }
.cube-hero .kicker { color: var(--static); }
.cube-hero .display-xl { color: var(--static); }
.cube-c--hero {
  transition: transform .8s var(--ease);
  position: absolute; right: -7vw; bottom: -7vw; width: min(52vw, 820px);
  color: var(--transmission);
  transform: translate3d(var(--cx, 0px), var(--cy, 0px), 0);
}

/* Next date: one loud Transmission band */
.cube-next { background: var(--transmission); color: #000; padding: clamp(40px, 6vw, 96px) 0; }
.cube-next .kicker { color: #2a0c05; }
.cube-next-in { display: grid; gap: 24px; align-items: end; }
@media (min-width: 900px) { .cube-next-in { grid-template-columns: 1fr auto; } .cube-date { text-align: right; } }
.cube-free { display: inline-block; margin: 14px 0 0; padding: 8px 14px; background: #000; color: var(--static); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.cube-light .tile { background: transparent; box-shadow: inset 0 0 0 1px var(--hairline); color: #000; }
.cube-light .tile .kicker { color: #3a362d; }
.cube-light .cube-tile--blue { background: var(--horizon); box-shadow: none; color: var(--static); }
.cube-light .cube-tile--blue .kicker { color: var(--static); }
.cube-tile { min-height: clamp(220px, 22vw, 340px); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }

/* Values: one row each, the name in Instrument Serif */
.cube-values { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hairline); counter-reset: v; }
.cube-values li {
  display: grid; grid-template-columns: 1fr; gap: 8px 40px; align-items: baseline;
  padding: clamp(20px, 2.4vw, 34px) 0; border-bottom: 1px solid var(--hairline);
}
@media (min-width: 900px) { .cube-values li { grid-template-columns: 6fr 5fr; } }
.v-name { font-family: var(--font-serif); font-style: italic; font-size: clamp(40px, 5.4vw, 92px); line-height: 1; transition: transform .5s var(--ease), color .3s var(--ease); }
.v-text { color: var(--ink-muted); max-width: 46ch; }
@media (hover: hover) { .cube-values li:hover .v-name { transform: translateX(18px); color: var(--transmission); } }

/* Closing: the Signaal gradient */
.cube-end {
  position: relative; overflow: hidden;
  background: linear-gradient(90deg, #000000 0%, #2525a5 38%, #ea3d1b 100%);
  color: var(--static); padding: clamp(80px, 12vw, 200px) 0;
}
.cube-end-in { position: relative; z-index: 1; display: grid; gap: 24px; justify-items: start; }
.cube-end .cube-c { width: clamp(120px, 14vw, 220px); color: var(--static); }

/* ---------- Packages showroom: one package on stage at a time ---------- */
.showroom { --stage-pad: clamp(20px, 3vw, 48px); }
.sr-tabs { display: flex; gap: var(--gutter); margin-bottom: var(--gutter); }
.sr-tabs [role="tab"] {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 60px; padding: 0 16px; border: 0; cursor: pointer;
  background: var(--tile); color: var(--ink-muted);
  font-family: var(--font-display); font-style: italic; font-weight: 900; text-transform: uppercase;
  font-size: clamp(18px, 1.8vw, 26px); letter-spacing: .01em;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.sr-tabs [role="tab"]:hover { color: var(--static); background: var(--tile-2); }
.sr-tabs [role="tab"][aria-selected="true"] { background: var(--static); color: #111; }
.sr-tag {
  font-family: var(--font-sans); font-style: normal; font-weight: 700; font-size: 11px; letter-spacing: .12em;
  padding: 5px 8px; background: var(--transmission); color: #111; white-space: nowrap;
}
@media (max-width: 560px) { .sr-tag { display: none; } }

.sr-stage { position: relative; background: var(--tile); overflow: hidden; }
.sr-panel { position: relative; padding: var(--stage-pad); display: grid; }
.js .sr-panel:not(.is-active) { display: none; }

/* The name, huge and outlined, behind the container */
.sr-name {
  position: absolute; left: 0; right: 0; top: clamp(10px, 2vw, 30px); margin: 0; text-align: center; pointer-events: none;
  font-family: var(--font-display); font-style: italic; font-weight: 900; text-transform: uppercase;
  font-size: clamp(64px, 21vw, 360px); line-height: .85; letter-spacing: -.01em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 244, 215, .28);
  white-space: nowrap;
}
/* The square renders carry empty space above and below the container: pull it into the name and trim below */
.sr-render { position: relative; z-index: 1; width: min(72%, 820px); justify-self: center; margin-top: -4%; margin-bottom: -13%; }
.sr-render .render { width: 100%; }
#pkg-custom .sr-render { width: min(40%, 440px); margin-top: 3%; margin-bottom: 0; }
@media (max-width: 759px) { .sr-render { width: 100%; margin-top: 4%; } #pkg-custom .sr-render { width: 70%; margin-top: 10%; } }
.sr-info {
  position: relative; z-index: 1; display: grid; gap: 28px; align-items: end;
  margin-top: clamp(8px, 1.5vw, 24px); padding-top: 28px; border-top: 1px solid var(--hairline);
}
@media (min-width: 1000px) { .sr-info { grid-template-columns: 5fr 5fr auto; } }
.sr-pitch .serif-m { margin: 0; }
.sr-extra { margin: 10px 0 0; color: var(--ink-muted); font-size: 16px; max-width: 46ch; }
.sr-figs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0; }
.sr-figs div { display: flex; flex-direction: column-reverse; gap: 6px; }
.sr-figs dt { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.sr-figs dd { margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: clamp(30px, 3.4vw, 54px); line-height: .9; }
.sr-figs dd small { font-size: .45em; margin-left: 2px; }
.sr-info .btn { justify-self: start; }
@media (min-width: 1000px) { .sr-info .btn { justify-self: end; } }

/* Switching: the render slides in, the name follows */
.motion .sr-panel.is-entering .sr-render { animation: sr-in .7s var(--ease) both; }
.motion .sr-panel.is-entering .sr-name { animation: sr-name-in .8s var(--ease) both; }
.motion .sr-panel.is-entering .sr-info { animation: sr-fade .6s var(--ease) .12s both; }
.sr-panel.from-left { --dir: -1; }
@keyframes sr-in { from { opacity: 0; transform: translateX(calc(var(--dir, 1) * 70px)); } to { opacity: 1; transform: none; } }
@keyframes sr-name-in { from { opacity: 0; transform: translateX(calc(var(--dir, 1) * 30px)); } to { opacity: 1; transform: none; } }
@keyframes sr-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }


.sr-included {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px;
  margin-top: var(--gutter); padding: 20px var(--stage-pad); background: var(--tile);
}
.sr-included .kicker { margin: 0; color: var(--transmission); }
.sr-included ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; padding: 0; }
.sr-included li { font-size: 15px; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.sr-included li::before { content: ""; width: 7px; height: 7px; background: var(--transmission); }
/* Custom: a longer name and words instead of numbers */
#pkg-custom .sr-name { font-size: clamp(56px, 15.5vw, 270px); }
#pkg-custom .sr-figs dd { font-size: clamp(22px, 2.3vw, 36px); }

/* Studio stage: the light grey of the renders themselves, so container and stage are one surface */
.sr-panel--studio {
  background: var(--static);
  color: #111;
}
.sr-panel--studio .sr-name { -webkit-text-stroke: 1.5px rgba(17, 17, 17, .2); z-index: 2; }
.sr-render--studio, #pkg-core .sr-render--studio, #pkg-club .sr-render--studio {
  width: calc(100% + 2 * var(--stage-pad)); margin: 0 calc(-1 * var(--stage-pad)); justify-self: stretch;
  height: clamp(300px, 44vw, 640px); margin-top: clamp(40px, 6vw, 90px);
  background: var(--static);   /* the blend's backdrop: same beige as the stage */
  display: flex; align-items: center; justify-content: center;
}
.sr-render--studio img {
  /* sized to the photo itself, so the edge feather lands on the photo's real edges */
  width: auto; height: auto; max-width: 100%; max-height: 100%;
  /* grey background -> white, then multiply: white vanishes into the beige, black and shadow stay */
  filter: url(#studio-white);
  mix-blend-mode: multiply;
  /* feather all four edges so a shadow running off the photo fades out instead of stopping */
  -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent), linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-composite: source-in;
          mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent), linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent);
          mask-composite: intersect;
}
.sr-panel--studio .sr-info { border-top-color: rgba(17, 17, 17, .14); }
.sr-panel--studio .sr-extra { color: #4a4537; }
.sr-panel--studio .sr-figs dt { color: #5c5647; }
.sr-panel--studio .sr-pitch .serif-m, .sr-panel--studio .sr-figs dd { color: #111; }
@media (max-width: 759px) {
  .sr-render--studio, #pkg-core .sr-render--studio, #pkg-club .sr-render--studio { height: 62vw; margin-top: 18vw; }
}
.about-sub { max-width: 34ch; margin-top: clamp(18px, 2vw, 28px) !important; color: var(--ink-muted); }
