:root {
  --ink: #06080c;
  --ink-2: #0c1017;
  --ink-3: #141a24;
  --gold: #c9a96e;
  --gold-2: #e6cf9f;
  --ivory: #f3eee4;
  --mute: #8d8a84;
  --line: rgba(201, 169, 110, .22);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--ink); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--gold); color: var(--ink); }

/* ---------- grain + cursor ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .06;
  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='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 33%{transform:translate(-4%,3%)} 66%{transform:translate(3%,-5%)} 100%{transform:translate(0,0)} }

.cursor, .cursor-dot { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 100; border-radius: 50%; }
.cursor { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid var(--gold); transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background .4s; mix-blend-mode: difference; }
.cursor-dot { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; background: var(--gold-2); }
.cursor.is-hover { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: rgba(201,169,110,.15); }
@media (hover: none) { .cursor, .cursor-dot { display: none; } }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200; background: var(--ink);
  display: grid; place-items: center; transition: clip-path 1.2s var(--ease);
  clip-path: inset(0 0 0 0);
}
.loader.is-done { clip-path: inset(0 0 100% 0); }
.loader__inner { text-align: center; }
.loader__brand { font-family: var(--serif); font-size: clamp(42px, 8vw, 96px); letter-spacing: .32em; font-weight: 300; padding-left: .32em; }
.loader__bar { width: min(320px, 60vw); height: 1px; background: var(--line); margin: 24px auto 14px; overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .3s; }
.loader__count { font-size: 12px; letter-spacing: .3em; color: var(--gold); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px clamp(16px, 4vw, 56px);
  transition: padding .5s var(--ease), background .5s;
}
.nav.is-scrolled { padding-top: 14px; padding-bottom: 14px; background: rgba(6,8,12,.72); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav__logo { font-family: var(--serif); font-size: 26px; letter-spacing: .28em; font-weight: 500; }
.nav__logo em { color: var(--gold); font-style: normal; }
.nav__links { display: flex; gap: 34px; list-style: none; }
.nav__links a { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; position: relative; padding: 4px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; border: 1px solid var(--gold); padding: 10px 20px; color: var(--gold-2); transition: background .4s, color .4s; }
.nav__cta:hover { background: var(--gold); color: var(--ink); }
.nav__burger { display: none; background: none; border: 0; width: 34px; height: 20px; position: relative; }
.nav__burger span { position: absolute; left: 0; right: 0; height: 1px; background: var(--ivory); transition: transform .4s var(--ease), top .4s; }
.nav__burger span:first-child { top: 4px; } .nav__burger span:last-child { top: 15px; }
.nav.is-open .nav__burger span:first-child { top: 10px; transform: rotate(45deg); }
.nav.is-open .nav__burger span:last-child { top: 10px; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__veil { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 70% 40%, transparent 30%, rgba(6,8,12,.55) 80%), linear-gradient(180deg, rgba(6,8,12,.3) 0%, transparent 30%, transparent 70%, var(--ink) 100%); }
.hero__content { position: absolute; left: clamp(16px, 6vw, 96px); bottom: clamp(90px, 16vh, 170px); max-width: 720px; z-index: 2; }
.eyebrow { font-size: 11px; letter-spacing: .4em; text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 14px; }
.eyebrow::before { content: ""; width: 40px; height: 1px; background: var(--gold); }
.hero__title { font-family: var(--serif); font-weight: 300; font-size: clamp(48px, 8.4vw, 132px); line-height: .92; margin: 22px 0 26px; letter-spacing: -.01em; }
.hero__title em { font-style: italic; color: var(--gold-2); }
.line { display: block; overflow: hidden; padding-bottom: .06em; }
.line > span { display: inline-block; transform: translateY(110%); }
.hero__sub { color: #c9c4ba; max-width: 470px; font-size: 15px; opacity: 0; }
.hero__aside { position: absolute; right: clamp(16px, 4vw, 56px); bottom: clamp(90px, 16vh, 170px); text-align: right; z-index: 2; opacity: 0; }
.hero__aside small { display: block; font-size: 10px; letter-spacing: .35em; color: var(--mute); text-transform: uppercase; }
.hero__aside strong { font-family: var(--serif); font-size: 22px; font-weight: 400; color: var(--gold-2); }
.scroll-hint { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 2; font-size: 10px; letter-spacing: .4em; color: var(--mute); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.scroll-hint i { width: 1px; height: 54px; background: linear-gradient(var(--gold), transparent); animation: drip 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- sections ---------- */
section { position: relative; }
.wrap { width: min(1320px, 100% - 32px); margin: 0 auto; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 70px; flex-wrap: wrap; }
.h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 6vw, 88px); line-height: 1; margin-top: 18px; }
.h2 em { font-style: italic; color: var(--gold-2); }
.lead { max-width: 440px; color: #b9b4aa; }
.reveal { opacity: 0; transform: translateY(40px); }

/* marquee */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 26px 0; white-space: nowrap; }
.marquee__track { display: inline-flex; gap: 60px; animation: marquee 40s linear infinite; }
.marquee__track span { font-family: var(--serif); font-size: clamp(28px, 4vw, 54px); font-weight: 300; font-style: italic; color: transparent; -webkit-text-stroke: 1px rgba(230,207,159,.55); display: inline-flex; align-items: center; gap: 60px; }
.marquee__track span::after { content: "✦"; -webkit-text-stroke: 0; color: var(--gold); font-size: .4em; font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* heritage */
.heritage { padding: 160px 0 120px; }
.heritage__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 6vw, 110px); align-items: center; }
.heritage__text p { color: #c3beb4; margin-bottom: 20px; font-size: 17px; }
.heritage__text p strong { color: var(--ivory); font-weight: 500; }
.heritage__visual { position: relative; perspective: 1200px; aspect-ratio: 4 / 5; }
.tilt { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .8s var(--ease); }
.tilt__img { position: absolute; inset: 0; overflow: hidden; box-shadow: 0 60px 120px -30px rgba(0,0,0,.8); }
.tilt__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); }
.tilt__frame { position: absolute; inset: -22px; border: 1px solid var(--gold); transform: translateZ(60px); pointer-events: none; }
.tilt__badge { position: absolute; right: -30px; bottom: 40px; transform: translateZ(110px); background: var(--gold); color: var(--ink); padding: 20px 24px; font-family: var(--serif); }
.tilt__badge b { display: block; font-size: 46px; line-height: 1; font-weight: 500; }
.tilt__badge small { font-family: var(--sans); font-size: 10px; letter-spacing: .25em; text-transform: uppercase; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin-top: 120px; }
.stat { padding: 40px 24px 0; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 5vw, 76px); color: var(--gold-2); line-height: 1; display: block; }
.stat span { font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: var(--mute); }

