/* =========================================================
   AURUM SUMMIT — Floema-style editorial system
   Palette / type / motion tokens mirror the Floema preset.
   SWAP the values under :root to rebrand.
   ========================================================= */

:root{
  /* ---- Color (neutral, Floema-like; color comes from imagery) ---- */
  --bg:        #EFEBE3;   /* warm off-white */
  --bg-2:      #E7E2D8;
  --ink:       #16150F;   /* near-black */
  --ink-soft:  #6B675C;
  --line:      rgba(22,21,15,.14);
  --accent:    #9A7B33;   /* brass / "Aurum" gold — used sparingly */

  /* ---- Type ---- */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, sans-serif;

  /* ---- Motion ---- */
  --ease:   cubic-bezier(.19,1,.22,1);
  --ease-io:cubic-bezier(.83,0,.17,1);

  /* ---- Layout ---- */
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --gap-sec: clamp(7rem, 14vw, 16rem);
}

*{ margin:0; padding:0; box-sizing:border-box; }
html{ -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; }
html.lenis, html.lenis body{ height:auto; }
.lenis.lenis-smooth{ scroll-behavior:auto !important; }

body{
  background:var(--bg);
  color:var(--ink);
  font-family:var(--sans);
  font-size:clamp(1rem, .9rem + .3vw, 1.125rem);
  line-height:1.5;
  overflow-x:hidden;
}
.no-scroll{ overflow:hidden; height:100vh; }

a{ color:inherit; text-decoration:none; }
img{ display:block; width:100%; height:100%; object-fit:cover; }
section{ position:relative; padding-left:var(--pad); padding-right:var(--pad); }

/* ---------- Shared atoms ---------- */
.overline{
  display:inline-block;
  font-size:.7rem; letter-spacing:.22em; text-transform:uppercase;
  color:var(--ink-soft); font-weight:500;
}
em{ font-style:italic; }

/* mask-reveal wrappers */
/* masks get bottom padding so descenders (g/y/p) aren't clipped; negative margin
   keeps layout unchanged; hidden offset pushed to 130% so nothing peeks into the padding */
.reveal-line{ display:block; overflow:hidden; padding-bottom:.16em; margin-bottom:-.16em; }
.reveal-line > span{ display:block; transform:translateY(130%); filter:blur(6px); }
.reveal-text{ } /* JS splits into words */
.word-mask{ display:inline-block; overflow:hidden; vertical-align:top; padding-bottom:.16em; margin-bottom:-.16em; }
.word-mask > span{ display:inline-block; transform:translateY(130%); filter:blur(6px); } /* react-bits BlurText: deblur on reveal */

/* =========================================================
   CURSOR
   ========================================================= */
