/* Atelier Lumen – gemeinsames Stylesheet aller Seiten (vorher inline in index.html) */

/* ------------------------------------------------------------------
   Tokens
------------------------------------------------------------------ */
:root {
  --ink: #121212;
  --sand: #f9f8f6;
  --paper: #fdfcfa;
  --travertine: #efece6;
  --stone: #e4e1da;
  --brass: #a8916a;
  --brass-soft: rgba(168, 145, 106, .45);
  --graphite: #5f5c57;
  --mist: #8f8b84;
  --line: rgba(18, 18, 18, .13);
  --line-dark: rgba(249, 248, 246, .12);
  --error: #8e3f31;

  --serif: "Bodoni Moda", Didot, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  --gutter: clamp(16px, 2vw, 32px);
  --pad: clamp(20px, 4.4vw, 72px);
  --nav-h: 84px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.77, 0, .18, 1);
  --ease-soft: cubic-bezier(.25, .8, .25, 1);
}

/* ------------------------------------------------------------------
   Base
------------------------------------------------------------------ */
html { scroll-behavior: auto; scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; }
body {
  background: var(--sand);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
::selection { background: var(--ink); color: var(--sand); }
a { color: inherit; text-decoration: none; }
img { user-select: none; -webkit-user-drag: none; }
:focus-visible { outline: 1px solid var(--brass); outline-offset: 5px; }
[tabindex="-1"]:focus { outline: none; }

.skip {
  position: fixed; left: 16px; top: 16px; z-index: 300;
  padding: 12px 18px; background: var(--ink); color: var(--sand);
  font-size: .875rem; transform: translateY(-160%); transition: transform .4s var(--ease-out);
}
.skip:focus { transform: none; }

.serif { font-family: var(--serif); font-optical-sizing: auto; }
.wrap { width: 100%; max-width: 1760px; margin-inline: auto; padding-inline: var(--pad); }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.section-pad { padding-block: clamp(104px, 13vw, 220px); }

.label { font-size: .8125rem; line-height: 1.4; letter-spacing: .02em; color: var(--graphite); }
.display-xl {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(3.25rem, 9vw, 9.5rem); line-height: .92; letter-spacing: -.035em;
}
.display-lg {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.4rem, 5.2vw, 5.4rem); line-height: 1.02; letter-spacing: -.03em;
  text-wrap: balance;
}
.body-copy p { font-size: 1.0625rem; line-height: 1.72; color: #3b3936; max-width: 36em; }
.body-copy p + p { margin-top: 1.1em; }
.body-sm { font-size: .9375rem; line-height: 1.65; color: var(--graphite); max-width: 32em; }

.text-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .9375rem; padding-bottom: 5px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .7s var(--ease-out);
}
.text-link:hover { background-size: 0 1px; background-position: 100% 100%; }
.text-link svg { width: 16px; height: 16px; }

/* ------------------------------------------------------------------
   Preloader — a seam of light, then the doors part
------------------------------------------------------------------ */
.preloader { display: none; }
.js .preloader { display: block; position: fixed; inset: 0; z-index: 120; }
.preloader__door {
  position: absolute; top: 0; bottom: 0; width: 50.1%;
  background: var(--ink); color: var(--sand);
  transition: transform 1.6s var(--ease-io);
  will-change: transform;
}
.preloader__door--l { left: 0; }
.preloader__door--r { right: 0; }
.preloader__mark, .preloader__note {
  position: absolute; bottom: clamp(24px, 4vh, 44px);
  opacity: 0; animation: pre-fade 1s ease .15s forwards;
}
.preloader__mark {
  left: var(--pad); font-family: var(--serif); font-weight: 500;
  font-size: 13px; letter-spacing: .3em; text-transform: uppercase;
}
.preloader__note { right: var(--pad); font-size: .8125rem; color: var(--mist); }
.preloader__seam {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; margin-left: -.5px;
  background: linear-gradient(to bottom, rgba(255, 244, 222, 0), #fff4de 28%, #fffaf0 50%, #fff4de 72%, rgba(255, 244, 222, 0));
  box-shadow: 0 0 22px 3px rgba(255, 236, 200, .28), 0 0 80px 12px rgba(255, 236, 200, .08);
  transform: scaleY(0);
  animation: pre-seam 1.5s var(--ease-out) .25s forwards;
  transition: opacity .7s ease, width 1.2s var(--ease-io), margin 1.2s var(--ease-io);
}
.preloader.is-opening .preloader__door--l { transform: translate3d(-100%, 0, 0); }
.preloader.is-opening .preloader__door--r { transform: translate3d(100%, 0, 0); }
.preloader.is-opening .preloader__seam { opacity: 0; width: 40vw; margin-left: -20vw; }
@keyframes pre-seam { to { transform: scaleY(1); } }
@keyframes pre-fade { to { opacity: 1; } }

/* ------------------------------------------------------------------
   Cursor
------------------------------------------------------------------ */
.cursor { display: none; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor * { cursor: none !important; }
.has-cursor input, .has-cursor textarea { cursor: text !important; }
.cursor__dot, .cursor__ring, .cursor__badge {
  position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none;
  opacity: 0; will-change: transform;
  transition: opacity .4s ease, scale .7s var(--ease-out);
}
.cursor__dot {
  width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%;
  background: #fff; mix-blend-mode: difference;
}
.cursor__ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .85); mix-blend-mode: difference;
}
.cursor__badge {
  width: 118px; height: 118px; margin: -59px 0 0 -59px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: var(--ink); color: var(--sand);
  box-shadow: inset 0 0 0 1px rgba(249, 248, 246, .14);
  font-size: 12.5px; letter-spacing: .02em; scale: .3;
}
.cursor__badge svg { width: 16px; height: 16px; }
.cursor-on .cursor__dot, .cursor-on .cursor__ring { opacity: 1; }
[data-cursor-state="link"] .cursor__ring { scale: 1.65; }
[data-cursor-state="link"] .cursor__dot { scale: 0; }
[data-cursor-state="text"] .cursor__ring { scale: .5; opacity: 0; }
[data-cursor-state="text"] .cursor__dot { scale: 0; }
.cursor-on[data-cursor-state="project"] .cursor__ring,
.cursor-on[data-cursor-state="project"] .cursor__dot { opacity: 0; scale: .5; }
.cursor-on[data-cursor-state="project"] .cursor__badge { opacity: 1; scale: 1; }
.cursor-down .cursor__ring { scale: .82; }

