/* ==========================================================
   BNK GROUP — BASE styles (shared by every page)
   Theme: logo navy + gold foil + warm cream
   ========================================================== */

:root {
  /* brand colours — taken from the BNK logo wall */
  --navy-950: #08121c;
  --navy-900: #0f1d2b;
  --navy-800: #172a3d;
  --navy-700: #20384f;
  --navy-600: #2d4964;
  --gold:        #c9a55c;
  --gold-light:  #ecd6a0;
  --gold-deep:   #9c7a37;
  --cream:       #f6f1e7;
  --cream-2:     #ece3d2;
  --stone:       #8b8478;
  --ink:         #13202e;

  --font-display: "Marcellus", "Cormorant Garamond", Georgia, serif;
  --font-serif:   "Cormorant Garamond", Georgia, serif;
  --font-body:    "Jost", "Segoe UI", Arial, sans-serif;

  --header-h: 76px;
  --gutter: clamp(16px, 4vw, 56px);
  --container: 1280px;
  --radius: 4px;
  --ease: cubic-bezier(.7,0,.2,1);

  /* background artwork */
  --pattern-roof: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='90' viewBox='0 0 140 90'%3E%3Cg fill='none' stroke='%23c9a55c' stroke-opacity='.07' stroke-width='1'%3E%3Cpath d='M0 60 L35 34 L70 60 L105 34 L140 60'/%3E%3Cpath d='M0 90 L35 64 L70 90 L105 64 L140 90' stroke-opacity='.04'/%3E%3Cpath d='M30 38 V30 H38 V44' stroke-opacity='.05'/%3E%3C/g%3E%3C/svg%3E");
  --pattern-grid: linear-gradient(rgba(23,42,61,.045) 1px, transparent 1px) 0 0 / 48px 48px,
                  linear-gradient(90deg, rgba(23,42,61,.045) 1px, transparent 1px) 0 0 / 48px 48px,
                  linear-gradient(rgba(23,42,61,.06) 1px, transparent 1px) 0 0 / 240px 240px,
                  linear-gradient(90deg, rgba(23,42,61,.06) 1px, transparent 1px) 0 0 / 240px 240px;
  --grain: 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%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* one section per screen */
  scroll-snap-type: y mandatory;
  scroll-padding-top: 0;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;            /* 300 (light) looked thin / blurry on screens */
  font-size: clamp(.95rem, .9rem + .2vw, 1.05rem);
  line-height: 1.65;
  color: var(--cream);
  background: var(--navy-950);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-weight: 400; margin: 0; }
::selection { background: var(--gold); color: var(--navy-900); }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--gold); color: var(--navy-900); padding: 8px 14px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.container { width: min(100% - 2*var(--gutter), var(--container)); margin-inline: auto; }

/* ==========================================================
   FULL-SCREEN SNAP SECTIONS
   ========================================================== */
.snap-section {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + clamp(12px, 3vh, 40px)) 0 clamp(28px, 5vh, 60px);
  overflow: hidden;
  isolation: isolate;
}
/* dark (navy) section */
.section--dark {
  color: var(--cream);
  background:
    radial-gradient(80% 60% at 85% 10%, rgba(64,100,134,.55), transparent 60%),
    radial-gradient(60% 50% at 0% 100%, rgba(201,165,92,.12), transparent 60%),
    var(--pattern-roof),
    linear-gradient(160deg, #24425f, #1a3249 55%, #132639);
}
/* light (cream) section — blueprint grid */
.section--light {
  color: var(--ink);
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(201,165,92,.14), transparent 60%),
    var(--pattern-grid),
    linear-gradient(180deg, var(--cream), var(--cream-2));
}
.snap-section::before {           /* film grain on every section */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--grain); pointer-events: none; opacity: .9;
}

/* gold corner brackets → every section looks like a framed page */
.frame-corners::after {
  content: ""; position: absolute; z-index: 1; pointer-events: none;
  inset: calc(var(--header-h) - 6px) clamp(10px, 2vw, 26px) clamp(10px, 2vh, 22px);
  --c: rgba(201,165,92,.55); --l: clamp(18px, 3vw, 40px);
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) 1px,
    linear-gradient(var(--c), var(--c)) top left / 1px var(--l),
    linear-gradient(var(--c), var(--c)) top right / var(--l) 1px,
    linear-gradient(var(--c), var(--c)) top right / 1px var(--l),
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) 1px,
    linear-gradient(var(--c), var(--c)) bottom left / 1px var(--l),
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) 1px,
    linear-gradient(var(--c), var(--c)) bottom right / 1px var(--l);
  background-repeat: no-repeat;
}

