/* MetaFenixGroup.com: corporate structure & transition page.
   Self-hosted fonts so no visitor IP is sent to Google, matching the house rule
   already established for metaashes.co.uk. Palette pulled directly from
   website/static/css/site.css so this reads as the same family without being
   the same product. */

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/IBMPlexMono-normal-400.woff2) format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/IBMPlexMono-normal-500.woff2) format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/Inter-normal-400.woff2) format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/SourceSerif4-normal-400.woff2) format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/SourceSerif4-italic-500.woff2) format('woff2');
}

:root {
  --navy-950: #061423;
  --navy-900: #0A1F33;
  --navy: #0F2A44;
  --navy-700: #163C5F;
  --navy-600: #1E4D78;
  --gold: #C9A227;
  --gold-light: #D9BC5F;
  --gold-pale: #F3E6B8;
  --ivory: #F7F5EF;
  --white: #FFFFFF;
  --ink: #1A1A1A;
  --slate: #3A4654;
  --slate-light: #6B7684;
  --line: #E1E4E9;
  --line-dark: rgba(201, 162, 39, 0.18);

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--navy);
}
.on-navy h1, .on-navy h2, .on-navy h3 { color: var(--white); }

p { margin: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 11px/1 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold);
}

.divider {
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 28px 0;
  opacity: 0;
  animation: fadeSlide .7s ease forwards .15s;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; animation: fadeUp .7s ease forwards; }
.reveal--1 { animation-delay: .05s; }
.reveal--2 { animation-delay: .15s; }
.reveal--3 { animation-delay: .25s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .divider { animation: none; opacity: 1; }
}

/* ── Masthead ─────────────────────────────────────────────────────── */
.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 31, 51, .97);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { width: 34px; height: 34px; }
.brand__word {
  font: 600 18px/1 var(--serif);
  color: var(--white);
  letter-spacing: .02em;
}
.brand__word span { color: var(--gold); }
.masthead__links {
  display: flex;
  gap: 28px;
  font: 500 13px/1 var(--mono);
  letter-spacing: .04em;
}
.masthead__links a {
  color: rgba(255,255,255,.68);
  transition: color .2s ease;
}
.masthead__links a:hover { color: var(--gold-light); }
@media (max-width: 620px) {
  .masthead__links { display: none; }
}

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  background:
    radial-gradient(120% 100% at 82% -10%, var(--navy-700) 0%, var(--navy) 46%, var(--navy-950) 100%);
  padding-block: 88px 76px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 75% 20%, black, transparent);
  pointer-events: none;
}
.hero__inner { position: relative; max-width: 720px; }
.hero h1 {
  font-size: clamp(32px, 4.6vw, 46px);
  margin-bottom: 22px;
}
.hero__lede {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255,255,255,.74);
  max-width: 620px;
}

/* ── Sections, general ────────────────────────────────────────────── */
.section { padding-block: 76px; scroll-margin-top: 68px; }
.former { scroll-margin-top: 68px; }
.section--ivory { background: var(--ivory); }
.section--navy {
  background: radial-gradient(120% 90% at 85% 0%, var(--navy-700) 0%, var(--navy) 45%, var(--navy-900) 100%);
}
.section__head { max-width: 640px; margin-bottom: 48px; }
.section__head h2 { font-size: clamp(24px, 3vw, 32px); }
.section__intro {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--slate);
  margin-top: 16px;
}
.on-navy .section__intro { color: rgba(255,255,255,.72); }