/* ------------------------------------------------------------------
   Navigation
------------------------------------------------------------------ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  color: var(--ink);
  transition: transform .9s var(--ease-out), color .5s ease;
}
.nav[data-theme="dark"] { color: var(--sand); }
.nav.is-hidden { transform: translate3d(0, -110%, 0); }
.nav:focus-within { transform: none; }
.nav__bg {
  position: absolute; inset: 0; opacity: 0;
  background: rgba(249, 248, 246, .8);
  -webkit-backdrop-filter: saturate(1.2) blur(16px); backdrop-filter: saturate(1.2) blur(16px);
  border-bottom: 1px solid rgba(18, 18, 18, .06);
  transition: opacity .6s ease, background-color .6s ease, border-color .6s ease;
}
.nav.is-scrolled .nav__bg { opacity: 1; }
.nav[data-theme="dark"] .nav__bg { background: rgba(18, 18, 18, .62); border-color: rgba(249, 248, 246, .07); }
.menu-open .nav__bg { opacity: 0; }
.nav__bar { position: relative; display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.brand {
  font-family: var(--serif); font-weight: 500; font-size: 14px;
  letter-spacing: .3em; text-transform: uppercase; white-space: nowrap;
}
.nav__links { display: none; }
.nav__link { position: relative; font-size: .875rem; letter-spacing: .01em; padding: 6px 0; }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .6s var(--ease-out);
}
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__actions { display: flex; align-items: center; gap: 20px; }
.pill {
  display: none; align-items: center; height: 44px; padding: 0 22px;
  border: 1px solid color-mix(in srgb, currentColor 32%, transparent); border-radius: 999px;
  font-size: .875rem; letter-spacing: .01em; white-space: nowrap;
  transition: background-color .5s ease, color .5s ease, border-color .5s ease, transform .6s var(--ease-out);
}
.nav[data-theme="light"] .pill:hover { background: var(--ink); color: var(--sand); border-color: var(--ink); }
.nav[data-theme="dark"] .pill:hover { background: var(--sand); color: var(--ink); border-color: var(--sand); }
.menu-toggle { display: inline-flex; align-items: center; gap: 12px; height: 44px; font-size: .875rem; }
.menu-toggle__icon { position: relative; width: 22px; height: 8px; }
.menu-toggle__icon i {
  position: absolute; left: 0; right: 0; height: 1px; background: currentColor;
  transition: transform .6s var(--ease-out), top .6s var(--ease-out);
}
.menu-toggle__icon i:first-child { top: 0; }
.menu-toggle__icon i:last-child { top: 7px; }
.menu-open .menu-toggle__icon i:first-child { top: 3.5px; transform: rotate(45deg); }
.menu-open .menu-toggle__icon i:last-child { top: 3.5px; transform: rotate(-45deg); }
.js .nav { opacity: 0; transition: transform .9s var(--ease-out), color .5s ease, opacity 1.2s ease 1.5s; }
.js.is-ready .nav { opacity: 1; }

@media (min-width: 1024px) {
  .nav__links { display: flex; gap: clamp(28px, 2.8vw, 44px); }
  .pill { display: inline-flex; }
  .menu-toggle { display: none; }
}

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 55; background: var(--ink); color: var(--sand);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .9s var(--ease-io), visibility 0s linear .9s;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .9s var(--ease-io), visibility 0s; }
.menu__inner { height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding-top: calc(var(--nav-h) + 40px); padding-bottom: 32px; }
.menu__link {
  display: block; overflow: hidden; padding-bottom: .04em;
  font-family: var(--serif); font-size: clamp(2.75rem, 12vw, 5.5rem); line-height: 1.1; letter-spacing: -.03em;
}
.menu__link span { display: inline-block; transform: translate3d(0, 105%, 0); transition: transform .9s var(--ease-out); }
.menu.is-open .menu__link span { transform: none; transition-delay: calc(.3s + var(--i) * 70ms); }
.menu__foot { display: flex; justify-content: space-between; gap: 16px; font-size: .875rem; color: var(--mist); }
@media (min-width: 1024px) { .menu { display: none; } }

/* ------------------------------------------------------------------
   Hero
------------------------------------------------------------------ */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; background: #e8e6e1; }
.hero__media { position: absolute; inset: 0; will-change: transform; }
.hero__img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%;
  transform: scale(1.14); transition: transform 2.8s var(--ease-out);
}
.is-ready .hero__img, .no-js .hero__img { transform: scale(1); }
.hero__veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(249, 248, 246, .86) 0%, rgba(249, 248, 246, .34) 34%, rgba(249, 248, 246, 0) 58%),
    linear-gradient(to bottom, rgba(249, 248, 246, .5) 0%, rgba(249, 248, 246, 0) 22%);
}
.hero__content {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--nav-h) + 24px); padding-bottom: clamp(20px, 3.6vh, 44px);
  will-change: transform, opacity;
}
.hero__intro {
  position: absolute; top: calc(var(--nav-h) + 28px); left: var(--pad); right: var(--pad);
  max-width: 31ch; font-size: .9375rem; line-height: 1.62; color: #2b2a28;
}
.hero__title {
  font-family: var(--serif); font-weight: 400; color: var(--ink);
  font-size: clamp(2.9rem, 10.2vw, 11.75rem); line-height: .9; letter-spacing: -.035em;
}
.line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line > span { display: inline-block; }
.line--2 { padding-left: calc((100% + var(--gutter)) / 12 * 3); }
.line--3 { padding-left: calc((100% + var(--gutter)) / 12 * 1); }
.js .line > span { transform: translate3d(0, 110%, 0); transition: transform 1.6s var(--ease-out); transition-delay: calc(var(--i, 0) * 120ms + 650ms); }
.js.is-ready .line > span { transform: none; }
.hero__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-top: clamp(20px, 3.4vh, 40px); padding-top: 16px;
  border-top: 1px solid var(--brass-soft);
  font-size: .8125rem; color: #3d3b38;
}
.hero__scroll { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.hero__scroll svg { width: 15px; height: 15px; transition: transform .6s var(--ease-out); }
.hero__scroll:hover svg { transform: translateY(3px); }
.js .hero-fade { opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity 1.4s ease 1.3s, transform 1.4s var(--ease-out) 1.3s; }
.js.is-ready .hero-fade { opacity: 1; transform: none; }
@media (min-width: 768px) {
  .hero__intro { left: auto; top: clamp(150px, 24vh, 260px); }
}

/* ------------------------------------------------------------------
   Media (shared reveal + parallax)
------------------------------------------------------------------ */
.media { position: relative; overflow: hidden; background: var(--stone); }
.media__inner { position: absolute; left: 0; right: 0; top: -8%; bottom: -8%; will-change: transform; }
.media__img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1); transition: transform 1.6s var(--ease-out);
}
.js .media.reveal { clip-path: inset(100% 0 0 0); transition: clip-path 1.6s var(--ease-io); }
.js .media.reveal.is-visible { clip-path: inset(0 0 0 0); }
.js .media.reveal:not(.is-visible) .media__img { transform: scale(1.22); }
.caption { margin-top: 14px; font-size: .8125rem; line-height: 1.5; color: var(--graphite); }

