/* ============ TOKENS ============ */
:root {
  --ink: #1A2421;            /* deep navy-black — header, menus, dark sections, text */
  --ink-2: #222e2a;
  --paper: #FFFFFF;          /* pure white — breathing-space sections */
  --paper-2: #ECECEC;        /* pills & cards */
  --grey: #F5F5F5;           /* very light grey — project detail sections */
  --gold: #800020;        /* burgundy — key buttons & main headings */
  --gold-2: #E8C4CC;      /* soft burgundy tint — accent on dark backgrounds */
  --gold-grad: linear-gradient(135deg, #a3213d 0%, #800020 55%, #5e0018 100%);
  --olive: #4A5D23;       /* olive — secondary sections & photo frames */
  --line-dark: rgba(245, 245, 245, .16);
  --line-light: rgba(26, 36, 33, .14);
  --muted-dark: rgba(245, 245, 245, .62);
  --muted-light: rgba(26, 36, 33, .6);
  --sans: "Archivo", "Tajawal", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, p, figure, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }

.wrap { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; display: flex; flex-direction: column; align-items: center; }

.dark { background: var(--ink); color: var(--paper); }
.light { background: var(--paper); color: var(--ink); }

section { padding: clamp(80px, 12vw, 160px) 0; position: relative; }

/* ============ TYPE ============ */
.display {
  font-family: var(--sans);
  font-weight: 800;
  font-stretch: 78%;
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: -.005em;
  font-size: clamp(40px, 9.2vw, 132px);
}
.display-sm {
  font-weight: 800;
  font-stretch: 78%;
  text-transform: uppercase;
  line-height: .92;
  font-size: clamp(36px, 4.6vw, 60px);
}
.serif { font-family: var(--serif); font-weight: 400; font-style: normal; }
.eyebrow { font-size: clamp(20px, 2vw, 26px); margin-bottom: 6px; opacity: .8; }
.kicker {
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  opacity: .62; margin-bottom: 18px;
}
.lead { max-width: 640px; font-size: 16px; line-height: 1.7; margin-top: 56px; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 28px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  white-space: nowrap;
}
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-sm { height: 42px; padding: 0 22px; font-size: 11.5px; }
.btn-wide { width: 100%; justify-content: space-between; }
.btn-outline { border: 1px solid currentColor; }
.dark .btn-outline:hover, .header .btn-outline:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-outline-dark { border: 1px solid var(--ink); margin-top: 40px; }
.btn-outline-dark:hover { background: var(--ink); color: var(--paper); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #26332f; }

.pill {
  display: inline-flex; align-items: center; height: 38px; padding: 0 20px; border-radius: 999px;
  background: var(--paper-2); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  transition: background .3s, color .3s;
}
.pill:hover, .pill.is-active { background: var(--ink); color: var(--paper); }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 40px; }

/* ============ MEDIA PLACEHOLDERS ============ */
.media { position: relative; overflow: hidden; background: #26332f; }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
.media.is-missing img { opacity: 0; }
.media.is-missing::after {
  content: "Image"; position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--serif); font-size: 18px; color: rgba(245,245,245,.35);
  background:
    linear-gradient(135deg, rgba(255,255,255,.04) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.04) 50%, rgba(255,255,255,.04) 75%, transparent 75%) 0 0 / 24px 24px,
    #2e3b44;
}

