/* AB Energy Consulting · advisory site */

:root{
  --ink:#0A1424;
  --ink-soft:#141E30;
  --paper:#FAFAF6;
  --paper-warm:#F1ECDF;
  --muted:#5E6470;
  --muted-on-dark:#9CA6B5;
  --brass:#C49B4B;
  --brass-hover:#DDB05C;
  --oxblood:#6E2D27;
  --rule:#DDD8CC;
  --rule-dark:#22304A;
  --max:1200px;
  --reading:660px;
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  background:var(--paper); color:var(--ink);
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  font-size:17px; line-height:1.65; font-weight:400;
  -webkit-font-smoothing:antialiased; overflow-x:hidden;
}
a{ color:inherit; text-decoration:none; }
::selection{ background:var(--brass); color:var(--ink); }

.shell{ max-width:var(--max); margin:0 auto; padding:0 40px; }

/* Typography */
.eyebrow{
  font-size:11px; font-weight:600; letter-spacing:.34em; text-transform:uppercase;
  color:var(--brass); display:inline-block; margin-bottom:26px;
}
.eyebrow.dim{ color:var(--muted-on-dark); }
h1,h2,h3{ font-family:'Playfair Display',Georgia,serif; font-weight:500; letter-spacing:-.015em; }
h1{ font-size:clamp(44px,7vw,92px); line-height:1.0; }
h1 .alt{ font-style:italic; color:var(--brass); }
h2{ font-size:clamp(30px,4.4vw,54px); line-height:1.08; margin-bottom:26px; }
h2 .alt{ font-style:italic; color:var(--brass); }
h3{ font-size:clamp(20px,2.4vw,27px); line-height:1.2; margin-bottom:14px; }
p{ margin-bottom:20px; max-width:var(--reading); }
p:last-child{ margin-bottom:0; }
.lede{ font-size:clamp(17px,1.7vw,21px); line-height:1.6; }

/* Nav */
nav.top{
  position:fixed; top:0; left:0; right:0; z-index:100;
  display:flex; justify-content:space-between; align-items:center;
  padding:24px 40px; transition:background .4s ease, padding .3s ease, border-color .4s ease;
  border-bottom:1px solid transparent;
}
nav.top.scrolled{
  background:rgba(10,20,36,.92); backdrop-filter:blur(10px);
  padding:16px 40px; border-bottom-color:var(--rule-dark);
}
nav .wordmark{ font-family:'Playfair Display',Georgia,serif; font-size:18px; font-weight:600; color:var(--paper); }
nav .wordmark span{ color:var(--brass); }
nav .right{ display:flex; align-items:center; gap:22px; }
nav .lang{ font-size:12px; letter-spacing:.16em; color:var(--muted-on-dark); }
nav .lang a.active{ color:var(--paper); font-weight:600; }
nav .lang .sep{ margin:0 6px; opacity:.5; }
nav .enquire{
  font-size:12px; letter-spacing:.14em; text-transform:uppercase; font-weight:600;
  color:var(--ink); background:var(--brass); padding:9px 18px; border-radius:1px;
  transition:background .25s ease;
}
nav .enquire:hover{ background:var(--brass-hover); }

/* Hero */
.hero{
  background:var(--ink); color:var(--paper);
  min-height:84vh; display:flex; flex-direction:column; justify-content:center;
  position:relative; padding:120px 0 84px; overflow:hidden;
}
.hero::before{
  content:""; position:absolute; inset:0;
  /* Brass glow over a faint oil-derrick skyline anchored to the lower hero. */
  background:
    radial-gradient(120% 80% at 78% 18%, rgba(196,155,75,.13), transparent 55%),
    url("/assets/derricks.svg") bottom center / 1440px auto no-repeat;
  pointer-events:none;
}
.hero::after{
  content:""; position:absolute; left:40px; right:40px; bottom:46px; height:1px;
  background:linear-gradient(90deg,var(--brass) 0%,var(--brass) 26%,var(--rule-dark) 26%,var(--rule-dark) 100%);
}
.hero-inner{ position:relative; }
.hero h1{ max-width:none; }
.hero .lede{ color:var(--muted-on-dark); max-width:none; margin-top:32px; }

