/* Custers Gardens - design tokens + component styles (from the design system) */
:root, [data-theme="nacht"] { --surface-0: #100f0d; --surface-100: #1a1816; --surface-200: #252220; --ink: #edeae4; --ink-muted: #a39c92; --line: #edeae42e; --line-strong: #edeae466; --umber: #36322e; --zand: #edeae4; --terracotta: #b26d51; --terracotta-text: #cc8d70; --on-terracotta: #14110e; --olijf: #4b5242; --salie: #8e9682; --gloed: #e6c39a; --scrim: #100f0dbf; --focus: var(--terracotta-text); --space-1: 4px; --space-2: 8px; --space-3: 16px; --space-4: 24px; --space-5: 40px; --space-6: 64px; --space-7: 104px; --space-8: 168px; --radius-0: 0px; --radius-1: 2px; --radius-pill: 999px; --shadow-float: 0 48px 96px -24px rgba(0,0,0,0.55); --font-display: "Cormorant Garamond", "Blacker Pro Display", Georgia, serif; --font-sans: Jost, Gotham, "Helvetica Neue", Arial, sans-serif; }
[data-theme="zand"] { --surface-0: #f8f7f4; --surface-100: #edeae4; --surface-200: #e3ded5; --ink: #221f1c; --ink-muted: #685f56; --line: #36322e2e; --line-strong: #36322e99; --terracotta-text: #8e5038; }

/* Custers Gardens — component styles. Every value comes from tokens.css; the intro film keeps fixed night colours on purpose. */
:root { --cg-ease: cubic-bezier(.2, .7, 0, 1); --cg-ease-io: cubic-bezier(.65, 0, .35, 1); }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--surface-0); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* ---------- type ---------- */
.cg-display { font-family: var(--font-display); font-weight: 300; line-height: .95; letter-spacing: -.015em; margin: 0; color: var(--ink); }
.cg-display em, .cg-heading em { font-style: italic; color: var(--terracotta-text); }
.cg-display--xxl { font-size: 128px; line-height: .92; letter-spacing: -.02em; }
.cg-display--xl { font-size: 88px; }
.cg-display--l { font-size: 64px; line-height: 1; }
.cg-heading { font-family: var(--font-display); font-weight: 400; font-size: 44px; line-height: 1.08; margin: 0; }
.cg-title { font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 1.2; margin: 0; }
.cg-quote { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: 36px; line-height: 1.25; margin: 0; }
.cg-lead { font-size: 20px; line-height: 1.6; font-weight: 300; color: var(--ink-muted); max-width: 34em; margin: 0; }
.cg-body { font-size: 16px; line-height: 1.7; color: var(--ink-muted); max-width: 36em; margin: 0; }
.cg-small { font-size: 14px; line-height: 1.6; color: var(--ink-muted); margin: 0; }
.cg-label, .cg-eyebrow { font-family: var(--font-sans); font-size: 12px; line-height: 1.4; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-muted); margin: 0; }
.cg-eyebrow { display: inline-flex; align-items: center; gap: 14px; }
.cg-eyebrow::before { content: ""; width: 40px; height: 1px; background: currentColor; opacity: .7; }
.cg-caption { font-size: 12px; line-height: 1.5; letter-spacing: .04em; color: var(--ink-muted); margin: 0; }
.cg-num { font-family: var(--font-display); font-style: italic; font-weight: 300; color: var(--terracotta-text); }

