/* COT group – chameleon gallery
   The page background and ink take the colour of whichever scene is in view.
   Everything else stays quiet: one family, black/white defaults, no shadows.
   Mobile first: base styles are the phone layout; min-width queries add columns. */

:root {
  --bg: #d31a6f;
  --fg: #ffffff;
  --pad: clamp(20px, 4vw, 64px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --t-body: clamp(17px, 1.15vw, 19px);
  --t-lead: clamp(20px, 1.6vw, 26px);
  --t-h2: clamp(32px, 4.2vw, 64px);
  --t-h1: clamp(34px, 4.6vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Urbanist", system-ui, sans-serif;
  font-size: var(--t-body);
  line-height: 1.55;
  font-weight: 500;
  color: var(--fg);
  background: var(--bg);
  transition: background-color .7s var(--ease), color .7s var(--ease);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.025em; line-height: 1.04; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 999px; }
.skip:focus { left: 8px; }

/* ---------- top bar: the logo is the chameleon ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  pointer-events: none;
}
.bar > * { pointer-events: auto; }
.bar__logo { padding: 6px 12px; margin: -6px -12px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: flex; align-items: center; gap: 7px; text-decoration: none; color: var(--fg); transition: color .7s var(--ease); }
.bar__logo svg { width: 84px; height: auto; display: block; }
.bar__logo .mark30 { font-size: 13px; }

/* "30 LET" mark: handwritten 30 over spaced LET, set to the right of COT.
   Colour = --accent (navy on the sky-blue scene, otherwise the page ink). */
.mark30 { display: inline-flex; flex-direction: column; align-items: center; line-height: .9; color: var(--accent, var(--fg)); transition: color .7s var(--ease); }
.mark30 b { font-family: "Caveat", cursive; font-weight: 500; font-size: 2.3em; letter-spacing: -.02em; transform: rotate(-4deg); }
.mark30 i { font-style: normal; font-weight: 600; font-size: 1em; letter-spacing: .16em; margin-right: -.16em; }
.bar__nav { display: flex; gap: 6px; align-items: center; }
.bar__links { display: none; }
.bar__menu, .bar__nav a {
  text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 9px 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background-color .7s var(--ease);
  min-height: 44px; display: inline-flex; align-items: center;
}
.bar__menu { font: inherit; font-weight: 700; font-size: 15px; color: inherit; border: 0; cursor: pointer; }
/* phone menu: the links drop down as one big list in the page colours */
.bar.is-open .bar__links {
  display: flex; flex-direction: column; gap: 4px;
  position: fixed; inset: 76px 12px auto; padding: 12px;
  border-radius: 24px; background: var(--bg); color: var(--fg);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--fg) 15%, transparent);
}
.bar.is-open .bar__links a { font-size: 26px; font-weight: 800; padding: 12px 16px; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.bar__nav a:hover { background: color-mix(in srgb, var(--fg) 10%, var(--bg)); }
.bar__nav .bar__cta { background: var(--fg); color: var(--bg); }
.bar__nav .bar__cta:hover { background: var(--fg); opacity: .85; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto auto;
  padding: 72px var(--pad) 20px;
  overflow: hidden;
}
.hero__stage { position: relative; min-height: 40svh; margin-inline: calc(var(--pad) * -1); cursor: grab; touch-action: pan-y; }
.hero__stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.hero__fallback { position: absolute; left: 50%; top: 50%; width: min(70vw, 820px); transform: translate(-50%, -50%); color: var(--fg); }
.hero.is-3d .hero__fallback { opacity: 0; transition: opacity .4s; }


.hero__copy {
  display: grid; gap: 18px; align-items: end;
  padding-top: 12px;
}
.hero__copy h1 { font-size: clamp(28px, 7.6vw, 44px); }
.hero__copy p { font-size: var(--t-lead); line-height: 1.4; max-width: 34ch; }
.hero__scroll {
  justify-self: start;
  font-weight: 800; text-decoration: none;
  border-bottom: 3px solid currentColor; padding-bottom: 2px;
}
.hero__foot { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 0 24px; align-items: center; font-weight: 700; font-size: 14px; }
.hero__foot > p:first-child { flex-basis: 100%; }
.hero__foot button { font: inherit; color: inherit; background: none; border: 0; padding: 0; min-height: 44px; text-decoration: underline; cursor: pointer; }

/* ---------- fundamentals ---------- */
.fund { padding: clamp(80px, 12vw, 180px) var(--pad); }
.fund__title { font-size: var(--t-h2); max-width: 22ch; font-weight: 700; }
.fund__list {
  margin-top: clamp(48px, 7vw, 110px);
  display: grid; gap: clamp(40px, 4vw, 64px);
}
.fund__letter {
  display: block; font-weight: 900; line-height: .8;
  font-size: clamp(96px, 17vw, 280px); letter-spacing: -0.06em;
  margin-bottom: 8px;
}
.fund__list h3 { font-size: clamp(26px, 2.4vw, 38px); margin-bottom: 12px; }
.fund__list p { max-width: 36ch; }

/* ---------- the wall: one colour, one object, one sentence ---------- */
.wall { padding: clamp(96px, 11vw, 170px) var(--pad) clamp(64px, 8vw, 120px); }
.wall__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 56px; margin-bottom: clamp(32px, 5vw, 72px); }
.wall__head h2 { font-size: clamp(76px, 17vw, 280px); font-weight: 900; letter-spacing: -.055em; line-height: .84; }
.wall__head p { font-size: var(--t-lead); line-height: 1.4; max-width: 30ch; }
.wall__grid { display: grid; gap: clamp(36px, 4.4vw, 68px) clamp(14px, 2vw, 32px); }
.p a { display: block; text-decoration: none; }
.p h3 { font-size: clamp(21px, 1.8vw, 28px); margin: 18px 0 6px; }
.p p { max-width: 44ch; line-height: 1.4; }
.art { position: relative; overflow: hidden; container-type: size; height: min(92vw, 620px); }
.art.art--bdo { height: 63vw; }
.art > * { position: absolute; display: block; }
.art img, .art video { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.obj, .obj2, .obj-c, .art .full, .art .sun { transition: transform .7s var(--ease); }
.art .ph { border: 1.1cqh solid #000; border-radius: 4.4cqh; overflow: hidden; background: #000; aspect-ratio: 390 / 800; }

.art--canaria { background: #237a3a; }
.art--canaria .sun { width: 92cqh; aspect-ratio: 1; border-radius: 50%; background: #ffd21f; left: 8cqw; top: 14cqh; }
.art--canaria .sea { inset: 74% 0 0; background: #d8232f; }
.art--canaria .lap { left: 6cqw; top: 25cqh; width: 80cqw; height: 50cqh; border: 1.4cqh solid #111; border-bottom-width: 4cqh; border-radius: 2.4cqh; overflow: hidden; transform: rotate(-5deg); }
.art--canaria .ph { right: 8cqw; bottom: -9cqh; height: 76cqh; transform: rotate(8deg); }
.p a:is(:hover, :focus-visible, .is-in) .art--canaria .lap { transform: rotate(-8deg) translateY(-3cqh); }
.p a:is(:hover, :focus-visible, .is-in) .art--canaria .ph { transform: rotate(4deg) translateY(-6cqh); }
.p a:is(:hover, :focus-visible, .is-in) .art--canaria .sun { transform: translateY(-7cqh); }

.art--hdk { background: #e0247c; perspective: 1200px; }
.art--hdk .beam { left: -30cqw; top: -10cqh; width: 110cqw; height: 105cqh; background: #ff6fb0; clip-path: polygon(8% 0, 18% 0, 100% 100%, 38% 100%); }
.art--hdk .beam--r { left: auto; right: -30cqw; transform: scaleX(-1); background: #f7529c; mix-blend-mode: lighten; }
.art--hdk .floor { left: 8cqw; right: 8cqw; height: 13cqh; bottom: 5cqh; border-radius: 50%; background: #ffd0e4; }
.art--hdk .mag { height: 74cqh; aspect-ratio: 768 / 1114; left: 50cqw; top: 13cqh; transform: translateX(-50%) rotateY(-24deg); box-shadow: 1px 0 #fff, 3px 1px #d9d9d9, 5px 2px #fff, 7px 3px #d0d0d0, 9px 4px #fff; }
.p a:is(:hover, :focus-visible, .is-in) .art--hdk .mag { transform: translateX(-50%) translateY(-2cqh) rotateY(16deg); }

.art--spa { background: #7a1426; }
.art--spa .arch-gold { width: 66cqh; height: 92cqh; left: 50cqw; bottom: 0; translate: -50% 0; background: #e0a93c; border-radius: 33cqh 33cqh 0 0; }
.art--spa .card { height: 56cqh; aspect-ratio: 4 / 5; left: 11cqw; top: 25cqh; overflow: hidden; transform: rotate(-9deg); border-radius: 1.4cqh; }
.art--spa .ph { height: 92cqh; left: 47cqw; top: 15cqh; transform: rotate(5deg); }
.p a:is(:hover, :focus-visible, .is-in) .art--spa .ph { transform: rotate(2deg) translateY(-5cqh); }
.p a:is(:hover, :focus-visible, .is-in) .art--spa .card { transform: rotate(-13deg) translateX(-2cqw); }

.art--medic { background: #14b8a6; }
.art--medic .big { left: 50cqw; top: 3cqh; translate: -50% 0; font-weight: 900; font-size: min(45cqw, 56cqh); letter-spacing: -.06em; line-height: 1; color: #bff5ec; }
.art--medic svg { height: 84cqh; left: 50cqw; top: 43cqh; margin-left: -22.5cqh; transform: rotate(7deg); }
.p a:is(:hover, :focus-visible, .is-in) .art--medic svg { transform: rotate(-5deg) translateY(-2cqh); }

.art--kar { background: #000; }
.art--kar .full { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transform: scale(1.3) translate(-9%, 6%); }
.art--kar .ph { border-color: #2b2519; }
.art--kar .ph.obj { height: 92cqh; right: 9cqw; top: 14cqh; transform: rotate(5deg); }
.art--kar .ph.obj2 { height: 70cqh; right: 46cqw; top: 40cqh; transform: rotate(-6deg); }
.p a:is(:hover, :focus-visible, .is-in) .art--kar .ph.obj { transform: rotate(2deg) translateY(-5cqh); }
.p a:is(:hover, :focus-visible, .is-in) .art--kar .ph.obj2 { transform: rotate(-3deg) translateY(-8cqh); }
.p a:is(:hover, :focus-visible, .is-in) .art--kar .full { transform: scale(1.36) translate(-10%, 6%); }

.art--iv { background: #d9f21e; }
.art--iv svg { height: 84cqh; left: 50cqw; top: 8cqh; margin-left: -24.2cqh; transform: rotate(-9deg); }
.art--iv .bolt { transform: translate(-30px, -130px) scale(1.2); stroke: #0a1f12; stroke-width: 12; stroke-linejoin: round; }
.p a:is(:hover, :focus-visible, .is-in) .art--iv svg { transform: rotate(0deg) scale(1.04); }

.art--bdo { background: #3b28d9; }
.art--bdo svg { width: 100%; height: 100%; }
.obj-c { transform-origin: 640px 310px; }
.p a:is(:hover, :focus-visible, .is-in) .obj-c { transform: scale(1.14); }

.art--diamo { background: #2f7a35; }
.art--diamo .ring { left: 44cqw; bottom: 0; translate: -50% 0; border-radius: 100cqh 100cqh 0 0; }
.art--diamo .r1 { width: 152cqh; height: 94cqh; background: #f2c230; }
.art--diamo .r2 { width: 130cqh; height: 83cqh; background: #d9232e; }
.art--diamo .r3 { width: 108cqh; height: 72cqh; background: #2b74c9; }
.art--diamo .tun { left: 44cqw; bottom: 0; width: 86cqh; height: 61cqh; margin-left: -43cqh; border-radius: 43cqh 43cqh 0 0; overflow: hidden; }
.art--diamo .tun img { object-position: 50% 50%; }
.art--diamo .ph { height: 66cqh; aspect-ratio: 201 / 437; right: 9cqw; bottom: 7cqh; border-width: 0; transform: rotate(7deg); }
.p a:is(:hover, :focus-visible, .is-in) .art--diamo .ph { transform: rotate(2deg) translateY(-4cqh); }
.p a:is(:hover, :focus-visible, .is-in) .art--diamo .tun { transform: translateY(5cqh); }

.art--fosfa { background: #e4002b; perspective: 1200px; }
.art--fosfa .floor { left: 6cqw; right: 6cqw; height: 13cqh; bottom: 4cqh; border-radius: 50%; background: #a8001f; }
.art--fosfa .roll { height: 82cqh; aspect-ratio: 400 / 1040; left: 50cqw; top: 7cqh; transform: translateX(-50%) rotateY(22deg); border-bottom: 2.4cqh solid #c9ced6; overflow: hidden; }
.art--fosfa .roll img { transform: scale(1.04); object-fit: fill; }
.p a:is(:hover, :focus-visible, .is-in) .art--fosfa .roll { transform: translateX(-50%) rotateY(-16deg); }

.art--zk { background: #f26a2e; }
.art--zk .vein { width: 100%; height: 100%; }
.art .cut img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.art--zk .cut { height: 82cqh; width: 100cqw; left: 0; top: 9cqh; }
.p a:is(:hover, :focus-visible, .is-in) .art--zk .cut { transform: rotate(-8deg) scale(1.05); }

.art--mk { background: #172b4c; }
.art--mk .s3 { width: 62cqw; height: 62cqw; left: 19cqw; top: calc(50cqh - 31cqw); }
.art--mk .s1 { width: 44cqw; height: 34cqw; left: -8cqw; top: 8cqh; transform: rotate(-14deg); }
.art--mk .s2 { width: 40cqw; height: 40cqw; right: -6cqw; bottom: 5cqh; transform: rotate(12deg); }
.art--mk .f1 { width: 46cqw; height: 36cqw; right: -5cqw; top: 5cqh; }
.art--mk .f2 { width: 38cqw; height: 35cqw; left: -4cqw; bottom: 5cqh; }
.art--mk .f4 { width: 24cqw; height: 24cqw; left: 40cqw; bottom: -3cqh; }
.p a:is(:hover, :focus-visible, .is-in) .art--mk .s3 { transform: scale(1.12) rotate(-4deg); }
.p a:is(:hover, :focus-visible, .is-in) .art--mk .s1 { transform: rotate(-4deg); }
.p a:is(:hover, :focus-visible, .is-in) .art--mk .s2 { transform: rotate(2deg); }

.art--stasto { background: #0079c1; }
.art--stasto .poster { height: 70cqh; aspect-ratio: 711 / 1004; left: 50cqw; top: 22cqh; margin-left: -22cqh; transform: rotate(5deg); border: 1.4cqh solid #fff; }
.art--stasto .p2 { top: 4cqh; left: 34cqw; transform: rotate(-9deg); }
.p a:is(:hover, :focus-visible, .is-in) .art--stasto .poster.obj { transform: rotate(0) translateY(-4cqh); }
.p a:is(:hover, :focus-visible, .is-in) .art--stasto .p2 { transform: rotate(-13deg) translateX(-3cqw); }

.art--mmr { background: #1414a3; }
.art--mmr .phones { left: 0; top: 0; width: 66cqw; height: 100cqh; -webkit-mask-image: linear-gradient(90deg, #000 62%, transparent); mask-image: linear-gradient(90deg, #000 62%, transparent); }
.art--mmr .phones img { object-position: 30% 50%; }
.art--mmr .cover { height: 78cqh; aspect-ratio: 218 / 310; right: 9cqw; top: 11cqh; transform: rotate(6deg); }
.p a:is(:hover, :focus-visible, .is-in) .art--mmr .cover { transform: rotate(1deg) translateY(-4cqh) scale(1.04); }
.p a:is(:hover, :focus-visible, .is-in) .art--mmr .phones { transform: translateX(3cqw); }

/* case detail: full-screen, in the client's colours */
.js .work { display: none; }
.detail { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--bg); color: var(--fg); overflow: hidden auto; overscroll-behavior: contain; }
/* solid strip under the close button, so scrolled text never runs beneath it */
.detail::before { content: ""; position: fixed; inset: 0 0 auto; height: calc(76px + env(safe-area-inset-top)); z-index: 1; background: var(--bg); box-shadow: 0 2px 0 color-mix(in srgb, var(--fg) 15%, transparent); pointer-events: none; }
.detail__close { position: fixed; top: 18px; right: var(--pad); z-index: 2; font: inherit; font-weight: 800; font-size: 16px; padding: 10px 20px; border: 0; border-radius: 999px; background: var(--fg); color: var(--bg); cursor: pointer; }
.detail .case { min-height: calc(100dvh - 96px); padding-top: 88px; }
/* prev/next sits at the bottom edge on phones, where the thumb is */
.detail__nav {
  position: sticky; bottom: 0; display: flex; justify-content: space-between; gap: 16px;
  padding: 8px var(--pad) calc(8px + env(safe-area-inset-bottom)); font-weight: 800; font-size: 15px;
  background: var(--bg); box-shadow: 0 -2px 0 color-mix(in srgb, var(--fg) 15%, transparent);
}
.detail__nav a { min-height: 44px; display: flex; align-items: center; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-underline-offset: .2em; }
.detail__next { justify-content: flex-end; }
.detail__next { text-align: right; }

/* ---------- featured cases ---------- */
.case {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: center;
  padding: clamp(96px, 10vw, 140px) var(--pad) 120px;
}
.case__client { font-weight: 800; font-size: var(--t-lead); margin-bottom: 18px; }
.case h2 { font-size: clamp(28px, 3.4vw, 54px); margin-bottom: 24px; }
.case__text > p:not(.case__client) { max-width: 46ch; }

/* Which fundamentals the project covered: filled = yes, outlined = not part of the brief */
.pillars { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 14px; }
.pillars li {
  font-weight: 800; font-size: 15px;
  padding: 7px 14px; border-radius: 999px;
  border: 2px solid currentColor; opacity: .4;
}
.pillars li.on { background: var(--fg); color: var(--bg); border-color: var(--fg); opacity: 1; transition: background-color .7s, color .7s; }
.tags { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 15px; font-weight: 600; opacity: .8; }
.case__link { display: inline-block; margin-top: 28px; font-weight: 800; text-decoration: none; border-bottom: 3px solid currentColor; }
.case__link::after { content: " ↗"; }

.case__media { position: relative; }
.browser {
  margin: 0; border-radius: 14px; overflow: hidden;
  background: #fff; transform: translateZ(0);
}
.browser__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #ececec; color: #555; font-size: 12px; font-weight: 600; }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #c9c9c9; }
.browser__bar span { margin-left: 12px; background: #fff; border-radius: 6px; padding: 3px 12px; flex: 0 1 50%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }

.phone {
  position: absolute; right: -2%; bottom: -12%;
  width: 34%; bottom: -16%; margin: 0;
  border: 7px solid #000; border-radius: 30px; overflow: hidden; background: #000;
}
.phone img, .phone video { width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; }
.case--flip .phone { right: auto; left: -2%; }
.tile { display: none; position: absolute; margin: 0; width: clamp(110px, 13vw, 200px); top: -14%; right: 6%; border-radius: 10px; overflow: hidden; }
.tile--print { border-radius: 2px; }
.tile--wide { width: clamp(180px, 20vw, 300px); top: -16%; }
.case--flip .tile { right: auto; left: 22%; }

/* collage: one wide piece, two smaller below */
.case__media--collage { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.2vw, 18px); }
.case__media--collage figure { margin: 0; overflow: hidden; border-radius: 10px; }
.case__media--collage figure:first-child { grid-column: 1 / -1; }
.case__media--collage img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.case__media--collage figure:first-child img { aspect-ratio: 2 / 1; }

/* BDO ecosystem diagram: outlined nodes = channels, filled = what we set up */
.eco { margin: 0; color: var(--fg); }
.eco svg { width: 100%; height: auto; }
.eco__nodes rect { fill: none; stroke: currentColor; stroke-width: 2; }
.eco__nodes text { fill: currentColor; }
.eco__nodes rect.solid { fill: currentColor; }
.eco__nodes text.solid { fill: var(--bg); }
.eco__nodes .sub { font-weight: 600; font-size: 16px; }
.eco__lines { opacity: .7; }

/* ---------- archive ---------- */
.arch { padding: clamp(96px, 12vw, 180px) var(--pad); }
.arch__head { display: grid; gap: 24px 56px; align-items: end; margin-bottom: 48px; }
.arch__head h2 { font-size: var(--t-h2); }
.arch__head p { max-width: 44ch; }
.filters { grid-column: 1 / -1; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--pad) * -1); padding: 2px var(--pad); scroll-padding-inline: var(--pad); }
.filters::-webkit-scrollbar { display: none; }
.filters button {
  font: inherit; font-weight: 800; font-size: 16px; cursor: pointer;
  padding: 10px 18px; border-radius: 999px; flex: none; min-height: 44px;
  border: 2px solid currentColor; background: transparent; color: inherit;
}
.filters button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.grid { columns: 2; column-gap: 12px; }
.grid li { break-inside: avoid; margin-bottom: 16px; }
.grid li[hidden] { display: none; }
.grid figure { margin: 0; position: relative; }
.grid .b360 { position: absolute; top: 10px; left: 10px; background: var(--fg); color: var(--bg); font-weight: 800; font-size: 14px; padding: 4px 10px; border-radius: 999px; }
.grid img { width: 100%; border-radius: 6px; background: #eee; }
.grid figcaption { padding: 10px 2px 4px; font-size: 15px; line-height: 1.3; }
.grid figcaption b { display: block; font-weight: 800; }
.grid figcaption span { opacity: .65; }

/* ---------- 30 ---------- */
.thirty {
  min-height: 80svh; padding: clamp(96px, 10vw, 140px) var(--pad);
  display: grid; gap: clamp(32px, 6vw, 96px); align-items: center;
}
.lockup { display: flex; align-items: center; gap: clamp(10px, 1.4vw, 22px); color: #ffffff; }
.lockup svg { width: clamp(200px, 30vw, 460px); height: auto; }
.lockup .mark30 { font-size: clamp(18px, 2.4vw, 38px); }
.thirty h2 { font-size: var(--t-h2); margin-bottom: 24px; max-width: 16ch; }
.thirty p { max-width: 46ch; font-size: var(--t-lead); line-height: 1.45; }

/* ---------- contact & footer ---------- */
.contact { min-height: 80svh; padding: clamp(96px, 10vw, 140px) var(--pad); display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.contact h2 { font-size: var(--t-h2); max-width: 14ch; }
.contact p { font-size: var(--t-lead); }
.contact__mail { overflow-wrap: anywhere; font-weight: 900; font-size: clamp(44px, 9vw, 150px); letter-spacing: -0.04em; line-height: 1; text-decoration: none; margin: 12px 0; }
.contact__mail:hover { text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .12em; }
.contact address { font-style: normal; }

.foot { padding: 64px var(--pad) 40px; display: grid; gap: 16px 48px; align-items: start; background: #000; color: #fff; }
.foot svg { width: 140px; color: #fff; }
.foot ul { display: flex; gap: 20px; flex-wrap: wrap; }
.foot__legal { grid-column: 1 / -1; font-size: 14px; opacity: .55; }

/* ---------- tablet: two columns ---------- */
@media (min-width: 600px) {
  .wall__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p--l, .p--xl { grid-column: span 2; }
  .art { height: 54vw; }
  .p--l .art, .p--xl .art { height: 50vw; }
  .art.art--bdo { height: 55vw; }
  .art--canaria .lap { left: 22cqw; width: 58cqw; height: 58cqh; }
  .art--kar .ph.obj2 { right: 30cqw; }
  .grid { columns: 3; column-gap: 16px; }
  .fund__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fund__letter { font-size: clamp(96px, 17vw, 280px); margin-bottom: 24px; }
}

/* ---------- desktop ---------- */
@media (min-width: 900px) {
  .bar__links, .bar.is-open .bar__links { display: contents; }
  .bar__menu { display: none; }
  .hero { padding: 64px var(--pad) 28px; }
  .hero__stage { min-height: 52svh; }
  .hero__copy { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px 56px; padding-top: 24px; }
  .hero__copy h1 { font-size: clamp(32px, 3.7vw, 58px); }
  .hero__scroll { grid-column: 2; }
  .hero__foot { margin-top: 28px; gap: 8px 32px; font-size: 15px; }
  .hero__foot > p:first-child { flex-basis: auto; }
  .hero__caption { margin-left: auto; }

  .wall__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .p--l { grid-column: span 4; } .p--s { grid-column: span 2; } .p--m { grid-column: span 3; } .p--xl { grid-column: span 6; }
  .art, .p--l .art, .p--xl .art { height: clamp(320px, 44vw, 700px); }
  .art.art--bdo { height: clamp(320px, 44vw, 700px); }

  .case { min-height: 100svh; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); padding-bottom: clamp(96px, 10vw, 140px); }
  .case--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .case--flip .case__text { order: 2; }
  .detail .case { padding-top: clamp(96px, 10vw, 140px); }
  .detail::before { display: none; }
  .detail__nav { position: static; box-shadow: none; padding: 0 var(--pad) 36px; font-size: inherit; }
  .phone { width: clamp(120px, 15vw, 220px); bottom: -12%; }
  .tile { display: block; }

  .arch__head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .filters { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding: 0; }
  .grid { columns: 4 160px; }
  .thirty { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot { grid-template-columns: 140px 1fr auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body, .bar__logo, .pillars li.on, .obj, .obj2, .obj-c, .art .full, .art .sun, .detail { transition: none; }
}
