/* =========================================================
   Altera Group — design system
   ========================================================= */
@import url('fonts.css');

:root {
  --ink: #090909;
  --ink-2: #0f0f0f;
  --ink-3: #161616;
  --ink-4: #1f1f1f;
  --gold: #ae8431;
  --gold-hi: #d8b469;
  --gold-lo: #7d5e21;
  --gold-grad: linear-gradient(120deg, #7d5e21 0%, #ae8431 30%, #e2c27d 50%, #ae8431 70%, #7d5e21 100%);
  --cream: #f2ece0;
  --cream-2: #e8dfcd;
  --text: #ece6da;
  --muted: #9b968c;
  --dim: #6a665f;
  --line: rgba(174, 132, 49, 0.22);
  --line-soft: rgba(236, 230, 218, 0.08);
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --header-h: 84px;
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.2em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 1px solid var(--gold-hi); outline-offset: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--gold); color: var(--ink); padding: 10px 18px; font-weight: 600;
  transition: top .3s var(--ease);
}
.skip-link:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before { content: ''; width: 34px; height: 1px; background: currentColor; transform-origin: left; }
.reveal .eyebrow::before, .eyebrow.reveal::before { transform: scaleX(0); transition: transform 1s var(--ease) .2s; }
.is-in .eyebrow::before, .eyebrow.is-in::before { transform: scaleX(1); }

.display {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.9rem, 7.6vw, 6.6rem); line-height: 1.02; letter-spacing: -0.01em;
}
.h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1.05; letter-spacing: -0.01em; }
.h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(2.1rem, 4.4vw, 3.6rem); line-height: 1.1; }
.h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.2; }
.h4 { font-family: var(--sans); font-weight: 600; font-size: 1rem; letter-spacing: 0.02em; }
em, .italic { font-style: italic; }
.gold { color: var(--gold); }
.gold-text {
  background: var(--gold-grad); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: -200% center; } }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.22rem); line-height: 1.75; color: var(--text); font-weight: 300; }
.muted { color: var(--muted); }
.measure { max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
  --bg: transparent;
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  padding: 17px 30px; border: 1px solid var(--gold);
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--text); overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease), border-color .5s var(--ease);
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--gold);
  transform: translateY(101%); transition: transform .6s var(--ease);
}
.btn:hover { color: var(--ink); }
.btn:hover::before { transform: translateY(0); }
.btn .arrow { width: 18px; height: 18px; transition: transform .5s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }
.btn--solid { background: var(--gold); color: var(--ink); }
.btn--solid::before { background: var(--cream); }
.btn--ghost { border-color: var(--line); }
.btn--ghost:hover { border-color: var(--gold); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .5s var(--ease); }
.link-arrow:hover svg { transform: translateX(6px); }
.link-arrow span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); padding-bottom: 2px; }
.link-arrow:hover span { background-size: 100% 1px; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 900; background: var(--ink);
  display: grid; place-items: center;
  transition: clip-path 1.1s var(--ease-in-out);
  clip-path: inset(0 0 0 0);
}
.preloader svg { width: min(180px, 40vw); }
.preloader line { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1.1s var(--ease) forwards; }
.preloader.is-done { clip-path: inset(0 0 100% 0); }
html.no-preload .preloader { display: none; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  transition: transform .6s var(--ease), background-color .5s var(--ease), height .5s var(--ease), border-color .5s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  --header-h: 70px;
  background: rgba(9, 9, 9, 0.78); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line-soft);
}

.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; width: 168px; transition: width .5s var(--ease), opacity .3s; }
.is-scrolled .brand { width: 146px; }
.brand:hover { opacity: .85; }
.nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); }
.nav a:not(.btn) {
  position: relative; font-size: 0.76rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text);
  padding: 6px 0; transition: color .3s;
}
.nav a:not(.btn)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="page"] { color: var(--gold-hi); }
.nav .btn { padding: 12px 20px; }

.menu-toggle { display: none; width: 44px; height: 44px; position: relative; z-index: 120; }
.menu-toggle span { position: absolute; left: 10px; right: 10px; height: 1px; background: var(--text); transition: transform .5s var(--ease), opacity .3s, top .5s var(--ease); }
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 22px; right: 18px; }
.menu-toggle span:nth-child(3) { top: 28px; }
.menu-open .menu-toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 110; background: var(--ink-2);
  display: flex; flex-direction: column; justify-content: center; padding: 100px var(--gutter) 40px;
  clip-path: circle(0 at calc(100% - 42px) 42px); transition: clip-path .9s var(--ease-in-out);
  visibility: hidden;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 42px) 42px); visibility: visible; }
.mobile-menu nav a {
  display: block; font-family: var(--serif); font-size: clamp(2.4rem, 11vw, 3.6rem); line-height: 1.25; font-weight: 300;
  opacity: 0; transform: translateY(30px); transition: opacity .6s var(--ease), transform .8s var(--ease), color .3s;
}
.mobile-menu nav a:hover, .mobile-menu nav a[aria-current="page"] { color: var(--gold); }
.mobile-menu nav a .num { font-family: var(--sans); font-size: .7rem; letter-spacing: .2em; color: var(--gold); vertical-align: top; margin-right: 14px; }
.menu-open .mobile-menu nav a { opacity: 1; transform: none; }
.menu-open .mobile-menu nav a:nth-child(1) { transition-delay: .25s; }
.menu-open .mobile-menu nav a:nth-child(2) { transition-delay: .31s; }
.menu-open .mobile-menu nav a:nth-child(3) { transition-delay: .37s; }
.menu-open .mobile-menu nav a:nth-child(4) { transition-delay: .43s; }
.menu-open .mobile-menu nav a:nth-child(5) { transition-delay: .49s; }
.menu-open .mobile-menu nav a:nth-child(6) { transition-delay: .55s; }
.mobile-menu .mm-foot { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); opacity: 0; transition: opacity .6s .6s; }
.menu-open .mobile-menu .mm-foot { opacity: 1; }
.mobile-menu .mm-mark { position: absolute; right: -60px; bottom: -40px; width: 340px; opacity: .06; pointer-events: none; }
body.menu-open { overflow: hidden; }
.menu-open .site-header { z-index: 130; transform: none; background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; left: 0; top: 0; height: 2px; width: 100%; z-index: 150; background: var(--gold-grad); transform-origin: left; transform: scaleX(0); pointer-events: none; }