/* ── Corporate structure diagram ──────────────────────────────────── */
.structure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.structure__apex {
  border: 1px solid var(--line-dark);
  background: rgba(255,255,255,.03);
  border-radius: 4px;
  padding: 18px 40px;
  text-align: center;
}
.structure__apex .mono-label {
  font: 600 13px/1 var(--mono);
  letter-spacing: .18em;
  color: var(--gold-light);
}
.structure__stem {
  width: 1px;
  height: 36px;
  background: linear-gradient(var(--line-dark), var(--gold));
}
.structure__branch-line {
  width: 100%;
  max-width: 720px;
  height: 1px;
  background: var(--line-dark);
  position: relative;
}
.structure__branch-line::before,
.structure__branch-line::after {
  content: "";
  position: absolute;
  top: 0;
  width: 1px;
  height: 22px;
  background: var(--line-dark);
}
.structure__branch-line::before { left: 25%; }
.structure__branch-line::after { left: 75%; }
.structure__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  width: 100%;
  max-width: 720px;
  margin-top: 22px;
}
.structure__node {
  border: 1px solid var(--line-dark);
  background: rgba(255,255,255,.025);
  border-radius: 4px;
  padding: 22px 24px;
  text-align: center;
}
.structure__node .region {
  font: 500 11px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  display: block;
}
.structure__node .entity {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--white);
  line-height: 1.35;
}
.structure__node--logo {
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: left;
}
.structure__node-icon {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 6px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.structure__node-icon img { width: 100%; height: 100%; object-fit: contain; }
.structure__node-text { display: flex; flex-direction: column; }
.structure__node-text .region,
.structure__node-text .entity { margin-bottom: 0; }
.structure__node-text .region { margin-bottom: 8px; }
.structure__tech {
  margin-top: 40px;
  padding-top: 36px;
  border-top: 1px dashed var(--line-dark);
  width: 100%;
  max-width: 720px;
  display: flex;
  justify-content: center;
}
.structure__tech-node {
  border: 1px solid var(--gold);
  background: linear-gradient(180deg, rgba(201,162,39,.08), rgba(201,162,39,.02));
  border-radius: 4px;
  padding: 22px 36px;
  text-align: center;
}
.structure__tech-node .region {
  font: 500 11px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 10px;
  display: block;
}
.structure__tech-node .entity {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--white);
}
.structure__tech-node--logo {
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: left;
}
.structure__tech-node--logo .structure__node-icon {
  border-color: var(--gold);
  background: rgba(255,255,255,.04);
}
.structure__tech-node--logo .structure__node-text .region,
.structure__tech-node--logo .structure__node-text .entity { margin-bottom: 0; }
.structure__tech-node--logo .structure__node-text .region { margin-bottom: 8px; }
@media (max-width: 620px) {
  .structure__row { grid-template-columns: 1fr; max-width: 340px; }
  .structure__branch-line { display: none; }
}

/* ── Identity cards ────────────────────────────────────────────────── */
.identity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 860px) {
  .identity-grid { grid-template-columns: 1fr; }
}
.identity-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.identity-card--tech {
  border-color: var(--gold);
  background: linear-gradient(180deg, var(--white) 0%, var(--gold-pale) 220%);
  box-shadow: 0 2px 0 var(--gold);
}
.identity-card .region {
  font: 500 11px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy-600);
}
.identity-card--tech .region { color: var(--gold); }
.identity-card h3 {
  font-size: 19px;
  margin-top: 2px;
}
.identity-card p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--slate);
  flex-grow: 1;
}
.identity-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 13px/1 var(--mono);
  letter-spacing: .03em;
  color: var(--navy);
  padding-top: 6px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
}
.identity-card--tech .identity-card__cta { color: var(--gold); border-color: rgba(201,162,39,.3); }
.identity-card__cta svg { width: 14px; height: 14px; transition: transform .2s ease; }
.identity-card__cta:hover svg { transform: translateX(3px); }
.identity-card__note {
  font-size: 13px;
  color: var(--slate-light);
  font-style: italic;
}

/* ── Transition section ───────────────────────────────────────────── */
.transition {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 780px) {
  .transition { grid-template-columns: 1fr; gap: 28px; }
}
.transition p + p { margin-top: 16px; }
.transition__copy p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--slate);
}

/* ── Former identity section ──────────────────────────────────────── */
.former {
  border-top: 1px solid var(--line);
  padding-block: 56px;
  background: var(--white);
}
.former__inner { max-width: 760px; }
.former p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--slate-light);
}
.former p + p { margin-top: 14px; }

/* ── Footer ────────────────────────────────────────────────────────── */
.footer {
  background: var(--navy-950);
  padding-block: 48px 32px;
}
.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line-dark);
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer__brand img { width: 30px; height: 30px; }
.footer__brand-word {
  font: 600 16px/1 var(--serif);
  color: var(--white);
}
.footer__brand-sub {
  font: 500 11px/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-top: 6px;
}
.footer__links {
  display: flex;
  gap: 32px;
  font: 500 13px/1 var(--mono);
}
.footer__links a {
  color: rgba(255,255,255,.62);
  transition: color .2s ease;
}
.footer__links a:hover { color: var(--gold-light); }
.footer__legal {
  padding-top: 22px;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(255,255,255,.38);
  max-width: 680px;
}

@media (max-width: 480px) {
  .wrap { padding-inline: 18px; }
  .hero { padding-block: 64px 52px; }
  .section { padding-block: 56px; }
}