/* ------------------------------------------------------------------
   Studio
------------------------------------------------------------------ */
.statement {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.7rem, 3.05vw, 3.2rem); line-height: 1.22; letter-spacing: -.015em;
  text-wrap: pretty;
}

/* ------------------------------------------------------------------
   Works
------------------------------------------------------------------ */
.works-grid { row-gap: clamp(64px, 9vw, 150px); margin-top: clamp(56px, 7vw, 120px); }
.work-link { display: block; }
.work-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(16px, 2vw, 28px); color: var(--sand);
  background:
    linear-gradient(to top, rgba(18, 18, 18, .58) 0%, rgba(18, 18, 18, 0) 42%),
    linear-gradient(to bottom, rgba(18, 18, 18, .38) 0%, rgba(18, 18, 18, 0) 28%);
  opacity: 0; transition: opacity .8s var(--ease-soft);
}
.work-link:hover .media__img { transform: scale(1.065); }
.work-link:hover .work-overlay, .work-link:focus-visible .work-overlay { opacity: 1; }
.dim { display: flex; align-items: center; gap: 12px; }
.dim::before, .dim::after { content: ""; width: 1px; height: 11px; background: rgba(249, 248, 246, .8); flex: none; }
.dim__line { flex: 1; height: 1px; background: rgba(249, 248, 246, .7); transform: scaleX(0); transition: transform 1.1s var(--ease-out) .15s; }
.dim__line:first-of-type { transform-origin: right; }
.dim__line:last-of-type { transform-origin: left; }
.dim__label { font-size: .75rem; letter-spacing: .06em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.work-link:hover .dim__line, .work-link:focus-visible .dim__line { transform: scaleX(1); }
.work-meta {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  font-size: .9375rem; transform: translate3d(0, 12px, 0); transition: transform .9s var(--ease-out);
}
.work-meta span:last-child { font-variant-numeric: tabular-nums; }
.work-link:hover .work-meta, .work-link:focus-visible .work-meta { transform: none; }
.work-caption { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 18px; }
.work-title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.45rem, 2vw, 2.05rem); line-height: 1.1; letter-spacing: -.01em; }
.work-type { font-size: .875rem; color: var(--graphite); white-space: nowrap; }
.archive-note { font-family: var(--serif); font-size: clamp(1.3rem, 1.7vw, 1.6rem); line-height: 1.3; max-width: 16em; }
@media (hover: none) {
  .work-overlay { opacity: 1; background: linear-gradient(to top, rgba(18, 18, 18, .5) 0%, rgba(18, 18, 18, 0) 38%); }
  .dim { visibility: hidden; }
  .work-meta { transform: none; }
}

