/* =========================================================================
   MELDAK GROUP — Design System
   A modern, prestige conglomerate identity: midnight canvas, Ghana-gold
   accent, per-subsidiary signature colors, fluid type, motion on scroll.
   ========================================================================= */

/* ----- Fonts ----------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&display=swap');

/* ----- Design tokens --------------------------------------------------- */
:root {
  color-scheme: dark;         /* declare native dark theme — stops browser/extension auto-inversion */

  /* Surfaces */
  --bg:        #06080f;
  --bg-1:      #0a0e18;
  --bg-2:      #10162490;
  --bg-solid:  #101624;
  --bg-3:      #161d2e;
  --line:      rgba(255, 255, 255, 0.09);
  --line-2:    rgba(255, 255, 255, 0.16);

  /* Text */
  --text:      #eef1f7;
  --text-2:    #a9b2c6;
  --text-3:    #6c7688;

  /* Brand */
  --gold:      #e9bd57;
  --gold-2:    #f2d68a;
  --gold-deep: #c1922f;

  /* Signature accents (per subsidiary) */
  --c-tech:    #4c8dff;
  --c-agro:    #43c56b;
  --c-eng:     #f5a524;
  --c-bank:    #8b6bff;
  --c-realty:  #dd8a5a;
  --c-logi:    #ff7a45;
  --c-cosmos:  #9d8bff;
  --c-health:  #17c5b6;

  /* Accent used by generic sections; overridden per company */
  --accent:      var(--gold);
  --accent-soft: rgba(233, 189, 87, 0.14);

  /* Type */
  --f-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --f-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-serif:   'Fraunces', Georgia, 'Times New Roman', serif;

  /* Radius */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-xl: 34px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur:  0.6s;

  /* Layout */
  --maxw: 1240px;
  --gutter: clamp(1.1rem, 4vw, 3rem);

  --shadow-1: 0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow-2: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 30px 80px -30px var(--accent-soft);
}

/* ----- Reset ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: #06080f; color-scheme: dark; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold); color: #06080f; }

/* Ambient page backdrop */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60vw 50vh at 78% -8%, rgba(233, 189, 87, 0.10), transparent 60%),
    radial-gradient(50vw 40vh at 8% 12%, rgba(76, 141, 255, 0.08), transparent 60%),
    var(--bg);
}

/* ----- Typography ------------------------------------------------------ */
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.06; letter-spacing: -0.02em; }
.display  { font-size: clamp(2.7rem, 7.2vw, 6rem); font-weight: 600; line-height: 1.02; letter-spacing: -0.035em; }
.h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.h2 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); }
.h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); }
p  { color: var(--text-2); }
.lead { font-size: clamp(1.06rem, 1.8vw, 1.32rem); color: var(--text-2); line-height: 1.6; }
strong { color: var(--text); font-weight: 600; }
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 500; }
.grad-text {
  background: linear-gradient(100deg, var(--gold-2), var(--gold) 55%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
/* Solid-colour fallback if text-clip isn't honoured (keeps text visible, never blank) */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .grad-text { -webkit-text-fill-color: var(--gold); color: var(--gold); background: none; }
}

/* ----- Layout helpers -------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4.5rem, 9vw, 8.5rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.center { text-align: center; }
.mw-52 { max-width: 52ch; }
.mw-60 { max-width: 60ch; }
.mx-auto { margin-inline: auto; }
.stack > * + * { margin-top: 1.1rem; }

/* Eyebrow / section kicker */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--f-display);
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ''; width: 26px; height: 1px; background: currentColor; opacity: 0.6; }
.eyebrow.center-line::before { display: none; }

.section-head { max-width: 62ch; }
.section-head.center { margin-inline: auto; }
.section-head .h2 { margin-top: 0.9rem; }
.section-head p { margin-top: 1.1rem; }

