/* ============================================================
   GALWHITE HOLDING — galwhiteholding.com
   Brand system: Cormorant Garamond (display) · Manrope (body) · Archivo (labels)
   Palette: Ink #17140F · Emerald #134A38 · Light Emerald #4FAE87 · Ivory #F6F2EA
   ============================================================ */

:root {
  --black: #0B0906;
  --ink: #17140F;
  --ink-2: #1e1a13;
  --emerald: #134A38;
  --emerald-light: #4FAE87;
  --ivory: #F6F2EA;
  --warm: #A89F8F;
  --warm-2: #8A8175;
  --line: rgba(246, 242, 234, 0.10);
  --line-strong: rgba(246, 242, 234, 0.18);
  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--ivory);
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- Typography helpers ---------- */
.serif { font-family: 'Cormorant Garamond', Georgia, serif; }
.label {
  font-family: 'Archivo', sans-serif;
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--emerald-light);
  font-weight: 500;
}
.eyebrow {
  font-family: 'Archivo', sans-serif;
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--warm-2);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--emerald-light);
  display: inline-block;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ---------- Logo (typographic, rebuilt in vector/text) ---------- */
.logo { display: inline-flex; align-items: center; gap: 13px; }
.logo .mono {
  width: 40px; height: 40px;
  border: 1.5px solid var(--emerald-light);
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.logo .mono span {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600; font-size: 22px; line-height: 1;
  color: var(--emerald-light);
}
.logo .word {
  font-family: 'Cormorant Garamond', serif;
  font-size: 23px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--ivory); line-height: 1;
}
.logo .word i { font-weight: 400; font-style: italic; color: var(--emerald-light); }
.logo .sub {
  display: block;
  font-family: 'Archivo', sans-serif;
  font-size: 8px; letter-spacing: 0.5em; color: var(--warm-2);
  margin-top: 3px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .4s ease, border-color .4s ease, backdrop-filter .4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(11, 9, 6, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 84px;
}
.nav { display: flex; align-items: center; gap: 38px; }
.nav a {
  font-family: 'Archivo', sans-serif;
  font-size: 12px; letter-spacing: 0.08em; color: var(--warm);
  transition: color .25s ease;
}
.nav a:hover { color: var(--ivory); }
.btn {
  font-family: 'Archivo', sans-serif;
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  padding: 12px 24px; border-radius: 4px;
  transition: all .25s ease; display: inline-block;
}
.btn-solid { background: var(--emerald); color: var(--ivory); }
.btn-solid:hover { background: var(--emerald-light); color: var(--ink); }
.btn-ghost { border: 1.5px solid var(--line-strong); color: var(--ivory); }
.btn-ghost:hover { border-color: var(--emerald-light); color: var(--emerald-light); }

.nav-toggle { display: none; background: none; border: 0; color: var(--ivory); cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
  background: var(--black);
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0;              /* becomes visible only if a real video loads */
  transition: opacity 1.2s ease;
}
.hero__video.ready { opacity: 1; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(90deg, rgba(11,9,6,0.92) 0%, rgba(11,9,6,0.55) 45%, rgba(11,9,6,0.25) 100%),
    linear-gradient(0deg, rgba(11,9,6,0.95) 0%, rgba(11,9,6,0) 40%);
}
.hero__inner { position: relative; z-index: 3; width: 100%; padding-top: 84px; }
.hero__inner .wrap { max-width: var(--maxw); }

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(46px, 7vw, 92px);
  line-height: 1.03;
  letter-spacing: -0.01em;
  color: var(--ivory);
  max-width: 15ch;
  margin: 26px 0 24px;
}
.hero h1 i { font-style: italic; color: var(--emerald-light); }
.hero__lead {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--warm);
  max-width: 52ch;
  font-weight: 300;
}
.hero__cta { display: flex; gap: 16px; margin-top: 40px; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: 'Archivo', sans-serif; font-size: 10px; letter-spacing: 0.3em;
  color: var(--warm-2); text-transform: uppercase;
}
.hero__scroll .line {
  width: 1px; height: 46px;
  background: linear-gradient(var(--emerald-light), transparent);
  animation: scrollpulse 2.4s ease-in-out infinite;
}
@keyframes scrollpulse { 0%,100% { opacity: .3; transform: scaleY(.7); } 50% { opacity: 1; transform: scaleY(1); } }

/* ---------- Animated Dubai skyline (SVG) ---------- */
.sky-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.star { animation: twinkle 4s ease-in-out infinite; }
@keyframes twinkle { 0%,100% { opacity: .15; } 50% { opacity: .9; } }
.lt { animation: lightflick 5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes lightflick { 0%,100% { opacity: .35; } 45% { opacity: 1; } 70% { opacity: .55; } }
.moonglow { animation: breathe 9s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes breathe { 0%,100% { opacity: .55; } 50% { opacity: .85; } }
.beam { animation: sweep 14s linear infinite; transform-box: fill-box; transform-origin: bottom center; }
@keyframes sweep { 0% { transform: rotate(-14deg); opacity: .0; } 20% { opacity: .5; } 50% { transform: rotate(14deg); opacity: .5; } 80% { opacity: 0; } 100% { transform: rotate(-14deg); opacity: 0; } }
.layer-back  { animation: drift 90s ease-in-out infinite alternate; }
.layer-front { animation: drift 60s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translateX(-1.2%); } to { transform: translateX(1.2%); } }

/* ---------- Section shell ---------- */
section { position: relative; }
.section-pad { padding: 130px 0; }
.section-pad.tight { padding: 96px 0; }

.section-head { max-width: 760px; margin-bottom: 66px; }
.section-head h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.1; letter-spacing: -0.01em;
  margin: 20px 0 0;
  color: var(--ivory);
}
.section-head h2 i { font-style: italic; color: var(--emerald-light); }
.section-head p { color: var(--warm); margin-top: 22px; font-size: 18px; max-width: 60ch; }