/* big outlined roof motif behind content */
.roof-deco {
  position: absolute; z-index: -1; pointer-events: none;
  width: clamp(320px, 55vw, 900px); aspect-ratio: 2 / 1;
  right: -8vw; bottom: -6vh;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 100'%3E%3Cg fill='none' stroke='%23c9a55c' stroke-width='.5'%3E%3Cpath d='M5 95 L100 8 L195 95'/%3E%3Cpath d='M20 95 L100 22 L180 95' stroke-opacity='.6'/%3E%3Cpath d='M35 95 L100 36 L165 95' stroke-opacity='.35'/%3E%3Cpath d='M140 45 V22 H154 V58' /%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
  opacity: .22;
}
.section--light .roof-deco { opacity: .35; }
.roof-deco--left { right: auto; left: -10vw; transform: scaleX(-1); }

/* vertical section index at left edge */
.section-index {
  position: absolute; left: clamp(10px, 2vw, 30px); top: 50%; z-index: 2;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-size: .68rem; letter-spacing: .4em; text-transform: uppercase;
  color: var(--gold);
  display: flex; align-items: center; gap: 14px;
}
.section-index::before { content: ""; width: 1px; height: 46px; background: currentColor; opacity: .6; }
.section--light .section-index { color: var(--gold-deep); }

/* ==========================================================
   TYPOGRAPHY
   ========================================================== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .74rem; font-weight: 500; letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: clamp(10px, 2vh, 20px);
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.section--light .eyebrow { color: var(--gold-deep); }

.display {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 1.3rem + 3.6vw, 5rem);
  line-height: 1.04;
  letter-spacing: -.005em;
}
.h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3.6rem);
  line-height: 1.1;
}
.h3 { font-family: var(--font-display); font-size: clamp(1.25rem, 1rem + .9vw, 1.8rem); line-height: 1.2; }
.gold-text {
  background: linear-gradient(100deg, var(--gold-deep), var(--gold-light) 40%, var(--gold) 60%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section--light .gold-text { background: linear-gradient(100deg, #8a6a2c, #b88f45 50%, #8a6a2c); -webkit-background-clip: text; background-clip: text; }
.serif-italic { font-family: var(--font-serif); font-style: italic; }
.lead { font-size: clamp(1rem, .95rem + .35vw, 1.2rem); color: rgba(246,241,231,.8); max-width: 58ch; }
.section--light .lead { color: rgba(19,32,46,.75); }
.muted { opacity: .72; }

/* ==========================================================
   BUTTONS
   ========================================================== */
.btn {
  --bg: transparent; --fg: var(--cream); --bd: rgba(201,165,92,.6);
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 15px 30px;
  border: 1px solid var(--bd); border-radius: 0;
  background: var(--bg); color: var(--fg);
  font-size: .78rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  cursor: pointer;
  transition: color .45s var(--ease), border-color .45s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--gold); transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn:hover { color: var(--navy-900); border-color: var(--gold); }
.btn { isolation: isolate; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .4s; }
.btn:hover svg { transform: translateX(4px); }

.btn--gold { --bg: linear-gradient(120deg, var(--gold-light), var(--gold) 50%, var(--gold-deep)); --fg: var(--navy-900); --bd: var(--gold); }
.btn--gold::before { background: var(--cream); }
.btn--sm { padding: 11px 20px; font-size: .7rem; }
.section--light .btn:not(.btn--gold) { --fg: var(--navy-800); --bd: rgba(156,122,55,.6); }
.section--light .btn:not(.btn--gold)::before { background: var(--navy-800); }
.section--light .btn:not(.btn--gold):hover { color: var(--cream); border-color: var(--navy-800); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(18px, 3.5vh, 36px); }

/* ==========================================================
   IMAGE FRAME (gold offset border)
   ========================================================== */
.frame {
  position: relative;
  margin: 0;
}
.frame::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  border: 1px solid var(--gold);
  transform: translate(clamp(8px, 1.2vw, 16px), clamp(8px, 1.2vw, 16px));
  transition: transform .6s var(--ease);
}
.frame:hover::before { transform: translate(0, 0); }
.frame img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.frame figcaption {
  position: absolute; z-index: 2; left: 0; bottom: 0;
  background: var(--navy-900); color: var(--gold-light);
  font-size: .68rem; letter-spacing: .25em; text-transform: uppercase; padding: 8px 14px;
}