.cursor{ position:fixed; inset:0; pointer-events:none; z-index:9999; mix-blend-mode:difference; }
.cursor__dot{
  position:absolute; top:0; left:0; width:6px; height:6px; border-radius:50%;
  background:#fff; transform:translate(-50%,-50%);
}
.cursor__ring{
  position:absolute; top:0; left:0; width:40px; height:40px; border-radius:50%;
  border:1px solid rgba(255,255,255,.7); transform:translate(-50%,-50%) scale(1);
  display:grid; place-items:center; transition:width .4s var(--ease), height .4s var(--ease), background .4s var(--ease);
}
.cursor__label{ color:#fff; font-size:.62rem; letter-spacing:.1em; text-transform:uppercase; opacity:0; }
body.cursor-active .cursor__ring{ width:84px; height:84px; background:rgba(255,255,255,.06); }
body.cursor-active .cursor__label{ opacity:1; }
@media (hover:none){ .cursor{ display:none; } }

/* =========================================================
   PRELOADER
   ========================================================= */
.preloader{
  position:fixed; inset:0; z-index:9000; background:var(--bg);
  display:flex; align-items:center; justify-content:center;
}
.preloader__inner{ text-align:center; }
.preloader__logo{ width:clamp(48px,7vw,72px); height:auto; display:block; margin:0 auto 1.6rem; } /* black logo on cream */
.preloader__brand{ font-family:var(--serif); font-weight:300; font-size:clamp(2rem,7vw,5rem); line-height:1; overflow:hidden; }
.preloader__brand > span{ display:block; }
.preloader__meta{ margin-top:1rem; font-size:.8rem; letter-spacing:.18em; text-transform:uppercase; color:var(--ink-soft); }
.preloader__count{
  position:absolute; bottom:var(--pad); right:var(--pad);
  font-family:var(--serif); font-size:clamp(2.5rem,9vw,7rem); font-weight:300; line-height:1;
}
.preloader__count i{ font-size:.4em; font-style:normal; vertical-align:super; color:var(--ink-soft); }

/* =========================================================
   PAGE TRANSITION
   ========================================================= */
.transition{
  position:fixed; inset:0; z-index:8000; background:var(--ink);
  transform:translateY(100%); pointer-events:none;
}

/* =========================================================
   HEADER
   ========================================================= */
.header{
  position:fixed; top:0; left:0; width:100%; z-index:1000;
  display:flex; align-items:center; justify-content:space-between;
  padding:clamp(1rem,2.4vw,1.6rem) var(--pad);
  mix-blend-mode:difference; color:#fff;
}
.header__logo{ display:flex; align-items:center; gap:.7rem; }
.header__mark{ height:30px; width:auto; display:block; filter:invert(1); }   /* white logo → mix-blend adapts it dark/light */
.header__name{ font-size:.72rem; letter-spacing:.24em; text-transform:uppercase; }
.header__nav{ display:flex; align-items:center; gap:clamp(1rem,3vw,2.5rem); }
.btn-ghost{ font-size:.72rem; letter-spacing:.18em; text-transform:uppercase; position:relative; }
.btn-ghost::after{ content:""; position:absolute; left:0; bottom:-4px; width:100%; height:1px; background:currentColor; transform:scaleX(0); transform-origin:right; transition:transform .5s var(--ease); }
.btn-ghost:hover::after{ transform:scaleX(1); transform-origin:left; }

.menu-toggle{
  background:none; border:none; cursor:pointer; color:inherit;
  display:flex; align-items:center; gap:.6rem;
}
.menu-toggle span{ display:block; width:22px; height:1px; background:currentColor; transition:transform .4s var(--ease); }
.menu-toggle span:nth-child(2){ margin-top:5px; }
.menu-toggle em{ font-size:.72rem; letter-spacing:.18em; text-transform:uppercase; font-style:normal; }
body.menu-open .menu-toggle span:nth-child(1){ transform:translateY(3px) rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2){ transform:translateY(-3px) rotate(-45deg); }

/* =========================================================
   FULLSCREEN MENU
   ========================================================= */
.menu{ position:fixed; inset:0; z-index:900; visibility:hidden; }
.menu__bg{ position:absolute; inset:0; background:var(--bg-2); clip-path:inset(0 0 100% 0); }
.menu__inner{
  position:relative; height:100%; display:flex; flex-direction:column; justify-content:center;
  padding:6rem var(--pad) var(--pad); gap:clamp(1.5rem,4vw,3rem);
}
.menu__search{ position:relative; max-width:640px; }
.menu__search input{
  width:100%; background:none; border:none; outline:none; color:var(--ink);
  font-family:var(--serif); font-size:clamp(1.1rem,3vw,1.8rem); font-weight:300; padding-bottom:.6rem;
}
.menu__search input::placeholder{ color:var(--ink-soft); }
.menu__search-line{ position:absolute; left:0; bottom:0; width:100%; height:1px; background:var(--line); }
.menu__nav{ display:flex; flex-direction:column; }
.menu__nav a{
  display:flex; align-items:baseline; gap:1.2rem; padding:.08em 0 .16em;
  font-family:var(--serif); font-weight:300; font-size:clamp(1.7rem,5.5vw,3.8rem); line-height:1.12;
  transition:color .4s var(--ease); overflow:hidden;
}
.menu__nav a i{ font-size:.8rem; font-style:normal; color:var(--ink-soft); letter-spacing:.1em; }
.menu__nav a span{ display:inline-block; transition:transform .6s var(--ease); }
.menu__nav a:hover{ color:var(--accent); }
.menu__nav a:hover span{ transform:translateX(2.5rem); }
.menu__foot{ display:flex; flex-wrap:wrap; gap:clamp(2rem,6vw,5rem); margin-top:auto; }
.menu__foot p{ margin-top:.5rem; font-size:.85rem; color:var(--ink-soft); line-height:1.6; }

/* =========================================================
   HERO — scroll-driven frame sequence (Apple-style scrub)
   ========================================================= */
.hero{ height:480vh; padding:0; }                 /* phase A scrub (0–50%) + phase B dissolve (50–100%) */
.hero__stage{
  position:sticky; top:0; height:100svh; overflow:hidden;
  background:var(--bg);
  perspective:1500px;                              /* gives the canvas a subtle 3D camera tilt */
}
/* Approach copy at the back — uncovered as the mountain dissolves over it */
.hero__reveal{
  position:absolute; inset:0; z-index:0; background:var(--bg);
  display:flex; flex-direction:column; justify-content:center; padding:0 var(--pad);
}
.hero__seq{                                        /* single WebGL canvas: frames + dissolve */
  position:absolute; inset:0; width:100%; height:100%; z-index:2; background:var(--bg);
  will-change:transform; transform-origin:50% 50%; backface-visibility:hidden;
}
/* no-WebGL / reduced-motion fallback: show a static final frame so it isn't blank */
body:not(.webgl-on) .hero__seq{
  background:var(--bg) url("images/frames/frame_120.webp?v=2") center/cover no-repeat;
}
.hero__fade{                                       /* cream veil ABOVE the mountain, BELOW the text */
  position:absolute; inset:0; z-index:3; background:var(--bg); opacity:0; pointer-events:none;
}
.hero__inner{
  position:relative; z-index:4; height:100%;
  display:flex; flex-direction:column; justify-content:space-between;
  padding:20vh var(--pad) calc(var(--pad) + 1.5vh);
  pointer-events:none;
}
.hero__inner [data-cursor]{ pointer-events:auto; }
.hero__head{ position:relative; will-change:transform, opacity; }
.hero__title{
  font-family:var(--serif); font-weight:300; line-height:.9; letter-spacing:-.02em;
  font-size:clamp(3rem, 12vw, 12rem); margin-top:1rem;
}
.hero__title em{ font-weight:400; font-style:italic; }
.hero__sub{
  display:flex; justify-content:space-between; align-items:flex-end; gap:2rem;
  max-width:1400px; will-change:transform, opacity;
}
.hero__sub p{ font-size:clamp(1.1rem,2vw,1.6rem); max-width:42ch; line-height:1.35; }
.hero__scroll{ display:inline-flex; align-items:center; gap:.6rem; font-size:.7rem; letter-spacing:.2em; text-transform:uppercase; color:var(--ink-soft); white-space:nowrap; }
.hero__scroll i{ display:block; width:34px; height:1px; background:currentColor; transform-origin:left; animation:scrollLine 2.4s var(--ease) infinite; }
@keyframes scrollLine{ 0%,100%{ transform:scaleX(.3); opacity:.5 } 50%{ transform:scaleX(1); opacity:1 } }
@media (max-width:760px){
  /* center the hero copy vertically (whole text block in the middle) + horizontally */
  .hero__inner{ justify-content:center; align-items:center; text-align:center; gap:clamp(2.5rem,9vh,5rem); padding:9vh var(--pad); }
  .hero__sub{ flex-direction:column; align-items:center; gap:1.1rem; }
  .hero__sub p{ margin:0 auto; }
}

/* =========================================================
   MANIFESTO
   ========================================================= */
/* (manifesto copy now lives inside the hero pin as .hero__reveal.manifesto) */
.manifesto .overline{ margin-bottom:2.5rem; }
.manifesto__title{
  font-family:var(--serif); font-weight:300; line-height:1.08; letter-spacing:-.015em;
  font-size:clamp(1.8rem,5vw,4.2rem); max-width:18ch;
}
.manifesto__row{ display:flex; justify-content:space-between; align-items:flex-end; flex-wrap:wrap; gap:1.5rem; margin-top:clamp(3rem,8vw,6rem); }
.manifesto__row p{ font-size:clamp(1rem,1.6vw,1.3rem); color:var(--ink-soft); max-width:30ch; }
.link-arrow{ display:inline-flex; align-items:center; gap:.6rem; font-size:.8rem; letter-spacing:.16em; text-transform:uppercase; }
.link-arrow i{ font-style:normal; transition:transform .4s var(--ease); }
.link-arrow:hover i{ transform:translateX(.5rem); }

/* =========================================================
   PRACTICE (hover-reveal list)
   ========================================================= */
.practice{ padding-top:var(--gap-sec); padding-bottom:var(--gap-sec); }
.practice__head{ display:flex; flex-direction:column; gap:1.5rem; margin-bottom:clamp(2rem,6vw,5rem); }
.practice__title{ font-family:var(--serif); font-weight:300; font-size:clamp(2rem,7vw,6rem); line-height:1; letter-spacing:-.02em; }
.practice__list{ list-style:none; border-top:1px solid var(--line); }
.practice__row{ border-bottom:1px solid var(--line); }
.practice__row a{
  display:grid; grid-template-columns:5rem minmax(auto,16rem) 1fr; gap:2rem; align-items:baseline;
  padding:clamp(1.6rem,3.5vw,2.8rem) 0; transition:padding .5s var(--ease), opacity .4s var(--ease);
}
.practice__no{ font-size:.8rem; color:var(--ink-soft); letter-spacing:.1em; }
.practice__name{ font-family:var(--serif); font-weight:300; font-size:clamp(1.6rem,3.5vw,2.8rem); line-height:1; }
.practice__desc{ font-size:.95rem; color:var(--ink-soft); max-width:46ch; line-height:1.5; }
.practice__row:hover a{ padding-left:1.5rem; }
.practice.is-hovering .practice__row:not(:hover) a{ opacity:.35; }
.practice__media{
  position:fixed; top:0; left:0; width:260px; height:330px; z-index:600;
  background-size:cover; background-position:center; pointer-events:none;
  opacity:0; transform:translate(-50%,-50%) scale(.85); clip-path:inset(0 0 0 0);
  will-change:transform, opacity;
}
@media (max-width:760px){
  .practice__row a{ grid-template-columns:3rem 1fr; }
  .practice__desc{ grid-column:1 / -1; padding-left:3rem; }
  .practice__media{ display:none; }
}

/* =========================================================
   COLLECTIONS — pinned scroll-through hero (Floema-style)
   ========================================================= */
.collections{ position:relative; height:460vh; background:var(--ink); padding:0; } /* override global section padding → full-bleed */
.collections__pin{
  position:sticky; top:0; height:100svh; overflow:hidden; color:#fff;
}
.collections__media{ position:absolute; inset:0; z-index:0; }
.collections__img{
  position:absolute; inset:0; width:100%; height:100%; background-size:cover; background-position:center;
  transform-origin:50% 42%; will-change:transform, clip-path;
  filter:saturate(.85) contrast(1.05) brightness(.96);   /* mute + grade for cohesion */
}
/* extra film grain over the collection imagery */
.collections__pin::after{
  content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size:200px 200px; opacity:.15; mix-blend-mode:overlay;
}
.collections__veil{
  position:absolute; inset:0; z-index:1; pointer-events:none;
  background:linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.16) 50%, rgba(0,0,0,.4) 100%);
}
/* progress line across the middle */
.collections__rule{
  position:absolute; left:var(--pad); right:var(--pad); top:42%; height:1px; z-index:2;
  background:rgba(255,255,255,.3);
}
.collections__fill{ position:absolute; left:0; top:0; height:100%; width:0%; background:#fff; }
.collections__no{ position:absolute; left:0; bottom:14px; font-family:var(--serif); font-weight:300; font-size:1.05rem; color:#fff; }
.collections__madeto{ position:absolute; left:0; top:14px; font-size:.7rem; letter-spacing:.2em; text-transform:uppercase; color:rgba(255,255,255,.82); }
.collections__tags{ position:absolute; left:24%; bottom:0; height:0; }
.collections__tag{
  position:absolute; left:0; bottom:14px; white-space:nowrap;
  padding:.42rem 1.05rem; border-radius:40px; background:rgba(255,255,255,.16); backdrop-filter:blur(6px);
  font-size:.7rem; letter-spacing:.14em; text-transform:uppercase;
}
/* lower half: heading + CTA, left-aligned */
.collections__lower{ position:absolute; left:24%; right:var(--pad); bottom:13%; z-index:2; }
.collections__panel{
  position:absolute; left:0; bottom:0; width:min(90%, 38rem); text-align:left;
  will-change:transform, opacity, filter;
}
.collections__title{
  font-family:var(--serif); font-weight:300; line-height:1.06; letter-spacing:-.02em;
  font-size:clamp(1.9rem,4vw,3.5rem); text-shadow:0 2px 40px rgba(0,0,0,.45);
}
.collections__cta{
  display:inline-flex; align-items:center; gap:.8rem; margin-top:2rem;
  padding:1rem 1.8rem; background:#fff; color:var(--ink); border-radius:40px;
  font-size:.72rem; letter-spacing:.16em; text-transform:uppercase; transition:transform .4s var(--ease);
}
.collections__cta i{ font-style:normal; transition:transform .4s var(--ease); }
.collections__cta:hover{ transform:translateY(-2px); }
.collections__cta:hover i{ transform:translateX(.4rem); }
.collections__scrollhint{
  position:absolute; bottom:var(--pad); left:var(--pad); z-index:2;
  font-size:.7rem; letter-spacing:.2em; text-transform:uppercase; opacity:.85;
}
.collections__scrollhint i{ font-style:normal; }
@media (max-width:760px){
  .collections__tags, .collections__lower{ left:var(--pad); }
  .collections__lower{ bottom:16%; }
  .collections__rule{ top:38%; }
}

/* =========================================================
   QUOTE
   ========================================================= */
.quote{ padding-top:var(--gap-sec); padding-bottom:var(--gap-sec); text-align:center; border-top:1px solid var(--line); }
.quote .overline{ margin-bottom:2.5rem; }
.quote__cite{ display:block; margin-top:2.5rem; font-size:.8rem; letter-spacing:.18em; text-transform:uppercase; color:var(--ink-soft); font-style:normal; }

/* ---- 3D Text Reveal (native, scroll-driven cylinder) ---- */
.textreveal__label{ display:block; margin-bottom:2rem; }
.textreveal__cyl{ position:relative; width:100%; margin:0; }
.textreveal__item{
  font-family:var(--serif); font-weight:300; line-height:1.12; letter-spacing:-.015em;
  font-size:clamp(1.8rem, 5.2vw, 4.2rem); color:var(--ink); text-align:center;
  max-width:22ch; margin:.18em auto; padding:0 var(--pad);
}
/* enhanced 3D mode — added by JS only when not reduced-motion */
.textreveal.is-3d{ height:280vh; padding:0; }
.textreveal.is-3d .textreveal__pin{
  position:sticky; top:0; height:100svh; overflow:hidden;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:clamp(2rem,6vh,4rem);
}
.textreveal.is-3d .textreveal__stage{ width:100%; perspective:1000px; }
.textreveal.is-3d .textreveal__cyl{ transform-style:preserve-3d; will-change:transform; }
.textreveal.is-3d .textreveal__item{
  position:absolute; inset:0; margin:0; display:grid; place-items:center;
  backface-visibility:hidden; will-change:transform, opacity, filter;
}

/* single-paragraph 3D reveal (whole quote tilts up into view) */
.textreveal.is-3d-single{ height:200vh; padding:0; }
.textreveal.is-3d-single .textreveal__pin{
  position:sticky; top:0; height:100svh; overflow:hidden;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:clamp(2rem,6vh,4rem);
}
.textreveal.is-3d-single .textreveal__stage{ width:100%; perspective:1200px; }
.textreveal.is-3d-single .textreveal__cyl{
  transform-style:preserve-3d; transform-origin:center center;
  will-change:transform, opacity, filter;
}
.textreveal.is-3d-single .textreveal__item{
  font-size:clamp(1.5rem, 3.4vw, 3rem); line-height:1.22; max-width:26ch; margin:0 auto;
}

/* =========================================================
   JOURNAL — infinite draggable gallery
   ========================================================= */
.journal{ padding-top:var(--gap-sec); padding-bottom:var(--gap-sec); }
.journal__head{ display:flex; align-items:flex-end; justify-content:space-between; flex-wrap:wrap; gap:1rem; margin-bottom:clamp(2rem,5vw,4rem); }
.journal__title{ font-family:var(--serif); font-weight:300; font-size:clamp(2rem,7vw,6rem); line-height:1; letter-spacing:-.02em; }
.journal__hint{ font-size:.72rem; letter-spacing:.18em; text-transform:uppercase; color:var(--ink-soft); }
.gallery{ overflow:hidden; cursor:grab; width:100vw; margin-left:calc(-1 * var(--pad)); padding-left:var(--pad); }
.gallery.is-dragging{ cursor:grabbing; }
.gallery__track{ display:flex; gap:clamp(1rem,2.5vw,2rem); will-change:transform; }
.card{ flex:0 0 clamp(240px,26vw,400px); }
.card__media{ aspect-ratio:9/11; overflow:hidden; }
.card__media img{ transition:transform .9s var(--ease); transform:scale(1.02); }
.card:hover .card__media img{ transform:scale(1.08); }
.card__meta{ display:flex; justify-content:space-between; margin-top:1rem; font-size:.72rem; letter-spacing:.14em; text-transform:uppercase; color:var(--ink-soft); }
.card__title{ font-family:var(--serif); font-weight:300; font-size:clamp(1.2rem,2vw,1.6rem); line-height:1.18; margin-top:.6rem; max-width:24ch; }

/* =========================================================
   CLIENTS
   ========================================================= */
.clients{ padding-top:var(--gap-sec); padding-bottom:var(--gap-sec); border-top:1px solid var(--line); }
.clients .overline{ margin-bottom:clamp(2rem,5vw,4rem); }
.clients__list{ list-style:none; display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line); border:1px solid var(--line); }
.clients__list li{ background:var(--bg); display:grid; place-items:center; padding:clamp(2.5rem,6vw,5rem) 1rem; transition:background .4s var(--ease); }
.clients__list li span{ font-family:var(--serif); font-weight:300; font-size:clamp(1.1rem,2.2vw,1.8rem); transition:color .4s var(--ease); }
.clients__list li:hover{ background:var(--bg-2); }
.clients__list li:hover span{ color:var(--accent); }
@media (max-width:760px){ .clients__list{ grid-template-columns:repeat(2,1fr); } }

/* =========================================================
   CTA
   ========================================================= */
.cta{ padding-top:var(--gap-sec); padding-bottom:var(--gap-sec); text-align:center; }
.cta .overline{ margin-bottom:2.5rem; }
.cta__title{ font-family:var(--serif); font-weight:300; font-size:clamp(2rem,6vw,5rem); line-height:1.05; letter-spacing:-.02em; max-width:18ch; margin:0 auto; }
.cta__body{ margin:2rem auto 0; max-width:48ch; color:var(--ink-soft); font-size:clamp(1rem,1.6vw,1.25rem); }
.cta__btn{
  display:inline-flex; align-items:center; gap:1rem; margin-top:clamp(2.5rem,6vw,4rem);
  padding:1.1rem 2.2rem; border:1px solid var(--ink); border-radius:60px;
  font-size:.8rem; letter-spacing:.16em; text-transform:uppercase; overflow:hidden; position:relative;
}
.cta__btn span, .cta__btn i{ position:relative; z-index:1; transition:color .5s var(--ease); }
.cta__btn i{ font-style:normal; transition:transform .5s var(--ease); }
.cta__btn::before{ content:""; position:absolute; inset:0; background:var(--ink); transform:translateY(101%); transition:transform .55s var(--ease); }
.cta__btn:hover::before{ transform:translateY(0); }
.cta__btn:hover{ color:var(--bg); }
.cta__btn:hover span, .cta__btn:hover i{ color:var(--bg); }
.cta__btn:hover i{ transform:translateX(.5rem); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer{ background:var(--ink); color:var(--bg); padding:clamp(4rem,9vw,8rem) var(--pad) 2.5rem; }
.footer__top{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:3rem; }
.footer__brand{ max-width:34ch; }
.footer__logo{ width:46px; height:auto; display:block; margin-bottom:1.2rem; filter:invert(1); } /* white logo on dark footer */
.footer__mark{ font-family:var(--serif); font-weight:300; font-size:clamp(1.8rem,4vw,3rem); }
.footer__brand p{ margin-top:1.2rem; color:rgba(239,235,227,.6); line-height:1.6; }
.footer__cols{ display:flex; gap:clamp(2rem,5vw,4rem); flex-wrap:wrap; }
.footer__cols .overline{ color:rgba(239,235,227,.45); }
.footer__cols p{ margin-top:.8rem; line-height:1.7; color:rgba(239,235,227,.8); font-size:.9rem; }
.footer__cols a{ position:relative; }
.footer__cols a::after{ content:""; position:absolute; left:0; bottom:-2px; width:100%; height:1px; background:currentColor; transform:scaleX(0); transform-origin:right; transition:transform .4s var(--ease); }
.footer__cols a:hover::after{ transform:scaleX(1); transform-origin:left; }
.footer__base{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:1rem; margin-top:clamp(4rem,10vw,7rem); padding-top:1.5rem; border-top:1px solid rgba(239,235,227,.18); font-size:.75rem; letter-spacing:.08em; color:rgba(239,235,227,.6); }

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.contact{ padding-top:clamp(9rem,18vh,15rem); padding-bottom:var(--gap-sec); }
.contact__head{ max-width:46rem; }
.contact__title{
  font-family:var(--serif); font-weight:300; line-height:.98; letter-spacing:-.02em;
  font-size:clamp(2.6rem,9vw,7rem); margin-top:1.2rem;
}
.contact__title em{ font-weight:400; font-style:italic; }
.contact__sub{ margin-top:1.8rem; color:var(--ink-soft); font-size:clamp(1.05rem,1.7vw,1.4rem); max-width:48ch; line-height:1.45; }
.contact__grid{
  display:grid; grid-template-columns:1.4fr 1fr; gap:clamp(2.5rem,6vw,6rem);
  margin-top:clamp(3.5rem,8vw,6rem); align-items:start;
}
.contact__form{ display:flex; flex-direction:column; gap:1.8rem; }
.contact__form .field{ display:flex; flex-direction:column; }
.contact__form label{ font-size:.7rem; letter-spacing:.18em; text-transform:uppercase; color:var(--ink-soft); margin-bottom:.6rem; }
.contact__form input,
.contact__form textarea{
  background:none; border:none; outline:none; color:var(--ink);
  font-family:var(--serif); font-weight:300; font-size:clamp(1.1rem,2vw,1.5rem);
  border-bottom:1px solid var(--line); padding:.2rem 0 .7rem; resize:none;
  transition:border-color .4s var(--ease);
}
.contact__form input:focus,
.contact__form textarea:focus{ border-color:var(--ink); }
.contact__form .cta__btn{ align-self:flex-start; margin-top:.6rem; }
.contact__formnote{ font-size:.85rem; color:var(--ink-soft); }
.contact__formnote a{ color:var(--ink); text-decoration:underline; text-underline-offset:3px; }
.contact__details{ display:flex; flex-direction:column; gap:2.2rem; }
.contact__detail p{ margin-top:.7rem; line-height:1.6; color:var(--ink-soft); }
.contact__detail a{ position:relative; }
.contact__detail a:hover{ color:var(--ink); }
@media (max-width:820px){ .contact__grid{ grid-template-columns:1fr; } }

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion:reduce){
  *{ animation:none !important; transition:none !important; }
  .reveal-line > span, .word-mask > span{ transform:none !important; filter:none !important; }
  .hero{ height:100svh !important; }
  .hero__seq{ transform:none !important; }
}

/* =========================================================
   WEBGL LAYER (added by the immersive upgrade)
   ========================================================= */

/* ---- Film grain ---- */
.grain{
  position:fixed; inset:-60%; z-index:7000; pointer-events:none; opacity:.05;
  mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size:170px 170px;
  animation:grain .9s steps(5) infinite;
}
@keyframes grain{
  0%{transform:translate(0,0)} 20%{transform:translate(-6%,4%)} 40%{transform:translate(4%,-5%)}
  60%{transform:translate(-3%,6%)} 80%{transform:translate(5%,3%)} 100%{transform:translate(0,0)}
}

/* ---- Material section (mouse-driven 3D gold object) ---- */
.material{
  position:relative; min-height:92vh; overflow:hidden;
  padding-top:var(--gap-sec); padding-bottom:var(--gap-sec); border-top:1px solid var(--line);
  display:grid; grid-template-columns:1fr 1fr; align-items:center; column-gap:clamp(2rem,5vw,5rem);
}
.material__canvas{ position:absolute; inset:0; width:100%; height:100%; z-index:0; }
/* left half: pale B&W mountain outline, centered in its column */
.material__mountain{
  grid-column:1; justify-self:center; align-self:center; z-index:0; pointer-events:none;
  width:clamp(240px, 30vw, 480px); height:auto; object-fit:contain;
  filter:grayscale(1) contrast(.95) brightness(1.1);
  opacity:.16; will-change:transform, opacity;
}
/* right half: copy, centered in its column */
.material__copy{ grid-column:2; justify-self:center; position:relative; z-index:1; max-width:34ch; }
@media (max-width:820px){
  /* stack top→bottom: mountain on top, copy below */
  .material{ grid-template-columns:1fr; row-gap:clamp(2rem,6vw,3.5rem); justify-items:center; text-align:center; }
  .material__mountain{ grid-column:1; width:min(62vw,340px); opacity:.14; }
  .material__copy{ grid-column:1; justify-self:center; max-width:42ch; }
  .material__body{ margin-left:auto; margin-right:auto; }
}
.material__title{
  font-family:var(--serif); font-weight:300; font-size:clamp(2rem,6vw,5rem);
  line-height:1.02; letter-spacing:-.02em; margin-top:1.4rem;
}
.material__body{ margin-top:1.4rem; color:var(--ink-soft); font-size:clamp(1rem,1.6vw,1.25rem); max-width:34ch; }

/* LogoLoop marquee pinned to the bottom of the Material section */
.material__logos{ position:absolute; left:0; right:0; bottom:clamp(2rem,6vh,4.5rem); z-index:2; }
.material__logos-label{ display:block; text-align:center; color:var(--ink-soft); margin-bottom:1.5rem; }
.material__loop{ width:100%; }
.logoloop__list, .logoloop__item{ list-style:none; }   /* kill default <li> bullets */
.ll-lockup{
  display:inline-flex; align-items:center; gap:.6rem; white-space:nowrap;
  opacity:.72; transition:opacity .3s var(--ease);
}
.logoloop__item:hover .ll-lockup{ opacity:1; }
.ll-mark{ height:20px; width:auto; display:block; }
.ll-name{
  font-family:var(--sans); font-weight:500; font-size:.9rem; letter-spacing:.12em;
  text-transform:uppercase; color:var(--ink); line-height:1;
}

/* ---- WebGL gallery (shown only when WebGL is active) ---- */
.gallery__canvas{ display:none; width:100%; height:60vh; cursor:grab; }
.gallery.is-dragging .gallery__canvas{ cursor:grabbing; }
.gallery__caption{ display:none; }
.webgl-on .gallery__canvas{ display:block; height:60vh; }
.webgl-on .gallery{ padding-left:0; }            /* full-bleed: canvas spans the whole viewport width */
.webgl-on .gallery__track{ display:none; }
.webgl-on .gallery__caption{
  display:flex; align-items:baseline; justify-content:space-between; gap:1rem; margin-top:1.6rem;
}
.webgl-on .gallery__caption .cap-title{ font-family:var(--serif); font-weight:300; font-size:clamp(1.2rem,2.2vw,1.8rem); }
.webgl-on .gallery__caption .cap-meta{ font-size:.72rem; letter-spacing:.14em; text-transform:uppercase; color:var(--ink-soft); white-space:nowrap; }

/* =========================================================
   COLOPHON — brand lockup + statement wrapping a thumb +
   recent news cards + floating accent dots (Floema footer)
   ========================================================= */
.colophon{
  padding-top:clamp(2.5rem,5vw,4.5rem);
  padding-bottom:clamp(3rem,7vw,6rem);
  border-top:1px solid var(--line);
  overflow:hidden;                       /* clip the half-visible accent dots */
}
.colophon__grid{
  display:grid;
  grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);
  gap:clamp(2rem,5vw,5.5rem);
  align-items:start;
}