/* ----- Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--f-display); font-weight: 500; font-size: 0.95rem;
  padding: 0.85rem 1.5rem; border-radius: 100px;
  border: 1px solid transparent; transition: all 0.3s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 1.05em; height: 1.05em; transition: transform 0.3s var(--ease); }
.btn-primary { background: var(--gold); color: #0a0a0a; box-shadow: 0 8px 30px -10px rgba(233, 189, 87, 0.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -10px rgba(233, 189, 87, 0.75); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-ghost { border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: #06080f; }
.btn-accent:hover { transform: translateY(-2px); filter: brightness(1.08); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--f-display); font-weight: 500; color: var(--accent);
  transition: gap 0.3s var(--ease);
}
.link-arrow svg { width: 1em; height: 1em; transition: transform 0.3s var(--ease); }
.link-arrow:hover { gap: 0.7rem; }
.link-arrow:hover svg { transform: translateX(3px); }

/* Chips / tags */
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.76rem; font-weight: 500; letter-spacing: 0.02em;
  padding: 0.34rem 0.7rem; border-radius: 100px;
  border: 1px solid var(--line-2); color: var(--text-2); background: rgba(255,255,255,0.02);
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ----- Navigation ------------------------------------------------------ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6, 8, 15, 0.72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; font-family: var(--f-display); font-weight: 600; letter-spacing: -0.01em; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--gold-2), var(--gold-deep));
  color: #0a0a0a; font-weight: 700; font-size: 1rem; flex-shrink: 0;
  box-shadow: 0 6px 18px -6px rgba(233, 189, 87, 0.7);
}
.brand__name { font-size: 1.06rem; }
.brand__name b { font-weight: 700; }
.brand__name span { color: var(--text-3); font-weight: 500; }

.nav__menu { display: flex; align-items: center; gap: 0.35rem; }
.nav__link {
  font-family: var(--f-display); font-size: 0.92rem; font-weight: 500; color: var(--text-2);
  padding: 0.5rem 0.85rem; border-radius: 100px; transition: color 0.25s, background 0.25s;
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--text); background: rgba(255,255,255,0.05); }
.nav__cta { margin-left: 0.6rem; }

/* Dropdown */
.has-drop { position: relative; }
.drop-toggle { display: inline-flex; align-items: center; gap: 0.35rem; }
.drop-toggle svg { width: 0.8em; height: 0.8em; transition: transform 0.3s; }
.has-drop[data-open="true"] .drop-toggle svg { transform: rotate(180deg); }
.drop {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(8px);
  width: min(680px, 86vw);
  background: rgba(12, 16, 26, 0.96); backdrop-filter: blur(20px);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 0.7rem; box-shadow: var(--shadow-2);
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.2rem;
  opacity: 0; visibility: hidden; pointer-events: none; transition: all 0.3s var(--ease);
}
.has-drop[data-open="true"] .drop { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
/* Invisible bridge over the gap so the menu stays open while the cursor travels to it */
.drop::before { content: ''; position: absolute; left: 0; right: 0; top: -16px; height: 18px; }
.drop__item { display: flex; gap: 0.8rem; align-items: center; padding: 0.7rem 0.8rem; border-radius: var(--r); transition: background 0.2s; }
.drop__item:hover { background: rgba(255,255,255,0.05); }
.drop__ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; background: color-mix(in srgb, var(--ac) 16%, transparent); color: var(--ac); }
.drop__ico svg { width: 20px; height: 20px; }
.drop__t { font-family: var(--f-display); font-weight: 500; font-size: 0.92rem; color: var(--text); }
.drop__d { font-size: 0.78rem; color: var(--text-3); }

/* Mobile nav */
.nav__toggle { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-2); align-items: center; justify-content: center; }
.nav__toggle span { position: relative; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }
.nav__toggle span::before, .nav__toggle span::after { content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }
.nav__toggle span::before { top: -6px; } .nav__toggle span::after { top: 6px; }
body.menu-open .nav__toggle span { background: transparent; }
body.menu-open .nav__toggle span::before { top: 0; transform: rotate(45deg); }
body.menu-open .nav__toggle span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0.2rem;
    background: rgba(8, 11, 19, 0.98); backdrop-filter: blur(20px);
    padding: 1rem var(--gutter) 2rem; border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all 0.35s var(--ease);
    max-height: calc(100dvh - 74px); overflow-y: auto;
  }
  body.menu-open .nav__menu { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav__link { padding: 0.85rem 0.6rem; font-size: 1rem; border-radius: 12px; }
  .nav__cta { margin: 0.5rem 0 0; }
  .nav__cta .btn { width: 100%; }
  .drop { position: static; transform: none; width: 100%; grid-template-columns: 1fr; opacity: 1; visibility: visible; pointer-events: auto; box-shadow: none; background: transparent; border: none; padding: 0.2rem 0 0.4rem; display: none; }
  .has-drop[data-open="true"] .drop { display: grid; transform: none; }
}