/* shared page hero (inner pages) */
.page-hero { justify-content: flex-end; }
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: heroZoom 14s ease-out forwards; }
.page-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,18,28,.42) 0%, rgba(8,18,28,0) 26%, rgba(8,18,28,0) 52%, rgba(8,18,28,.72) 92%),
    linear-gradient(90deg, rgba(8,18,28,.55) 0%, rgba(8,18,28,.12) 55%, transparent 75%);
}
.page-hero .container { padding-bottom: clamp(10px, 5vh, 50px); }
.breadcrumb { font-size: .72rem; letter-spacing: .25em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 14px; }
.breadcrumb a { opacity: .7; } .breadcrumb a:hover { opacity: 1; }
@keyframes heroZoom { to { transform: scale(1); } }

.scroll-cue {
  position: absolute; left: 50%; bottom: clamp(14px, 3vh, 30px); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: .62rem; letter-spacing: .35em; text-transform: uppercase; color: var(--gold-light);
}
.scroll-cue span { width: 1px; height: 42px; background: linear-gradient(var(--gold), transparent); position: relative; overflow: hidden; }
.scroll-cue span::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--cream); animation: cue 1.8s infinite; }
@keyframes cue { to { top: 110%; } }

/* ==========================================================
   SECTION DOTS (right side)
   ========================================================== */
.section-dots {
  position: fixed; right: clamp(10px, 1.6vw, 26px); top: 50%; transform: translateY(-50%);
  z-index: 80; display: flex; flex-direction: column; gap: 14px;
}
.section-dots button {
  position: relative; width: 10px; height: 10px; padding: 0; cursor: pointer;
  border: 1px solid var(--gold); background: transparent; transform: rotate(45deg);
  transition: background .3s, transform .3s;
}
.section-dots button.is-active { background: var(--gold); transform: rotate(45deg) scale(1.25); }
.section-dots button span {
  position: absolute; right: 22px; top: 50%; transform: rotate(-45deg) translate(0, -50%);
  transform-origin: right center;
  white-space: nowrap; font-size: .64rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-light); background: rgba(8,18,28,.85); padding: 4px 10px;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.section-dots button:hover span { opacity: 1; }
.section-dots.on-light button { border-color: var(--gold-deep); }
.section-dots.on-light button.is-active { background: var(--gold-deep); }

/* ==========================================================
   REVEAL ANIMATIONS (base.js toggles .in-view on sections)
   ========================================================== */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 120ms + 100ms); }