/* ------------------------------------------------------------------
   Philosophy
------------------------------------------------------------------ */
.philo { transition: background-color 1.2s var(--ease-soft); background-color: #f3f1ed; }
.philo[data-mode="brutalism"] { background-color: #e5e3df; }
.philo[data-mode="organic"] { background-color: #f3ece2; }
.philo-tabs {
  display: flex; flex-wrap: wrap; column-gap: clamp(18px, 4vw, 72px); row-gap: 8px;
  margin-top: clamp(48px, 6vw, 96px); border-bottom: 1px solid var(--line);
}
.philo-tab {
  position: relative; padding: 0 0 16px;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.3rem, 4.4vw, 4.4rem); line-height: 1; letter-spacing: -.02em;
  color: rgba(18, 18, 18, .26); transition: color .6s ease;
}
.philo-tab:hover { color: rgba(18, 18, 18, .6); }
.philo-tab[aria-selected="true"] { color: var(--ink); }
.philo-tab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--brass); transform: scaleX(0); transform-origin: left;
  transition: transform 1s var(--ease-out);
}
.philo-tab[aria-selected="true"]::after { transform: scaleX(1); }

.philo-stage {
  display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 40px;
  margin-top: clamp(40px, 5vw, 88px); align-items: center;
}
.philo-media {
  position: relative; overflow: hidden; height: clamp(360px, 62vh, 620px);
  border-radius: 0;
  transition: height 1.2s var(--ease-io), border-radius 1.2s var(--ease-io);
}
.philo[data-mode="brutalism"] .philo-media { height: clamp(320px, 52vh, 540px); }
.philo[data-mode="organic"] .philo-media { border-radius: 50% 50% 0 0 / 36% 36% 0 0; }
.philo-img { position: absolute; inset: 0; margin: 0; z-index: 1; clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease-io); }
.philo-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.16); transition: transform 2.2s var(--ease-out); }
.philo-img.is-prev { clip-path: inset(0 0 0 0); z-index: 1; }
.philo-img.is-active { clip-path: inset(0 0 0 0); z-index: 2; }
.philo-img.is-active img { transform: scale(1); }
.philo-img--bru img { filter: grayscale(1) contrast(1.12) brightness(1.02); }
.philo-img--org img { filter: saturate(.8); }