/* ----- Hero ------------------------------------------------------------ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding-block: 8rem 4rem; overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; z-index: -1; opacity: 0.9; }
.hero__glow { position: absolute; z-index: -1; inset: 0; background: radial-gradient(45vw 45vw at 70% 30%, rgba(233,189,87,0.12), transparent 60%); }
.hero__inner { max-width: 960px; }
.hero__eyebrow { margin-bottom: 1.6rem; }
.hero .display { margin-bottom: 1.4rem; }
.hero__lead { max-width: 40ch; margin-bottom: 2.2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.rotator { display: inline-grid; background: none; }
.rotator > span {
  grid-area: 1 / 1;
  background: linear-gradient(100deg, var(--gold-2), var(--gold) 55%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;                       /* JS animates these; CSS guarantees a sane default */
}
.rotator > span:first-child { opacity: 1; }
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .rotator > span { -webkit-text-fill-color: var(--gold); background: none; }
}
.hero__scroll { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.5rem; color: var(--text-3); font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; }
.hero__scroll .mouse { width: 22px; height: 34px; border: 1.5px solid var(--line-2); border-radius: 12px; position: relative; }
.hero__scroll .mouse::before { content: ''; position: absolute; top: 6px; left: 50%; width: 3px; height: 6px; background: var(--gold); border-radius: 3px; transform: translateX(-50%); animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%, 10px); } }

/* Hero marquee of subsidiaries */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 1.1rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 3.5rem; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--f-display); font-weight: 500; color: var(--text-3); white-space: nowrap; letter-spacing: 0.01em; }
.marquee__item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ac, var(--gold)); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ----- Stats ----------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stat { background: var(--bg-1); padding: clamp(1.4rem, 3vw, 2.4rem); }
.stat__num { font-family: var(--f-display); font-weight: 600; font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1; letter-spacing: -0.03em; }
.stat__num .grad-text, .stat__num span { display: inline; }
.stat__label { color: var(--text-3); font-size: 0.86rem; margin-top: 0.6rem; }
@media (max-width: 780px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ----- Subsidiary cards ------------------------------------------------ */
.subs-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(0.8rem, 1.6vw, 1.3rem); }
.sub-card {
  --ac: var(--gold);
  grid-column: span 4;
  position: relative; display: flex; flex-direction: column;
  padding: clamp(1.5rem, 2.4vw, 2rem);
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; min-height: 300px;
  transition: transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.5s;
  transform-style: preserve-3d;
}
.sub-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(60% 60% at var(--mx, 50%) 0%, color-mix(in srgb, var(--ac) 22%, transparent), transparent 70%);
  opacity: 0; transition: opacity 0.5s;
}
.sub-card:hover { border-color: color-mix(in srgb, var(--ac) 55%, transparent); box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--ac) 45%, transparent); }
.sub-card:hover::after { opacity: 1; }
.sub-card.is-wide { grid-column: span 8; }
.sub-card.is-half { grid-column: span 6; }
.sub-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: auto; }
.sub-card__ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--ac) 15%, transparent); color: var(--ac); border: 1px solid color-mix(in srgb, var(--ac) 30%, transparent); }
.sub-card__ico svg { width: 26px; height: 26px; }
.sub-card__sector { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); font-family: var(--f-display); }
.sub-card__body { margin-top: 2.4rem; }
.sub-card__name { font-family: var(--f-display); font-size: clamp(1.25rem, 2vw, 1.55rem); font-weight: 600; }
.sub-card__name b { color: var(--ac); font-weight: 600; }
.sub-card__desc { color: var(--text-2); font-size: 0.94rem; margin-top: 0.6rem; }
.sub-card__link { margin-top: 1.3rem; color: var(--ac); }
.sub-card__badge { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.25rem 0.6rem; border-radius: 100px; border: 1px solid var(--line-2); color: var(--text-3); }
@media (max-width: 900px) { .sub-card, .sub-card.is-wide, .sub-card.is-half { grid-column: span 6; } }
@media (max-width: 620px) { .sub-card, .sub-card.is-wide, .sub-card.is-half { grid-column: span 12; min-height: 260px; } }