/* ---- left: brand + statement ---- */
.colophon__brand{
  font-family:var(--sans); font-weight:400; line-height:1.22;
  font-size:clamp(.95rem,1.2vw,1.2rem); letter-spacing:.005em;
  margin-bottom:clamp(1rem,1.8vw,1.6rem);
}
.colophon__thumb{
  float:left;
  width:clamp(92px,11vw,160px); aspect-ratio:1/1;
  margin:.35rem clamp(1.1rem,1.8vw,1.9rem) .35rem 0;
  object-fit:cover;
  filter:grayscale(1) contrast(1.03);   /* keep the neutral, monochrome mood */
}
.colophon__statement{
  font-family:var(--serif); font-weight:300;
  font-size:clamp(1.4rem,2.6vw,2.6rem); line-height:1.18; letter-spacing:-.015em;
  text-align:left;                       /* never justify — keep word spacing natural */
}
.colophon__label{
  display:inline-flex; align-items:center; gap:.5rem;
  font-size:.8rem; letter-spacing:.16em; text-transform:uppercase; color:var(--ink-soft);
}
.colophon__label i{ font-style:normal; transition:transform .4s var(--ease); }
.colophon__label:hover i{ transform:translateY(.3rem); }
.colophon__label--add{ clear:both; margin-top:clamp(2rem,4vw,3.5rem); }