/* ---------- About / intro band ---------- */
.intro { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.intro__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 70px; align-items: start; }
.intro__lead {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.3; color: var(--ivory); font-weight: 400;
}
.intro__lead i { font-style: italic; color: var(--emerald-light); }
.intro__body p { color: var(--warm); font-size: 17px; }
.intro__body p + p { margin-top: 20px; }

/* ---------- Pillars / what we do ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.pillar {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 40px 34px 44px;
  background: linear-gradient(180deg, rgba(30,26,19,0.55), rgba(19,16,11,0.2));
  overflow: hidden;
  transition: border-color .35s ease, transform .35s ease, background .35s ease;
}
.pillar::after {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: var(--emerald-light); transition: width .5s ease;
}
.pillar:hover { border-color: var(--line-strong); transform: translateY(-6px); }
.pillar:hover::after { width: 100%; }
.pillar__num {
  font-family: 'Archivo', sans-serif; font-size: 11px; letter-spacing: 0.3em;
  color: var(--emerald-light); font-weight: 600;
}
.pillar__icon { margin: 22px 0 22px; color: var(--emerald-light); }
.pillar h3 {
  font-family: 'Cormorant Garamond', serif; font-weight: 600;
  font-size: 27px; color: var(--ivory); line-height: 1.15;
}
.pillar p { color: var(--warm); margin-top: 14px; font-size: 15.5px; }
.pillar ul { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 9px; }
.pillar li {
  font-family: 'Archivo', sans-serif; font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--warm-2);
  padding-left: 18px; position: relative;
}
.pillar li::before { content: ""; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border: 1px solid var(--emerald-light); }

/* ---------- Approach / principles ---------- */
.approach { background: linear-gradient(180deg, rgba(19,74,56,0.14), rgba(11,9,6,0)); border-top: 1px solid var(--line); }
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.principle { padding: 42px 30px; border-right: 1px solid var(--line); }
.principle:last-child { border-right: 0; }
.principle .k {
  font-family: 'Cormorant Garamond', serif; font-size: 46px; font-weight: 600;
  color: var(--emerald-light); line-height: 1;
}
.principle h4 { font-family: 'Archivo', sans-serif; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; margin: 18px 0 10px; color: var(--ivory); }
.principle p { color: var(--warm); font-size: 14.5px; }

/* ---------- Presence ---------- */
.presence__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
.presence__card {
  position: relative; border-radius: 12px; overflow: hidden;
  min-height: 420px; border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(11,9,6,0.15), rgba(11,9,6,0.75)),
    url("assets/dubai-marina.jpg") center/cover no-repeat,
    radial-gradient(120% 90% at 70% 20%, rgba(19,74,56,0.55), rgba(11,9,6,1));
  display: flex; align-items: flex-end; padding: 34px;
}
.presence__card .tag {
  font-family: 'Archivo', sans-serif; font-size: 11px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--emerald-light);
  background: rgba(11,9,6,0.5); backdrop-filter: blur(6px);
  padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: 4px;
}
.presence__text h3 {
  font-family: 'Cormorant Garamond', serif; font-weight: 500;
  font-size: clamp(30px, 3.6vw, 46px); line-height: 1.12; color: var(--ivory);
}
.presence__text h3 i { font-style: italic; color: var(--emerald-light); }
.presence__text p { color: var(--warm); margin-top: 22px; font-size: 17px; }

/* ---------- Contact ---------- */
.contact { text-align: center; border-top: 1px solid var(--line); }
.contact h2 {
  font-family: 'Cormorant Garamond', serif; font-weight: 500;
  font-size: clamp(38px, 6vw, 76px); line-height: 1.05; color: var(--ivory);
  margin: 22px auto 0; max-width: 16ch;
}
.contact h2 i { font-style: italic; color: var(--emerald-light); }
.contact__mail {
  display: inline-block; margin-top: 40px;
  font-family: 'Cormorant Garamond', serif; font-size: clamp(24px, 3vw, 34px);
  color: var(--emerald-light); letter-spacing: 0.01em;
  border-bottom: 1px solid rgba(79,174,135,0.4); padding-bottom: 6px;
  transition: border-color .3s ease, color .3s ease;
}
.contact__mail:hover { color: var(--ivory); border-bottom-color: var(--ivory); }
.contact__note { color: var(--warm-2); margin-top: 26px; font-size: 14px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 70px 0 44px; background: var(--ink); }
.footer__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer__nav { display: flex; gap: 30px; flex-wrap: wrap; }
.footer__nav a { font-family: 'Archivo', sans-serif; font-size: 12px; letter-spacing: 0.08em; color: var(--warm); }
.footer__nav a:hover { color: var(--emerald-light); }
.footer__disc {
  font-size: 12px; line-height: 1.75; color: var(--warm-2);
  max-width: 100%; margin-top: 34px;
}
.footer__meta { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 30px; }
.footer__meta span { font-family: 'Archivo', sans-serif; font-size: 11px; letter-spacing: 0.1em; color: var(--warm-2); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .intro__grid { grid-template-columns: 1fr; gap: 36px; }
  .pillars { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr 1fr; }
  .principle:nth-child(2) { border-right: 0; }
  .principle { border-bottom: 1px solid var(--line); }
  .presence__grid { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 22px; }
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .section-pad { padding: 90px 0; }
  .principles { grid-template-columns: 1fr; }
  .principle { border-right: 0; }
  .footer__top { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