/* Generic feature/value cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(0.9rem, 1.6vw, 1.3rem); }
.card {
  padding: clamp(1.4rem, 2.2vw, 1.9rem);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.008));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.card__ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 1.1rem; }
.card__ico svg { width: 23px; height: 23px; }
.card h3 { font-size: 1.12rem; margin-bottom: 0.5rem; }
.card p { font-size: 0.92rem; }

/* ----- Split / editorial ---------------------------------------------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(1.6rem, 4vw, 4.5rem); align-items: center; }
.split--rev .split__media { order: -1; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 2.2rem; } .split--rev .split__media { order: 0; } }

/* Image placeholder frame */
.imgph {
  position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 10px, transparent 10px 20px),
    var(--bg-1);
  display: grid; place-items: center; aspect-ratio: 4 / 3; color: var(--text-3);
}
.imgph[data-ratio="1"] { aspect-ratio: 1; }
.imgph[data-ratio="wide"] { aspect-ratio: 16 / 9; }
.imgph[data-ratio="tall"] { aspect-ratio: 3 / 4; }
.imgph__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.imgph__inner { text-align: center; padding: 1.2rem; }
.imgph__inner svg { width: 34px; height: 34px; margin-inline: auto; opacity: 0.5; }
.imgph__label { font-size: 0.76rem; letter-spacing: 0.08em; margin-top: 0.6rem; text-transform: uppercase; }
.imgph__hint { font-size: 0.72rem; color: var(--text-3); opacity: 0.7; margin-top: 0.2rem; }

/* ----- Leadership / Board --------------------------------------------- */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.person { text-align: center; }
.person__photo {
  aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; margin-bottom: 1rem;
  background: linear-gradient(160deg, var(--bg-3), var(--bg-1)); border: 1px solid var(--line);
  display: grid; place-items: center; position: relative;
  transition: border-color 0.4s, transform 0.4s var(--ease);
}
.person:hover .person__photo { border-color: var(--gold); transform: translateY(-4px); }
.person__initials { font-family: var(--f-display); font-weight: 600; font-size: 2.4rem; color: var(--text-3); }
.person__photo, .board-card__photo { overflow: hidden; }
.person__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 18%; z-index: 2; }
.person__ph-tag { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); border: 1px solid var(--line); padding: 0.2rem 0.55rem; border-radius: 100px; background: rgba(0,0,0,0.3); white-space: nowrap; }
.person__name { font-family: var(--f-display); font-weight: 600; font-size: 1.06rem; }
.person__role { color: var(--gold); font-size: 0.86rem; margin-top: 0.2rem; font-weight: 500; }
.person__note { color: var(--text-3); font-size: 0.82rem; margin-top: 0.3rem; }
.person--lg .person__photo { border-radius: var(--r-lg); }

/* Board highlight (President / Chairman) */
.board-lead { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2vw, 1.5rem); margin-bottom: clamp(1.5rem,3vw,2.5rem); }
.board-card { display: flex; gap: 1.3rem; align-items: center; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(180deg, rgba(233,189,87,0.05), transparent); }
.board-card__photo { width: 96px; height: 96px; flex-shrink: 0; border-radius: 18px; background: linear-gradient(160deg, var(--bg-3), var(--bg-1)); border: 1px solid var(--line); display: grid; place-items: center; position: relative; }
.board-card__photo .person__initials { font-size: 1.8rem; }
.board-card__role { color: var(--gold); font-family: var(--f-display); font-weight: 500; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }
.board-card__name { font-family: var(--f-display); font-weight: 600; font-size: 1.3rem; margin-top: 0.2rem; }
.board-card__note { color: var(--text-2); font-size: 0.88rem; margin-top: 0.35rem; }
@media (max-width: 680px) { .board-lead { grid-template-columns: 1fr; } }

/* ----- Achievements / recognition ------------------------------------- */
.ach-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(1rem, 2vw, 1.4rem); }
.ach {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  background: var(--bg-1); transition: transform 0.4s var(--ease), border-color 0.4s;
}
.ach:hover { transform: translateY(-4px); border-color: var(--line-2); }
.ach__media { position: relative; aspect-ratio: 16/10; background: linear-gradient(135deg, var(--accent-soft), transparent), var(--bg-3); display: grid; place-items: center; color: var(--text-3); border-bottom: 1px solid var(--line); overflow: hidden; }
.ach__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ach__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; height: 100%; }
.ach__tag { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-family: var(--f-display); }
.ach__title { font-family: var(--f-display); font-weight: 600; font-size: 1.08rem; margin-top: 0.5rem; }
.ach__text { font-size: 0.9rem; margin-top: 0.5rem; }
.ach__link { margin-top: auto; padding-top: 1rem; }

