/* ==========================================================================
   Dim Sum Energy : site stylesheet
   Palette sampled from "DSE Portfolio Late Stage Permitted Projects" (Aug 2026)
   ========================================================================== */

:root {
  --red:        #F81414;   /* deck cover and section dividers            */
  --red-deep:   #C8102E;   /* Dim Sum investor deck accent               */
  --ink:        #111111;
  --black:      #000000;
  --body:       #4A4A4A;
  --grey:       #7A7A7A;
  --hairline:   #D6D6D6;
  --panel:      #F4F4F4;
  --panel-alt:  #F7F7F7;
  --navy:       #0A2F41;   /* The Wireframe Group                        */
  --white:      #FFFFFF;

  --max:        1180px;
  --gutter:     28px;
  --sans:       Arial, "Helvetica Neue", Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--red-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-wide { max-width: 1400px; margin: 0 auto; padding: 0 var(--gutter); }

/* ------------------------------------------------------------------ type */

h1, h2, h3, h4 { color: var(--ink); margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); line-height: 1.06; }
h2 { font-size: clamp(1.55rem, 3.1vw, 2.2rem); line-height: 1.14; }
h3 { font-size: 1.15rem; line-height: 1.3; }
h4 { font-size: 0.98rem; line-height: 1.35; }
p  { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey);
  margin: 0 0 14px;
}
.eyebrow-red { color: var(--red); }
.eyebrow-white { color: rgba(255,255,255,0.72); }

.lede { font-size: 1.18rem; line-height: 1.56; color: var(--ink); }
.muted { color: var(--grey); }
.small { font-size: 0.85rem; line-height: 1.55; }
.tiny  { font-size: 0.76rem; line-height: 1.55; color: var(--grey); }

.rule-red { width: 52px; height: 4px; background: var(--red); border: 0; margin: 0 0 26px; }
.rule-hair { height: 1px; background: var(--hairline); border: 0; margin: 44px 0; }

/* ------------------------------------------------------------------- nav */

.topbar {
  position: sticky; top: 0; z-index: 60;
  background: var(--white);
  border-bottom: 1px solid var(--hairline);
}
.topbar-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  min-height: 74px; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 40px; width: auto; }
.brand-text {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink); line-height: 1.2;
}
.brand-text span { display: block; font-weight: 400; letter-spacing: 0.16em; color: var(--grey); font-size: 0.62rem; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--ink); text-decoration: none;
  padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap;
}
.nav a:hover { color: var(--red); border-bottom-color: var(--red); text-decoration: none; }
.nav a.active { color: var(--red); border-bottom-color: var(--red); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--hairline);
  padding: 9px 13px; font-family: var(--sans); font-size: 0.72rem;
  font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink); cursor: pointer;
}

/* ------------------------------------------------------------------ hero */

.hero { position: relative; background: var(--black); color: var(--white); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.5; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0.28) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 116px 0 96px; }
.hero h1 { color: var(--white); max-width: 17ch; }
.hero .lede { color: rgba(255,255,255,0.86); max-width: 60ch; }

.hero-sm .hero-inner { padding: 76px 0 64px; }
.hero-sm h1 { max-width: 22ch; }

/* red page banner used on interior pages without a photo */
.banner { background: var(--red); color: var(--white); padding: 74px 0 62px; }
.banner h1 { color: var(--white); max-width: 20ch; }
.banner .lede { color: rgba(255,255,255,0.92); max-width: 62ch; }
.banner .rule-red { background: var(--white); }

.banner-navy { background: var(--navy); }

/* ---------------------------------------------------------------- layout */

section { padding: 78px 0; }
section.tight { padding: 54px 0; }
section.panel { background: var(--panel); }
section.ink { background: var(--ink); color: rgba(255,255,255,0.78); }
section.ink h2, section.ink h3, section.ink h4 { color: var(--white); }

.section-head { max-width: 760px; margin-bottom: 46px; }

.grid { display: grid; gap: 30px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 52px; align-items: center; }
.split-wide { grid-template-columns: 1fr 1.25fr; }

/* ------------------------------------------------------------ stat tiles */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 3px solid var(--red); }
.stat { padding: 26px 26px 24px; border-right: 1px solid var(--hairline); background: var(--white); }
.stat:last-child { border-right: 0; }
.stat .num {
  font-size: clamp(1.7rem, 3.2vw, 2.35rem); font-weight: 700;
  color: var(--ink); line-height: 1.02; letter-spacing: -0.02em; display: block;
}
.stat .num small { font-size: 0.44em; font-weight: 700; letter-spacing: 0.02em; margin-left: 3px; }
.stat .lab {
  display: block; margin-top: 10px; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--grey); line-height: 1.45;
}
.stats-on-dark { border-top-color: var(--red); }
.stats-on-dark .stat { background: transparent; border-right-color: rgba(255,255,255,0.18); }
.stats-on-dark .stat .num { color: var(--white); }
.stats-on-dark .stat .lab { color: rgba(255,255,255,0.6); }