[data-reveal="left"]  { transform: translateX(-50px); }
[data-reveal="right"] { transform: translateX(50px); }
[data-reveal="zoom"]  { transform: scale(.92); }
.in-view [data-reveal] { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ==========================================================
   LIGHTBOX (shared — used by gallery pages)
   ========================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(6,13,21,.94);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
  padding: 60px 70px;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 78vh; object-fit: contain; box-shadow: 0 30px 80px -20px #000; border: 1px solid rgba(201,165,92,.35); }
.lightbox__cap { margin-top: 16px; text-align: center; color: var(--gold-light); letter-spacing: .2em; text-transform: uppercase; font-size: .75rem; }
.lightbox__btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(201,165,92,.5); background: rgba(15,29,43,.7); cursor: pointer;
  display: grid; place-items: center; color: var(--gold-light);
}
.lightbox__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lightbox__btn:hover { background: var(--gold); color: var(--navy-900); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ==========================================================
   RESPONSIVE — keep one section per screen everywhere
   ========================================================== */
@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .section-index { display: none; }
}
@media (max-width: 600px) {
  .section-dots { right: 6px; gap: 11px; }
  .section-dots button { width: 7px; height: 7px; }
  .btn { padding: 13px 22px; font-size: .7rem; letter-spacing: .18em; }
  .lightbox { padding: 60px 10px 80px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 16px; transform: none; }
  .lightbox__prev { left: calc(50% - 60px); } .lightbox__next { right: calc(50% - 60px); }
}
/* very short landscape phones: let sections grow, keep snapping */
@media (max-height: 520px) and (orientation: landscape) {
  :root { --header-h: 58px; }
  .snap-section { padding-top: calc(var(--header-h) + 10px); }
  .section-dots { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* JS smooth full-page engine is active → native snap off (base.js) */
html.js-fullpage { scroll-snap-type: none; scroll-behavior: auto; }
html.js-fullpage body { overscroll-behavior-y: none; }

/* ==========================================================
   SMOOTH TYPING (base.js → [data-type])
   ========================================================== */
.typer { display: inline-block; min-width: .5em; min-height: 1.05em; white-space: nowrap; vertical-align: bottom; }
.typer .tc {
  display: inline-block;
  opacity: 0; filter: blur(8px); transform: translateY(.18em);
  transition: opacity .55s ease, filter .55s ease, transform .6s cubic-bezier(.2,.7,.2,1);
  /* each letter carries the gold gradient (vertical, so it looks seamless) */
  background: linear-gradient(180deg, #f6e7bd 0%, #dcbd7a 45%, #b48d45 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .08em;
}
.section--light .typer .tc { background: linear-gradient(180deg, #c9a55c, #9c7a37); -webkit-background-clip: text; background-clip: text; }
.typer .tc.is-in  { opacity: 1; filter: none; transform: none; }   /* 'none' (not blur(0)) → text stays razor sharp */
.typer .tc.is-out { opacity: 0; filter: blur(6px); transform: translateY(-.15em); transition-duration: .35s; }

/* ==========================================================
   LUXURY CURSOR (base.js) — desktop mouse only
   ========================================================== */
.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; z-index: 2000; pointer-events: none; border-radius: 50%; transition: opacity .3s; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--gold); }
.cursor-ring {
  width: 36px; height: 36px; margin: -18px 0 0 -18px;
  border: 1px solid rgba(201,165,92,.65);
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, border-color .35s, opacity .3s;
}
.cursor-ring.is-hot { width: 60px; height: 60px; margin: -30px 0 0 -30px; background: rgba(201,165,92,.12); border-color: var(--gold); }
.cursor-ring.is-book::after { content: "Turn"; position: absolute; inset: 0; display: grid; place-items: center; font: 500 .58rem var(--font-body); letter-spacing: .25em; text-transform: uppercase; color: var(--gold-light); }
.cursor-ring.is-book { background: rgba(15,29,43,.55); }
.is-loading .cursor-dot, .is-loading .cursor-ring { opacity: 0; }


/* ==========================================================
   LEADER PORTRAIT placeholder (shared: home + leader.php)
   ========================================================== */
.leader__mono {
  position: relative; z-index: 1; width: 100%; height: 100%;
  display: grid; place-items: center; padding: 14%;
  background:
    radial-gradient(70% 55% at 80% 10%, rgba(64,100,134,.55), transparent 60%),
    var(--pattern-roof),
    linear-gradient(160deg, #24425f, #1a3249 55%, #132639);
}
.leader__mono svg { width: 100%; height: auto; }
@media (max-width: 860px) {
  .leader__photo .leader__mono { padding: 4%; }
  .leader__photo .leader__mono svg { height: 100%; width: auto; }
}

/* ==========================================================
   FULL PHOTO (includes/fit-img.php) — posters are never cut off
   ========================================================== */
.fit-bg {
  position: absolute; inset: -8%; z-index: 0; pointer-events: none;
  background-position: center; background-size: cover;
  filter: blur(22px) brightness(.55) saturate(1.1);
  transform: translateZ(0);
}
img.fit-img {
  position: relative; z-index: 1; display: block;
  width: 100%; height: 100%; object-fit: contain !important; object-position: center;
}

/* project hero: soft background + the photo shown whole on the right */
.page-hero__bg--soft img { filter: blur(14px) brightness(.5); transform: scale(1.12); animation: none; }
.hero-poster {
  position: absolute; z-index: 0; margin: 0;
  right: max(var(--gutter, 24px), calc((100vw - 1280px) / 2));
  top: calc(var(--header-h, 76px) + 3vh); bottom: 7vh;
  width: min(42vw, 640px);
  display: flex; align-items: center; justify-content: flex-end; pointer-events: none;
}
.hero-poster img {
  display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  border: 1px solid rgba(201,165,92,.55); box-shadow: 0 30px 70px -30px rgba(0,0,0,.8);
}
@media (max-width: 1024px) { .hero-poster { width: 38vw; } }
@media (max-width: 860px) {   /* phones / tablets: poster in the empty space above the heading */
  .hero-poster {
    left: var(--gutter, 16px); right: var(--gutter, 16px); width: auto;
    top: calc(var(--header-h, 68px) + 14px); bottom: auto;
    height: clamp(140px, calc(100svh - var(--header-h, 68px) - 420px), 46vh);
    justify-content: center;
  }
}