.philo-copy { display: grid; }
.philo-panel { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s linear .5s; }
.philo-panel.is-active { opacity: 1; visibility: visible; transition: opacity .8s ease .3s, visibility 0s; }
.philo-panel > * { transform: translate3d(0, 18px, 0); transition: transform 1s var(--ease-out); }
.philo-panel.is-active > * { transform: none; transition-delay: calc(.3s + var(--d, 0) * 80ms); }
.philo-title { font-weight: 400; text-wrap: balance; }
.philo-title--min { font-family: var(--serif); font-size: clamp(2.3rem, 4.4vw, 4.6rem); line-height: 1; letter-spacing: -.03em; }
.philo-title--bru { font-family: var(--sans); font-weight: 600; text-transform: uppercase; font-size: clamp(2.2rem, 5.2vw, 5.6rem); line-height: .9; letter-spacing: -.045em; }
.philo-title--org { font-family: var(--serif); font-style: italic; font-size: clamp(2.3rem, 4.3vw, 4.5rem); line-height: 1.04; letter-spacing: -.02em; }
.philo-text { margin-top: 26px; max-width: 34em; font-size: 1.0625rem; line-height: 1.72; color: #34322f; }
.specs { margin-top: clamp(28px, 3vw, 44px); max-width: 36rem; border-top: 1px solid var(--line); }
.specs > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; line-height: 1.5; }
.specs dt { color: var(--graphite); }
.palette { display: flex; align-items: center; gap: 18px; margin-top: 28px; }
.swatches { display: flex; align-items: center; gap: 10px; }
.swatch { display: block; width: 30px; height: 30px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(18, 18, 18, .08); }
.philo-panel--bru .swatches { gap: 0; }
.philo-panel--bru .swatch { width: 44px; height: 44px; box-shadow: none; }
.philo-panel--org .swatch { width: 38px; height: 34px; border-radius: 58% 42% 55% 45% / 48% 60% 40% 52%; box-shadow: none; }
.philo-panel--org .swatch:nth-child(2) { border-radius: 40% 60% 45% 55% / 60% 45% 55% 40%; }
.philo-panel--org .swatch:nth-child(3) { border-radius: 52% 48% 38% 62% / 44% 56% 44% 56%; }
.philo-panel--org .swatch:nth-child(4) { border-radius: 45% 55% 60% 40% / 55% 40% 60% 45%; }

@media (min-width: 1024px) {
  .philo-stage {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: clamp(48px, 6vw, 120px);
    transition: grid-template-columns 1.2s var(--ease-io);
  }
  .philo[data-mode="brutalism"] .philo-stage { grid-template-columns: minmax(0, 4.6fr) minmax(0, 7.4fr); }
  .philo[data-mode="organic"] .philo-stage { grid-template-columns: minmax(0, 5.4fr) minmax(0, 6.6fr); }
  .philo-media { height: clamp(460px, 76vh, 820px); }
  .philo[data-mode="brutalism"] .philo-media { height: clamp(400px, 60vh, 640px); }
}

/* ------------------------------------------------------------------
   Quote — the words are lit as the light passes
------------------------------------------------------------------ */
.quote { position: relative; background: var(--ink); color: var(--sand); height: 220vh; }
.quote__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.beam {
  position: absolute; top: -40%; left: 0; height: 180%; width: 36vw; min-width: 280px;
  background: linear-gradient(90deg, rgba(255, 240, 212, 0) 0%, rgba(255, 240, 212, .07) 34%, rgba(255, 240, 212, .13) 50%, rgba(255, 240, 212, .07) 66%, rgba(255, 240, 212, 0) 100%);
  filter: blur(26px); pointer-events: none; will-change: transform;
  transform: translate3d(-40vw, 0, 0) rotate(16deg);
}
.quote__figure { position: relative; z-index: 1; margin: 0 auto; }
.quote__text {
  position: relative; max-width: 21em;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 4.3rem); line-height: 1.15; letter-spacing: -.02em;
  text-wrap: pretty;
}
.quote__text::before { content: "\201C"; position: absolute; right: 100%; margin-right: .06em; color: var(--brass); }
.word { color: rgba(249, 248, 246, .13); transition: color .7s ease; }
.word.is-lit { color: var(--sand); }
.quote__cite { display: flex; flex-direction: column; gap: 3px; margin-top: clamp(36px, 4vw, 60px); font-size: .9375rem; }
.quote__cite::before { content: ""; display: block; width: 48px; height: 1px; background: var(--brass); margin-bottom: 20px; }
.quote__role { color: var(--mist); font-size: .875rem; }
@media (min-width: 768px) { .quote { height: 260vh; } }

/* ------------------------------------------------------------------
   Inquiry — the letter
------------------------------------------------------------------ */
.contact-list { border-top: 1px solid var(--line); max-width: 30rem; }
.contact-list > div { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.contact-list dt { color: var(--graphite); }
.contact-list a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease-out); }
.contact-list a:hover { background-size: 100% 1px; }