/* ---------- buttons ---------- */
.cg-btn { --h: 56px; display: inline-flex; align-items: center; gap: 18px; height: var(--h); padding: 0 28px; border: 1px solid transparent; border-radius: var(--radius-0); font: 500 12px/1 var(--font-sans); letter-spacing: .22em; text-transform: uppercase; text-decoration: none; cursor: pointer; position: relative; overflow: hidden; transition: color .5s var(--cg-ease), background-color .5s var(--cg-ease), border-color .5s var(--cg-ease); background: none; color: var(--ink); }
.cg-btn__arrow { position: relative; width: 28px; height: 1px; background: currentColor; transition: width .6s var(--cg-ease); }
.cg-btn__arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.cg-btn:hover .cg-btn__arrow { width: 44px; }
.cg-btn--primary { background: var(--terracotta); color: var(--on-terracotta); }
.cg-btn--primary::before { content: ""; position: absolute; inset: 0; background: var(--zand); transform: translateY(101%); transition: transform .6s var(--cg-ease); z-index: -1; }
.cg-btn--primary { isolation: isolate; }
.cg-btn--primary:hover::before { transform: translateY(0); }
.cg-btn--primary:hover { color: var(--umber); }
.cg-btn--ghost { border-color: var(--line-strong); color: var(--ink); }
.cg-btn--ghost:hover { background: var(--ink); color: var(--surface-0); border-color: var(--ink); }
.cg-btn--sm { --h: 44px; padding: 0 20px; gap: 12px; }
.cg-btn--on-photo { border-color: rgba(237,234,228,.5); color: var(--zand); }
.cg-btn--on-photo:hover { background: var(--zand); color: var(--umber); border-color: var(--zand); }
.cg-link { display: inline-flex; align-items: center; gap: 14px; font: 500 12px/1.4 var(--font-sans); letter-spacing: .22em; text-transform: uppercase; color: var(--ink); text-decoration: none; padding-bottom: 6px; background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat; transition: background-size .6s var(--cg-ease); }
.cg-link:hover { background-size: 30% 1px; color: var(--terracotta-text); }

/* ---------- header ---------- */
.cg-header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); padding: var(--space-5) var(--space-7); color: var(--ink); }
.cg-header--over { position: absolute; top: 0; left: 0; right: 0; z-index: 5; color: var(--zand); }
.cg-header__logo img { height: 18px; width: auto; }
.cg-header__nav { display: flex; gap: 36px; }
.cg-header__nav a { font: 500 12px/1.4 var(--font-sans); letter-spacing: .22em; text-transform: uppercase; text-decoration: none; color: inherit; opacity: .78; position: relative; padding: 6px 0; transition: opacity .4s; }
.cg-header__nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: currentColor; transition: right .5s var(--cg-ease); }
.cg-header__nav a:hover, .cg-header__nav a[aria-current] { opacity: 1; }
.cg-header__nav a:hover::after, .cg-header__nav a[aria-current]::after { right: 0; }
.cg-header__end { display: flex; align-items: center; gap: 28px; }
.cg-header__tel { font: 400 14px/1 var(--font-sans); letter-spacing: .04em; text-decoration: none; opacity: .78; }