/* ---- right: recent news ---- */
.colophon__news{ position:relative; }
.colophon__news .colophon__label{ margin-bottom:clamp(1.1rem,2.2vw,1.8rem); }
.colophon__cards{
  display:grid; grid-template-columns:repeat(2,1fr); gap:clamp(.8rem,1.3vw,1.3rem);
}
.ncard{ background:var(--bg-2); display:flex; flex-direction:column; padding-bottom:1.3rem; }
.ncard__media{ aspect-ratio:1/1; overflow:hidden; }
.ncard__media img{ transform:scale(1.02); transition:transform .9s var(--ease); filter:grayscale(1) contrast(1.03); }
.ncard:hover .ncard__media img{ transform:scale(1.07); }
.ncard__title{
  font-family:var(--sans); font-weight:500; line-height:1.28; letter-spacing:-.01em;
  font-size:clamp(.92rem,1.05vw,1.08rem); color:var(--ink); margin:1rem 1rem 0;
}
.ncard__date{ margin:1.3rem 1rem 0; font-size:.78rem; color:var(--ink-soft); }

/* ---- floating accent dots (Floema's UI bubbles) ---- */
.colophon__dot{ position:absolute; border-radius:50%; z-index:3; pointer-events:none; }
.colophon__dot--yellow{
  width:clamp(46px,5vw,74px); aspect-ratio:1;
  left:calc(-1 * clamp(12px,2vw,28px)); bottom:clamp(8px,3vw,28px);
  background:#E9E36A;
}
.colophon__dot--pink{
  width:clamp(34px,3.4vw,52px); aspect-ratio:1;
  right:calc(-1 * clamp(8px,1.4vw,18px)); top:34%;
  background:#F3B6C2;
}

@media (max-width:860px){
  .colophon__grid{ grid-template-columns:1fr; gap:clamp(2.5rem,8vw,4rem); }
}
@media (max-width:520px){
  .colophon__cards{ grid-template-columns:1fr; }
}