.letter {
  position: relative; background: var(--paper);
  padding: clamp(32px, 5.4vw, 88px) clamp(24px, 5.4vw, 88px);
  box-shadow: 0 1px 0 rgba(18, 18, 18, .04), 0 40px 90px -50px rgba(18, 18, 18, .28);
}
.letter::before { content: ""; position: absolute; inset: 10px; border: 1px solid var(--brass-soft); pointer-events: none; }
.letter__date { text-align: right; font-size: .875rem; color: var(--graphite); font-variant-numeric: tabular-nums; }
.letter__salute { margin-top: clamp(28px, 3.4vw, 48px); font-family: var(--serif); font-style: italic; font-size: clamp(1.45rem, 2.1vw, 1.9rem); }
.letter__body {
  margin-top: 18px; font-family: var(--serif);
  font-size: clamp(1.25rem, 1.95vw, 1.8rem); line-height: 2.05; letter-spacing: -.005em;
}
.field { position: relative; display: inline-block; max-width: 100%; vertical-align: baseline; line-height: 1.2; }
.field input, .field select {
  max-width: 100%; min-width: 3ch; font: inherit; color: var(--ink);
  background-color: transparent; border: 0; border-bottom: 1px solid rgba(18, 18, 18, .24); border-radius: 0;
  padding: 0 2px 3px; outline: none; transition: border-color .4s ease;
  -webkit-appearance: none; appearance: none;
}
.field input::placeholder { color: rgba(18, 18, 18, .34); font-style: italic; }
.field select {
  padding-right: 1.05em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23a8916a' stroke-width='1.3'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 2px center; background-size: .42em auto;
}
.field::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--brass); transform: scaleX(0); transform-origin: left;
  transition: transform .7s var(--ease-out); pointer-events: none;
}
.field:focus-within::after { transform: scaleX(1); }
.field.is-invalid input { border-bottom-color: var(--error); }
.field.is-invalid::after { background: var(--error); transform: scaleX(1); }