/* Home hero: text top-aligned; animated derrick band anchored to the bottom so
   copy and derricks never overlap and the lower space is filled, not wasted. */
.hero-home{ justify-content:flex-start; padding-bottom:0; min-height:94vh; }
.hero.hero-home::before{
  background:radial-gradient(120% 80% at 78% 18%, rgba(196,155,75,.13), transparent 55%);
}
.hero.hero-home::after{ display:none; }
.hero-home .hero-inner{ z-index:1; }
.hero-derricks{
  width:100%; max-width:1440px; margin:auto auto 0; display:block;
  pointer-events:none; position:relative; z-index:0;
}
.hero-derricks img{ width:100%; display:block; }
.hero .meta-row{
  display:flex; gap:54px; margin-top:64px; flex-wrap:wrap;
}
.hero .meta-row div{ font-size:13px; color:var(--muted-on-dark); letter-spacing:.02em; }
.hero .meta-row strong{ display:block; color:var(--paper); font-weight:600; font-size:15px; margin-bottom:3px; letter-spacing:.04em; }

/* Generic block */
.block{ padding:130px 0; }
.block.dark{ background:var(--ink); color:var(--paper); }
.block.dark p{ color:var(--muted-on-dark); }
.block.warm{ background:var(--paper-warm); }
.lead-narrow{ max-width:860px; }

/* Edge / proposition */
.edge h2{ max-width:18ch; }
.edge .body{ max-width:680px; margin-top:30px; }
.edge .kicker{
  font-family:'Playfair Display',Georgia,serif; font-style:italic; font-size:clamp(21px,2.3vw,28px);
  color:var(--paper); line-height:1.4; margin-top:40px; padding-top:34px;
  border-top:1px solid var(--rule-dark); max-width:760px;
}

/* Stats */
.stats-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:40px; }
.stat .num{ font-family:'Playfair Display',Georgia,serif; font-size:clamp(46px,5.5vw,68px); font-weight:500; line-height:.95; }
.stat .num .unit{ font-size:.34em; color:var(--brass); margin-left:6px; letter-spacing:.02em; }
.stat .label{ font-size:13px; color:var(--muted); margin-top:16px; line-height:1.45; max-width:230px; }

/* Profile */
.profile-grid{ display:grid; grid-template-columns:0.8fr 1.2fr; gap:80px; align-items:start; }
.profile-grid .pull{
  font-family:'Playfair Display',Georgia,serif; font-style:italic; font-size:clamp(20px,2.2vw,26px);
  line-height:1.45; margin-top:36px; padding-left:26px; border-left:2px solid var(--brass);
}
.profile-grid .pull cite{ display:block; font-style:normal; font-family:'Inter',sans-serif; font-size:13px; color:var(--muted); margin-top:16px; letter-spacing:.04em; }

/* Services */
.services-head{ max-width:760px; margin-bottom:70px; }
.services{ list-style:none; border-top:1px solid var(--rule-dark); }
.services li{
  display:grid; grid-template-columns:64px 1fr; gap:24px; align-items:baseline;
  padding:30px 0; border-bottom:1px solid var(--rule-dark);
}
.services .idx{ font-family:'Playfair Display',Georgia,serif; font-style:italic; color:var(--brass); font-size:22px; }
.services .s-title{ font-family:'Playfair Display',Georgia,serif; font-size:clamp(20px,2.1vw,26px); color:var(--paper); margin-bottom:8px; }
.services .s-desc{ font-size:15px; color:var(--muted-on-dark); max-width:620px; }

/* Mandates */
.mandates-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:1px; background:var(--rule); border:1px solid var(--rule); margin-top:20px; }
.mandate{ background:var(--paper); padding:34px 36px; }
.mandate .since{ font-size:11px; letter-spacing:.18em; text-transform:uppercase; color:var(--brass); margin-bottom:14px; }
.mandate h3{ margin-bottom:6px; }
.mandate .role{ font-size:14px; color:var(--muted); }