/* ----- Feature list (checks) ------------------------------------------ */
.flist { display: grid; gap: 0.75rem; }
.flist li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--text-2); font-size: 0.96rem; }
.flist li::before {
  content: ''; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; margin-top: 1px;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e9bd57' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.flist.cols { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .flist.cols { grid-template-columns: 1fr; } }

/* Two-column definition rows */
.deflist { display: grid; gap: 0; border-top: 1px solid var(--line); }
.deflist div { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.deflist dt { font-family: var(--f-display); font-weight: 500; color: var(--text); }
.deflist dd { color: var(--text-2); }
@media (max-width: 560px) { .deflist div { grid-template-columns: 1fr; gap: 0.3rem; } }

/* ----- Product blocks (tech page) ------------------------------------- */
.product {
  border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.028), transparent);
}
.product__head { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 0; align-items: stretch; }
.product__intro { padding: clamp(1.6rem, 3vw, 2.6rem); }
.product__media { border-left: 1px solid var(--line); min-height: 260px; }
.product__media .imgph { border: none; border-radius: 0; height: 100%; }
.product__badge { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; font-family: var(--f-display); color: var(--ac, var(--gold)); border: 1px solid color-mix(in srgb, var(--ac, var(--gold)) 35%, transparent); padding: 0.3rem 0.7rem; border-radius: 100px; }
.product__name { font-family: var(--f-display); font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 600; margin: 1rem 0 0.2rem; letter-spacing: -0.02em; }
.product__tag { color: var(--ac, var(--gold)); font-family: var(--f-display); font-weight: 500; }
.product__detail { padding: clamp(1.6rem, 3vw, 2.6rem); border-top: 1px solid var(--line); }
@media (max-width: 820px) { .product__head { grid-template-columns: 1fr; } .product__media { border-left: none; border-top: 1px solid var(--line); } }

/* Status pill */
.status { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.76rem; font-family: var(--f-display); padding: 0.3rem 0.7rem; border-radius: 100px; border: 1px solid var(--line-2); color: var(--text-2); }
.status .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2s infinite; }
.status.live { color: #7fe0a6; } .status.live .pulse { background: #4ade80; }
.status.dev  { color: var(--gold-2); } .status.dev .pulse { background: var(--gold); }
.status.soon { color: var(--text-3); } .status.soon .pulse { background: var(--text-3); animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ----- Locations (realty / presence) ---------------------------------- */
.loc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(1rem, 2vw, 1.4rem); }
.loc { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--bg-1); transition: transform 0.4s var(--ease), border-color 0.4s; }
.loc:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.loc__media { aspect-ratio: 16/10; background: linear-gradient(140deg, var(--accent-soft), transparent), var(--bg-3); position: relative; display: grid; place-items: center; color: var(--text-3); }
.loc__pin { position: absolute; top: 12px; left: 12px; font-size: 0.72rem; font-family: var(--f-display); background: rgba(0,0,0,0.45); border: 1px solid var(--line-2); padding: 0.25rem 0.6rem; border-radius: 100px; color: var(--text); }
.loc__body { padding: 1.2rem 1.3rem 1.4rem; }
.loc__name { font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; }
.loc__meta { color: var(--text-3); font-size: 0.84rem; margin-top: 0.3rem; }
.loc__desc { font-size: 0.9rem; margin-top: 0.7rem; }

/* Operational sites list (StarNET) */
.sites { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(0.9rem,1.6vw,1.2rem); }
.site-col { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.3rem 1.4rem; background: var(--bg-1); }
.site-col__uni { font-family: var(--f-display); font-weight: 600; font-size: 1rem; display: flex; align-items: center; gap: 0.55rem; }
.site-col__uni .abbr { font-size: 0.7rem; color: var(--c-tech); border: 1px solid color-mix(in srgb, var(--c-tech) 40%, transparent); padding: 0.1rem 0.45rem; border-radius: 6px; }
.site-col ul { margin-top: 0.9rem; display: grid; gap: 0.45rem; }
.site-col li { font-size: 0.88rem; color: var(--text-2); display: flex; gap: 0.5rem; align-items: center; }
.site-col li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--c-tech); flex-shrink: 0; }