.letter__note { display: block; margin-top: clamp(28px, 3vw, 44px); }
.letter__note span { font-size: .8125rem; color: var(--graphite); }
.letter__note textarea {
  display: block; width: 100%; margin-top: 8px; padding: 0;
  font-family: var(--serif); font-size: 1.125rem; line-height: 2.25rem; min-height: 9rem;
  color: var(--ink); border: 0; outline: none; resize: vertical;
  background-color: transparent;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(2.25rem - 1px), rgba(18, 18, 18, .12) calc(2.25rem - 1px), rgba(18, 18, 18, .12) 2.25rem);
  background-attachment: local;
}
.letter__note textarea::placeholder { color: rgba(18, 18, 18, .34); font-style: italic; }
.letter__note textarea:focus { background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(2.25rem - 1px), rgba(168, 145, 106, .45) calc(2.25rem - 1px), rgba(168, 145, 106, .45) 2.25rem); }
.letter__close { margin-top: clamp(28px, 3vw, 44px); }
.letter__regards { font-family: var(--serif); font-size: 1.125rem; }
.signature { margin-top: 2px; min-height: 1.3em; font-family: var(--serif); font-style: italic; font-size: clamp(1.9rem, 2.8vw, 2.6rem); line-height: 1.25; transition: color .5s ease; }
.signature.is-empty { color: rgba(18, 18, 18, .22); }
.letter__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: clamp(32px, 3.4vw, 52px); }
.btn-send {
  display: inline-flex; align-items: center; gap: 14px; height: 58px; padding: 0 30px;
  background: var(--ink); color: var(--sand); border-radius: 999px;
  font-size: .9375rem; letter-spacing: .01em;
  transition: background-color .5s ease, transform .6s var(--ease-out);
}
.btn-send:hover { background: #2b2927; }
.btn-send:disabled { opacity: .7; }
.btn-send svg { width: 17px; height: 17px; transition: transform .7s var(--ease-out); }
.btn-send:hover svg { transform: rotate(-12deg) translateX(2px); }
.letter__promise { font-size: .875rem; color: var(--graphite); max-width: 26em; }
.letter__status { margin-top: 20px; font-size: .9375rem; color: var(--error); }
.letter__status:empty { display: none; }
.letter__status li + li { margin-top: 4px; }
.letter__sent { display: none; }
.letter.is-sent { padding-block: clamp(56px, 7vw, 120px); }
.letter.is-sent .letter__form { display: none; }
.letter.is-sent .letter__sent { display: block; animation: rise 1.1s var(--ease-out) both; }
.sent-title { margin-top: 18px; font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 4.4vw, 4.2rem); line-height: 1.02; letter-spacing: -.03em; }
.sent-text { margin-top: 22px; max-width: 30em; font-size: 1.0625rem; line-height: 1.7; color: #3b3936; }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 18px, 0); } to { opacity: 1; transform: none; } }
.measure { position: absolute; left: -9999px; top: 0; visibility: hidden; white-space: pre; pointer-events: none; }

/* ------------------------------------------------------------------
   Project dialog
------------------------------------------------------------------ */
.project {
  position: fixed; inset: 0; z-index: 80; background: var(--sand); color: var(--ink);
  display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-rows: min-content;
  overflow-y: auto; overscroll-behavior: contain;
  clip-path: inset(100% 0 0 0); transition: clip-path 1.05s var(--ease-io);
}
.project.is-open { clip-path: inset(0 0 0 0); }
.project__media { position: relative; height: 56vh; overflow: hidden; background: var(--stone); }
.project__img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); transition: transform 2s var(--ease-out); }
.project.is-open .project__img { transform: scale(1); }
.project__body { padding: 28px var(--pad) 56px; }
.project__body > * { opacity: 0; transform: translate3d(0, 16px, 0); transition: opacity .8s ease, transform 1s var(--ease-out); }
.project.is-open .project__body > * { opacity: 1; transform: none; transition-delay: calc(.45s + var(--d, 0) * 70ms); }
.project__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.project__close { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; font-size: .875rem; transition: background-color .5s, color .5s, border-color .5s; }
.project__close:hover { background: var(--ink); color: var(--sand); border-color: var(--ink); }
.project__close svg { width: 16px; height: 16px; }
.project__title { margin-top: clamp(28px, 4vh, 56px); font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 5vw, 5.2rem); line-height: .98; letter-spacing: -.035em; }
.project__specs { margin-top: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.project__specs > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.project__specs dt { font-size: .8125rem; color: var(--graphite); }
.project__specs dd { margin-top: 2px; font-size: .9375rem; }
.project__text { margin-top: 32px; }
.project__text p { font-size: 1.0625rem; line-height: 1.75; color: #34322f; max-width: 34em; }
.project__text p:first-child { font-family: var(--serif); font-size: clamp(1.25rem, 1.6vw, 1.5rem); line-height: 1.5; color: var(--ink); }
.project__text p + p { margin-top: 1.1em; }
.project__cta { margin-top: 36px; }
@media (min-width: 1024px) {
  .project { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); grid-auto-rows: auto; overflow: hidden; }
  .project__media { height: 100vh; height: 100svh; }
  .project__body { height: 100vh; height: 100svh; overflow-y: auto; overscroll-behavior: contain; padding: 36px clamp(40px, 4.4vw, 80px) 64px; }
}

/* ------------------------------------------------------------------
   Footer
------------------------------------------------------------------ */
.footer { background: var(--ink); color: var(--sand); padding-top: clamp(88px, 11vw, 170px); padding-bottom: 28px; overflow: hidden; }
.footer__lead { font-family: var(--serif); font-size: clamp(1.5rem, 2.2vw, 2.1rem); line-height: 1.25; letter-spacing: -.01em; max-width: 15em; }
.footer__h { font-size: .8125rem; color: var(--mist); margin-bottom: 14px; font-weight: 400; }
.footer address, .footer__list { font-style: normal; font-size: .9375rem; line-height: 1.75; }
.footer__list a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease-out); }
.footer__list a:hover { background-size: 100% 1px; }
.footer__time { margin-top: 12px; font-size: .8125rem; color: var(--mist); font-variant-numeric: tabular-nums; }
.footer__word {
  display: block; margin-top: clamp(72px, 10vw, 160px); white-space: nowrap;
  font-family: var(--serif); font-weight: 400; font-size: 13.2vw; line-height: .86; letter-spacing: -.035em;
}
.footer__word span { display: inline-block; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px;
  margin-top: clamp(28px, 3vw, 44px); padding-top: 22px; border-top: 1px solid var(--line-dark);
  font-size: .8125rem; color: var(--mist);
}
.footer__top { display: inline-flex; align-items: center; gap: 10px; color: var(--sand); }
.footer__top svg { width: 15px; height: 15px; transition: transform .6s var(--ease-out); }
.footer__top:hover svg { transform: translateY(-3px); }

[data-magnetic] { transition: transform .7s var(--ease-out); }

/* ------------------------------------------------------------------
   Subpages (added for the multi-page version)
------------------------------------------------------------------ */
.sub.js .nav { transition: transform .9s var(--ease-out), color .5s ease, opacity .8s ease .15s; }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.menu__link[aria-current="page"] span { color: var(--brass); }
.js .fade-up { opacity: 0; transform: translate3d(0, 16px, 0); transition: opacity 1.2s ease, transform 1.2s var(--ease-out); transition-delay: calc(.5s + var(--d, 0) * 140ms); }
.js.is-ready .fade-up { opacity: 1; transform: none; }