/* ============ HEADER ============ */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 18px var(--gutter);
  color: var(--paper);
  transition: background .4s var(--ease), padding .4s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(26, 36, 33, .86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding-top: 12px; padding-bottom: 12px;
  border-bottom-color: rgba(232, 196, 204, .22);
}
.menu-open .header { background: transparent; border-bottom-color: transparent; }
.menu-btn { display: inline-flex; align-items: center; gap: 14px; justify-self: start; }
.menu-lines { width: 30px; height: 10px; position: relative; display: block; }
.menu-lines i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.menu-lines i:first-child { top: 0; }
.menu-lines i:last-child { top: 8px; }
.menu-open .menu-lines i:first-child { top: 4px; transform: rotate(45deg); }
.menu-open .menu-lines i:last-child { top: 4px; transform: rotate(-45deg); }
.menu-label { font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.logo { font-weight: 800; font-stretch: 78%; font-size: 24px; letter-spacing: .01em; }
.header-cta { justify-self: end; }

/* ============ MENU OVERLAY ============ */
.menu {
  position: fixed; inset: 0; z-index: 55; background: var(--ink);
  display: flex; flex-direction: column; justify-content: center;
  padding: 100px var(--gutter) 40px;
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease);
}
.menu-open .menu { clip-path: inset(0 0 0 0); }
.menu-list li { overflow: hidden; }
.menu-list a {
  display: flex; align-items: baseline; gap: 18px;
  font-weight: 800; font-stretch: 78%; text-transform: uppercase;
  font-size: clamp(40px, 7vw, 92px); line-height: 1;
  transform: translateY(105%); transition: transform .7s var(--ease), opacity .3s;
}
.menu-list a span { font-size: 13px; font-weight: 500; opacity: .5; font-stretch: 100%; }
.menu-list a:hover { opacity: .55; }
.menu-open .menu-list a { transform: none; }
.menu-open .menu-list li:nth-child(2) a { transition-delay: .04s; }
.menu-open .menu-list li:nth-child(3) a { transition-delay: .08s; }
.menu-open .menu-list li:nth-child(4) a { transition-delay: .12s; }
.menu-open .menu-list li:nth-child(5) a { transition-delay: .16s; }
.menu-open .menu-list li:nth-child(6) a { transition-delay: .2s; }
.menu-open .menu-list li:nth-child(7) a { transition-delay: .24s; }
.menu-foot {
  display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 48px;
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-dark);
}
.menu-open { overflow: hidden; }

/* ============ HERO ============ */
.hero { min-height: 100svh; padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: #1A2421; }
.hero-bg { background: radial-gradient(ellipse at 50% 40%, #26332f 0%, #1A2421 70%); }
.hero-bg img {
  position: absolute; left: 50%; bottom: 0; width: auto; height: 96%; max-width: none;
  object-fit: contain; object-position: center bottom;
  filter: grayscale(1) contrast(1.08) brightness(.9);
  transform: translateX(-50%) scale(1.06); transform-origin: center bottom;
  animation: heroZoom 2.4s var(--ease) forwards;
}
.hero-bg::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(26,36,33,.35) 0%, rgba(26,36,33,.45) 50%, rgba(26,36,33,.92) 100%);
}
@media (max-width: 640px) { .hero-bg img { height: 78%; } }
.hero-bg.is-missing::after { display: none; }
@keyframes heroZoom { to { transform: translateX(-50%) scale(1); } }
.hero-inner {
  position: relative; z-index: 2; flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 120px var(--gutter) 40px;
}
.hero-stat strong { display: block; font-weight: 800; font-stretch: 78%; font-size: clamp(36px, 4.4vw, 56px); line-height: 1; }
.hero-stat em { display: block; font-size: clamp(20px, 2.2vw, 28px); opacity: .85; margin-top: 4px; }
.hero-title { margin: 36px 0 44px; font-size: clamp(38px, 12.5vw, 160px); }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .02em; }
.hero-title .line > span { display: block; transform: translateY(105%); animation: lineUp 1.1s var(--ease) forwards; }
.hero-title .line:nth-child(2) > span { animation-delay: .12s; }
@keyframes lineUp { to { transform: none; } }
.hero-foot {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 20px;
  padding: 0 var(--gutter) 28px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
.hero-foot .right { text-align: right; }
.scroll-cue span { display: inline-block; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }

/* ============ STORY ============ */
.story { padding-bottom: 120px; overflow: hidden; }
.strip {
  display: grid; grid-template-columns: 1.1fr 1.5fr 1.05fr 1.3fr 1fr; gap: 16px; align-items: start;
  margin-top: 100px; padding: 0 0 0 0; width: 106%; margin-left: -3%;
}
.strip .media { border-radius: 2px; }
.strip .s1 { aspect-ratio: 3/4.6; margin-top: 0; }
.strip .s2 { aspect-ratio: 4/3.5; margin-top: 40px; }
.strip .s3 { aspect-ratio: 3/5; margin-top: -10px; }
.strip .s4 { aspect-ratio: 4/3.6; margin-top: 10px; }
.strip .s5 { aspect-ratio: 3/4.8; margin-top: 60px; }

/* ============ VENTURES / PROJECTS ============ */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 44px; }
.tab {
  height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line-dark);
  font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  transition: background .3s, color .3s, border-color .3s;
}
.tab:hover { border-color: var(--paper); }
.tab.is-active { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.panels { margin-top: 56px; display: grid; }
.panel {
  grid-area: 1 / 1; display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start;
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), visibility .6s;
}
.panel.is-active { opacity: 1; visibility: visible; transform: none; }
.panel-img { aspect-ratio: 4/3.4; border-radius: 2px; }
.panel-body { padding-top: 8px; }
.tag { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .6; margin-bottom: 16px; }
.panel-body h3 { margin-bottom: 20px; }
.panel-body > p { color: var(--muted-dark); max-width: 460px; margin-bottom: 36px; }
.kv { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.kv dt { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .6; }
.kv dd { font-weight: 800; font-stretch: 78%; font-size: 22px; }
.ticks { margin: 0 0 36px; }
.ticks li { padding: 14px 0; border-bottom: 1px solid var(--line-dark); font-size: 14px; }

/* ============ NUMBERS ============ */
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 44px); margin-top: 80px; }
.col-title { font-weight: 800; font-stretch: 78%; text-transform: uppercase; font-size: clamp(26px, 2.6vw, 36px); line-height: 1; }
.col-sub { font-size: 20px; color: var(--muted-light); padding-bottom: 16px; border-bottom: 1.5px solid var(--ink); margin-top: 4px; }
.rows li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-light); font-size: 13.5px; min-height: 64px; }
.rows b { font-weight: 800; font-stretch: 78%; font-size: clamp(20px, 2vw, 26px); white-space: nowrap; }
.rows i { font-style: normal; }