/* ---------------------------------------------------------------- cards */

.card {
  background: var(--white); border: 1px solid var(--hairline);
  border-top: 3px solid var(--red); padding: 28px 26px 26px; height: 100%;
}
.card .idx {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; color: var(--red); display: block; margin-bottom: 12px;
}
.card h3 { margin-bottom: 4px; }
.card .sub {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--grey); margin: 0 0 14px;
}
.card p { font-size: 0.94rem; }
.card-flat { border-top-color: var(--hairline); }
.card-navy { border-top-color: var(--navy); }
.card-navy .idx { color: var(--navy); }

/* linked strand cards on the home page */
a.card-link { display: block; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
a.card-link:hover { text-decoration: none; border-color: var(--red); transform: translateY(-2px); }
a.card-link .more {
  display: inline-block; margin-top: 16px; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--red);
}

.figure { border: 1px solid var(--hairline); background: var(--white); }
.figure img { width: 100%; height: auto; }
.figure img.crop { aspect-ratio: 4 / 3; height: auto; object-fit: cover; }
.figure img.crop-wide { aspect-ratio: 16 / 9; height: auto; object-fit: cover; }
.figure figcaption {
  padding: 12px 16px; font-size: 0.76rem; color: var(--grey);
  border-top: 1px solid var(--hairline); line-height: 1.5;
}

/* --------------------------------------------------------------- tables */

table.data { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.data caption {
  text-align: left; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--grey); padding-bottom: 12px;
}
table.data th, table.data td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--hairline); }
table.data thead th {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--grey); border-bottom: 2px solid var(--ink);
}
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data tbody tr:hover { background: var(--panel-alt); }
table.data tfoot td { font-weight: 700; color: var(--ink); border-top: 2px solid var(--ink); border-bottom: 0; }
.table-scroll { overflow-x: auto; }

/* ----------------------------------------------------------------- misc */

ul.ticks { list-style: none; padding: 0; margin: 0; }
ul.ticks li { position: relative; padding: 0 0 12px 22px; font-size: 0.96rem; }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: 10px; width: 9px; height: 2px; background: var(--red); }

.btn {
  display: inline-block; padding: 14px 26px; background: var(--red); color: var(--white);
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; border: 2px solid var(--red);
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--white); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn-ghost:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.person img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; filter: grayscale(100%); background: var(--panel); }
.person h3 { margin: 16px 0 2px; font-size: 1.02rem; }
.person .role {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--red); line-height: 1.4;
}

.logo-lockup { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.logo-lockup img { height: 52px; width: auto; }
.logo-plate { background: var(--white); padding: 22px 26px; border: 1px solid var(--hairline); display: inline-block; }
.logo-plate img { height: 56px; width: auto; display: block; }
.logo-plate a { display: block; text-decoration: none; transition: opacity .15s; }
.logo-plate a:hover { text-decoration: none; opacity: 0.72; }

.callout { border-left: 3px solid var(--red); padding: 4px 0 4px 22px; }

.note {
  background: var(--panel); border-left: 3px solid var(--grey);
  padding: 18px 22px; font-size: 0.84rem; line-height: 1.6; color: var(--body);
}

/* --------------------------------------------------------------- footer */

.footer { background: var(--ink); color: rgba(255,255,255,0.62); padding: 62px 0 34px; font-size: 0.88rem; }
.footer h4 {
  color: var(--white); font-size: 0.7rem; letter-spacing: 0.16em;
  text-transform: uppercase; margin-bottom: 16px;
}
.footer a { color: rgba(255,255,255,0.82); }
.footer a:hover { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 40px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 9px; }
.footer-brand img { height: 44px; width: auto; background: var(--white); padding: 6px 10px; }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.14);
  font-size: 0.74rem; line-height: 1.7; color: rgba(255,255,255,0.42);
}

/* --------------------------------------------------------- responsive */

@media (max-width: 1000px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--hairline); }
  .stats-on-dark .stat:nth-child(1), .stats-on-dark .stat:nth-child(2) { border-bottom-color: rgba(255,255,255,0.18); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav {
    display: none; position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--hairline);
    padding: 8px var(--gutter) 18px;
  }
  .nav.open { display: flex; }
  .nav a { width: 100%; padding: 13px 0; border-bottom: 1px solid var(--hairline); }
  .nav a:hover, .nav a.active { border-bottom-color: var(--hairline); }
  .nav-toggle { display: block; }
  .topbar-inner { position: relative; }
  .split, .split-wide { grid-template-columns: 1fr; gap: 34px; }
  .g2, .g3 { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .hero-inner { padding: 76px 0 62px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .g4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--hairline); }
  .stat:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-text { display: none; }
}

@media print {
  .topbar, .nav-toggle { display: none; }
  body { font-size: 11pt; color: #000; }
}