/* projects - horizontal */
.projects { padding-top: 140px; }
.hscroll { height: 100vh; overflow: hidden; position: relative; }
.hscroll__track { display: flex; height: 100%; align-items: center; gap: 8vw; padding: 0 8vw; will-change: transform; }
.project { flex: 0 0 auto; width: min(1100px, 84vw); display: grid; grid-template-columns: 1.35fr 1fr; gap: 50px; align-items: center; }
.project__media { position: relative; perspective: 1400px; aspect-ratio: 16 / 11; }
.project__media .tilt__img img { transform: scale(1.08); transition: transform 1.4s var(--ease); }
.project:hover .project__media .tilt__img img { transform: scale(1.14); }
.project__num { position: absolute; top: -70px; left: -30px; font-family: var(--serif); font-size: 180px; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(201,169,110,.45); transform: translateZ(140px); pointer-events: none; }
.project__thumbs { position: absolute; right: -24px; bottom: -34px; display: flex; gap: 10px; transform: translateZ(90px); }
.project__thumbs img { width: 92px; height: 66px; object-fit: cover; border: 1px solid var(--line); cursor: pointer; transition: border-color .3s, transform .4s var(--ease); }
.project__thumbs img:hover { border-color: var(--gold); transform: translateY(-6px); }
.project__tag { font-size: 10px; letter-spacing: .32em; color: var(--gold); text-transform: uppercase; }
.project__title { font-family: var(--serif); font-weight: 300; font-size: clamp(38px, 4.2vw, 64px); line-height: 1; margin: 14px 0 6px; }
.project__city { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--mute); }
.project__desc { color: #bcb7ad; margin: 22px 0; font-size: 15px; }
.project__meta { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.project__meta div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.project__meta small { display: block; font-size: 10px; letter-spacing: .25em; color: var(--mute); text-transform: uppercase; }
.project__meta strong { font-weight: 500; font-size: 14px; }
.hscroll__progress { position: absolute; left: 8vw; right: 8vw; bottom: 6vh; height: 1px; background: var(--line); }
.hscroll__progress span { position: absolute; left: 0; top: 0; height: 100%; width: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); }

/* map */
.territory { padding: 160px 0 0; }
.map3d { position: relative; height: 92vh; min-height: 560px; margin-top: 10px; cursor: grab; }
.map3d:active { cursor: grabbing; }
#map-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-labels { position: absolute; inset: 0; pointer-events: none; }
.pin { position: absolute; top: 0; left: 0; pointer-events: auto; transform: translate(-50%, -100%); white-space: nowrap; display: flex; flex-direction: column; align-items: center; transition: opacity .3s; }
.pin__card { background: rgba(6,8,12,.78); backdrop-filter: blur(8px); border: 1px solid var(--line); padding: 8px 14px; text-align: center; transition: border-color .3s, transform .4s var(--ease); }
.pin:hover .pin__card, .pin.is-active .pin__card { border-color: var(--gold); transform: translateY(-6px); }
.pin__card b { font-family: var(--serif); font-weight: 500; font-size: 18px; display: block; line-height: 1.1; }
.pin__card small { font-size: 9px; letter-spacing: .25em; color: var(--gold); text-transform: uppercase; }
.pin__stem { width: 1px; height: 26px; background: linear-gradient(var(--gold), transparent); }
.pin--hq .pin__card { background: var(--gold); color: var(--ink); }
.pin--hq .pin__card small { color: var(--ink); }
.map-legend { position: absolute; left: clamp(16px, 4vw, 56px); bottom: 40px; font-size: 10px; letter-spacing: .3em; color: var(--mute); text-transform: uppercase; }
.map-sea { position: absolute; right: clamp(16px, 4vw, 56px); bottom: 40px; font-family: var(--serif); font-style: italic; font-size: 22px; color: rgba(230,207,159,.6); }

/* founder */
.founder { padding: 160px 0; }
.founder__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 6vw, 110px); align-items: center; }
.founder__photo { position: relative; aspect-ratio: 4 / 5; perspective: 1200px; }
.founder__photo .tilt__img img { object-position: center 20%; }
.honours { list-style: none; margin-top: 36px; border-top: 1px solid var(--line); }
.honours li { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; gap: 20px; align-items: baseline; color: #cfcac0; }
.honours li i { font-style: normal; font-family: var(--serif); color: var(--gold); font-size: 14px; min-width: 26px; }
.quote { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.25; margin-top: 26px; }

/* mecenat */
.mecenat { padding: 120px 0; background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mecenat__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { border: 1px solid var(--line); padding: 34px; background: linear-gradient(160deg, rgba(201,169,110,.06), transparent 60%); transition: border-color .4s, transform .6s var(--ease); transform-style: preserve-3d; }
.card:hover { border-color: var(--gold); }
.card h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.1; margin: 14px 0 12px; }
.card p { color: #b4afa5; font-size: 14px; }
.card--img { padding: 0; overflow: hidden; }
.card--img img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }

/* news */
.news { padding: 160px 0; }
.timeline { border-top: 1px solid var(--line); }
.tl { display: grid; grid-template-columns: 160px 1fr 40px; gap: 30px; padding: 30px 0; border-bottom: 1px solid var(--line); align-items: center; position: relative; overflow: hidden; }
.tl::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(201,169,110,.12), transparent); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.tl:hover::before { transform: scaleX(1); }
.tl time { font-size: 12px; letter-spacing: .25em; color: var(--gold); }
.tl h4 { font-family: var(--serif); font-weight: 400; font-size: clamp(20px, 2.2vw, 30px); line-height: 1.2; position: relative; }
.tl span { color: var(--gold); font-size: 22px; transition: transform .5s var(--ease); position: relative; }
.tl:hover span { transform: translateX(8px); }