/* ---------- Cursor ---------- */
.cursor, .cursor-dot { position: fixed; top: 0; left: 0; z-index: 999; pointer-events: none; border-radius: 50%; opacity: 0; transition: opacity .3s; }
.cursor { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid rgba(216, 180, 105, .6); transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background-color .4s, border-color .4s, opacity .3s; }
.cursor-dot { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; background: var(--gold-hi); }
.cursor.is-hover { width: 70px; height: 70px; margin: -35px 0 0 -35px; background: rgba(174, 132, 49, .12); border-color: transparent; }
.cursor.is-down { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
html.has-cursor .cursor, html.has-cursor .cursor-dot { opacity: 1; }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(90px, 13vw, 170px) 0; }
.section--tight { padding: clamp(70px, 9vw, 120px) 0; }
.section--alt { background: var(--ink-2); }
.section--cream { background: var(--cream); color: #1a1712; }
.section--cream .muted { color: #6b6457; }
.section--cream .eyebrow { color: var(--gold-lo); }
.section-head { display: grid; gap: 22px; margin-bottom: clamp(48px, 7vw, 84px); }
.section-head--split { grid-template-columns: 1fr 1fr; align-items: end; gap: 40px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden;
  padding: calc(var(--header-h) + 40px) 0 120px;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__grid {
  position: absolute; inset: -50%;
  background-image:
    linear-gradient(45deg, var(--line-soft) 1px, transparent 1px),
    linear-gradient(-45deg, var(--line-soft) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse at 70% 45%, #000 0%, transparent 55%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 45%, #000 0%, transparent 55%);
  animation: grid-drift 40s linear infinite;
}
@keyframes grid-drift { to { transform: translate(68px, 68px); } }
.hero__glow {
  position: absolute; width: 900px; height: 900px; left: var(--mx, 70%); top: var(--my, 45%);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(174, 132, 49, .16) 0%, rgba(174, 132, 49, 0) 60%);
  transition: left 1.2s var(--ease), top 1.2s var(--ease);
}
.hero__mark { position: absolute; right: -8vw; top: 50%; width: min(58vw, 860px); transform: translateY(-50%); opacity: .85; }
@media (max-width: 1280px) { .hero__mark { right: -16vw; opacity: .45; } }
.hero__mark .mark-inner line { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.is-loaded .hero__mark .mark-inner line { animation: draw 2.4s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms + .4s); }
.hero__mark .mark-inner { transform-origin: center; animation: float 14s ease-in-out infinite; }
@keyframes float { 50% { transform: translate(-10px, 14px) rotate(-1deg); } }
.hero__content { position: relative; z-index: 2; max-width: 820px; }
.hero__content .eyebrow { margin-bottom: 30px; }
.hero__content .lead { margin: 34px 0 44px; max-width: 54ch; color: #cfc8ba; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.scroll-cue {
  position: absolute; left: var(--gutter); bottom: 34px; z-index: 2;
  display: flex; align-items: center; gap: 14px; font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
}
.scroll-cue i { position: relative; width: 1px; height: 54px; background: var(--line); overflow: hidden; }
.scroll-cue i::after { content: ''; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--gold); animation: cue 2.2s var(--ease-in-out) infinite; }
@keyframes cue { to { top: 100%; } }
.hero__meta { position: absolute; right: var(--gutter); bottom: 38px; z-index: 2; font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }

/* Split text */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(110%); transition: transform 1.2s var(--ease); transition-delay: calc(var(--d) * 70ms + var(--base, 0ms)); }
.split.is-in .w > span, .is-loaded .split.split--load .w > span { transform: none; }

/* ---------- Page hero ---------- */
.page-hero { position: relative; padding: calc(var(--header-h) + clamp(80px, 12vw, 150px)) 0 clamp(70px, 9vw, 110px); overflow: hidden; border-bottom: 1px solid var(--line-soft); }
.page-hero .hero__grid { mask-image: radial-gradient(ellipse at 80% 40%, #000 0%, transparent 60%); -webkit-mask-image: radial-gradient(ellipse at 80% 40%, #000 0%, transparent 60%); }
.page-hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.25fr .75fr; gap: 60px; align-items: end; }
.page-hero h1 { margin-top: 26px; }
.page-hero .lead { margin: 30px 0 0; color: #cfc8ba; }
.page-hero__art { position: relative; justify-self: end; width: 100%; max-width: 380px; }
.crumbs { display: flex; gap: 10px; font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--dim); margin-bottom: 18px; }
.crumbs a:hover { color: var(--gold); }
.crumbs span[aria-current] { color: var(--muted); }

/* ---------- Line-art illustrations ---------- */
.art { color: var(--gold); }
.art .draw { fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.art .draw--soft { stroke: rgba(174, 132, 49, .35); }
.art .draw--hi { stroke: var(--gold-hi); }
.art .fill-dot { fill: var(--gold-hi); }
.art .draw.face { fill: var(--art-bg, var(--ink)); }
.division:nth-of-type(even), .section--alt, .site-footer { --art-bg: var(--ink-2); }
.js .art.reveal-draw .draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease); transition-delay: calc(var(--i, 0) * 40ms); }
.js .art.reveal-draw.is-in .draw { stroke-dashoffset: 0; }
.js .art.reveal-draw .fill-dot { opacity: 0; transition: opacity .8s 1.4s; }
.js .art.reveal-draw.is-in .fill-dot { opacity: 1; }
.pulse { animation: pulse 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { 50% { opacity: .25; transform: scale(.6); } }
.spin-slow { animation: spin 60s linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes spin { to { transform: rotate(360deg); } }
.bob { animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--delay, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal--fade { transform: none; }
.js .reveal--left { transform: translateX(-40px); }
.js .reveal--scale { transform: scale(.94); }
.js .stagger > * { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.js .stagger.is-in > * { opacity: 1; transform: none; }
.js .stagger.is-in > *:nth-child(2) { transition-delay: .08s; }
.js .stagger.is-in > *:nth-child(3) { transition-delay: .16s; }
.js .stagger.is-in > *:nth-child(4) { transition-delay: .24s; }
.js .stagger.is-in > *:nth-child(5) { transition-delay: .32s; }
.js .stagger.is-in > *:nth-child(6) { transition-delay: .40s; }
.js .stagger.is-in > *:nth-child(7) { transition-delay: .48s; }
.js .stagger.is-in > *:nth-child(8) { transition-delay: .56s; }
.mask-reveal { position: relative; overflow: hidden; }
.js .mask-reveal::after { content: ''; position: absolute; inset: 0; background: var(--gold); transform: scaleX(1); transform-origin: right; transition: transform 1.2s var(--ease-in-out) .1s; }
.js .mask-reveal.is-in::after { transform: scaleX(0); }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line-soft); padding: 26px 0; overflow: hidden; background: var(--ink); }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: flex; align-items: center; gap: 40px; padding-right: 40px; font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 300; white-space: nowrap; color: var(--text); transition: color .3s; }
.marquee__item:hover { color: var(--gold-hi); }
.marquee__item svg { width: 22px; height: 22px; color: var(--gold); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Intro / statement ---------- */
.statement { font-family: var(--serif); font-weight: 300; font-size: clamp(1.9rem, 3.8vw, 3.3rem); line-height: 1.22; max-width: 22ch; }
.statement .word { color: rgba(236, 230, 218, .16); transition: color .4s; }
.statement .word.is-lit { color: var(--text); }
.statement .word.is-lit.g { color: var(--gold-hi); }
.intro-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(40px, 7vw, 110px); align-items: end; }
.intro-side p { color: var(--muted); }

/* ---------- Pillars (home) ---------- */
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.pillar {
  --sx: 50%; --sy: 50%;
  position: relative; display: flex; flex-direction: column; min-height: 520px; padding: 44px 44px 40px; background: var(--ink);
  overflow: hidden; isolation: isolate; transition: background-color .6s var(--ease);
}
.pillar::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s;
  background: radial-gradient(420px circle at var(--sx) var(--sy), rgba(174, 132, 49, .16), transparent 60%);
}
.pillar:hover::before { opacity: 1; }
.pillar__num { font-size: .7rem; letter-spacing: .3em; color: var(--gold); }
.pillar__art { height: 210px; margin: 34px 0 30px; display: grid; place-items: center; transition: transform .8s var(--ease); }
.pillar:hover .pillar__art { transform: translateY(-8px) scale(1.03); }
.pillar__art svg { height: 100%; width: auto; }
.pillar h3 { margin-bottom: 14px; }
.pillar p { color: var(--muted); font-size: .96rem; }
.pillar__list { margin: 6px 0 30px; display: grid; gap: 8px; }
.pillar__list li { display: flex; align-items: center; gap: 12px; font-size: .86rem; color: var(--text); }
.pillar__list li::before { content: ''; width: 6px; height: 6px; border: 1px solid var(--gold); transform: rotate(45deg); flex: none; }
.pillar .link-arrow { margin-top: auto; }
.pillar__corner { position: absolute; right: 22px; top: 22px; width: 36px; height: 36px; border: 1px solid var(--line); display: grid; place-items: center; transition: transform .6s var(--ease), background-color .4s, border-color .4s; }
.pillar__corner svg { width: 14px; height: 14px; color: var(--gold); transform: rotate(-45deg); transition: transform .6s var(--ease), color .3s; }
.pillar:hover .pillar__corner { background: var(--gold); border-color: var(--gold); }
.pillar:hover .pillar__corner svg { transform: rotate(0); color: var(--ink); }

/* ---------- Constellation (group diagram) ---------- */
.group-map { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.constellation { position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: center; }
.constellation svg.links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.constellation .links path { fill: none; stroke: var(--line); stroke-width: 1; }
.constellation .links path.flow { stroke: var(--gold-hi); stroke-dasharray: 4 14; animation: flow 3s linear infinite; opacity: 0; transition: opacity .4s; }
.constellation .links path.flow.is-active { opacity: 1; }
@keyframes flow { to { stroke-dashoffset: -36; } }
.c-core { position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 1px solid var(--gold); display: grid; place-items: center; background: var(--ink); }
.c-core::before, .c-core::after { content: ''; position: absolute; inset: -14px; border: 1px solid var(--line); animation: ring 4s var(--ease-in-out) infinite; }
.c-core::after { animation-delay: 2s; }
@keyframes ring { 0% { transform: scale(.85); opacity: 0; } 40% { opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
.c-core svg { width: 62%; }
.c-node {
  position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); width: 120px; transition: color .3s;
}
.c-node .dot { width: 46px; height: 46px; border: 1px solid var(--line); background: var(--ink-2); display: grid; place-items: center; transform: rotate(45deg); transition: border-color .4s, background-color .4s, transform .6s var(--ease); }
.c-node .dot svg { width: 18px; height: 18px; color: var(--gold); transform: rotate(-45deg); }
.c-node:hover, .c-node.is-active { color: var(--text); }
.c-node:hover .dot, .c-node.is-active .dot { border-color: var(--gold); background: rgba(174, 132, 49, .12); transform: rotate(45deg) scale(1.08); }
.group-list { display: grid; gap: 0; border-top: 1px solid var(--line-soft); }
.group-list li { border-bottom: 1px solid var(--line-soft); }
.group-list a { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 18px; padding: 20px 0; transition: padding .5s var(--ease), color .3s; }
.group-list a:hover, .group-list a.is-active { padding-left: 14px; color: var(--gold-hi); }
.group-list .gl-icon { width: 38px; height: 38px; border: 1px solid var(--line); display: grid; place-items: center; }
.group-list .gl-icon svg { width: 18px; height: 18px; color: var(--gold); }
.group-list .gl-name { font-family: var(--serif); font-size: 1.45rem; line-height: 1.2; }
.group-list .gl-tag { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }

/* ---------- Values ---------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.value { padding: 40px 32px 10px 0; border-right: 1px solid var(--line-soft); }
.value + .value { padding-left: 32px; }
.value:last-child { border-right: 0; }
.value .ic { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 26px; position: relative; }
.value .ic::before { content: ''; position: absolute; inset: 0; border: 1px solid var(--gold); transform: rotate(45deg); transition: transform .8s var(--ease); }
.value:hover .ic::before { transform: rotate(225deg); }
.value .ic svg { width: 22px; height: 22px; color: var(--gold); position: relative; }
.value h3 { font-family: var(--serif); font-size: 1.6rem; margin-bottom: 12px; }
.value p { color: var(--muted); font-size: .95rem; }
.section--cream .value { border-color: rgba(26, 23, 18, .1); }
.section--cream .values { border-color: rgba(125, 94, 33, .4); }
.section--cream .value .ic::before { border-color: var(--gold-lo); }
.section--cream .value .ic svg { color: var(--gold-lo); }

/* ---------- CTA band ---------- */
.cta { position: relative; overflow: hidden; padding: clamp(100px, 14vw, 190px) 0; text-align: center; border-top: 1px solid var(--line-soft); }
.cta__mark { position: absolute; left: 50%; top: 50%; width: min(1100px, 130vw); transform: translate(-50%, -50%); opacity: .07; pointer-events: none; }
.cta__mark .mark-inner { animation: spin 160s linear infinite; transform-origin: 250px 250px; }
.cta .h1 { max-width: 16ch; margin: 24px auto 26px; }
.cta p { color: var(--muted); max-width: 52ch; margin: 0 auto 42px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-2); border-top: 1px solid var(--line-soft); padding: 90px 0 36px; position: relative; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 48px; }
.footer-brand img { width: 190px; margin-bottom: 26px; }
.footer-brand p { color: var(--muted); font-size: .92rem; max-width: 34ch; }
.footer-col h4 { font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-bottom: 22px; font-weight: 600; }
.footer-col li + li { margin-top: 10px; }
.footer-col a { color: var(--muted); font-size: .92rem; transition: color .3s, padding .4s var(--ease); }
.footer-col a:hover { color: var(--text); padding-left: 6px; }
.footer-col .footer-mail { font-family: var(--serif); font-size: 1.45rem; color: var(--text); border-bottom: 1px solid var(--line); padding-bottom: 4px; transition: border-color .3s, color .3s; overflow-wrap: anywhere; }
.footer-col .footer-mail:hover { color: var(--gold-hi); border-color: var(--gold); }
.footer-bottom { margin-top: 80px; padding-top: 28px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: .78rem; color: var(--dim); }
.footer-bottom a:hover { color: var(--gold); }
.footer-giant { position: absolute; left: 50%; bottom: -0.18em; transform: translateX(-50%); font-family: var(--serif); font-weight: 300; font-size: clamp(6rem, 24vw, 22rem); letter-spacing: .08em; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(174, 132, 49, .08); pointer-events: none; white-space: nowrap; user-select: none; }
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 52px; height: 52px; display: grid; place-items: center; opacity: 0; transform: translateY(20px); transition: opacity .4s, transform .5s var(--ease); background: rgba(15, 15, 15, .8); border-radius: 50%; backdrop-filter: blur(6px); }
.to-top.is-visible { opacity: 1; transform: none; }
.to-top svg.ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.to-top svg.ring circle { fill: none; stroke-width: 1.5; }
.to-top svg.ring .track { stroke: var(--line-soft); }
.to-top svg.ring .bar { stroke: var(--gold); stroke-dasharray: 151; stroke-dashoffset: calc(151 - 151 * var(--p, 0)); }
.to-top .arr { width: 16px; height: 16px; color: var(--gold); transform: rotate(-90deg); transition: transform .4s var(--ease); }
.to-top:hover .arr { transform: rotate(-90deg) translateX(3px); }

/* ---------- Division blocks (inner pages) ---------- */
.subnav { position: sticky; top: 70px; transition: top .6s var(--ease); z-index: 50; background: rgba(9, 9, 9, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-soft); }
body:has(.site-header.is-hidden) .subnav { top: 0; }
.subnav .wrap { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a { position: relative; flex: none; padding: 18px 16px; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.subnav a::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .5s var(--ease); }
.subnav a:hover { color: var(--text); }
.subnav a.is-active { color: var(--gold-hi); }
.subnav a.is-active::after { transform: scaleX(1); }

.division { padding: clamp(90px, 12vw, 150px) 0; border-bottom: 1px solid var(--line-soft); position: relative; }
.division:nth-of-type(even) { background: var(--ink-2); }
.division__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.division--flip .division__art { order: -1; }
.division__head { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.division__badge { width: 58px; height: 58px; flex: none; position: relative; display: grid; place-items: center; }
.division__badge::before { content: ''; position: absolute; inset: 6px; border: 1px solid var(--gold); transform: rotate(45deg); }
.division__badge svg { width: 22px; height: 22px; color: var(--gold); position: relative; }
.division__kicker { font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.division h2 { margin-bottom: 26px; }
.division .lead { margin-bottom: 1.2em; }
.division p { color: var(--muted); }
.division__art { position: relative; aspect-ratio: 1 / 1; max-width: 520px; width: 100%; justify-self: center; display: grid; place-items: center; }
.division__art .frame { position: absolute; inset: 0; border: 1px solid var(--line-soft); }
.division__art .frame::before, .division__art .frame::after { content: ''; position: absolute; width: 22px; height: 22px; border: 1px solid var(--gold); }
.division__art .frame::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; }
.division__art .frame::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }
.division__art svg.art { width: 82%; height: auto; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 34px; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid var(--line); font-size: .8rem; color: var(--text); transition: border-color .3s, background-color .3s, transform .4s var(--ease); }
.chip svg { width: 16px; height: 16px; color: var(--gold); }
.chip:hover { border-color: var(--gold); background: rgba(174, 132, 49, .08); transform: translateY(-2px); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); margin-top: clamp(60px, 8vw, 90px); }
.feature { --sx: 50%; --sy: 50%; position: relative; padding: 36px 32px; background: var(--ink); overflow: hidden; isolation: isolate; }
.division:nth-of-type(even) .feature { background: var(--ink-2); }
.feature::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s; background: radial-gradient(300px circle at var(--sx) var(--sy), rgba(174, 132, 49, .14), transparent 65%); }
.feature:hover::before { opacity: 1; }
.feature .f-ic { width: 44px; height: 44px; border: 1px solid var(--line); display: grid; place-items: center; margin-bottom: 22px; transition: border-color .4s, transform .6s var(--ease); }
.feature:hover .f-ic { border-color: var(--gold); transform: translateY(-4px); }
.feature .f-ic svg { width: 20px; height: 20px; color: var(--gold); }
.feature h3 { font-family: var(--serif); font-size: 1.45rem; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: .92rem; margin: 0; }