/* Contact */
.contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:80px; align-items:center; }
.contact-grid .lede{ color:var(--muted-on-dark); }
.contact-cta a.mail{
  font-family:'Playfair Display',Georgia,serif; font-size:clamp(26px,3.2vw,40px); color:var(--paper);
  border-bottom:1px solid var(--brass); padding-bottom:6px; transition:color .25s ease;
}
.contact-cta a.mail:hover{ color:var(--brass); }
.contact-meta{ font-size:14px; color:var(--muted-on-dark); line-height:1.9; }
.contact-meta a{ color:var(--brass); }
.contact-meta .blk{ margin-top:26px; }

/* Footer */
.site-footer{ background:var(--ink); color:var(--muted-on-dark); padding:50px 0; border-top:1px solid var(--rule-dark); }
.site-footer .shell{ display:flex; justify-content:space-between; align-items:flex-end; gap:40px; flex-wrap:wrap; }
.site-footer .mark{ font-family:'Playfair Display',Georgia,serif; font-size:17px; color:var(--paper); margin-bottom:8px; }
.site-footer p{ font-size:13px; line-height:1.7; }
.site-footer a{ color:var(--brass); }

/* Contact form (relay to hidden mailbox) */
.contact-grid--form{ align-items:start; }
.contact-grid--form .contact-meta{ margin-top:34px; }
.enquiry-form{ display:grid; gap:18px; position:relative; }
.enquiry-form .field label{
  display:block; font-size:11px; letter-spacing:.16em; text-transform:uppercase;
  color:var(--muted-on-dark); margin-bottom:7px;
}
.enquiry-form input, .enquiry-form textarea{
  width:100%; background:transparent; border:none; border-bottom:1px solid var(--rule-dark);
  color:var(--paper); font-family:inherit; font-size:16px; padding:10px 0; border-radius:0;
  transition:border-color .2s ease;
}
.enquiry-form input:focus, .enquiry-form textarea:focus{ outline:none; border-bottom-color:var(--brass); }
.enquiry-form textarea{ resize:vertical; min-height:96px; }
.enquiry-form .hp{ position:absolute; left:-9999px; width:1px; height:1px; opacity:0; }
.enquiry-form .cf-turnstile:empty{ display:none; }
.enquire-submit{
  justify-self:start; margin-top:4px; background:var(--brass); color:var(--ink); border:none;
  font-family:inherit; font-size:12px; letter-spacing:.14em; text-transform:uppercase; font-weight:600;
  padding:13px 28px; border-radius:1px; cursor:pointer; transition:background .25s ease;
}
.enquire-submit:hover{ background:var(--brass-hover); }
.enquire-submit:disabled{ opacity:.55; cursor:not-allowed; }
.form-status{ font-size:14px; min-height:18px; color:var(--muted-on-dark); margin:0; }
.form-status.success{ color:#B8DDB8; }
.form-status.error{ color:#E8A09C; }

/* Reveal */
.reveal{ opacity:0; transform:translateY(22px); transition:opacity .8s ease, transform .8s ease; }
.reveal.in{ opacity:1; transform:none; }

/* Responsive */
@media (max-width:880px){
  .shell{ padding:0 26px; }
  nav.top{ padding:18px 26px; }
  .hero::after{ left:26px; right:26px; }
  .stats-grid{ grid-template-columns:repeat(2,1fr); gap:44px 30px; }
  .profile-grid,.contact-grid{ grid-template-columns:1fr; gap:44px; }
  .mandates-grid{ grid-template-columns:1fr; }
  .hero .meta-row{ gap:32px; }
  .block{ padding:88px 0; }
}

/* Career / timeline page
   ----------------------------------------------------------------------- */
.nav-link{ font-size:12px; letter-spacing:.14em; text-transform:uppercase; color:var(--muted-on-dark); transition:color .25s ease; }
.nav-link:hover{ color:var(--brass); }
nav.top.scrolled .nav-link{ color:var(--muted-on-dark); }

/* Timeline hero is shorter than the home hero: no full viewport. */
.hero.hero-short{ min-height:auto; padding:170px 0 96px; }
.hero.hero-short::after{ bottom:54px; }
.hero.hero-short .lede{ max-width:720px; }

.timeline-section{ background:var(--paper); padding:120px 0 130px; }

.timeline{ position:relative; max-width:900px; margin:0 auto; }
/* The continuous spine. Sits at the centre of the node column. */
.timeline::before{
  content:""; position:absolute; top:14px; bottom:14px; left:172px;
  width:2px; background:var(--rule);
}

.tl-item{
  position:relative;
  display:grid;
  grid-template-columns:96px 88px 1fr;
  gap:0 36px;
  align-items:start;
  padding:30px 0;
}
.tl-item:first-child{ padding-top:0; }
.tl-item:last-child{ padding-bottom:0; }

.tl-year{
  grid-column:1; grid-row:1;
  text-align:right;
  font-family:'Playfair Display',Georgia,serif;
  font-size:clamp(22px,2.5vw,32px);
  line-height:1; color:var(--brass); padding-top:6px;
}
.tl-year .to{
  display:block; margin-top:9px;
  font-family:'Inter',sans-serif; font-size:11px; letter-spacing:.16em;
  text-transform:uppercase; color:var(--muted);
}

.tl-node{ grid-column:2; grid-row:1; position:relative; width:88px; height:88px; z-index:2; }
.tl-node img{
  width:88px; height:88px; border-radius:50%; object-fit:cover;
  border:4px solid var(--paper);
  box-shadow:0 0 0 2px var(--brass), 0 8px 22px rgba(10,20,36,.20);
}
/* Origin / no-photo nodes: a brass disc on the spine. */
.tl-node.marker{ display:flex; align-items:center; justify-content:center; }
.tl-node.marker::before{
  content:""; width:22px; height:22px; border-radius:50%;
  background:var(--brass); border:4px solid var(--paper);
  box-shadow:0 0 0 2px var(--brass);
}

.tl-body{ grid-column:3; grid-row:1; padding-top:2px; }
.tl-org{
  font-size:12px; letter-spacing:.16em; text-transform:uppercase;
  color:var(--brass); font-weight:600; margin-bottom:9px;
}
.tl-body h3{ margin-bottom:10px; }
.tl-body p{ font-size:16px; color:var(--muted); max-width:560px; }
.tl-body .tl-note{ font-size:13.5px; color:var(--muted); margin-top:10px; }
.tl-body a{ color:var(--oxblood); border-bottom:1px solid var(--brass); }

.timeline-cta{ max-width:900px; margin:96px auto 0; padding-top:46px; border-top:1px solid var(--rule); }
.timeline-cta a{ color:var(--oxblood); border-bottom:1px solid var(--brass); }

@media (max-width:880px){
  .timeline-section{ padding:80px 0 88px; }
  .timeline::before{ left:26px; }
  .tl-item{ grid-template-columns:52px 1fr; gap:0 20px; padding:26px 0; }
  .tl-year{ grid-column:2; grid-row:1; text-align:left; padding-top:0; margin-bottom:8px; font-size:23px; }
  .tl-year .to{ display:inline; margin:0 0 0 10px; }
  .tl-node{ grid-column:1; grid-row:1 / span 2; width:52px; height:52px; align-self:start; }
  .tl-node img{ width:52px; height:52px; border-width:3px; }
  .tl-node.marker::before{ width:16px; height:16px; border-width:3px; }
  .tl-body{ grid-column:2; grid-row:2; }
}

/* Subpages (legal notice, 404): solid nav over light background, since the
   default fixed nav is white-on-transparent and only legible over the dark hero. */
body.subpage nav.top{
  background:rgba(10,20,36,.96);
  border-bottom-color:var(--rule-dark);
}
.legal{ padding-top:40px; }
.legal h2{ font-size:clamp(28px,4vw,44px); }
.legal p a{ color:var(--oxblood); border-bottom:1px solid var(--brass); }
.legal .back{ margin-top:44px; }
.legal .back a{ color:var(--brass); border-bottom:1px solid var(--brass); }
.notfound{ min-height:60vh; display:flex; flex-direction:column; justify-content:center; }