.page-head { padding-top: calc(var(--nav-h) + clamp(56px, 10vw, 180px)); padding-bottom: clamp(48px, 6vw, 104px); }
.page-head__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(3rem, 9vw, 9.5rem); line-height: .92; letter-spacing: -.035em;
}
.page-head__title .line--2 { padding-left: calc((100% + var(--gutter)) / 12 * 2); }
.page-head__title--s { margin-top: 20px; font-size: clamp(2.8rem, 7vw, 6.5rem); }
.page-head__intro { font-size: 1.0625rem; line-height: 1.72; color: #3b3936; max-width: 34em; }
.page-head--text { padding-bottom: clamp(32px, 4vw, 64px); }
.page-first { padding-top: calc(var(--nav-h) + clamp(56px, 8vw, 140px)); }
.works-grid--page { margin-top: 0; }

/* Start page: link to all works, approaches, invitation */
.more-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 40px;
  margin-top: clamp(64px, 8vw, 128px); padding-top: clamp(28px, 3vw, 44px); border-top: 1px solid var(--line);
}
a.btn-send { flex: none; }
.approaches { background: #f3f1ed; }
.approach-list { border-top: 1px solid var(--line); }
.approach-list a {
  display: grid; grid-template-columns: 3rem minmax(0, 1fr); align-items: baseline; column-gap: 16px;
  padding: clamp(20px, 2.4vw, 32px) 0; border-bottom: 1px solid var(--line);
}
.approach-list__no { font-size: .8125rem; color: var(--graphite); font-variant-numeric: tabular-nums; }
.approach-list__name {
  font-family: var(--serif); font-size: clamp(2rem, 4.6vw, 4.4rem); line-height: 1; letter-spacing: -.025em;
  transition: transform .8s var(--ease-out), color .5s ease;
}
.approach-list__line { grid-column: 2; margin-top: 10px; font-size: .9375rem; color: var(--graphite); }
.approach-list a:hover .approach-list__name { transform: translateX(14px); color: var(--brass); }

/* Studio page: process, partners, studios */
.steps { margin-top: clamp(48px, 6vw, 96px); border-top: 1px solid var(--line); }
.step {
  display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 10px;
  padding: clamp(28px, 3vw, 44px) 0; border-bottom: 1px solid var(--line);
}
.step__no { font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 3.4rem); line-height: 1; color: var(--brass); }
.step__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2.2vw, 2.2rem); line-height: 1.15; letter-spacing: -.01em; }
.step__text { font-size: 1.0625rem; line-height: 1.72; color: #3b3936; max-width: 34em; }
@media (min-width: 1024px) {
  .step { grid-template-columns: minmax(0, 2fr) minmax(0, 4fr) minmax(0, 5fr); column-gap: var(--gutter); align-items: baseline; }
}
.partners-section { background: #f3f1ed; }
.partners {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 var(--gutter);
  margin-top: clamp(48px, 6vw, 96px); border-top: 1px solid var(--line);
}
.partner { padding: clamp(24px, 2.6vw, 40px) 0; border-bottom: 1px solid var(--line); }
.partner__name { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.4vw, 2.4rem); line-height: 1.1; letter-spacing: -.015em; }
.partner__role { margin-top: 6px; font-size: .875rem; color: var(--brass); }
.partner__text { margin-top: 16px; font-size: .9375rem; line-height: 1.65; color: var(--graphite); max-width: 26em; }
@media (min-width: 900px) { .partners { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.studios { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gutter); align-self: end; }
@media (min-width: 640px) { .studios { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.studio-card { padding: clamp(24px, 2.6vw, 36px); background: var(--paper); border: 1px solid var(--line); }
.studio-card__city { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.4vw, 2.3rem); line-height: 1.1; margin-bottom: 14px; }
.studio-card address { font-style: normal; font-size: .9375rem; line-height: 1.7; }
.studio-card .footer__time { color: var(--graphite); }

/* Invitation band */
.invite { border-top: 1px solid var(--line); }

/* Legal pages */
.legal { padding-bottom: clamp(104px, 13vw, 200px); }
.legal__body { max-width: 44rem; }
.legal__body h2 { margin-top: 2.2em; font-family: var(--serif); font-weight: 400; font-size: clamp(1.4rem, 2vw, 1.9rem); line-height: 1.2; }
.legal__body h2:first-child { margin-top: 0; }
.legal__body p { margin-top: .8em; font-size: 1.0625rem; line-height: 1.72; color: #3b3936; }
.legal__body a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal__note { padding: 18px 22px; border: 1px solid var(--brass-soft); background: var(--paper); font-size: .9375rem !important; }
.footer__legal { display: flex; gap: 24px; }
.footer__legal a { color: var(--sand); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease-out); }
.footer__legal a:hover, .footer__legal a[aria-current="page"] { background-size: 100% 1px; }

/* ------------------------------------------------------------------
   Reduced motion
------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-delay: 0s !important;
    transition-duration: .01ms !important; transition-delay: 0s !important;
  }
  .quote { height: auto; }
  .quote__sticky { position: relative; height: auto; padding-block: 24vh; }
  .beam { display: none; }
  .word { color: var(--sand); }
}