.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.audience > div { padding-top: 22px; border-top: 1px solid var(--gold); }
.audience h4 { font-family: var(--serif); font-size: 1.35rem; font-weight: 400; margin-bottom: 8px; }
.audience p { font-size: .92rem; margin: 0; }

/* Process timeline */
.process { position: relative; margin-top: clamp(60px, 8vw, 90px); }
.process__line { position: absolute; left: 0; right: 0; top: 27px; height: 1px; background: var(--line-soft); }
.process__line i { position: absolute; inset: 0; background: var(--gold-grad); transform-origin: left; transform: scaleX(var(--p, 0)); }
.process__steps { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.step { position: relative; }
.step .s-dot { width: 54px; height: 54px; display: grid; place-items: center; position: relative; margin-bottom: 24px; }
.step .s-dot::before { content: ''; position: absolute; inset: 8px; border: 1px solid var(--line); background: var(--ink-2); transform: rotate(45deg); transition: border-color .5s, background-color .5s; }
.step.is-on .s-dot::before { border-color: var(--gold); background: #1c160a; }
.step .s-dot svg { width: 18px; height: 18px; color: var(--dim); position: relative; transition: color .5s; }
.step.is-on .s-dot svg { color: var(--gold-hi); }
.step .s-n { font-size: .66rem; letter-spacing: .3em; color: var(--gold); }
.step h4 { font-family: var(--serif); font-size: 1.3rem; font-weight: 400; margin: 6px 0 8px; }
.step p { font-size: .86rem; color: var(--muted); margin: 0; }

/* Split cards (rentals) */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 34px; }
.duo-card { position: relative; padding: 34px 30px; border: 1px solid var(--line); overflow: hidden; transition: border-color .4s, transform .6s var(--ease); }
.duo-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.duo-card svg.duo-ic { width: 30px; height: 30px; color: var(--gold); margin-bottom: 22px; }
.duo-card h4 { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; margin-bottom: 8px; }
.duo-card p { font-size: .9rem; margin: 0; }
.duo-card .ghost { position: absolute; right: -10px; bottom: -26px; font-family: var(--serif); font-size: 7rem; line-height: 1; color: rgba(174, 132, 49, .06); pointer-events: none; }

/* ---------- About ---------- */
.story-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 110px); }
.story-grid .sticky { position: sticky; top: 130px; align-self: start; }
.story-body p { color: var(--muted); font-size: 1.04rem; }
.story-body p.lead { color: var(--text); }
.story-body h3 { margin: 50px 0 18px; }
.quote { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.3; padding-left: 34px; border-left: 1px solid var(--gold); margin: 60px 0; }
.quote cite { display: block; margin-top: 18px; font-family: var(--sans); font-style: normal; font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.stats-strip { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.stats-strip > div { padding: 40px 30px; border-right: 1px solid var(--line-soft); }
.stats-strip > div:last-child { border-right: 0; }
.stats-strip strong { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; color: var(--gold-hi); margin-bottom: 10px; }
.stats-strip span { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.contact-card { padding: 40px 0; border-top: 1px solid var(--line); }
.contact-card + .contact-card { border-top: 1px solid var(--line-soft); }
.contact-card h3 { font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); font-family: var(--sans); font-weight: 600; margin-bottom: 14px; }
.contact-card .big { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.2; overflow-wrap: anywhere; }
.copy-btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.copy-btn svg { width: 15px; height: 15px; }
.copy-btn:hover { color: var(--gold); }
.copy-btn.is-copied { color: var(--gold-hi); }
.form { display: grid; gap: 30px; padding: clamp(32px, 5vw, 56px); border: 1px solid var(--line); background: linear-gradient(160deg, rgba(174, 132, 49, .05), transparent 40%), var(--ink-2); position: relative; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 24px 0 12px; color: var(--text);
  font: inherit; font-size: 1rem; border-radius: 0; outline: 0; transition: border-color .4s; appearance: none; -webkit-appearance: none;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { cursor: pointer; }
.field select option { background: var(--ink-2); color: var(--text); }
.field label { position: absolute; left: 0; top: 24px; font-size: .95rem; color: var(--muted); pointer-events: none; transition: transform .4s var(--ease), color .3s, font-size .4s var(--ease); transform-origin: left; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select + label { transform: translateY(-22px); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.field .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.field input:focus ~ .bar, .field textarea:focus ~ .bar, .field select:focus ~ .bar { transform: scaleX(1); }
.field .chev { position: absolute; right: 0; bottom: 16px; width: 14px; height: 14px; color: var(--gold); transform: rotate(90deg); pointer-events: none; }
.form__note { font-size: .82rem; color: var(--dim); margin: 0; }
.form__foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #b4553c; }
.field .err { position: absolute; right: 0; top: 0; font-size: .7rem; color: #d07a5f; opacity: 0; transition: opacity .3s; }
.field.is-invalid .err { opacity: 1; }

/* ---------- Simple prose (privacy, 404) ---------- */
.prose { max-width: 72ch; }
.prose h2 { font-family: var(--serif); font-size: 1.9rem; margin: 48px 0 14px; }
.prose p, .prose li { color: var(--muted); }
.prose ul { list-style: none; display: grid; gap: 8px; margin: 0 0 1.2em; }
.prose li { padding-left: 22px; position: relative; }
.prose li::before { content: ''; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; border: 1px solid var(--gold); transform: rotate(45deg); }
.prose a { color: var(--gold-hi); border-bottom: 1px solid var(--line); }
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 140px 0 80px; position: relative; overflow: hidden; }
.notfound .num { font-family: var(--serif); font-weight: 300; font-size: clamp(7rem, 22vw, 15rem); line-height: 1; }

/* ---------- Page transition ---------- */
.curtain { position: fixed; inset: 0; z-index: 800; background: var(--ink); pointer-events: none; transform: scaleY(0); transform-origin: bottom; transition: transform .7s var(--ease-in-out); }
.curtain.is-leaving { transform: scaleY(1); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { min-height: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: 1fr 1fr; }
  .value { border-right: 0; padding: 36px 24px 10px 0 !important; border-bottom: 1px solid var(--line-soft); }
  .process__steps { grid-template-columns: repeat(3, 1fr); row-gap: 44px; }
  .process__line { display: none; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .nav { display: none; }
  .menu-toggle { display: block; }
  .brand { width: 140px; }
  .hero__mark { right: -30vw; width: 110vw; opacity: .35; top: 58%; }
  .hero__meta { display: none; }
  .intro-grid, .group-map, .division__grid, .story-grid, .contact-grid, .section-head--split, .page-hero__inner { grid-template-columns: 1fr; }
  .division--flip .division__art { order: 0; }
  .division__art { max-width: 420px; }
  .page-hero__art { justify-self: start; max-width: 260px; }
  .story-grid .sticky { position: static; }
  .audience { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: 1fr; }
  .stats-strip div { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .subnav { top: 72px; }
}
@media (max-width: 640px) {
  .values, .feature-grid, .duo, .form__row { grid-template-columns: 1fr; }
  .process__steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }
  .pillar { padding: 36px 26px; }
  .c-node { width: 92px; font-size: .58rem; letter-spacing: .08em; }
  .c-node .dot { width: 36px; height: 36px; }
  .group-list a { grid-template-columns: 44px 1fr; }
  .group-list .gl-tag { display: none; }
  .group-list .gl-name { font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .preloader { display: none; }
  .js .reveal, .js .stagger > *, .split .w > span { opacity: 1 !important; transform: none !important; }
  .hero__mark line, .js .art.reveal-draw .draw { stroke-dashoffset: 0 !important; }
}

/* =========================================================
   Photography layer
   ========================================================= */
:root { --grade: saturate(.84) contrast(1.06) brightness(.97); }

/* ---------- Nav: stacked "Altera" labels ---------- */
.nav { gap: clamp(16px, 1.9vw, 30px); }
.nav a:not(.btn) { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; line-height: 1.15; padding: 4px 0 6px; }
.nav a .pre { font-size: .54rem; letter-spacing: .34em; color: var(--gold); margin-bottom: 3px; font-weight: 600; }
.nav a .nl { white-space: nowrap; }
.site-header .wrap { max-width: 1440px; }
@media (max-width: 1220px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
}
.menu-open .mobile-menu nav a:nth-child(7) { transition-delay: .61s; }
.mobile-menu nav a { font-size: clamp(2rem, 8.5vw, 3.2rem); }

/* ---------- Ken Burns ---------- */
.kb { position: absolute; inset: 0; overflow: hidden; }
.kb img { width: 100%; height: 100%; object-fit: cover; filter: var(--grade); transform: scale(1.12); animation: kb 20s cubic-bezier(.25,.1,.25,1) forwards; }
@keyframes kb { to { transform: scale(1); } }

/* ---------- Photo hero (inner pages) ---------- */
.photo-hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate;
  padding: calc(var(--header-h) + 90px) 0 clamp(100px, 13vh, 150px); }
.photo-hero--short { min-height: 74svh; }
.photo-hero__media { position: absolute; inset: 0; z-index: -3; }
.photo-hero__shade { position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(9,9,9,.7) 0%, rgba(9,9,9,.12) 30%, rgba(9,9,9,.35) 62%, #090909 100%),
    linear-gradient(90deg, rgba(9,9,9,.88) 0%, rgba(9,9,9,.45) 50%, rgba(9,9,9,.05) 100%); }
.photo-hero__shade::after { content: ''; position: absolute; inset: 0; background: rgba(174,132,49,.14); mix-blend-mode: multiply; }
.hero__grid--photo { z-index: -1; opacity: .55; }
.photo-hero__inner { position: relative; }
.photo-hero__inner .division__head { margin: 6px 0 0; }
.photo-hero h1 { max-width: none; margin-top: 22px; text-shadow: 0 2px 40px rgba(0,0,0,.35); }
.photo-hero .lead { color: #e2dbcd; margin: 28px 0 42px; max-width: 54ch; }
.photo-hero .crumbs { color: rgba(236,230,218,.55); }
.photo-hero__loc, .slides__cap { display: inline-flex; align-items: center; gap: 9px; font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; color: rgba(236,230,218,.78); }
.photo-hero__loc svg, .slides__cap svg { width: 14px; height: 14px; color: var(--gold); flex: none; }
.photo-hero__loc { position: absolute; right: var(--gutter); bottom: 36px; z-index: 2; }

/* ---------- Home hero slideshow ---------- */
.hero--photo { isolation: isolate; }
.slides { position: absolute; inset: 0; z-index: -3; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s var(--ease-in-out); }
.slide.is-active { opacity: 1; }
.slide .kb img { animation: none; transform: scale(1.06); transition: transform 9s linear; }
.slide.is-active .kb img { transform: scale(1.16); }
.photo-hero__shade--home { background:
    linear-gradient(180deg, rgba(9,9,9,.65) 0%, rgba(9,9,9,.15) 28%, rgba(9,9,9,.3) 70%, #090909 100%),
    linear-gradient(90deg, rgba(9,9,9,.9) 0%, rgba(9,9,9,.55) 45%, rgba(9,9,9,.1) 100%); }
.hero--photo .hero__mark { opacity: 1; }
.hero--photo .hero__glow { opacity: .6; }
.slides__ui { position: absolute; right: var(--gutter); bottom: 34px; z-index: 3; display: flex; align-items: center; gap: 28px; }
.slides__cap span { transition: opacity .5s; }
.slides__cap.is-swapping span { opacity: 0; }
.slides__dots { display: flex; gap: 8px; }
.slides__dot { width: 34px; height: 18px; display: grid; align-items: center; }
.slides__dot i { display: block; height: 2px; background: rgba(236,230,218,.25); position: relative; overflow: hidden; }
.slides__dot i::after { content: ''; position: absolute; inset: 0; background: var(--gold-hi); transform: scaleX(0); transform-origin: left; }
.slides__dot.is-active i::after { animation: dotfill 6.5s linear forwards; }
@keyframes dotfill { to { transform: scaleX(1); } }

/* ---------- Photo figures ---------- */
.ph { position: relative; margin: 0; overflow: hidden; background: var(--ink-3); }
.ph img { width: 100%; height: 100%; object-fit: cover; filter: var(--grade); transition: transform 1.6s var(--ease), filter .8s; }
.ph:hover img { transform: scale(1.05); filter: saturate(1) contrast(1.05); }
.ph::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, transparent 55%, rgba(9,9,9,.55)); }
.ph__cap { position: absolute; left: 16px; bottom: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px;
  background: rgba(9,9,9,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text); }
.ph__cap svg { width: 12px; height: 12px; color: var(--gold); }
.mask-reveal::after { z-index: 3; }

/* ---------- Company cards (home) ---------- */
.co-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.co-card { position: relative; display: block; min-height: 600px; overflow: hidden; isolation: isolate; border: 1px solid var(--line-soft); transition: border-color .6s; }
.co-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: var(--grade) brightness(.9); transform: scale(1.03); transition: transform 1.8s var(--ease), filter .8s; }
.co-card__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(9,9,9,.25) 0%, rgba(9,9,9,.15) 35%, rgba(9,9,9,.92) 100%); transition: background .8s; }
.co-card:hover { border-color: var(--gold); }
.co-card:hover .co-card__img { transform: scale(1.1); filter: saturate(1) brightness(.95); }
.co-card__num { position: absolute; left: 32px; top: 28px; font-size: .7rem; letter-spacing: .3em; color: var(--gold-hi); }
.co-card__corner { position: absolute; right: 26px; top: 22px; width: 44px; height: 44px; border: 1px solid rgba(236,230,218,.35); display: grid; place-items: center; transition: background-color .4s, border-color .4s; backdrop-filter: blur(6px); }
.co-card__corner svg { width: 16px; height: 16px; color: var(--text); transform: rotate(-45deg); transition: transform .6s var(--ease), color .3s; }
.co-card:hover .co-card__corner { background: var(--gold); border-color: var(--gold); }
.co-card:hover .co-card__corner svg { transform: rotate(0); color: var(--ink); }
.co-card__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 38px 36px; display: flex; flex-direction: column; gap: 10px; }
.co-card__pre { font-size: .62rem; letter-spacing: .4em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.co-card__name { font-family: var(--serif); font-size: clamp(2.2rem, 3.4vw, 3.1rem); line-height: 1; font-weight: 300; margin-top: -4px; }
.co-card__text { color: #d6cfc1; max-width: 42ch; font-size: .96rem; }
.co-card__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .8s var(--ease), opacity .6s; }
.co-card__list span { font-size: .72rem; padding: 6px 12px; border: 1px solid rgba(236,230,218,.25); color: var(--text); background: rgba(9,9,9,.35); }
.co-card:hover .co-card__list, .co-card:focus-visible .co-card__list { max-height: 120px; opacity: 1; }
@media (hover: none) { .co-card__list { max-height: none; opacity: 1; } }

/* ---------- Quote band ---------- */
.quote-band { position: relative; min-height: 86vh; display: grid; place-items: center; overflow: hidden; isolation: isolate; text-align: center; }
.quote-band__media { position: absolute; inset: -14% 0; z-index: -2; }
.quote-band__media img { width: 100%; height: 100%; object-fit: cover; filter: var(--grade) brightness(.98); }
.quote-band__shade { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(9,9,9,.3), rgba(9,9,9,.72) 78%), linear-gradient(180deg, #090909, transparent 22%, transparent 78%, #090909); }
.quote-band__shade::after { content: ''; position: absolute; inset: 0; background: rgba(174,132,49,.16); mix-blend-mode: multiply; }
.quote-band__q { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(2.3rem, 5.6vw, 5rem); line-height: 1.12; max-width: 17ch; margin: 26px auto 0; }

/* ---------- Malta film strip ---------- */
.film { padding: clamp(90px, 12vw, 160px) 0 clamp(70px, 9vw, 120px); overflow: hidden; }
.film__head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(44px, 6vw, 70px); }
.film__viewport { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.film__track { display: flex; align-items: center; gap: 22px; width: max-content; animation: film 90s linear infinite; }
.film__viewport:hover .film__track { animation-play-state: paused; }
@keyframes film { to { transform: translateX(calc(-50% - 11px)); } }
.film__item { position: relative; margin: 0; width: clamp(240px, 26vw, 400px); aspect-ratio: 4 / 5; overflow: hidden; flex: none; }
.film__item:nth-child(even) { aspect-ratio: 1 / 1; }
.film__item:nth-child(3n) { aspect-ratio: 3 / 4; }
.film__item img { width: 100%; height: 100%; object-fit: cover; filter: var(--grade); transition: transform 1.6s var(--ease); }
.film__item:hover img { transform: scale(1.07); }
.film__item figcaption { position: absolute; left: 14px; bottom: 12px; display: inline-flex; gap: 8px; align-items: center; padding: 7px 12px; background: rgba(9,9,9,.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; }
.film__item figcaption svg { width: 12px; height: 12px; color: var(--gold); }

/* ---------- Mosaic gallery ---------- */
.mosaic { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 88px; gap: 22px; }
.mosaic--4 .mosaic__item--1 { grid-column: 1 / 8; grid-row: 1 / 6; }
.mosaic--4 .mosaic__item--2 { grid-column: 8 / 13; grid-row: 1 / 4; }
.mosaic--4 .mosaic__item--3 { grid-column: 8 / 13; grid-row: 4 / 9; }
.mosaic--4 .mosaic__item--4 { grid-column: 1 / 8; grid-row: 6 / 9; }
.mosaic--3 .mosaic__item--1 { grid-column: 1 / 8; grid-row: 1 / 7; }
.mosaic--3 .mosaic__item--2 { grid-column: 8 / 13; grid-row: 1 / 4; }
.mosaic--3 .mosaic__item--3 { grid-column: 8 / 13; grid-row: 4 / 7; }

/* ---------- Highlights ---------- */
.hls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.hl { position: relative; padding: 42px 34px 34px; border: 1px solid var(--line-soft); overflow: hidden; transition: border-color .5s, transform .6s var(--ease); }
.hl:hover { border-color: var(--line); transform: translateY(-4px); }
.hl__n { position: absolute; right: 22px; top: 6px; font-family: var(--serif); font-size: 5.4rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(174,132,49,.28); }
.hl__ic { width: 52px; height: 52px; display: grid; place-items: center; position: relative; margin-bottom: 26px; }
.hl__ic::before { content: ''; position: absolute; inset: 4px; border: 1px solid var(--gold); transform: rotate(45deg); transition: transform .8s var(--ease); }
.hl:hover .hl__ic::before { transform: rotate(225deg); }
.hl__ic svg { width: 20px; height: 20px; color: var(--gold); position: relative; }
.hl h3 { font-family: var(--serif); font-size: 1.6rem; margin-bottom: 10px; }
.hl p { color: var(--muted); font-size: .94rem; margin: 0; }

/* ---------- Sibling company cards ---------- */
.sibs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.sib { position: relative; display: block; min-height: 430px; overflow: hidden; isolation: isolate; border: 1px solid var(--line-soft); transition: border-color .5s; }
.sib__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: var(--grade) brightness(.85); transition: transform 1.6s var(--ease); }
.sib__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(9,9,9,.1), rgba(9,9,9,.9)); }
.sib:hover { border-color: var(--gold); }
.sib:hover .sib__img { transform: scale(1.08); }
.sib__body { position: absolute; left: 30px; right: 30px; bottom: 28px; display: flex; flex-direction: column; gap: 6px; }
.sib__pre { font-size: .6rem; letter-spacing: .4em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.sib__name { font-family: var(--serif); font-size: 2.2rem; line-height: 1; font-weight: 300; }
.sib__tag { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.sib__arrow { position: absolute; right: 24px; top: 22px; width: 42px; height: 42px; border: 1px solid rgba(236,230,218,.35); display: grid; place-items: center; transition: background-color .4s, border-color .4s; }
.sib__arrow svg { width: 15px; height: 15px; transform: rotate(-45deg); transition: transform .6s var(--ease); }
.sib:hover .sib__arrow { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.sib:hover .sib__arrow svg { transform: rotate(0); }

/* ---------- Misc ---------- */
.muted-paras p { color: var(--muted); }
.feature-grid--flush { margin-top: 0; }
.duo-card--photo { padding: 0; }
.duo-card__img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: var(--grade); transition: transform 1.4s var(--ease); }
.duo-card--photo:hover .duo-card__img { transform: scale(1.04); }
.duo-card__body { padding: 30px 30px 34px; position: relative; background: var(--ink-2); }
.duo-card__body p { color: var(--muted); font-size: .92rem; margin: 0; }
.stack { position: relative; height: 470px; }
.stack__a { position: absolute; left: 0; top: 0; width: 80%; aspect-ratio: 4 / 3; }
.stack__b { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 3 / 4; outline: 8px solid var(--ink); }
.story-ph { aspect-ratio: 16 / 9; margin: 54px 0 0; }

/* ---------- Form states ---------- */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin: 0; min-height: 1.3em; font-size: .86rem; color: #d88a6f; }
.form__note a { color: var(--gold-hi); border-bottom: 1px solid var(--line); }
.form .btn[disabled] { opacity: .65; pointer-events: none; }
.form .btn.is-loading .btn__label::after { content: '…'; }
.form-done { padding: clamp(40px, 6vw, 70px); border: 1px solid var(--gold); background: linear-gradient(160deg, rgba(174,132,49,.08), transparent 50%), var(--ink-2); text-align: left; }
.form-done__ic { width: 64px; height: 64px; display: grid; place-items: center; position: relative; margin-bottom: 30px; }
.form-done__ic::before { content: ''; position: absolute; inset: 6px; border: 1px solid var(--gold); transform: rotate(45deg); animation: spin 14s linear infinite; }
.form-done__ic svg { width: 26px; height: 26px; color: var(--gold-hi); position: relative; }
.form-done h3 { margin-bottom: 12px; }

/* ---------- Responsive (photo layer) ---------- */
@media (max-width: 1080px) {
  .co-grid { grid-template-columns: 1fr; }
  .co-card { min-height: 520px; }
}
@media (max-width: 900px) {
  .sibs, .hls { grid-template-columns: 1fr; }
  .sib { min-height: 320px; }
  .film__head { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .mosaic .mosaic__item { grid-column: auto !important; grid-row: auto !important; aspect-ratio: 4 / 3; translate: none !important; }
  .photo-hero__loc { display: none; }
  .slides__ui { left: var(--gutter); right: auto; bottom: 26px; gap: 16px; }
  .slides__cap { display: none; }
  .hero--photo .scroll-cue { display: none; }
  .stack { height: auto; display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; align-items: end; }
  .stack__a, .stack__b { position: static; width: auto; outline: 0; }
}
@media (max-width: 640px) {
  .co-card { min-height: 480px; }
  .co-card__body { padding: 30px 24px 28px; }
  .co-card__shade, .sib__shade { background: linear-gradient(180deg, rgba(9,9,9,.25) 0%, rgba(9,9,9,.6) 38%, rgba(9,9,9,.96) 100%); }
  .co-card__text { color: #e6dfd2; }
  .film__item { width: 68vw; }
  .photo-hero { padding-bottom: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  .kb img, .slide .kb img { animation: none !important; transform: none !important; }
  .film__track { animation: none !important; }
  .film__viewport { overflow-x: auto; }
}
[hidden] { display: none !important; }

/* =========================================================
   v3 – one-line headings, texture, story scroll, zoom reveal, deck
   ========================================================= */
/* ---------- Headings sized to sit on one line (desktop) ---------- */
.display { font-size: clamp(2.2rem, 3.6vw, 3.7rem); line-height: 1.08; }
.h1 { font-size: clamp(2.1rem, 3.5vw, 3.6rem); line-height: 1.1; }
.h2 { font-size: clamp(1.8rem, 2.9vw, 2.9rem); line-height: 1.15; }
.h1, .h2, .display { text-wrap: balance; }
.hero__content { max-width: none; }
.hero__content .lead, .photo-hero .lead { max-width: 62ch; }
.statement { max-width: none; font-size: clamp(1.7rem, 2.8vw, 2.7rem); margin-top: 26px; }
.cta .h1 { max-width: none; }
.section-head { gap: 18px; max-width: none; }
.section-head .h2 { margin: 0; }
.section-intro { max-width: 70ch; margin: 0; }
.page-hero__inner { grid-template-columns: 1.6fr .4fr; }

/* ---------- Texture: grain + background patterns ---------- */
body::after { content: ''; position: fixed; inset: 0; z-index: 400; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.section--pattern { position: relative; isolation: isolate; overflow: clip; }
.section--pattern::before { content: ''; position: absolute; inset: -40% -20%; z-index: -2; pointer-events: none;
  background-image: linear-gradient(45deg, rgba(174,132,49,.07) 1px, transparent 1px), linear-gradient(-45deg, rgba(174,132,49,.07) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: radial-gradient(ellipse 55% 45% at 82% 30%, #000 0%, transparent 70%), radial-gradient(ellipse 40% 40% at 10% 85%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 55% 45% at 82% 30%, #000 0%, transparent 70%), radial-gradient(ellipse 40% 40% at 10% 85%, #000 0%, transparent 70%);
  animation: grid-drift 60s linear infinite; }
.section--pattern::after { content: ''; position: absolute; z-index: -1; pointer-events: none; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px;
  right: -18vw; top: -10vw; border-radius: 50%; background: radial-gradient(circle, rgba(174,132,49,.09), transparent 62%); animation: orb 26s ease-in-out infinite alternate; }
@keyframes orb { to { transform: translate(-28vw, 30vw) scale(.8); } }
.sec-art { position: absolute; z-index: -1; width: min(560px, 42vw); opacity: .09; pointer-events: none; }
.sec-art--left { left: -80px; bottom: 30px; }
.sec-art--right { right: -60px; top: 60px; }

/* ---------- Soft blends between sections ---------- */
.section--alt { background: linear-gradient(180deg, var(--ink) 0, var(--ink-2) 180px, var(--ink-2) calc(100% - 180px), var(--ink) 100%); }
.fade-bottom { position: absolute; left: 0; right: 0; bottom: 0; height: 180px; z-index: 1; pointer-events: none; background: linear-gradient(180deg, transparent, var(--ink)); }
.marquee { border-color: transparent; background: linear-gradient(90deg, transparent, rgba(174,132,49,.06) 50%, transparent); }

/* ---------- Eyebrows with icons ---------- */
.eyebrow--ic::before { display: none; }
.eb-ic { position: relative; width: 30px; height: 30px; display: inline-grid; place-items: center; flex: none; }
.eb-ic::before { content: ''; position: absolute; inset: 5px; border: 1px solid var(--gold); transform: rotate(45deg); transition: transform .9s var(--ease); }
.eyebrow--ic:hover .eb-ic::before, .is-in .eb-ic::before { transform: rotate(225deg); }
.eb-ic svg { width: 12px; height: 12px; color: var(--gold-hi); position: relative; }
.h3--ic { display: flex; align-items: center; gap: 14px; }
.h3--ic svg { width: 22px; height: 22px; color: var(--gold); flex: none; }
.contact-card h3 { display: flex; align-items: center; gap: 10px; }
.contact-card h3 svg { width: 15px; height: 15px; }
.aud-ic { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); margin-bottom: 18px; }
.aud-ic svg { width: 18px; height: 18px; color: var(--gold); }
.intro-row { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 30px; margin-top: 54px; padding-top: 34px; border-top: 1px solid var(--line-soft); }
.intro-row p { margin: 0; max-width: 78ch; }
.intro-ic { width: 56px; height: 56px; display: grid; place-items: center; position: relative; }
.intro-ic::before { content: ''; position: absolute; inset: 6px; border: 1px solid var(--gold); transform: rotate(45deg); }
.intro-ic svg { width: 20px; height: 20px; color: var(--gold); position: relative; }

/* ---------- Altera pill badge ---------- */
.apill { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 6px 12px 6px 9px; border-radius: 999px;
  border: 1px solid rgba(201,160,82,.55); background: rgba(9,9,9,.62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: .58rem; font-weight: 700; letter-spacing: .34em; text-transform: uppercase; color: #ecd39a; line-height: 1; }
.apill__mark { width: 19px; height: auto; flex: none; }
.nav a .pre { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px 3px 5px; border-radius: 999px; border: 1px solid rgba(201,160,82,.45);
  background: rgba(9,9,9,.5); color: #ecd39a; font-size: .46rem; letter-spacing: .3em; margin-bottom: 5px; }
.nav a .pre .apill__mark { width: 12px; }

/* ---------- Hero logo: full colour, animated lines ---------- */
.hero__mark svg { filter: drop-shadow(0 0 40px rgba(201,160,82,.22)); }
.mark-flow line { stroke: #fff2cf; stroke-dasharray: 22 640; stroke-dashoffset: 662; opacity: 0; mix-blend-mode: screen; filter: drop-shadow(0 0 6px rgba(241,216,152,.9)); }
.is-loaded .mark-flow line { animation: markflow 4.6s linear infinite; animation-delay: calc(3s + var(--i) * .41s); }
@keyframes markflow { 0% { stroke-dashoffset: 662; opacity: 0; } 8% { opacity: 1; } 70% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@media (max-width: 1280px) { .hero--photo .hero__mark { opacity: .55; right: -18vw; } }

/* ---------- Smooth entrances ---------- */
.js .kb img { opacity: 0; transition: opacity 1.6s var(--ease); }
.js .kb img.is-ready { opacity: 1; }
.js .hero-in { opacity: 0; transform: translateY(26px); transition: opacity 1.2s var(--ease) var(--hd, 0s), transform 1.4s var(--ease) var(--hd, 0s); }
.is-loaded .hero-in { opacity: 1; transform: none; }
.js .crumbs--in { opacity: 0; transition: opacity 1s var(--ease) .1s; }
.is-loaded .crumbs--in { opacity: 1; }
.js .curtain.is-covering { transform: scaleY(1); transform-origin: top; transition: none; }
.curtain.is-revealing { transform: scaleY(0); transform-origin: top; transition: transform 1s var(--ease-in-out); }
.photo-hero__media, .slides { transform: translate3d(0, calc(var(--hs, 0) * 26vh), 0) scale(calc(1 + var(--hs, 0) * .06)); }
.photo-hero__inner, .hero--photo .hero__content { opacity: calc(1 - var(--hs, 0) * 1.25); transform: translate3d(0, calc(var(--hs, 0) * -70px), 0); }

/* ---------- Scroll story (sticky image that changes as you read) ---------- */
.story { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 100px); }
.story__step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; padding: 30px 0; opacity: .28; transition: opacity .7s var(--ease); position: relative; }
.story__step.is-active { opacity: 1; }
.story__step:first-child { min-height: 60vh; }
.story__n { font-family: var(--serif); font-size: 5rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(174,132,49,.45); margin-bottom: 8px; }
.story__ic { width: 50px; height: 50px; display: grid; place-items: center; position: relative; margin-bottom: 22px; }
.story__ic::before { content: ''; position: absolute; inset: 5px; border: 1px solid var(--gold); transform: rotate(45deg); transition: transform 1s var(--ease); }
.story__step.is-active .story__ic::before { transform: rotate(225deg); background: rgba(174,132,49,.12); }
.story__ic svg { width: 19px; height: 19px; color: var(--gold-hi); position: relative; }
.story__step h3 { margin-bottom: 12px; }
.story__step p { color: var(--muted); max-width: 46ch; margin: 0; font-size: 1.02rem; }
.story__media { position: relative; }
.story__frame { position: sticky; top: 14vh; height: 72vh; overflow: hidden; border: 1px solid var(--line-soft); background: var(--ink-3); }
.story__img { position: absolute; inset: 0; clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--ease-in-out); }
.story__img.is-active { clip-path: inset(0 0 0 0); z-index: 2; }
.story__img.was-active { clip-path: inset(0 0 0 0); z-index: 1; }
.story__img img { width: 100%; height: 100%; object-fit: cover; filter: var(--grade); transform: scale(1.12); transition: transform 2.2s var(--ease); }
.story__img.is-active img { transform: scale(1); }
.story__frame::after { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(180deg, transparent 60%, rgba(9,9,9,.5)); }
.story__dots { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); z-index: 4; display: grid; gap: 10px; }
.story__dots i { width: 2px; height: 26px; background: rgba(236,230,218,.3); transition: background .4s, height .4s; }
.story__dots i.is-active { background: var(--gold-hi); height: 40px; }
.story__mobile-img { display: none; }

/* ---------- Zoom reveal ---------- */
.zoom { position: relative; height: 230vh; }
.zoom__sticky { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; overflow: hidden; }
.zoom__frame { position: absolute; inset: 0; --zi: calc(1 - var(--p, 0));
  clip-path: inset(calc(var(--zi) * 20%) calc(var(--zi) * 28%) calc(var(--zi) * 20%) calc(var(--zi) * 28%) round calc(var(--zi) * 18px)); }
.zoom__frame img { width: 100%; height: 100%; object-fit: cover; filter: var(--grade); transform: scale(calc(1.3 - var(--p, 0) * .3)); }
.zoom__shade { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(9,9,9,.35), rgba(9,9,9,.8)); opacity: calc(.2 + var(--p, 0) * .8); }
.zoom__shade::after { content: ''; position: absolute; inset: 0; background: rgba(174,132,49,.14); mix-blend-mode: multiply; }
.zoom__text { position: relative; z-index: 2; text-align: center; padding: 0 var(--gutter); opacity: var(--tp, 0); transform: translateY(calc((1 - var(--tp, 0)) * 50px)); }
.zoom__q { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(2rem, 3.8vw, 3.6rem); line-height: 1.15; margin: 26px auto 0; }
.zoom__sub { color: #ddd5c6; max-width: 56ch; margin: 18px auto 0; }

/* ---------- Malta deck: horizontal, overlapping cards ---------- */
.deck { position: relative; height: 340vh; }
.deck__sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.deck__head { margin-bottom: clamp(30px, 5vh, 60px); }
.deck__track { display: flex; align-items: center; padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); padding-right: 30vw; transform: translate3d(var(--x, 0px), 0, 0); will-change: transform; }
.deck__card { position: relative; flex: none; margin: 0 -3.5vw 0 0; width: clamp(260px, 28vw, 440px); height: clamp(300px, 50vh, 540px); overflow: hidden;
  border: 1px solid rgba(236,230,218,.14); background: var(--ink-3); box-shadow: -34px 0 60px rgba(0,0,0,.6);
  transform: translate3d(0, var(--y, 0px), 0) rotate(var(--r, 0deg)) scale(var(--s, 1)); z-index: var(--k); }
.deck__card img { width: 100%; height: 100%; object-fit: cover; filter: var(--grade); transition: transform 1.4s var(--ease), filter .6s; }
.deck__card:hover img { transform: scale(1.06); filter: saturate(1); }
.deck__card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(9,9,9,.5)); pointer-events: none; }
.deck__progress { height: 1px; background: var(--line-soft); margin-top: clamp(30px, 5vh, 56px); position: relative; overflow: hidden; }
.deck__progress i { position: absolute; inset: 0; background: var(--gold-grad); transform-origin: left; transform: scaleX(var(--dp, 0)); }

/* ---------- Footer credit ---------- */
.dev-by { display: inline-flex; align-items: center; gap: 12px; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.dev-by img { width: 130px; opacity: .7; transition: opacity .3s; }
.dev-by:hover img { opacity: 1; }
.footer-bottom { align-items: center; }

/* ---------- Responsive (v3) ---------- */
@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; }
  .story__media { display: none; }
  .story__step, .story__step:first-child { min-height: 0; opacity: 1; padding: 34px 0; border-top: 1px solid var(--line-soft); }
  .story__mobile-img { display: block; margin: 22px 0 0; aspect-ratio: 4 / 3; overflow: hidden; }
  .story__mobile-img img { width: 100%; height: 100%; object-fit: cover; filter: var(--grade); }
  .zoom { height: 170vh; }
  .deck { height: auto; padding: clamp(80px, 12vw, 120px) 0; }
  .deck__sticky { position: static; height: auto; overflow: visible; }
  .deck__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .deck__viewport::-webkit-scrollbar { display: none; }
  .deck__track { transform: none !important; padding-right: var(--gutter); gap: 14px; }
  .deck__card { margin: 0; width: 78vw; height: 62vw; transform: none !important; box-shadow: none; scroll-snap-align: center; }
  .deck__progress { display: none; }
  .intro-row { grid-template-columns: 1fr; gap: 18px; }
  .intro-ic { display: none; }
  .sec-art { opacity: .05; width: 70vw; }
  .page-hero__inner { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .mark-flow { display: none; }
  .js .kb img, .js .hero-in, .js .crumbs--in { opacity: 1 !important; transform: none !important; }
  .story__img { transition: none; }
  .section--pattern::before, .section--pattern::after { animation: none; }
}
/* hero mark placement: lower right, clear of the one-line headline */
.hero--photo .hero__mark { right: 4vw; top: 66%; width: min(34vw, 540px); opacity: 1; }
@media (max-width: 1280px) { .hero--photo .hero__mark { right: 3vw; width: min(32vw, 420px); opacity: .9; } }
@media (max-width: 900px) { .hero--photo .hero__mark { right: -12vw; top: 72%; width: 70vw; opacity: .35; } }
.footer-bottom { padding-right: 76px; }

/* ---------- Featured project ---------- */
.featured__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.featured__media { position: relative; max-width: 520px; width: 100%; justify-self: center; }
.featured__frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 60px 120px -50px rgba(0,0,0,.9); }
.featured__frame::before, .featured__frame::after { content: ''; position: absolute; z-index: 2; width: 28px; height: 28px; border: 1px solid var(--gold); pointer-events: none; }
.featured__frame::before { left: 12px; top: 12px; border-right: 0; border-bottom: 0; }
.featured__frame::after { right: 12px; bottom: 12px; border-left: 0; border-top: 0; }
.featured__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transition: transform 2s var(--ease); }
.featured__frame:hover .featured__img { transform: scale(1.04); }
.featured__badge { position: absolute; left: -18px; bottom: 34px; z-index: 3; display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px;
  background: rgba(9,9,9,.85); border: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: .64rem; letter-spacing: .24em; text-transform: uppercase; color: var(--text); animation: bob 6s ease-in-out infinite; }
.featured__facts { display: grid; gap: 0; margin: 30px 0 38px; border-top: 1px solid var(--line-soft); }
.featured__facts li { display: grid; grid-template-columns: 44px 120px 1fr; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.ff-ic { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); }
.ff-ic svg { width: 16px; height: 16px; color: var(--gold); }
.ff-k { font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.ff-v { font-family: var(--serif); font-size: 1.35rem; }
.co-card__img[src*="marina-court"], .sib__img[src*="marina-court"] { object-position: 50% 32%; }
@media (max-width: 900px) {
  .featured__grid { grid-template-columns: 1fr; }
  .featured__badge { left: 10px; }
  .featured__facts li { grid-template-columns: 40px 1fr; }
  .featured__facts .ff-v { grid-column: 2; }
}


/* =========================================================
   v4 – one continuous ambient backdrop (no section seams)
   ========================================================= */
html { background: var(--ink); }
body { background: transparent; }
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.amb-lattice { position: absolute; inset: -30% -10%;
  background-image: linear-gradient(45deg, rgba(174,132,49,.06) 1px, transparent 1px), linear-gradient(-45deg, rgba(174,132,49,.06) 1px, transparent 1px);
  background-size: 84px 84px;
  transform: translate3d(0, calc(var(--sy, 0) * -0.04px), 0);
  mask-image: radial-gradient(ellipse 70% 55% at 75% 35%, #000, transparent 72%), radial-gradient(ellipse 50% 45% at 15% 80%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 75% 35%, #000, transparent 72%), radial-gradient(ellipse 50% 45% at 15% 80%, #000, transparent 70%); }
.amb-orb { position: absolute; border-radius: 50%; width: 70vmax; height: 70vmax; }
.amb-orb--1 { right: -25vmax; top: -20vmax; background: radial-gradient(circle, rgba(174,132,49,.16), transparent 60%); animation: amb1 34s ease-in-out infinite alternate; }
.amb-orb--2 { left: -30vmax; bottom: -35vmax; background: radial-gradient(circle, rgba(201,160,82,.11), transparent 60%); animation: amb2 42s ease-in-out infinite alternate; }
.amb-orb--3 { left: 30vw; top: 35vh; width: 45vmax; height: 45vmax; background: radial-gradient(circle, rgba(120,90,40,.10), transparent 62%); animation: amb3 28s ease-in-out infinite alternate; }
@keyframes amb1 { to { transform: translate(-30vw, 40vh) scale(.85); } }
@keyframes amb2 { to { transform: translate(35vw, -30vh) scale(1.1); } }
@keyframes amb3 { to { transform: translate(-25vw, -20vh) scale(1.2); } }
.amb-mark { position: absolute; right: -14vw; top: 50%; width: 70vw; max-width: 1200px; opacity: .045;
  transform: translate3d(0, calc(-50% + var(--sy, 0) * -0.06px), 0) rotate(calc(var(--sy, 0) * 0.004deg)); }
.amb-mark .mark-inner { animation: spin 240s linear infinite; transform-origin: 250px 250px; }
.amb-sweep { position: absolute; inset: -50% -50%; background: linear-gradient(115deg, transparent 45%, rgba(241,216,152,.035) 50%, transparent 55%); animation: sweep 16s ease-in-out infinite; }
@keyframes sweep { 0% { transform: translateX(-40%); } 100% { transform: translateX(40%); } }
.amb-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,.55) 100%); }

/* sections become see-through over the backdrop */
.section--pattern::before, .section--pattern::after { content: none; }
.section--pattern { overflow: visible; }
.section--alt { background: transparent; }
.section--alt::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: rgba(236,230,218,.018);
  mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent); }
.section--alt { position: relative; isolation: isolate; }
.marquee { background: transparent; }
.site-footer { background: linear-gradient(180deg, rgba(12,12,12,.55), rgba(10,10,10,.92) 220px); }
.feature, .division:nth-of-type(even) .feature { background: rgba(14,14,14,.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hl, .contact-card { background: rgba(14,14,14,.35); }
.contact-card { padding-left: 26px; padding-right: 26px; }
.form { background: linear-gradient(160deg, rgba(174,132,49,.07), transparent 45%), rgba(14,14,14,.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* photo sections dissolve into the backdrop instead of ending in a line */
.photo-hero__media, .slides { mask-image: linear-gradient(180deg, #000 62%, transparent 100%); -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%); }
.photo-hero__shade, .photo-hero__shade--home { background:
    linear-gradient(180deg, rgba(9,9,9,.7) 0%, rgba(9,9,9,.12) 30%, rgba(9,9,9,.35) 62%, rgba(9,9,9,0) 100%),
    linear-gradient(90deg, rgba(9,9,9,.88) 0%, rgba(9,9,9,.45) 50%, rgba(9,9,9,.05) 100%); }
.fade-bottom { display: none; }
.zoom__frame img, .zoom__shade { mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%); -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%); }
@media (max-width: 900px) { .amb-mark { display: none; } .amb-orb { width: 110vmax; height: 110vmax; } }
@media (prefers-reduced-motion: reduce) { .amb-orb, .amb-sweep, .amb-mark .mark-inner { animation: none; } }