/* ============ EXPERTISE ============ */
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.cards4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 64px; }
.xcard .media { aspect-ratio: 4/3.6; border-radius: 2px; margin-bottom: 20px; }
.xcard .media img { transition: transform 1s var(--ease); }
.xcard:hover .media img { transform: scale(1.05); }
.xcard-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.xcard-head h3 { font-weight: 800; font-stretch: 78%; text-transform: uppercase; font-size: 28px; line-height: 1; }
.xcard-head span { font-size: 11px; opacity: .5; }
.xcard p { color: var(--muted-dark); font-size: 13.5px; max-width: 300px; }

/* ============ JOURNEY ============ */
.timeline { margin-top: 80px; max-width: 1100px; }
.timeline li {
  display: grid; grid-template-columns: 220px 1fr; gap: 32px;
  padding: 32px 0; border-top: 1px solid var(--line-light);
}
.timeline li:last-child { border-bottom: 1px solid var(--line-light); }
.t-date { font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .6; padding-top: 8px; }
.timeline h3 { font-weight: 800; font-stretch: 78%; text-transform: uppercase; font-size: clamp(26px, 3vw, 40px); line-height: 1; }
.t-org { font-family: var(--serif); font-size: 21px; color: var(--muted-light); margin: 6px 0 12px; }
.timeline p:last-child { max-width: 680px; color: rgba(26,36,33,.78); }
.edu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 64px; max-width: 1100px; }
.edu > div { background: var(--paper-2); border-radius: 14px; padding: 28px; }
.edu .kicker { margin-bottom: 26px; display: block; }
.edu h4 { font-weight: 800; font-stretch: 78%; text-transform: uppercase; font-size: 22px; line-height: 1.05; margin-bottom: 8px; }
.edu p { font-family: var(--serif); font-size: 19px; color: var(--muted-light); }