/* ----- CTA band -------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(2.5rem, 6vw, 5rem); border: 1px solid var(--line); background: linear-gradient(120deg, rgba(233,189,87,0.10), rgba(76,141,255,0.06)); text-align: center; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(40vw 40vw at 50% -20%, rgba(233,189,87,0.18), transparent 60%); pointer-events: none; }
.cta-band__inner { position: relative; }
.cta-band .btns { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }

/* ----- Footer ---------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 5rem) 2rem; margin-top: 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(1.5rem, 3vw, 3rem); }
.footer__brand { max-width: 34ch; }
.footer__brand p { font-size: 0.9rem; margin-top: 1rem; }
.footer__col h4 { font-family: var(--f-display); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 1.1rem; font-weight: 600; }
.footer__col ul { display: grid; gap: 0.65rem; }
.footer__col a { color: var(--text-2); font-size: 0.9rem; transition: color 0.25s; }
.footer__col a:hover { color: var(--gold); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.6rem; border-top: 1px solid var(--line); color: var(--text-3); font-size: 0.84rem; }
.footer__social { display: flex; gap: 0.6rem; }
.footer__social a { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; display: grid; place-items: center; color: var(--text-2); transition: all 0.3s; }
.footer__social a:hover { color: var(--gold); border-color: var(--gold); transform: translateY(-2px); }
.footer__social svg { width: 18px; height: 18px; }
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: span 2; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } .footer__brand { grid-column: auto; } }

/* ----- Company page hero ---------------------------------------------- */
.chero { position: relative; padding-block: clamp(8rem, 14vw, 12rem) clamp(3rem, 6vw, 5rem); overflow: hidden; }
.chero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50vw 40vh at 20% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%); }
.chero__crumb { display: flex; align-items: center; gap: 0.5rem; color: var(--text-3); font-size: 0.84rem; margin-bottom: 1.6rem; }
.chero__crumb a:hover { color: var(--accent); }
.chero__logo { display: inline-flex; align-items: center; gap: 0.9rem; margin-bottom: 1.5rem; }
.chero__logo .mark { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent); }
.chero__logo .mark svg { width: 30px; height: 30px; }
.chero__sector { font-family: var(--f-display); letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.78rem; color: var(--accent); }
.chero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); margin-bottom: 1rem; }
.chero__lead { max-width: 54ch; }
.chero__meta { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.8rem; }

/* Accent theme setters */
.t-tech   { --accent: var(--c-tech);   --accent-soft: color-mix(in srgb, var(--c-tech) 15%, transparent); }
.t-agro   { --accent: var(--c-agro);   --accent-soft: color-mix(in srgb, var(--c-agro) 15%, transparent); }
.t-eng    { --accent: var(--c-eng);    --accent-soft: color-mix(in srgb, var(--c-eng) 15%, transparent); }
.t-bank   { --accent: var(--c-bank);   --accent-soft: color-mix(in srgb, var(--c-bank) 15%, transparent); }
.t-realty { --accent: var(--c-realty); --accent-soft: color-mix(in srgb, var(--c-realty) 15%, transparent); }
.t-logi   { --accent: var(--c-logi);   --accent-soft: color-mix(in srgb, var(--c-logi) 15%, transparent); }
.t-cosmos { --accent: var(--c-cosmos); --accent-soft: color-mix(in srgb, var(--c-cosmos) 15%, transparent); }
.t-health { --accent: var(--c-health); --accent-soft: color-mix(in srgb, var(--c-health) 15%, transparent); }

/* Update check icon color to accent for themed pages */
.t-tech .flist li::before   { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234c8dff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); }
.t-agro .flist li::before   { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2343c56b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); }
.t-health .flist li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317c5b6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); }
.t-realty .flist li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dd8a5a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); }
.t-cosmos .flist li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239d8bff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); }
.t-eng .flist li::before    { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5a524' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); }
.t-bank .flist li::before   { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b6bff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); }
.t-logi .flist li::before   { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff7a45' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); }

/* ----- Scroll reveal --------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-delay="3"] { transition-delay: 0.24s; }
[data-reveal][data-delay="4"] { transition-delay: 0.32s; }
[data-reveal][data-delay="5"] { transition-delay: 0.40s; }

/* ----- Misc utilities -------------------------------------------------- */
.divider { height: 1px; background: var(--line); border: none; }
.pill-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.muted { color: var(--text-3); }
.accent-text { color: var(--accent); }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.noscript-note { background: var(--bg-2); border: 1px solid var(--line); padding: 0.8rem 1rem; border-radius: 10px; text-align: center; font-size: 0.85rem; }
.back-top { position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 12px; background: var(--bg-solid); border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--text); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s var(--ease); z-index: 90; }
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { border-color: var(--gold); color: var(--gold); }