/* ---------- cinematic intro (always night: it is a film, not a themed surface) ---------- */
.cg-intro { position: relative; overflow: hidden; background: #0d0c0b; color: #edeae4; isolation: isolate; }
.cg-intro__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cg-intro__photo { position: absolute; inset: -2%; background: #0d0c0b center / cover no-repeat; opacity: 0; will-change: transform, opacity; }
.cg-intro__vignette { position: absolute; inset: 0; pointer-events: none; opacity: .72; transition: opacity 1.4s var(--cg-ease); background: radial-gradient(70% 60% at 12% 92%, rgba(13,12,11,.7) 0%, rgba(13,12,11,0) 100%), linear-gradient(180deg, rgba(13,12,11,.55) 0%, rgba(13,12,11,0) 22%, rgba(13,12,11,0) 48%, rgba(13,12,11,.86) 100%); }
.cg-intro.is-hero .cg-intro__vignette, .cg-intro.is-static .cg-intro__vignette { opacity: 1; }
.cg-intro.is-lost .cg-intro__photo { opacity: 1; }
.cg-intro__lb { position: absolute; left: 0; right: 0; height: 8.5%; background: #0d0c0b; z-index: 2; pointer-events: none; transition: transform 1.6s var(--cg-ease); }
.cg-intro__lb--t { top: 0; }
.cg-intro__lb--b { bottom: 0; }
.cg-intro.is-hero .cg-intro__lb--t, .cg-intro.is-static .cg-intro__lb--t { transform: translateY(-101%); }
.cg-intro.is-hero .cg-intro__lb--b, .cg-intro.is-static .cg-intro__lb--b { transform: translateY(101%); }
.cg-intro__chapter { position: absolute; left: var(--space-7); bottom: 112px; z-index: 3; display: grid; grid-template-columns: auto 1fr; column-gap: 28px; align-items: end; max-width: 720px; opacity: 0; transition: opacity .5s; pointer-events: none; }
.cg-intro__chapter.is-on { opacity: 1; }
.cg-intro__num { grid-row: span 2; font: italic 300 96px/.8 var(--font-display); color: #e6c39a; text-shadow: 0 2px 24px rgba(13,12,11,.6); }
.cg-intro__ttl { font: 300 52px/1.02 var(--font-display); letter-spacing: -.01em; color: #edeae4; text-shadow: 0 2px 24px rgba(13,12,11,.6); }
.cg-intro__sub { font: 400 15px/1.6 var(--font-sans); color: #d6d0c6; margin-top: 10px; letter-spacing: .02em; text-shadow: 0 1px 12px rgba(13,12,11,.8); }
.cg-intro__chapter.swap > * { animation: cg-rise .9s var(--cg-ease) both; }
.cg-intro__chapter.swap .cg-intro__ttl { animation-delay: .06s; }
.cg-intro__chapter.swap .cg-intro__sub { animation-delay: .14s; }
@keyframes cg-rise { from { opacity: 0; transform: translateY(18px); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } }
.cg-intro__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(237,234,228,.12); z-index: 4; }
.cg-intro__bar i { display: block; height: 100%; width: 0; background: #b26d51; }
.cg-intro__controls { position: absolute; right: var(--space-7); bottom: 40px; z-index: 6; display: flex; align-items: center; gap: 20px; }
.cg-intro__replay { background: none; border: 1px solid rgba(237,234,228,.4); color: #edeae4; height: 36px; padding: 0 16px; font: 500 11px/1 var(--font-sans); letter-spacing: .22em; text-transform: uppercase; cursor: pointer; }
.cg-intro__replay:hover { background: #edeae4; color: #36322e; }
.cg-intro__scrub { -webkit-appearance: none; appearance: none; width: 180px; height: 2px; background: rgba(237,234,228,.3); outline-offset: 8px; }
.cg-intro__scrub::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: var(--radius-pill); background: #edeae4; cursor: grab; }
.cg-intro__scrub::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: var(--radius-pill); background: #edeae4; }
.cg-intro__hero { position: absolute; left: var(--space-7); right: var(--space-7); bottom: 120px; z-index: 3; color: #edeae4; pointer-events: none; }
.cg-intro__hero > * { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--cg-ease), transform 1.1s var(--cg-ease); }
.cg-intro.is-hero .cg-intro__hero > * { opacity: 1; transform: none; pointer-events: auto; }
.cg-intro.is-hero .cg-intro__hero > :nth-child(2) { transition-delay: .12s; }
.cg-intro.is-hero .cg-intro__hero > :nth-child(3) { transition-delay: .24s; }
.cg-intro.is-hero .cg-intro__hero > :nth-child(4) { transition-delay: .36s; }
.cg-intro__hero .cg-display { color: #edeae4; }
.cg-intro__hero .cg-display em { color: #e6c39a; }
.cg-intro__hero .cg-eyebrow, .cg-intro__hero .cg-lead { color: #d6d0c6; }
.cg-intro__hero .cg-lead { margin-top: 28px; }
.cg-intro__hero .cg-actions { margin-top: 44px; }
.cg-intro__hero .cg-eyebrow { margin-bottom: 28px; }
.cg-intro.is-hero .cg-intro__chapter { opacity: 0; }

/* ---------- garden explorer (always night chrome over photography) ---------- */
.cg-explore { position: relative; overflow: hidden; background: #0d0c0b; color: #edeae4; isolation: isolate; touch-action: pan-y; -webkit-user-select: none; user-select: none; cursor: grab; }
.cg-explore.is-drag { cursor: grabbing; }
.cg-explore.is-static { cursor: default; }
.cg-explore__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1s var(--cg-ease); }
.cg-explore.is-ready .cg-explore__gl { opacity: 1; }
.cg-explore__still { position: absolute; inset: 0; background: #0d0c0b center / cover no-repeat; z-index: -1; filter: blur(16px) brightness(.7); transform: scale(1.08); }
.cg-explore.is-static .cg-explore__still { filter: none; transform: none; }
.cg-explore__shade { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 55% at 10% 8%, rgba(13,12,11,.62) 0%, rgba(13,12,11,0) 100%), linear-gradient(180deg, rgba(13,12,11,.35) 0%, rgba(13,12,11,0) 24%, rgba(13,12,11,0) 62%, rgba(13,12,11,.84) 100%); }
.cg-explore__head { position: absolute; left: var(--space-7); top: var(--space-6); max-width: 560px; z-index: 3; pointer-events: none; }
.cg-explore__head .cg-eyebrow { color: #d6d0c6; }
.cg-explore__title { font: 300 64px/1 var(--font-display); letter-spacing: -.01em; margin: 20px 0 0; color: #edeae4; text-shadow: 0 2px 28px rgba(13,12,11,.55); }
.cg-explore__sub { font: 400 15px/1.6 var(--font-sans); color: #d6d0c6; margin: 14px 0 0; max-width: 30em; text-shadow: 0 1px 12px rgba(13,12,11,.8); }
.cg-explore__head.swap .cg-explore__title, .cg-explore__head.swap .cg-explore__sub { animation: cg-rise .9s var(--cg-ease) both; }
.cg-explore__head.swap .cg-explore__sub { animation-delay: .1s; }
.cg-explore__spots { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.cg-spot { position: absolute; left: 0; top: 0; width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0; border: 1px solid rgba(237,234,228,.85); border-radius: var(--radius-pill); background: rgba(13,12,11,.32); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #edeae4; cursor: pointer; pointer-events: auto; display: grid; place-items: center; transition: opacity .5s var(--cg-ease), background-color .3s, border-color .3s; will-change: transform; }
.cg-spot__dot { width: 8px; height: 8px; border-radius: var(--radius-pill); background: #edeae4; transition: transform .4s var(--cg-ease), background-color .3s; }
.cg-spot::before { content: ""; position: absolute; inset: -1px; border: 1px solid rgba(237,234,228,.7); border-radius: var(--radius-pill); animation: cg-ping 2.6s var(--cg-ease) infinite; }
@keyframes cg-ping { from { transform: scale(1); opacity: .8; } to { transform: scale(1.9); opacity: 0; } }
.cg-spot__label { position: absolute; left: 56px; top: 50%; transform: translate(-8px, -50%); white-space: nowrap; font: 500 12px/1 var(--font-sans); letter-spacing: .22em; text-transform: uppercase; color: #edeae4; text-shadow: 0 1px 14px rgba(13,12,11,.9); opacity: 0; transition: opacity .4s, transform .5s var(--cg-ease); pointer-events: none; }
.cg-spot:hover, .cg-spot:focus-visible, .cg-spot.is-active { background: #e6c39a; border-color: #e6c39a; }
.cg-spot:hover .cg-spot__dot, .cg-spot:focus-visible .cg-spot__dot, .cg-spot.is-active .cg-spot__dot { background: #14110e; transform: scale(1.3); }
.cg-spot:hover .cg-spot__label, .cg-spot:focus-visible .cg-spot__label { opacity: 1; transform: translate(0, -50%); }
.cg-spot.is-hidden { opacity: 0; pointer-events: none; }
.cg-spot:focus-visible { outline: 2px solid #e6c39a; outline-offset: 4px; }
.cg-explore__ring { position: absolute; width: 72px; height: 72px; margin: -36px 0 0 -36px; border: 1px solid #e6c39a; border-radius: var(--radius-pill); opacity: 0; pointer-events: none; z-index: 3; }
.cg-explore__ring.is-on { animation: cg-focus .9s var(--cg-ease) both; }
@keyframes cg-focus { 0% { opacity: 0; transform: scale(1.7); } 35% { opacity: 1; transform: scale(1); } 70% { opacity: 1; transform: scale(.92); } 100% { opacity: 0; transform: scale(.92); } }
.cg-explore__card { position: absolute; right: var(--space-7); top: 50%; width: 380px; padding: 36px; background: rgba(16,15,13,.74); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid rgba(237,234,228,.16); z-index: 5; opacity: 0; transform: translate(28px, -50%); pointer-events: none; transition: opacity .6s var(--cg-ease), transform .8s var(--cg-ease); cursor: default; }
.cg-explore.has-card .cg-explore__card { opacity: 1; transform: translate(0, -50%); pointer-events: auto; }
.cg-explore__card .cg-label { color: #e6c39a; }
.cg-explore__card .cg-heading { color: #edeae4; margin-top: 14px; font-weight: 300; }
.cg-explore__card .cg-small { color: #d6d0c6; margin-top: 16px; font-size: 15px; }
.cg-explore__close { margin-top: 28px; background: none; border: 0; padding: 0 0 6px; color: #edeae4; font: 500 12px/1.4 var(--font-sans); letter-spacing: .22em; text-transform: uppercase; cursor: pointer; background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat; }
.cg-explore__close:hover { color: #e6c39a; }
.cg-explore__tabs { position: absolute; left: var(--space-7); bottom: var(--space-5); z-index: 4; display: flex; gap: 24px; }
.cg-explore__tab { min-width: 150px; padding: 14px 0 0; background: none; border: 0; border-top: 1px solid rgba(237,234,228,.3); text-align: left; color: #d6d0c6; font: 500 12px/1.4 var(--font-sans); letter-spacing: .22em; text-transform: uppercase; cursor: pointer; transition: color .4s, border-color .4s; }
.cg-explore__tab .cg-num { display: block; font-size: 20px; letter-spacing: 0; text-transform: none; color: #e6c39a; margin-bottom: 6px; opacity: .7; }
.cg-explore__tab:hover { color: #edeae4; }
.cg-explore__tab[aria-selected="true"] { color: #edeae4; border-top-color: #e6c39a; }
.cg-explore__tab[aria-selected="true"] .cg-num { opacity: 1; }
.cg-explore__tab:focus-visible, .cg-explore__zoom button:focus-visible, .cg-explore__close:focus-visible { outline: 2px solid #e6c39a; outline-offset: 4px; }
.cg-explore__tools { position: absolute; right: var(--space-7); top: var(--space-6); z-index: 4; display: flex; align-items: center; gap: 28px; cursor: default; }
.cg-explore__light { display: flex; align-items: center; gap: 14px; transition: opacity .5s; }
.cg-explore__light .cg-label { color: #edeae4; }
.cg-explore__light.is-off { opacity: 0; pointer-events: none; }
.cg-explore__light input { -webkit-appearance: none; appearance: none; width: 150px; height: 2px; background: linear-gradient(90deg, rgba(237,234,228,.3), #e6c39a); outline-offset: 10px; cursor: pointer; }
.cg-explore__light input::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: var(--radius-pill); background: #e6c39a; border: 0; cursor: grab; box-shadow: 0 0 18px rgba(230,195,154,.7); }
.cg-explore__light input::-moz-range-thumb { width: 16px; height: 16px; border-radius: var(--radius-pill); background: #e6c39a; border: 0; box-shadow: 0 0 18px rgba(230,195,154,.7); }
.cg-explore__zoom { display: flex; }
.cg-explore__zoom button { height: 40px; min-width: 40px; padding: 0 14px; margin-left: -1px; background: rgba(13,12,11,.3); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(237,234,228,.4); color: #edeae4; font: 400 18px/1 var(--font-sans); cursor: pointer; transition: background-color .3s, color .3s; }
.cg-explore__zoom button.is-reset { font: 500 11px/1 var(--font-sans); letter-spacing: .22em; text-transform: uppercase; }
.cg-explore__zoom button:hover { background: #edeae4; color: #36322e; }
.cg-explore__hint { position: absolute; left: 50%; bottom: 132px; transform: translateX(-50%); z-index: 3; margin: 0; padding: 12px 20px; background: rgba(13,12,11,.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(237,234,228,.2); font: 500 11px/1 var(--font-sans); letter-spacing: .22em; text-transform: uppercase; color: #edeae4; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .8s; }
.cg-explore.is-ready .cg-explore__hint { opacity: 1; }
.cg-explore.is-touched .cg-explore__hint, .cg-explore.is-static .cg-explore__hint { opacity: 0; }
.cg-explore.is-moving .cg-explore__spots { opacity: 0; }
.cg-explore.is-static .cg-explore__tools, .cg-explore.is-static .cg-explore__spots { display: none; }
.cg-explore.has-card .cg-explore__head { opacity: 0; transition: opacity .5s; }
.cg-explore__head { transition: opacity .8s; }
@media (max-width: 900px) {
  .cg-explore__head { left: 24px; right: 24px; top: 84px; }
  .cg-explore__title { font-size: 40px; }
  .cg-explore__tools { right: 24px; top: 24px; gap: 16px; }
  .cg-explore__light input { width: 96px; }
  .cg-explore__zoom button.is-reset { display: none; }
  .cg-explore__tabs { left: 24px; right: 24px; bottom: 24px; gap: 16px; overflow-x: auto; }
  .cg-explore__tab { min-width: 116px; flex: 0 0 auto; }
  .cg-explore__card { left: 24px; right: 24px; top: auto; bottom: 110px; width: auto; padding: 24px; transform: translateY(24px); }
  .cg-explore.has-card .cg-explore__card { transform: none; }
  .cg-explore__hint { bottom: 110px; }
}

/* ---------- layout ---------- */
.cg-section { padding: var(--space-8) var(--space-7); background: var(--surface-0); color: var(--ink); position: relative; }
.cg-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.cg-rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.cg-split { display: grid; grid-template-columns: 5fr 7fr; gap: var(--space-6); align-items: end; }

/* reveal on enter (only once bundle's reveal() armed it) */
.cg-armed [data-cg-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1.2s var(--cg-ease), transform 1.2s var(--cg-ease); }
.cg-armed [data-cg-reveal].is-in { opacity: 1; transform: none; }
.cg-armed [data-cg-reveal="clip"] { transform: none; clip-path: inset(100% 0 0 0); opacity: 1; transition: clip-path 1.4s var(--cg-ease); }
.cg-armed [data-cg-reveal="clip"].is-in { clip-path: inset(0 0 0 0); }

/* ---------- 3D tilt frame ---------- */
.cg-tilt { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; perspective: 1200px; }
.cg-tilt__inner { position: relative; transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .8s var(--cg-ease); }
.cg-tilt:hover .cg-tilt__inner { transition-duration: .2s; }
.cg-tilt__img { position: relative; overflow: hidden; background: var(--surface-100); box-shadow: var(--shadow-float); }
.cg-tilt__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12) translate3d(calc((50% - var(--mx)) * .08), calc((50% - var(--my)) * .08), 0); transition: transform 1.2s var(--cg-ease); }
.cg-tilt__img::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at var(--mx) var(--my), rgba(237,234,228,.14), rgba(237,234,228,0) 70%); opacity: 0; transition: opacity .6s; pointer-events: none; }
.cg-tilt:hover .cg-tilt__img::after { opacity: 1; }
.cg-tilt__float { transform: translateZ(60px); }

/* ---------- services ---------- */
.cg-services__head { display: flex; justify-content: space-between; align-items: end; gap: var(--space-6); margin-bottom: var(--space-6); }
.cg-services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.cg-service { text-decoration: none; color: inherit; display: block; }
.cg-service .cg-tilt__img { aspect-ratio: 3 / 4; }
.cg-service__meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.cg-service__meta .cg-num { font-size: 22px; }
.cg-service .cg-title { margin-top: 14px; }
.cg-service .cg-small { margin-top: 10px; max-width: 30em; }
.cg-service:nth-child(2) { margin-top: 96px; }
.cg-service .cg-tilt__float { position: absolute; left: 24px; bottom: 24px; color: var(--zand); }

/* ---------- signature details ---------- */
.cg-details { display: grid; grid-template-columns: 6fr 5fr; gap: var(--space-7); align-items: start; }
.cg-details__list { list-style: none; margin: var(--space-6) 0 0; padding: 0; border-top: 1px solid var(--line); }
.cg-details__item { display: grid; grid-template-columns: 64px 1fr auto; align-items: baseline; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); cursor: pointer; transition: padding .6s var(--cg-ease), color .4s; }
.cg-details__item .cg-num { font-size: 22px; }
.cg-details__item .cg-title { font-size: 34px; transition: transform .6s var(--cg-ease); }
.cg-details__item p { grid-column: 2 / 4; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .7s var(--cg-ease), opacity .5s; }
.cg-details__item[aria-current="true"] p { max-height: 120px; opacity: 1; }
.cg-details__item[aria-current="true"] .cg-title { transform: translateX(12px); }
.cg-details__item:not([aria-current="true"]) .cg-title { color: var(--ink-muted); }
.cg-details__stage { position: sticky; top: 40px; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface-100); }
.cg-details__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(100% 0 0 0); transform: scale(1.15); transition: clip-path 1.1s var(--cg-ease), transform 1.6s var(--cg-ease); }
.cg-details__stage img.is-on { clip-path: inset(0 0 0 0); transform: scale(1); z-index: 1; }

/* ---------- water ---------- */
.cg-water { display: grid; grid-template-columns: 7fr 5fr; gap: var(--space-7); align-items: center; }
.cg-water__media { position: relative; height: 640px; }
.cg-water__media > .cg-tilt { position: absolute; }
.cg-water__media .cg-tilt__inner, .cg-water__media .cg-tilt__img { height: 100%; }
.cg-water__media .is-back { left: 0; top: 0; width: 72%; height: 78%; }
.cg-water__media .is-front { right: 0; bottom: 0; width: 46%; height: 58%; z-index: 1; }
.cg-water .cg-lead { margin-top: 28px; }
.cg-swatches { display: flex; align-items: center; gap: 12px; margin-top: var(--space-5); }
.cg-swatch { width: 44px; height: 44px; border-radius: var(--radius-1); border: 1px solid var(--line-strong); }
.cg-swatch-bar { flex: 1; max-width: 180px; height: 1px; background: var(--line-strong); }
.cg-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.cg-chip { font: 500 11px/1 var(--font-sans); letter-spacing: .18em; text-transform: uppercase; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-1); color: var(--ink); }

/* ---------- process ---------- */
.cg-process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: var(--space-6); border-top: 1px solid var(--line); counter-reset: step; }
.cg-step { padding: 28px 28px 0 0; position: relative; }
.cg-step::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: var(--radius-pill); background: var(--terracotta); }
.cg-step .cg-num { font-size: 22px; display: block; }
.cg-step .cg-title { font-size: 24px; margin-top: 12px; }
.cg-step .cg-small { margin-top: 10px; }

/* ---------- visie ---------- */
.cg-visie { display: grid; grid-template-columns: 7fr 4fr; gap: var(--space-7); align-items: end; }
.cg-facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); border-top: 1px solid var(--line); padding-top: 28px; margin-top: var(--space-6); }
.cg-fact b { display: block; font: 300 56px/1 var(--font-display); color: var(--ink); }
.cg-fact span { display: block; margin-top: 10px; }

/* ---------- realisaties (horizontal film strip) ---------- */
.cg-strip { display: flex; gap: var(--space-4); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 24px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.cg-strip__item { flex: 0 0 auto; scroll-snap-align: start; width: 520px; }
.cg-strip__item:nth-child(odd) { width: 640px; }
.cg-strip__item .cg-tilt__img { height: 560px; }
.cg-strip__item:nth-child(even) .cg-tilt__img { height: 460px; margin-top: 100px; }
.cg-strip__cap { display: flex; justify-content: space-between; gap: 16px; margin-top: 18px; }
.cg-projects { display: flex; gap: 0; border-top: 1px solid var(--line); margin-top: var(--space-6); }
.cg-projects a { flex: 1; padding: 28px 24px 0 0; text-decoration: none; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-right: 1px solid var(--line); margin-right: 24px; }
.cg-projects a:last-child { border-right: 0; margin-right: 0; }
.cg-projects a:hover .cg-title { color: var(--terracotta-text); }

/* ---------- contact ---------- */
.cg-contact { display: grid; grid-template-columns: 5fr 6fr; gap: var(--space-7); align-items: start; }
.cg-contact__photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.cg-contact__photo img { width: 100%; height: 100%; object-fit: cover; }
.cg-contact__card { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; background: var(--scrim); color: var(--zand); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cg-contact__card .cg-small { color: #d6d0c6; }
.cg-contact__card a { text-decoration: none; }
.cg-form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; margin-top: var(--space-5); }
.cg-field { display: flex; flex-direction: column; gap: 10px; }
.cg-field--wide { grid-column: 1 / -1; }
.cg-field label { font: 500 11px/1.4 var(--font-sans); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-muted); }
.cg-field input, .cg-field textarea { font: 300 18px/1.5 var(--font-sans); color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: var(--radius-0); padding: 8px 0 12px; transition: border-color .4s; }
.cg-field textarea { min-height: 112px; resize: vertical; }
.cg-field input:focus, .cg-field textarea:focus { outline: none; border-bottom-color: var(--terracotta-text); box-shadow: 0 1px 0 0 var(--terracotta-text); }
.cg-field input:focus-visible, .cg-field textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 6px; }

/* ---------- footer ---------- */
.cg-footer { padding: var(--space-6) var(--space-7) var(--space-5); background: var(--surface-0); color: var(--ink); border-top: 1px solid var(--line); }
.cg-footer__top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-5); }
.cg-footer__top .cg-label { margin-bottom: 16px; }
.cg-footer__top a { display: block; text-decoration: none; font-size: 14px; line-height: 2; color: var(--ink-muted); }
.cg-footer__top a:hover { color: var(--ink); }
.cg-footer__bottom { display: flex; justify-content: space-between; margin-top: var(--space-6); padding-top: 24px; border-top: 1px solid var(--line); }
.cg-footer__mark { font: 300 clamp(96px, 15vw, 208px)/.8 var(--font-display); letter-spacing: -.03em; margin-top: var(--space-6); color: var(--ink); opacity: .9; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