/* contact */
.contact { padding: 160px 0 60px; text-align: center; overflow: hidden; }
.contact__big { font-family: var(--serif); font-weight: 300; font-size: clamp(54px, 11vw, 190px); line-height: .95; letter-spacing: -.02em; }
.contact__big a { display: inline-block; background: linear-gradient(90deg, var(--ivory) 0 50%, var(--gold) 50% 100%); background-size: 200% 100%; background-position: 0 0; -webkit-background-clip: text; background-clip: text; color: transparent; transition: background-position .9s var(--ease); }
.contact__big a:hover { background-position: -100% 0; }
.contact__info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 90px; text-align: left; border-top: 1px solid var(--line); padding-top: 40px; }
.contact__info small { font-size: 10px; letter-spacing: .3em; color: var(--gold); text-transform: uppercase; display: block; margin-bottom: 10px; }
.contact__info p, .contact__info a { color: #cbc6bc; font-size: 15px; display: block; }
.contact__info a:hover { color: var(--gold-2); }
footer { display: flex; justify-content: space-between; padding: 40px clamp(16px, 4vw, 56px); font-size: 11px; letter-spacing: .2em; color: var(--mute); text-transform: uppercase; border-top: 1px solid var(--line); flex-wrap: wrap; gap: 14px; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(6,8,12,.94); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .5s; }
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 90vw; max-height: 84vh; box-shadow: 0 40px 100px rgba(0,0,0,.6); transform: scale(.94); transition: transform .7s var(--ease); }
.lightbox.is-open img { transform: scale(1); }
.lightbox button { position: absolute; top: 24px; right: 30px; background: none; border: 1px solid var(--gold); color: var(--gold); width: 46px; height: 46px; border-radius: 50%; font-size: 18px; cursor: pointer; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav.is-open { bottom: 0; background: var(--ink); backdrop-filter: none; align-items: flex-start; }
  .nav.is-open .nav__links { display: flex; flex-direction: column; position: absolute; inset: 0; justify-content: center; align-items: center; gap: 30px; z-index: 0; }
  .nav__logo, .nav__burger { position: relative; z-index: 1; }
  .nav.is-open .nav__cta { display: block; position: absolute; left: 50%; bottom: 70px; transform: translateX(-50%); z-index: 1; }
  .nav.is-open .nav__links a { font-size: 18px; }
  .heritage__grid, .founder__grid { grid-template-columns: 1fr; }
  .heritage__visual { max-width: 460px; width: 100%; margin: 0 auto; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-bottom: 1px solid var(--line); padding-bottom: 30px; }
  .stat:nth-child(2) { border-right: 0; }
  .hscroll { height: auto; overflow: visible; }
  .hscroll__track { flex-direction: column; padding: 0 16px; gap: 110px; transform: none !important; }
  .hscroll__progress { display: none; }
  .project { grid-template-columns: 1fr; width: 100%; gap: 50px; }
  .project__num { font-size: 120px; top: -50px; left: -6px; }
  .project__thumbs { right: 8px; }
  .project__thumbs img { width: 70px; height: 50px; }
  .tilt__badge { right: 10px; }
  .tilt__frame { inset: -10px; }
  .mecenat__grid, .contact__info { grid-template-columns: 1fr; }
  .tl { grid-template-columns: 1fr 30px; gap: 8px 16px; }
  .tl time { grid-column: 1 / -1; }
  .hero__aside { display: none; }
  .map3d { height: 70vh; }
  .heritage, .founder, .news { padding: 90px 0; }
  .projects, .territory { padding-top: 90px; }
  .mecenat { padding: 80px 0; }
  .contact { padding: 100px 0 40px; }
  .section-head { margin-bottom: 40px; gap: 18px; }
  .stats { margin-top: 70px; }
  .stat { padding: 28px 16px; }
  .stat b { font-size: 40px; }
  .heritage__text p { font-size: 15px; }
  .hero__content { bottom: 84px; right: 16px; }
  .hero__sub { font-size: 14px; }
  .scroll-hint { display: none; }
  .marquee { padding: 16px 0; }
  .marquee__track span { font-size: 26px; }
  .founder__photo { max-width: 420px; width: 100%; margin: 0 auto; }
  .quote { font-size: 24px; }
  .honours li { font-size: 14px; padding: 13px 0; }
  .pin__card { padding: 5px 9px; }
  .pin__card b { font-size: 14px; }
  .pin__card small { display: none; }
  .pin--hq { display: none; }
  .pin__stem { height: 16px; }
  .tl { padding: 22px 0; }
  .contact__info { margin-top: 50px; gap: 26px; }
  .card { padding: 26px; }
  .lightbox button { top: 14px; right: 14px; }
  .nav { padding: 18px 16px; }
  .map-sea { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track, .grain, .scroll-hint i { animation: none; }
}