/* ============ COLLABS ============ */
.collabs { overflow: hidden; padding-bottom: 120px; }
.marquee { overflow: hidden; margin-top: 64px; white-space: nowrap; }
.marquee + .marquee { margin-top: 18px; }
.marquee-track { display: inline-flex; animation: marquee 38s linear infinite; }
.marquee-rev .marquee-track { animation-direction: reverse; animation-duration: 44s; }
.marquee span {
  font-weight: 800; font-stretch: 78%; text-transform: uppercase; font-size: clamp(40px, 5.6vw, 80px); line-height: 1.05;
  padding: 0 28px; display: inline-flex; align-items: center; gap: 56px;
}
.marquee span::after { content: "•"; font-size: .4em; }
.marquee.muted span { color: rgba(245,245,245,.4); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ GALLERY ============ */
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.gallery { margin-top: 64px; columns: 3 280px; column-gap: 16px; }
.g-item { break-inside: avoid; margin-bottom: 16px; cursor: zoom-in; position: relative; display: block; width: 100%; text-align: left; }
.g-item .media { border-radius: 2px; }
.g-item img, .g-item video { height: auto; transition: transform 1s var(--ease); }
.g-item:hover img, .g-item:hover video { transform: scale(1.04); }
.g-item .media.is-missing { aspect-ratio: 4/3; }
.g-cap { display: flex; justify-content: space-between; gap: 12px; padding: 10px 2px 6px; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.g-cap span:last-child { opacity: .5; }
.g-play {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  height: 32px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(26,36,33,.7); color: var(--paper); font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.g-item.is-hidden { display: none; }
.gallery-empty { column-span: all; text-align: center; padding: 60px 0; font-family: var(--serif); font-size: 22px; color: var(--muted-light); }

/* ============ SERVICES (stacked sticky cards) ============ */
.stack { margin-top: 64px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.scard {
  position: sticky; top: 96px;
  background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: 18px;
  padding: clamp(24px, 3vw, 40px); max-width: 760px;
  display: grid; gap: 22px; min-width: 0;
  box-shadow: 0 -20px 60px rgba(0,0,0,.45);
}
.scard .btn-wide { white-space: normal; text-align: left; }
.scard:nth-child(2) { top: 116px; margin-left: auto; }
.scard:nth-child(3) { top: 136px; }
.scard-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; }
.scard-top em { font-size: 24px; }
.scard > p { color: var(--muted-dark); max-width: 460px; }
.kv-list > div { display: grid; grid-template-columns: 140px 1fr; padding: 14px 0; border-top: 1px solid var(--line-dark); font-size: 14px; }
.kv-list > div:last-child { border-bottom: 1px solid var(--line-dark); }
.kv-list dt { font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .55; padding-top: 2px; }

/* ============ CONTACT ============ */
.contact-title { display: flex; flex-direction: column; align-items: center; gap: 22px; margin: 10px 0 40px; font-size: clamp(36px, 11vw, 150px); }
.pill-img { width: min(640px, 82vw); aspect-ratio: 2.6/1; border-radius: 999px; transform: scaleX(.55); transition: transform .2s linear; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 110px; padding-top: 40px; border-top: 1px solid var(--line-light); }
.contact-grid p { font-size: 14.5px; }
.contact-grid a:hover { text-decoration: underline; }
.contact-grid .kicker { margin-bottom: 12px; }

/* ============ FOOTER ============ */
.footer { padding: 36px 0; border-top: 1px solid var(--line-dark); }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 12px; letter-spacing: .06em; color: var(--muted-dark); }
.footer .logo { color: var(--paper); }

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed; inset: 0; z-index: 80; background: rgba(18,26,24,.97);
  display: grid; grid-template-columns: 70px 1fr 70px; align-items: center;
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lb-stage { display: grid; place-items: center; height: 86vh; }
.lb-stage img, .lb-stage video { max-height: 86vh; max-width: 100%; width: auto; object-fit: contain; }
.lb-close { position: absolute; top: 18px; right: 24px; font-size: 34px; color: var(--paper); line-height: 1; }
.lb-nav { color: var(--paper); font-size: 24px; height: 100%; }
.lb-nav:hover, .lb-close:hover { opacity: .6; }
.lb-caption { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-dark); }

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .cards4 { grid-template-columns: repeat(2, 1fr); }
  .panel { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .cols3, .edu, .contact-grid { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 10px; }
  .strip { grid-template-columns: repeat(5, 62vw); overflow-x: auto; width: 100%; margin-left: 0; padding: 0 var(--gutter); scrollbar-width: none; }
  .strip::-webkit-scrollbar { display: none; }
  .scard, .scard:nth-child(2) { margin-left: 0; }
}
@media (max-width: 640px) {
  .header-cta { display: none; }
  .header { grid-template-columns: 1fr auto; }
  .logo { justify-self: end; }
  .menu-label { display: none; }
  .hero-foot { grid-template-columns: 1fr 1fr; }
  .hero-foot .scroll-cue { display: none; }
  .cards4 { grid-template-columns: 1fr; }
  .kv-list > div { grid-template-columns: 100px 1fr; }
  .display-sm { font-size: min(10vw, 44px); }
  .scard { grid-template-columns: minmax(0, 1fr); }
  .lightbox { grid-template-columns: 44px 1fr 44px; }
  .btn { height: 48px; padding: 0 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ============ GREEN & BRONZE ACCENTS ============ */
::selection { background: var(--gold-2); color: var(--ink); }
.logo { color: var(--gold-2); }
.dark .eyebrow, .menu .eyebrow { color: var(--gold-2); opacity: 1; }
.light .eyebrow { color: var(--gold); opacity: 1; }
.kicker, .tag, .t-date { opacity: 1; }
.dark .kicker, .dark .tag, .dark .t-date { color: var(--gold-2); }
.light .kicker, .light .tag, .light .t-date { color: var(--gold); }

/* Hero */
.hero-stat strong { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-bg::before { background: linear-gradient(180deg, rgba(26,36,33,.30) 0%, rgba(26,36,33,.50) 50%, rgba(20,28,26,.95) 100%), radial-gradient(ellipse at 50% 35%, transparent 30%, rgba(26,36,33,.55) 80%); }
.hero-bg img { filter: grayscale(1) sepia(.18) contrast(1.08) brightness(.88); }
.hero-foot .right .js-clock, .menu-foot b { color: var(--gold-2); }

/* Buttons */
.dark .btn-outline, .header .btn-outline { border-color: var(--gold-2); color: var(--paper); }
.dark .btn-outline:hover, .header .btn-outline:hover { background: var(--gold-2); border-color: var(--gold-2); color: var(--ink); }
.btn-outline-dark { border-color: var(--gold); }
.btn-outline-dark:hover { background: var(--ink); border-color: var(--ink); color: var(--gold-2); }
.btn-dark { background: var(--ink); color: var(--gold-2); box-shadow: inset 0 0 0 1px rgba(232,196,204,.45); }
.btn-dark:hover { background: var(--gold-grad); color: var(--ink); }
.pill:hover, .pill.is-active { background: var(--ink); color: var(--gold-2); }

/* Project tabs & panels */
.tab { border-color: rgba(232,196,204,.35); }
.tab:hover { border-color: var(--gold-2); }
.tab.is-active { background: var(--gold-grad); border-color: transparent; color: var(--ink); }
.kv dd { color: var(--gold-2); }
.kv, .ticks li { border-color: rgba(232,196,204,.22); }
.ticks li::before { content: "◆"; color: var(--gold-2); font-size: 8px; margin-right: 12px; vertical-align: 2px; }

/* Numbers */
.col-sub { border-bottom-color: var(--gold); }
.rows b { color: var(--gold); }

/* Expertise */
.xcard-head span { color: var(--gold-2); opacity: 1; }
.xcard .media::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(232,196,204,0); transition: border-color .5s; pointer-events: none; }
.xcard:hover .media::after { border-color: rgba(232,196,204,.7); }

/* Journey */
.timeline li { border-color: rgba(128,0,32,.3) !important; }
.edu > div { border: 1px solid rgba(128,0,32,.25); }

/* Collabs */
.marquee span::after { color: var(--gold-2); }
.marquee.muted span { color: rgba(232,196,204,.45); }

/* Gallery */
.g-play { background: rgba(26,36,33,.8); color: var(--gold-2); }

/* Services */
.scard { border-color: rgba(232,196,204,.28); background: linear-gradient(160deg, #24302c 0%, #1d2825 100%); }
.scard-top span, .scard-top em { color: var(--gold-2); }
.kv-list > div { border-color: rgba(232,196,204,.2) !important; }

/* Contact & footer */
.pill-img { box-shadow: 0 0 0 1px var(--gold), 0 30px 60px -30px rgba(26,36,33,.5); }
.contact-grid { border-top-color: rgba(128,0,32,.35); }
.footer { border-top-color: rgba(232,196,204,.22); }
.lb-close, .lb-nav { color: var(--gold-2); }

/* Live / in-progress project */
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #4fd18b; margin-left: 8px; vertical-align: 1px; box-shadow: 0 0 0 0 rgba(79,209,139,.6); animation: pulse 1.8s infinite; }
.live { color: #6fe0a1; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(79,209,139,0); } 100% { box-shadow: 0 0 0 0 rgba(79,209,139,0); } }
.panel-ctas { display: flex; flex-wrap: wrap; gap: 10px; }

/* ============ PALETTE 1 — burgundy · deep navy · light grey · white ============ */
/* Section backgrounds: white for breathing space, light grey for project detail */
.story, .contact { background: #FFFFFF; }
.numbers, .journey, .work { background: var(--grey); }
.edu > div { background: #FFFFFF; border: 1px solid rgba(26,36,33,.08); }
.pill { background: #FFFFFF; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(26,36,33,.12); }
.story .pill { background: var(--grey); }

/* Header & menus in deep navy */
.header.is-scrolled { background: rgba(26,36,33,.94); border-bottom-color: rgba(128,0,32,.55); }
.menu { background: var(--ink); }
.logo { color: #FFFFFF; }

/* Burgundy main headings on light sections */
.light .display, .light .col-title, .light .timeline h3 { color: var(--gold); }
.light .eyebrow { color: var(--ink); opacity: .75; }

/* Burgundy for the important buttons */
.header .header-cta, .hero .btn-outline, .contact .btn-dark, .story .btn-outline-dark {
  background: var(--gold); border-color: var(--gold); color: #FFFFFF; box-shadow: none;
}
.header .header-cta:hover, .hero .btn-outline:hover, .contact .btn-dark:hover, .story .btn-outline-dark:hover {
  background: #5e0018; border-color: #5e0018; color: #FFFFFF;
}
.dark .btn-outline { border-color: rgba(255,255,255,.55); color: #FFFFFF; }
.dark .btn-outline:hover { background: var(--gold); border-color: var(--gold); color: #FFFFFF; }
.tab.is-active { background: var(--gold); color: #FFFFFF; border-color: var(--gold); }
.pill:hover, .pill.is-active { background: var(--gold); color: #FFFFFF; box-shadow: none; }
::selection { background: var(--gold); color: #FFFFFF; }

/* Figures: strong navy on light, soft tint on dark */
.hero-stat strong { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #FFFFFF; }
.rows b { color: var(--ink); }
.col-sub { border-bottom: 2px solid var(--gold); }
.light .kicker, .light .tag, .light .t-date { color: var(--gold); }
.kv dd, .scard-top span, .scard-top em, .xcard-head span { color: var(--gold-2); }
.ticks li::before { color: var(--gold-2); }
.marquee span::after { color: var(--gold); }
.marquee.muted span { color: rgba(255,255,255,.32); }
.timeline li { border-color: rgba(26,36,33,.12) !important; }
.contact-grid { border-top-color: rgba(128,0,32,.3); }
.pill-img { box-shadow: 0 30px 60px -30px rgba(26,36,33,.45); }
/* Full-name logo: keep it on one line and scale down on phones */
.logo { white-space: nowrap; }
@media (max-width: 640px) { .logo { font-size: 20px; } }

/* ============ CREDENTIALS & CV ============ */
.credentials { background: var(--grey); }
.cols2 { grid-template-columns: repeat(2, 1fr); }
.cred-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 72px; align-items: start; }
.cred-card { background: #FFFFFF; border: 1px solid rgba(26,36,33,.08); border-top: 3px solid var(--gold); border-radius: 14px; padding: clamp(24px, 3vw, 40px); display: grid; gap: 8px; }
.cred-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 10px; }
.cred-head .kicker { margin: 0; }
.cred-head h3 { font-weight: 800; font-stretch: 78%; text-transform: uppercase; font-size: clamp(24px, 2.4vw, 32px); line-height: 1; color: var(--gold); }
.cred-list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; border-top: 1px solid rgba(26,36,33,.1); }
.cred-list h4 { font-weight: 700; font-size: 16px; color: var(--ink); }
.cred-list p { font-family: var(--serif); font-size: 18px; color: var(--muted-light); line-height: 1.3; margin-top: 2px; }
.cred-list b { font-weight: 800; font-stretch: 78%; font-size: 22px; color: var(--ink); white-space: nowrap; }
.btn-cv { margin-top: 18px; background: var(--gold); color: #FFFFFF; justify-self: start; }
.btn-cv:hover { background: #5e0018; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.btn-ghost { border: 1px solid rgba(255,255,255,.55); color: #FFFFFF; }
.btn-ghost:hover { background: #FFFFFF; color: var(--ink); border-color: #FFFFFF; }
.btn-cv-light { border: 1px solid var(--gold); color: var(--gold); }
.btn-cv-light:hover { background: var(--gold); color: #FFFFFF; }
@media (max-width: 820px) { .cred-grid, .cols2 { grid-template-columns: minmax(0, 1fr); } }
/* ============ PARTNERS (logo wall) ============ */
.partners { background: #FFFFFF; }
.partners .lead { margin-top: 28px; color: var(--muted-light); }
.logo-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 64px; }
.logo-card {
  aspect-ratio: 3 / 2; display: grid; place-items: center; padding: 18px 22px;
  background: #FFFFFF; border: 1px solid rgba(26,36,33,.1); border-radius: 12px;
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease);
}
.logo-card img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .72; transition: filter .35s, opacity .35s; }
.logo-card:hover { border-color: var(--gold); box-shadow: 0 14px 30px -18px rgba(128,0,32,.45); transform: translateY(-3px); }
.logo-card:hover img { filter: none; opacity: 1; }
@media (hover: none) { .logo-card img { filter: none; opacity: 1; } }
@media (max-width: 1024px) { .logo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 820px) { .logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .logo-card { padding: 14px; } }
/* Equal-height logo cards: fixed height, logo scaled inside */
.logo-card { aspect-ratio: auto; height: clamp(96px, 9vw, 130px); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.logo-card img { max-height: 100%; max-width: 100%; }

/* Logo groups */
.logo-group { margin-top: 72px; }
.logo-group + .logo-group { margin-top: 56px; }
.logo-group .logo-grid { margin-top: 22px; }
.logo-group-title { display: flex; align-items: baseline; gap: 14px; padding-bottom: 14px; border-bottom: 2px solid var(--gold); font-weight: 800; font-stretch: 78%; text-transform: uppercase; font-size: clamp(22px, 2.4vw, 30px); color: var(--gold); }
.logo-group-title span { font-size: 12px; font-stretch: 100%; letter-spacing: .12em; color: var(--ink); opacity: .55; }

/* ============ HERO — portrait placement (no text over the face) ============ */
.hero-bg {
  background:
    radial-gradient(ellipse 45% 60% at 72% 55%, rgba(128,0,32,.22) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 70% 45%, #2a3a35 0%, #1A2421 65%);
}
.hero-bg img { filter: grayscale(1) contrast(1.06) brightness(1); }
@keyframes heroRise { from { opacity: 0; transform: translateY(24px) scale(1.03); } to { opacity: 1; transform: none; } }
@keyframes heroRiseC { from { opacity: 0; transform: translateX(-50%) translateY(24px); } to { opacity: 1; transform: translateX(-50%); } }

/* Desktop & tablet landscape: text left, portrait right */
@media (min-width: 900px) {
  .hero-bg img {
    left: auto; right: max(3vw, calc((100vw - 1400px) / 2)); bottom: 0; top: auto;
    height: 94%; width: auto; transform: none; animation: heroRise 1.6s var(--ease) both;
  }
  .hero-bg::before {
    background:
      linear-gradient(90deg, rgba(26,36,33,.96) 0%, rgba(26,36,33,.82) 34%, rgba(26,36,33,.15) 58%, rgba(26,36,33,0) 72%),
      linear-gradient(0deg, rgba(26,36,33,.95) 0%, rgba(26,36,33,0) 26%);
  }
  .hero-inner {
    align-items: flex-start; text-align: left; justify-content: center;
    width: 100%; max-width: 1400px; margin: 0 auto; padding-left: var(--gutter); padding-right: 42%;
  }
  .hero-title { font-size: clamp(56px, 7.2vw, 116px); margin: 28px 0 40px; }
  .hero-ctas { justify-content: flex-start; }
  .hero-foot .scroll-cue { visibility: hidden; }
}

/* Phones & portrait tablets: face at the top, text below it */
@media (max-width: 899px) {
  .hero-bg img {
    top: 68px; bottom: auto; left: 50%; height: min(58svh, 130vw); width: auto;
    transform: translateX(-50%); animation: heroRiseC 1.4s var(--ease) both;
  }
  .hero-bg::before {
    background: linear-gradient(180deg, rgba(26,36,33,.25) 0%, rgba(26,36,33,0) 22%, rgba(26,36,33,0) 34%, rgba(26,36,33,.88) 54%, #1A2421 66%);
  }
  .hero-inner { justify-content: flex-end; padding-top: 0; padding-bottom: 28px; }
  .hero-title { margin: 22px 0 30px; }
}
/* ============ HERO — white background, portrait blends in, figure at the top ============ */
.hero-light { background: #FFFFFF; color: var(--ink); }
.hero-light .hero-bg { background: #FFFFFF; }
.hero-light .hero-bg img { filter: grayscale(1) contrast(1.06); }
.hero-light .hero-title { color: var(--ink); }
.hero-light .hero-foot { color: var(--ink); }
.hero-light .hero-foot .js-clock { color: var(--gold); }
.hero-light .btn-ghost { border-color: rgba(26,36,33,.35); color: var(--ink); }
.hero-light .btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }

/* Header reads dark over the white hero, light once it turns navy on scroll / in the menu */
.header:not(.is-scrolled) { color: var(--ink); }
.header:not(.is-scrolled) .logo { color: var(--ink); }
.menu-open .header, .menu-open .header .logo { color: #FFFFFF; }

/* The headline figure sits at the very top of the hero */
.hero-light .hero-stat {
  position: absolute; z-index: 3; top: 104px;
  left: max(var(--gutter), calc((100vw - 1400px) / 2 + var(--gutter)));
  text-align: left;
}
.hero-light .hero-stat strong { color: var(--gold); font-size: clamp(44px, 5.4vw, 76px); }
.hero-light .hero-stat em { color: var(--ink); opacity: .75; }

@media (min-width: 900px) {
  .hero-light .hero-bg img { height: 96%; right: max(1vw, calc((100vw - 1400px) / 2 - 40px)); }
  .hero-light .hero-bg::before {
    background:
      linear-gradient(90deg, #FFFFFF 0%, rgba(255,255,255,.9) 30%, rgba(255,255,255,0) 52%),
      linear-gradient(0deg, #FFFFFF 0%, rgba(255,255,255,0) 20%);
  }
  .hero-light .hero-inner { justify-content: flex-end; padding-bottom: 72px; }
}
@media (max-width: 899px) {
  .hero-light .hero-stat { top: 84px; left: 0; right: 0; text-align: center; }
  .hero-light .hero-bg img { top: 170px; height: min(52svh, 112vw); }
  .hero-light .hero-bg::before {
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 52%, rgba(255,255,255,.92) 66%, #FFFFFF 74%);
  }
}
/* Fade the photo itself into the white (mask), so text never sits on the dark suit */
@media (max-width: 899px) {
  .hero-light .hero-bg img {
    top: 172px; height: min(40svh, 84vw);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 52%, transparent 80%);
            mask-image: linear-gradient(180deg, #000 0%, #000 52%, transparent 80%);
  }
  .hero-light .hero-bg::before { background: none; }
}
@media (min-width: 900px) {
  .hero-light .hero-bg img {
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
  }
}
/* Portrait cover (e.g. Hail tower): taller frame so the whole tower shows */
.panel-img-tall { aspect-ratio: 3 / 4; max-height: 82vh; }
.panel-img-tall img { object-position: center 6%; }
.panel-img-tall { justify-self: center; width: 100%; max-width: calc(82vh * 0.75); }

/* Content is visible at rest (thumbnails, shared links, no-JS); no hidden reveal state */
.reveal { opacity: 1; transform: none; }

/* Short screens (e.g. phone in landscape): keep enough height so the top figure, photo and headline never collide */
.hero-light { min-height: max(100svh, 640px); }
@media (min-width: 900px) { .hero-light { min-height: max(100svh, 600px); } }
