/* ==========================================================================
   FG Real Estate Development — site styles
   Arabic (RTL, default) + English (LTR). Logical properties throughout,
   so one stylesheet serves both directions.
   ========================================================================== */

/* ---------- Fonts (self-hosted, OFL) ---------- */
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/plex-arabic-300-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/plex-arabic-400-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/plex-arabic-500-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/plex-arabic-600-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url("../fonts/manrope-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  /* Brand — gold sampled from the official FG logo file */
  --fg-corporate-navy-950: #081329;
  --fg-corporate-navy-900: #0c1a38;
  --fg-corporate-navy-800: #11244a;
  --fg-corporate-navy-700: #1b3260;
  --fg-corporate-gold: #bc9a5d;
  --fg-corporate-gold-soft: #d8c49a;
  --fg-corporate-gold-text: #9c7b43;   /* large gold text on light surfaces */
  --fg-corporate-gold-deep: #7f612c;   /* small gold text / icons on light surfaces */
  --fg-corporate-ivory: #f6f4ef;
  --fg-corporate-sand: #ece7de;
  --fg-corporate-paper: #ffffff;
  --fg-corporate-charcoal: #2a2d33;
  --fg-corporate-stone: #5c616a;

  --fg-corporate-on-dark: rgba(255, 255, 255, 0.94);
  --fg-corporate-on-dark-muted: rgba(255, 255, 255, 0.74);
  --fg-corporate-on-dark-faint: rgba(255, 255, 255, 0.56);
  --fg-corporate-line-dark: rgba(255, 255, 255, 0.12);
  --fg-corporate-line-light: rgba(12, 26, 56, 0.12);

  --fg-corporate-font-ar: "IBM Plex Sans Arabic", "Manrope", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --fg-corporate-font-en: "Manrope", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fg-corporate-font-latin: "Manrope", system-ui, sans-serif;

  --fg-corporate-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --fg-corporate-ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --fg-corporate-container: 1180px;
  --fg-corporate-gutter: clamp(20px, 5vw, 56px);
  --fg-corporate-section: clamp(56px, 6.5vw, 104px);
  --fg-corporate-header-h: 68px;
}

/* ---------- Base ----------
   Everything FG renders lives inside .fg-corporate-root, so these resets never touch
   markup injected by other plugins (cookie banners, chat widgets, the admin bar). */
.fg-corporate-root, .fg-corporate-root *, .fg-corporate-root *::before, .fg-corporate-root *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--fg-corporate-header-h);
  background: var(--fg-corporate-navy-950);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body.fg-corporate-page {
  margin: 0;
  background: var(--fg-corporate-ivory);
  overflow-x: clip;
}
.fg-corporate-root {
  color: var(--fg-corporate-charcoal);
  font-family: var(--fg-corporate-font-ar);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
html[lang|="en"] .fg-corporate-root { font-family: var(--fg-corporate-font-en); line-height: 1.7; }

.fg-corporate-root :where(img, svg) { display: block; max-width: 100%; }
.fg-corporate-root :where(img) { height: auto; }
.fg-corporate-root :where(a) { color: inherit; text-decoration: none; }
.fg-corporate-root :where(h1, h2, h3, h4, p, ul, ol, figure, blockquote) { margin: 0; }
.fg-corporate-root :where(ul, ol) { padding: 0; list-style: none; }
.fg-corporate-root :where(button) { font: inherit; }
.fg-corporate-root :where(cite) { font-style: normal; }

.fg-corporate-root :focus-visible { outline: 2px solid var(--fg-corporate-gold); outline-offset: 4px; }

.fg-corporate-container {
  width: min(100% - 2 * var(--fg-corporate-gutter), var(--fg-corporate-container));
  margin-inline: auto;
}

.fg-corporate-latin { font-family: var(--fg-corporate-font-latin); }

.fg-corporate-skip-link {
  position: fixed;
  inset-inline-start: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--fg-corporate-gold);
  color: var(--fg-corporate-navy-950);
  font-weight: 500;
  transition: top 0.3s var(--fg-corporate-ease);
}
.fg-corporate-skip-link:focus { top: 12px; }

.fg-corporate-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.fg-corporate-rule {
  display: block;
  width: 64px;
  height: 1px;
  background: var(--fg-corporate-gold);
  margin-block: clamp(18px, 2vw, 26px);
}
.fg-corporate-rule--center { margin-inline: auto; }

/* ---------- Header: logo + phone only ---------- */
.fg-corporate-site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--fg-corporate-header-h);
  background-color: rgba(8, 19, 41, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 0.5s var(--fg-corporate-ease), border-color 0.5s var(--fg-corporate-ease);
}
.fg-corporate-site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.fg-corporate-site-header__brand { display: block; flex: 0 1 auto; min-width: 0; }
.fg-corporate-site-header__brand img { width: clamp(170px, 14vw, 230px); }

.fg-corporate-site-header__phone {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-block: 10px;
  color: #fff;
  font-family: var(--fg-corporate-font-latin);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.fg-corporate-site-header__phone svg {
  width: 17px; height: 17px;
  fill: none; stroke: var(--fg-corporate-gold-soft); stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.fg-corporate-site-header__phone span { transition: color 0.35s var(--fg-corporate-ease); }
.fg-corporate-site-header__phone:hover span { color: var(--fg-corporate-gold-soft); }

/* WordPress: keep the fixed header below the admin bar for logged-in users. */
.admin-bar .fg-corporate-site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .fg-corporate-site-header { top: 46px; } }

/* Darkens once the page scrolls (solid colour, no blur — keeps scrolling smooth on phones).
   Native scroll-driven animation where supported; site.js adds .is-scrolled elsewhere. */
.fg-corporate-site-header.fg-corporate-is-scrolled,
.fg-corporate-site-header--solid {
  background-color: rgba(8, 19, 41, 0.94);
  border-color: rgba(255, 255, 255, 0.06);
}
@supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
  .fg-corporate-site-header:not(.fg-corporate-site-header--solid) {
    animation: fg-corporate-header-tint linear both;
    animation-timeline: scroll(root block);
    animation-range: 0px 160px;
  }
}
@keyframes fg-corporate-header-tint {
  to {
    background-color: rgba(8, 19, 41, 0.94);
    border-color: rgba(255, 255, 255, 0.06);
  }
}

/* ---------- Floating dock: language + company profile (outside the header) ---------- */
.fg-corporate-dock {
  position: fixed;
  z-index: 40;
  inset-block-end: 24px;
  inset-inline-end: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(8, 19, 41, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.fg-corporate-dock__btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--fg-corporate-font-latin);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: background-color 0.35s var(--fg-corporate-ease), color 0.35s var(--fg-corporate-ease);
}
.fg-corporate-dock__btn[lang="ar"] { font-family: var(--fg-corporate-font-ar); font-size: 13px; letter-spacing: 0; font-weight: 500; }
.fg-corporate-dock__btn svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.fg-corporate-dock__btn:hover, .fg-corporate-dock__btn:focus-visible { background: var(--fg-corporate-gold); color: var(--fg-corporate-navy-950); }
.fg-corporate-dock__tip {
  position: absolute;
  top: 50%;
  inset-inline-end: calc(100% + 12px);
  transform: translateY(-50%);
  padding: 6px 12px;
  border-radius: 4px;
  background: var(--fg-corporate-navy-950);
  color: #fff;
  font-family: var(--fg-corporate-font-ar);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--fg-corporate-ease);
}
html[lang|="en"] .fg-corporate-dock__tip { font-family: var(--fg-corporate-font-en); }
.fg-corporate-dock__btn:hover .fg-corporate-dock__tip, .fg-corporate-dock__btn:focus-visible .fg-corporate-dock__tip { opacity: 1; }

/* ---------- Hero ---------- */
.fg-corporate-hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: clip;
  background: var(--fg-corporate-navy-950);
  color: #fff;
}
.fg-corporate-hero__media { position: absolute; inset: 0; z-index: -2; }
.fg-corporate-hero__media picture, .fg-corporate-hero__media img { width: 100%; height: 100%; }
.fg-corporate-hero__media img { object-fit: cover; object-position: 50% 45%; }

.fg-corporate-hero__veil { position: absolute; inset: 0; z-index: -1; }
.fg-corporate-hero__veil {
  background:
    radial-gradient(ellipse 58% 46% at 50% 50%, rgba(8, 19, 41, 0.56), rgba(8, 19, 41, 0) 72%),
    linear-gradient(180deg, rgba(8, 19, 41, 0.66) 0%, rgba(8, 19, 41, 0.3) 30%, rgba(8, 19, 41, 0.34) 62%, rgba(8, 19, 41, 0.92) 100%);
}
.fg-corporate-hero__veil::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 45% at 50% 100%, rgba(214, 176, 112, 0.14), rgba(214, 176, 112, 0) 70%);
}

.fg-corporate-hero__content {
  width: min(100% - 2 * var(--fg-corporate-gutter), 1120px);
  padding-block: calc(var(--fg-corporate-header-h) + 32px) 132px;
  text-align: center;
}
.fg-corporate-hero__title {
  font-size: clamp(34px, 5vw, 72px);
  font-weight: 500;
  line-height: 1.24;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 2px 40px rgba(8, 19, 41, 0.35);
}
html[lang|="en"] .fg-corporate-hero__title {
  font-size: clamp(32px, 4.6vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.025em;
}
.fg-corporate-hero__line { display: block; }
.fg-corporate-hero__line--2 { font-weight: 300; color: rgba(255, 255, 255, 0.9); }
html[lang|="en"] .fg-corporate-hero__line--2 { font-weight: 300; }

.fg-corporate-hero__rule {
  display: block;
  width: 72px;
  height: 1px;
  margin: clamp(20px, 2.6vw, 32px) auto clamp(12px, 1.4vw, 18px);
  background: var(--fg-corporate-gold);
}
.fg-corporate-hero__subtitle {
  font-size: clamp(15px, 1.15vw, 17.5px);
  font-weight: 400;
  color: var(--fg-corporate-gold-soft);
}
html[lang|="en"] .fg-corporate-hero__subtitle { letter-spacing: 0.14em; font-size: clamp(13px, 1.1vw, 15px); font-weight: 500; }

.fg-corporate-hero__cta {
  position: absolute;
  inset-block-end: clamp(24px, 5vh, 44px);
  inset-inline: 0;
  margin-inline: auto;
  width: max-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 8px 12px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.86);
  transition: color 0.35s var(--fg-corporate-ease);
}
.fg-corporate-hero__cta:hover { color: var(--fg-corporate-gold-soft); }
.fg-corporate-hero__cta-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(var(--fg-corporate-gold), rgba(188, 154, 93, 0));
  transform-origin: top;
}

@media (prefers-reduced-motion: no-preference) {
  .fg-corporate-hero__media img { animation: fg-corporate-hero-settle 9s var(--fg-corporate-ease-out) both; }
  .fg-corporate-hero__line, .fg-corporate-hero__subtitle, .fg-corporate-hero__cta { animation: fg-corporate-rise 1.1s var(--fg-corporate-ease-out) both; }
  .fg-corporate-hero__line--1 { animation-delay: 0.2s; }
  .fg-corporate-hero__line--2 { animation-delay: 0.38s; }
  .fg-corporate-hero__rule { animation: fg-corporate-draw 1.2s var(--fg-corporate-ease-out) 0.7s both; }
  .fg-corporate-hero__subtitle { animation-delay: 0.85s; }
  .fg-corporate-hero__cta { animation-delay: 1.25s; }
  .fg-corporate-hero__cta-line { animation: fg-corporate-cue 3.2s var(--fg-corporate-ease) 2s infinite; }
}
@keyframes fg-corporate-hero-settle { from { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes fg-corporate-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes fg-corporate-draw { from { transform: scaleX(0); } }
@keyframes fg-corporate-cue {
  0% { transform: scaleY(0); opacity: 1; }
  55% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* Gentle hero parallax as the page leaves the hero (progressive enhancement). */
@supports ((animation-timeline: view()) and (animation-range: entry)) {
  @media (prefers-reduced-motion: no-preference) {
    .fg-corporate-hero { view-timeline: --fg-corporate-hero block; }
    .fg-corporate-hero__media {
      animation: fg-corporate-hero-drift linear both;
      animation-timeline: --fg-corporate-hero;
      animation-range: exit 0% exit 100%;
    }
    .fg-corporate-hero__content {
      animation: fg-corporate-hero-lift linear both;
      animation-timeline: --fg-corporate-hero;
      animation-range: exit 0% exit 65%;
    }
  }
}
@keyframes fg-corporate-hero-drift { to { transform: translateY(16%); } }
@keyframes fg-corporate-hero-lift { to { opacity: 0; transform: translateY(-48px); } }

/* ---------- Leadership sections ---------- */
.fg-corporate-leader {
  position: relative;
  padding-block: var(--fg-corporate-section);
  color: var(--fg-corporate-on-dark);
  overflow: clip;
}
.fg-corporate-leader--founder { background: var(--fg-corporate-navy-800); }
.fg-corporate-leader--ceo { background: var(--fg-corporate-navy-900); }

.fg-corporate-leader__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.fg-corporate-portrait {
  position: relative;
  width: 100%;
  max-width: 400px;
}
/* The client's images are shown exactly as supplied — whole, never cropped.
   They carry their own white text on a transparent background, made for the navy sections. */
.fg-corporate-portrait img {
  width: 100%;
  height: auto;
}
/* Physical left/right on purpose: the image itself is never mirrored. */
.fg-corporate-portrait__frame {
  position: absolute;
  left: var(--fg-corporate-l);
  top: var(--fg-corporate-t);
  right: var(--fg-corporate-r);
  bottom: var(--fg-corporate-b);
  outline: 1px solid rgba(188, 154, 93, 0.75);
  outline-offset: 10px;
  pointer-events: none;
}

.fg-corporate-leader__heading { font-weight: inherit; }
.fg-corporate-leader__role {
  display: block;
  font-size: clamp(15px, 1.1vw, 17px);
  font-weight: 500;
  color: var(--fg-corporate-gold);
}
html[lang|="en"] .fg-corporate-leader__role { letter-spacing: 0.02em; }
.fg-corporate-leader__honorific {
  display: block;
  margin-top: clamp(14px, 1.6vw, 22px);
  font-size: clamp(15px, 1.1vw, 17px);
  font-weight: 300;
  color: var(--fg-corporate-on-dark-muted);
}
.fg-corporate-leader__name {
  display: block;
  margin-top: 6px;
  font-size: clamp(22px, 2.1vw, 32px);
  font-weight: 400;
  line-height: 1.38;
  color: #fff;
  text-wrap: balance;
}
.fg-corporate-leader__role + .fg-corporate-leader__name { margin-top: clamp(14px, 1.6vw, 22px); }
html[lang|="en"] .fg-corporate-leader__name { line-height: 1.16; letter-spacing: -0.015em; }

.fg-corporate-leader__bio {
  font-size: clamp(15px, 1.05vw, 16.5px);
  line-height: 2;
  color: var(--fg-corporate-on-dark-muted);
  max-width: 34em;
}
html[lang|="en"] .fg-corporate-leader__bio { line-height: 1.75; }

.fg-corporate-leader__facts {
  display: grid;
  gap: 10px;
  margin-bottom: clamp(14px, 1.6vw, 20px);
}
.fg-corporate-leader__facts li {
  position: relative;
  padding-inline-start: 24px;
  font-size: clamp(14.5px, 1.05vw, 16px);
  font-weight: 500;
  line-height: 1.75;
  color: #fff;
}
.fg-corporate-leader__facts li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.85em;
  width: 12px;
  height: 1px;
  background: var(--fg-corporate-gold);
}

/* ---------- The King and the Crown Prince ---------- */
.fg-corporate-kings {
  background: var(--fg-corporate-navy-950);
  color: var(--fg-corporate-on-dark);
  padding-block: var(--fg-corporate-section);
}
.fg-corporate-kings__item {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(28px, 4.5vw, 72px);
  align-items: center;
}
.fg-corporate-kings__item + .fg-corporate-kings__item {
  margin-top: clamp(40px, 5vw, 72px);
  padding-top: clamp(40px, 5vw, 72px);
  border-top: 1px solid var(--fg-corporate-line-dark);
}
.fg-corporate-kings__portrait {
  width: 100%;
  max-width: 270px;
  padding: 10px;
  border: 1px solid rgba(188, 154, 93, 0.65);
}
.fg-corporate-kings__portrait img { width: 100%; height: auto; }
.fg-corporate-kings__mark {
  display: block;
  height: 34px;
  font-family: var(--fg-corporate-font-latin);
  font-size: 76px;
  line-height: 0.95;
  color: var(--fg-corporate-gold);
}
.fg-corporate-kings__quote p {
  font-size: clamp(17px, 1.45vw, 22px);
  font-weight: 300;
  line-height: 1.95;
  color: #fff;
  text-wrap: pretty;
}
html[lang|="en"] .fg-corporate-kings__quote p { font-size: clamp(16.5px, 1.35vw, 21px); line-height: 1.5; letter-spacing: -0.005em; }
.fg-corporate-kings__by { display: flex; flex-direction: column; gap: 6px; }
.fg-corporate-kings__name {
  font-style: normal;
  font-size: clamp(14.5px, 1.05vw, 16px);
  font-weight: 500;
  line-height: 1.6;
  color: var(--fg-corporate-gold-soft);
}
.fg-corporate-kings__title { font-size: 15px; color: var(--fg-corporate-on-dark-faint); }

/* ---------- The Kingdom's vision for the real estate sector ---------- */
.fg-corporate-kvision {
  background: var(--fg-corporate-ivory);
  color: var(--fg-corporate-navy-900);
  padding-block: var(--fg-corporate-section);
}
.fg-corporate-kvision__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(28px, 4.5vw, 72px);
  align-items: start;
}
.fg-corporate-kvision__head { position: sticky; top: calc(var(--fg-corporate-header-h) + 40px); }
.fg-corporate-kvision__logo { width: clamp(130px, 11vw, 170px); height: auto; margin-bottom: clamp(18px, 2vw, 26px); }
.fg-corporate-kvision__title { margin-bottom: 0; text-wrap: balance; }
.fg-corporate-kvision__body {
  padding-inline-start: clamp(18px, 2.2vw, 34px);
  border-inline-start: 1px solid var(--fg-corporate-gold);
}
.fg-corporate-kvision__body p {
  max-width: 40em;
  font-size: clamp(14.5px, 1.05vw, 16px);
  line-height: 2.05;
  color: var(--fg-corporate-charcoal);
}
.fg-corporate-kvision__body p:first-child { font-size: clamp(16px, 1.25vw, 18.5px); color: var(--fg-corporate-navy-900); }
.fg-corporate-kvision__body p + p { margin-top: 18px; }
html[lang|="en"] .fg-corporate-kvision__body p { line-height: 1.75; }

/* ---------- About ---------- */
.fg-corporate-about {
  background: var(--fg-corporate-ivory);
  color: var(--fg-corporate-navy-900);
  padding-block: var(--fg-corporate-section);
}
.fg-corporate-about__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.fg-corporate-about__title {
  font-size: clamp(23px, 2.2vw, 32px);
  font-weight: 500;
  line-height: 1.3;
}
html[lang|="en"] .fg-corporate-about__title { letter-spacing: -0.015em; line-height: 1.15; }
.fg-corporate-about__lead {
  margin-top: 24px;
  font-size: clamp(15px, 1.05vw, 16.5px);
  line-height: 2;
  color: var(--fg-corporate-stone);
  max-width: 36em;
}
html[lang|="en"] .fg-corporate-about__lead { line-height: 1.75; }
.fg-corporate-about__phrase {
  margin-top: clamp(20px, 2.4vw, 30px);
  padding-inline-start: 22px;
  border-inline-start: 1px solid var(--fg-corporate-gold);
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 300;
  line-height: 1.55;
  color: var(--fg-corporate-navy-900);
}
html[lang|="en"] .fg-corporate-about__phrase { line-height: 1.35; letter-spacing: -0.01em; }
.fg-corporate-about__stat {
  margin-top: clamp(26px, 3.4vw, 46px);
  padding-top: 28px;
  border-top: 1px solid var(--fg-corporate-line-light);
  display: flex;
  align-items: baseline;
  gap: 20px;
}
.fg-corporate-about__year {
  font-family: var(--fg-corporate-font-latin);
  font-size: clamp(52px, 5.4vw, 84px);
  font-weight: 200;
  line-height: 0.9;
  letter-spacing: -0.035em;
  color: var(--fg-corporate-gold-text);
}
.fg-corporate-about__year-label { font-size: 16px; color: var(--fg-corporate-stone); }

/* Two supplied photographs, shown whole (no cropping), same treatment */
.fg-corporate-about__gallery { display: grid; gap: 16px; width: 100%; }
.fg-corporate-about__photo { background: var(--fg-corporate-sand); }
.fg-corporate-about__photo img { width: 100%; height: auto; }

.fg-corporate-about__more {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(28px, 4.5vw, 72px);
  margin-top: clamp(40px, 5vw, 68px);
  padding-top: clamp(30px, 3.6vw, 46px);
  border-top: 1px solid var(--fg-corporate-line-light);
}
.fg-corporate-about__subtitle {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 500;
  line-height: 1.4;
  color: var(--fg-corporate-navy-900);
}
.fg-corporate-about__subtitle::before { content: ""; flex: none; width: 28px; height: 1px; background: var(--fg-corporate-gold); }
.fg-corporate-about__vision p {
  margin-top: 18px;
  max-width: 32em;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 2;
  color: var(--fg-corporate-charcoal);
}
.fg-corporate-about__goals ul { margin-top: 18px; display: grid; gap: 14px; }
.fg-corporate-about__goals li {
  position: relative;
  padding-inline-start: 26px;
  font-size: clamp(14.5px, 1.05vw, 16px);
  line-height: 1.85;
  color: var(--fg-corporate-charcoal);
}
.fg-corporate-about__goals li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.95em;
  width: 12px;
  height: 1px;
  background: var(--fg-corporate-gold-deep);
}
html[lang|="en"] .fg-corporate-about__vision p, html[lang|="en"] .fg-corporate-about__goals li { line-height: 1.7; }

/* ---------- Expertise ---------- */
.fg-corporate-expertise {
  background: var(--fg-corporate-sand);
  color: var(--fg-corporate-navy-900);
  padding-block: var(--fg-corporate-section);
}
.fg-corporate-section-title {
  font-size: clamp(23px, 2.2vw, 32px);
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: clamp(26px, 3.2vw, 42px);
}
html[lang|="en"] .fg-corporate-section-title { letter-spacing: -0.015em; line-height: 1.15; }

.fg-corporate-expertise__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.fg-corporate-expertise__grid > li { display: flex; }
.fg-corporate-service {
  position: relative;
  flex: 1;
  background: var(--fg-corporate-paper);
  padding: clamp(20px, 1.8vw, 28px) clamp(16px, 1.5vw, 22px) 24px;
  transition: transform 0.5s var(--fg-corporate-ease), box-shadow 0.5s var(--fg-corporate-ease);
}
.fg-corporate-service::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 2px;
  background: var(--fg-corporate-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s var(--fg-corporate-ease);
}
html[dir="ltr"] .fg-corporate-service::before { transform-origin: left; }
.fg-corporate-service:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -28px rgba(12, 26, 56, 0.35); }
.fg-corporate-service:hover::before { transform: scaleX(1); }
.fg-corporate-service svg {
  width: 28px; height: 28px;
  fill: none; stroke: var(--fg-corporate-gold-deep); stroke-width: 1.25;
  stroke-linecap: round; stroke-linejoin: round;
}
.fg-corporate-service h3 {
  margin-top: 28px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--fg-corporate-navy-900);
}
html[lang|="en"] .fg-corporate-service h3 { font-size: 15.5px; line-height: 1.35; font-weight: 600; letter-spacing: -0.005em; }
.fg-corporate-service p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--fg-corporate-stone);
}
html[lang|="en"] .fg-corporate-service p { line-height: 1.6; font-size: 13.5px; }

/* ---------- Organizational structure ---------- */
.fg-corporate-org {
  background: var(--fg-corporate-navy-800);
  color: var(--fg-corporate-on-dark);
  padding-block: var(--fg-corporate-section);
}
.fg-corporate-org__head { max-width: 46em; margin-bottom: clamp(30px, 3.8vw, 52px); }
.fg-corporate-org .fg-corporate-section-title { color: #fff; margin-bottom: 0; }
.fg-corporate-org__intro {
  margin-top: 18px;
  font-size: clamp(14.5px, 1.05vw, 16px);
  line-height: 2;
  color: var(--fg-corporate-on-dark-muted);
}
html[lang|="en"] .fg-corporate-org__intro { line-height: 1.75; }

.fg-corporate-org__chart { display: flex; flex-direction: column; align-items: center; }
.fg-corporate-org__chart h3, .fg-corporate-org__chart h4 { font-weight: 500; }

/* Top row: senior management in the centre, advisory bodies beside it (as in the company chart). */
.fg-corporate-org__top {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  column-gap: 56px;
}
.fg-corporate-org__node--lead { grid-column: 2; }
.fg-corporate-org__advisory { grid-column: 3; justify-self: start; }

.fg-corporate-org__node {
  min-height: 104px;
  min-width: min(100%, 300px);
  padding: 20px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
.fg-corporate-org__node h3 { font-size: clamp(16.5px, 1.3vw, 19px); line-height: 1.4; }
.fg-corporate-org__node p { margin-top: 4px; font-size: 15px; }
.fg-corporate-org__node--lead { background: var(--fg-corporate-gold); color: var(--fg-corporate-navy-950); }
.fg-corporate-org__node--lead p { color: rgba(8, 19, 41, 0.8); }
.fg-corporate-org__node--exec { background: var(--fg-corporate-navy-900); border: 1px solid var(--fg-corporate-gold); color: #fff; }
.fg-corporate-org__node--exec p { color: var(--fg-corporate-gold-soft); }

.fg-corporate-org__advisory {
  position: relative;
  max-width: 460px;
  padding: 20px 24px;
  border: 1px dashed rgba(255, 255, 255, 0.24);
}
.fg-corporate-org__advisory::before {
  content: "";
  position: absolute;
  bottom: 52px;
  inset-inline-start: -57px;
  width: 56px;
  border-top: 1px dashed rgba(188, 154, 93, 0.75);
}
.fg-corporate-org__advisory h3 { font-size: 14.5px; color: var(--fg-corporate-gold-soft); }
.fg-corporate-org__advisory ul {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
}
.fg-corporate-org__advisory li { font-size: 14.5px; line-height: 1.6; color: var(--fg-corporate-on-dark-muted); }

.fg-corporate-org__stem { width: 1px; height: 48px; background: rgba(188, 154, 93, 0.7); }
.fg-corporate-org__stem--short { height: 36px; }

/* Departments: a bus line with a tick to each card on the first row. */
.fg-corporate-org__depts {
  position: relative;
  width: 100%;
  padding-top: 32px;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 16px;
}
.fg-corporate-org__depts::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 12.5%;
  border-top: 1px solid rgba(188, 154, 93, 0.7);
}
.fg-corporate-org__dept {
  position: relative;
  grid-column: span 2;
  padding: 22px 22px 24px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(188, 154, 93, 0.24);
  border-top: 2px solid var(--fg-corporate-gold);
}
.fg-corporate-org__dept:nth-child(5) { grid-column: 2 / span 2; }
.fg-corporate-org__dept:nth-child(-n + 4)::before {
  content: "";
  position: absolute;
  top: -34px;
  inset-inline-start: 50%;
  height: 32px;
  border-inline-start: 1px solid rgba(188, 154, 93, 0.7);
}
.fg-corporate-org__dept h4 { font-size: 15.5px; line-height: 1.55; color: #fff; }
html[lang|="en"] .fg-corporate-org__dept h4 { font-size: 15px; line-height: 1.35; font-weight: 600; }
.fg-corporate-org__dept ul { margin-top: 14px; display: grid; gap: 7px; }
.fg-corporate-org__dept li {
  position: relative;
  padding-inline-start: 16px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--fg-corporate-on-dark-muted);
}
.fg-corporate-org__dept li::before {
  content: "";
  position: absolute;
  top: 0.85em;
  inset-inline-start: 0;
  width: 7px;
  border-top: 1px solid var(--fg-corporate-gold);
}

/* ---------- Core business model ---------- */
.fg-corporate-model {
  background: var(--fg-corporate-navy-900);
  color: var(--fg-corporate-on-dark);
  padding-block: var(--fg-corporate-section);
}
.fg-corporate-model .fg-corporate-section-title { color: #fff; text-align: center; }
.fg-corporate-flow { overflow-x: auto; }
.fg-corporate-flow__grid {
  --fg-corporate-line: rgba(188, 154, 93, 0.8);
  --fg-corporate-lw: 1.5px;
  --fg-corporate-row-gap: 34px;
  min-width: 320px;
  max-width: 880px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(28px, 0.42fr) minmax(0, 1.5fr) minmax(28px, 0.42fr) minmax(0, 1fr);
  grid-template-rows: auto var(--fg-corporate-row-gap) auto var(--fg-corporate-row-gap) auto var(--fg-corporate-row-gap) auto auto auto var(--fg-corporate-row-gap) auto;
  grid-template-areas:
    ".     .     land  .     .    "
    ".     .     v1    .     .    "
    ".     .     ideas aid   kid  "
    ".     .     v2    .     v2s  "
    "yes   hyes  fin   hno   no   "
    "v3s   .     .     .     .    "
    "keng  aeng  eng   .     .    "
    "split split split split split"
    ".     .     pm    .     .    "
    ".     .     v5    .     .    "
    "sale  hsale end   hops  ops  ";
}
.fg-corporate-flow__node {
  display: grid;
  place-items: center;
  min-height: 64px;
  padding: 14px 18px;
  text-align: center;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.5;
}
.fg-corporate-flow__node--main, .fg-corporate-flow__node--fund { background: var(--fg-corporate-gold); color: var(--fg-corporate-navy-950); }
.fg-corporate-flow__node--fund { flex: 1; min-height: 76px; font-size: 14.5px; }
.fg-corporate-flow__node--key {
  background: var(--fg-corporate-navy-950);
  border: 1px solid var(--fg-corporate-gold);
  box-shadow: 0 0 0 4px rgba(188, 154, 93, 0.12);
  color: #fff;
}
.fg-corporate-flow__node--side {
  align-self: stretch;
  min-height: 50px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: var(--fg-corporate-on-dark-muted);
  font-size: 15px;
  font-weight: 400;
}
html[lang|="en"] .fg-corporate-flow__node { line-height: 1.35; }
.fg-corporate-flow__v { justify-self: center; width: var(--fg-corporate-lw); background: var(--fg-corporate-line); }
.fg-corporate-flow__h { align-self: center; height: var(--fg-corporate-lw); background: var(--fg-corporate-line); }
/* Line ending in an arrowhead that points at the main column */
.fg-corporate-flow__in { position: relative; align-self: center; height: var(--fg-corporate-lw); background: var(--fg-corporate-line); }
.fg-corporate-flow__in::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border-block: 6px solid transparent;
}
.fg-corporate-flow__in--to-start::after { inset-inline-start: 0; border-inline-end: 10px solid var(--fg-corporate-gold); }
.fg-corporate-flow__in--to-end::after { inset-inline-end: 0; border-inline-start: 10px solid var(--fg-corporate-gold); }
/* Elbow: half a vertical line at the column centre + half a horizontal line towards the main column */
.fg-corporate-flow__corner { position: relative; }
.fg-corporate-flow__corner::before, .fg-corporate-flow__corner::after { content: ""; position: absolute; background: var(--fg-corporate-line); }
.fg-corporate-flow__corner::before { inset-inline-start: calc(50% - var(--fg-corporate-lw) / 2); width: var(--fg-corporate-lw); }
.fg-corporate-flow__corner::after { top: calc(50% - var(--fg-corporate-lw) / 2); height: var(--fg-corporate-lw); }
.fg-corporate-flow__corner--from-below::before { top: 50%; bottom: 0; }
.fg-corporate-flow__corner--from-below::after { inset-inline-start: 0; inset-inline-end: calc(50% - var(--fg-corporate-lw) / 2); }
.fg-corporate-flow__corner--from-above::before { top: 0; bottom: 50%; }
.fg-corporate-flow__corner--from-above::after { inset-inline-end: 0; inset-inline-start: calc(50% - var(--fg-corporate-lw) / 2); }
/* Two financing paths that split from the engineering studies and meet again at project management */
.fg-corporate-flow__split { display: flex; flex-direction: column; align-items: center; }
.fg-corporate-flow__stem { width: var(--fg-corporate-lw); height: 30px; background: var(--fg-corporate-line); }
.fg-corporate-flow__branches {
  position: relative;
  width: min(100%, 680px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
}
.fg-corporate-flow__branches::before, .fg-corporate-flow__branches::after {
  content: "";
  position: absolute;
  inset-inline: calc(25% - 7px);
  height: var(--fg-corporate-lw);
  background: var(--fg-corporate-line);
}
.fg-corporate-flow__branches::before { top: 0; }
.fg-corporate-flow__branches::after { bottom: 0; }
.fg-corporate-flow__branch { position: relative; display: flex; padding-block: 26px; }
.fg-corporate-flow__branch::before, .fg-corporate-flow__branch::after {
  content: "";
  position: absolute;
  inset-inline-start: calc(50% - var(--fg-corporate-lw) / 2);
  width: var(--fg-corporate-lw);
  height: 26px;
  background: var(--fg-corporate-line);
}
.fg-corporate-flow__branch::before { top: 0; }
.fg-corporate-flow__branch::after { bottom: 0; }

/* ---------- Credentials ---------- */
.fg-corporate-credentials {
  background: var(--fg-corporate-ivory);
  color: var(--fg-corporate-navy-900);
  padding-block: clamp(40px, 4.5vw, 68px);
}
.fg-corporate-credentials__inner {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(20px, 6vw, 96px);
  align-items: center;
  padding-block: clamp(26px, 3.2vw, 42px);
  border-block: 1px solid var(--fg-corporate-line-light);
}
.fg-corporate-credentials__title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: clamp(19px, 1.6vw, 24px);
  font-weight: 500;
  line-height: 1.4;
}
.fg-corporate-credentials__title svg {
  flex: none;
  width: 30px; height: 30px;
  fill: none; stroke: var(--fg-corporate-gold-deep); stroke-width: 1.25;
  stroke-linecap: round; stroke-linejoin: round;
}
.fg-corporate-credentials__text {
  font-size: clamp(14.5px, 1.05vw, 16px);
  line-height: 2;
  color: var(--fg-corporate-stone);
  max-width: 40em;
}
html[lang|="en"] .fg-corporate-credentials__text { line-height: 1.75; }
.fg-corporate-credentials__list {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px 56px;
  padding-top: 32px;
  border-top: 1px solid var(--fg-corporate-line-light);
}
.fg-corporate-credentials__list[hidden] { display: none; }
.fg-corporate-credentials__list img { height: 64px; width: auto; }

/* ---------- Contact ---------- */
.fg-corporate-contact {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: var(--fg-corporate-section);
  background: var(--fg-corporate-navy-900);
  color: var(--fg-corporate-on-dark);
  text-align: center;
}
.fg-corporate-contact__bg { position: absolute; inset: 0; z-index: -1; }
.fg-corporate-contact__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
  filter: grayscale(1) contrast(1.15);
}
.fg-corporate-contact__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--fg-corporate-navy-900) 0%, rgba(12, 26, 56, 0.72) 45%, rgba(12, 26, 56, 0.86) 70%, var(--fg-corporate-navy-900) 100%);
}
.fg-corporate-contact__logo { width: min(100%, 270px); margin-inline: auto; }
.fg-corporate-contact__title {
  margin-top: clamp(28px, 3.6vw, 48px);
  font-size: clamp(26px, 2.8vw, 42px);
  font-weight: 300;
  line-height: 1.3;
  color: #fff;
}
html[lang|="en"] .fg-corporate-contact__title { line-height: 1.1; letter-spacing: -0.02em; }
.fg-corporate-contact__subtitle {
  margin-top: 16px;
  font-size: clamp(15px, 1.05vw, 16.5px);
  color: var(--fg-corporate-on-dark-muted);
}
.fg-corporate-contact__list {
  display: flex;
  max-width: 1180px;
  margin-inline: auto;
  border-block: 1px solid var(--fg-corporate-line-dark);
}
.fg-corporate-contact__list > li { flex: 1 1 0; min-width: 0; display: flex; }
.fg-corporate-contact__list > li + li { border-inline-start: 1px solid var(--fg-corporate-line-dark); }
.fg-corporate-contact__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 26px 14px;
  transition: background-color 0.4s var(--fg-corporate-ease);
}
.fg-corporate-contact__item:hover { background: rgba(255, 255, 255, 0.035); }
.fg-corporate-contact__item svg {
  width: 22px; height: 22px;
  margin-bottom: 6px;
  fill: none; stroke: var(--fg-corporate-gold); stroke-width: 1.3;
  stroke-linecap: round; stroke-linejoin: round;
}
.fg-corporate-contact__label { font-size: 14px; color: var(--fg-corporate-on-dark-faint); }
.fg-corporate-contact__value {
  font-size: 15.5px;
  font-weight: 500;
  color: #fff;
  transition: color 0.35s var(--fg-corporate-ease);
}
.fg-corporate-contact__value.fg-corporate-latin { letter-spacing: 0.03em; }
.fg-corporate-contact__value { overflow-wrap: anywhere; }
.fg-corporate-contact__item:hover .fg-corporate-contact__value { color: var(--fg-corporate-gold-soft); }

/* ---------- Footer ---------- */
.fg-corporate-site-footer {
  background: var(--fg-corporate-navy-950);
  color: var(--fg-corporate-on-dark-faint);
  font-size: 14.5px;
  line-height: 1.7;
}
.fg-corporate-footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px 40px;
  padding-block: 48px;
  border-bottom: 1px solid var(--fg-corporate-line-dark);
}
.fg-corporate-footer__logo { width: clamp(180px, 16vw, 220px); }
.fg-corporate-footer__contact { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.fg-corporate-footer__contact a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--fg-corporate-font-latin);
  letter-spacing: 0.02em;
  transition: color 0.35s var(--fg-corporate-ease);
}
.fg-corporate-footer__contact svg {
  width: 16px; height: 16px;
  fill: none; stroke: var(--fg-corporate-gold); stroke-width: 1.4;
  stroke-linecap: round; stroke-linejoin: round;
}
.fg-corporate-footer__contact a:hover { color: var(--fg-corporate-gold-soft); }
.fg-corporate-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 32px;
  padding-block: 24px 32px;
}
.fg-corporate-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.fg-corporate-footer__legal a { transition: color 0.35s var(--fg-corporate-ease); }
.fg-corporate-footer__legal a:hover, .fg-corporate-footer__legal a[aria-current="page"] { color: var(--fg-corporate-gold-soft); }

/* ---------- Legal pages ---------- */
.fg-corporate-page-hero {
  background: var(--fg-corporate-navy-900);
  color: #fff;
  padding-block: calc(var(--fg-corporate-header-h) + clamp(64px, 8vw, 112px)) clamp(56px, 6vw, 88px);
}
.fg-corporate-page-hero h1 {
  font-size: clamp(26px, 2.8vw, 40px);
  font-weight: 400;
  line-height: 1.3;
}
html[lang|="en"] .fg-corporate-page-hero h1 { letter-spacing: -0.02em; line-height: 1.1; }
.fg-corporate-page-hero p { margin-top: 14px; font-size: 15px; color: var(--fg-corporate-on-dark-faint); }
.fg-corporate-page-hero .fg-corporate-rule { margin-block: 28px 0; }

.fg-corporate-legal { padding-block: clamp(56px, 7vw, 104px) clamp(80px, 9vw, 136px); background: var(--fg-corporate-ivory); }
.fg-corporate-legal__body { max-width: 46em; }
.fg-corporate-legal__body h2 {
  margin-top: 52px;
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 500;
  line-height: 1.5;
  color: var(--fg-corporate-navy-900);
}
.fg-corporate-legal__body h2:first-child { margin-top: 0; }
.fg-corporate-legal__body p, .fg-corporate-legal__body li { margin-top: 14px; line-height: 2; color: var(--fg-corporate-charcoal); }
html[lang|="en"] .fg-corporate-legal__body p, html[lang|="en"] .fg-corporate-legal__body li { line-height: 1.75; }
.fg-corporate-legal__body ul { list-style: disc; padding-inline-start: 1.3em; }
.fg-corporate-legal__body li::marker { color: var(--fg-corporate-gold-deep); }
.fg-corporate-legal__body a { color: var(--fg-corporate-navy-700); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(27, 50, 96, 0.35); }
.fg-corporate-legal__body a:hover { text-decoration-color: var(--fg-corporate-gold-deep); }
.fg-corporate-legal__body strong { font-weight: 600; color: var(--fg-corporate-navy-900); }

/* ---------- Scroll reveals (time-based, triggered once) ---------- */
.fg-corporate-anim [data-fg-corporate-reveal] {
  transition: opacity 0.6s var(--fg-corporate-ease-out) var(--fg-corporate-d, 0s), transform 0.6s var(--fg-corporate-ease-out) var(--fg-corporate-d, 0s);
}
.fg-corporate-anim [data-fg-corporate-reveal]:not(.fg-corporate-is-in) {
  opacity: 0;
  transform: translateY(14px);
}

/* Long sections far down the page are rendered only when they get close to the screen. */
.fg-corporate-org, .fg-corporate-model, .fg-corporate-credentials, .fg-corporate-site-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

@media (prefers-reduced-motion: reduce) {
  .fg-corporate-anim [data-fg-corporate-reveal] { opacity: 1; transform: none; transition: none; }
  .fg-corporate-service, .fg-corporate-service::before { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .fg-corporate-org__top { display: flex; flex-direction: column; align-items: center; }
  .fg-corporate-org__advisory { margin-top: 40px; max-width: 560px; width: 100%; justify-self: auto; }
  .fg-corporate-org__advisory::before {
    bottom: auto;
    top: -41px;
    inset-inline-start: 50%;
    width: 0;
    height: 40px;
    border-top: 0;
    border-inline-start: 1px dashed rgba(188, 154, 93, 0.75);
  }
  .fg-corporate-org__depts { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 0; }
  .fg-corporate-org__depts::before, .fg-corporate-org__dept:nth-child(-n + 4)::before { display: none; }
  .fg-corporate-org__dept, .fg-corporate-org__dept:nth-child(5) { grid-column: auto; }
  .fg-corporate-org__dept:last-child { grid-column: 1 / -1; }

  .fg-corporate-expertise__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .fg-corporate-expertise__grid > li { grid-column: span 2; }
  .fg-corporate-expertise__grid > li:nth-child(n + 4) { grid-column: span 3; }

  .fg-corporate-contact__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; border: 0; }
  .fg-corporate-contact__list > li, .fg-corporate-contact__list > li + li { border: 1px solid var(--fg-corporate-line-dark); }
  .fg-corporate-contact__list > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  :root { --fg-corporate-header-h: 60px; }

  .fg-corporate-leader__grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .fg-corporate-portrait { max-width: 380px; margin-inline: auto; }

  .fg-corporate-about__grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .fg-corporate-about__more { grid-template-columns: minmax(0, 1fr); gap: 48px; }

  .fg-corporate-kings__item { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .fg-corporate-kings__portrait { max-width: 240px; margin-inline: auto; }
  .fg-corporate-kvision__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .fg-corporate-kvision__head { position: static; }


  .fg-corporate-credentials__inner { grid-template-columns: minmax(0, 1fr); }

}

@media (max-width: 640px) {
  .fg-corporate-org__node { min-width: 0; width: 100%; padding: 18px 24px; }
  .fg-corporate-org__advisory ul { grid-template-columns: minmax(0, 1fr); }
  .fg-corporate-org__depts { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .fg-corporate-org__dept:last-child { grid-column: auto; }

  .fg-corporate-root { font-size: 15.5px; }
  .fg-corporate-site-header__brand img { width: clamp(148px, calc(100vw - 172px), 236px); }
  .fg-corporate-site-header__phone { font-size: 14px; gap: 8px; letter-spacing: 0.04em; }
  .fg-corporate-site-header__phone svg { width: 16px; height: 16px; }

  .fg-corporate-dock { inset-block-end: 16px; inset-inline-end: 14px; }
  .fg-corporate-dock__btn { width: 40px; height: 40px; }

  .fg-corporate-hero__media img { object-position: 50% 40%; }
  .fg-corporate-hero__content { padding-block: calc(var(--fg-corporate-header-h) + 24px) 128px; }
  .fg-corporate-hero__title { font-size: 8.4vw; }
  html[lang|="en"] .fg-corporate-hero__title { font-size: 8.8vw; }

  .fg-corporate-expertise__grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .fg-corporate-expertise__grid > li,
  .fg-corporate-expertise__grid > li:nth-child(n + 4) { grid-column: auto; }
  .fg-corporate-service {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    column-gap: 20px;
    padding: 26px 22px;
  }
  .fg-corporate-service svg { grid-row: 1 / span 2; margin-top: 4px; }
  .fg-corporate-service h3 { margin-top: 0; }
  .fg-corporate-service p { margin-top: 6px; }

  .fg-corporate-contact__list { grid-template-columns: minmax(0, 1fr); }
  .fg-corporate-contact__list > li:last-child:nth-child(odd) { grid-column: auto; }
  .fg-corporate-contact__item { padding: 24px 16px; }

  .fg-corporate-kings__mark { height: 28px; font-size: 62px; }
  .fg-corporate-kvision__body { padding-inline-start: 20px; }

  .fg-corporate-flow__grid {
    --fg-corporate-row-gap: 26px;
    grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1.3fr) 16px minmax(0, 1fr);
  }
  .fg-corporate-flow__node { min-height: 52px; padding: 10px 8px; font-size: 13px; }
  .fg-corporate-flow__node--side { min-height: 42px; font-size: 12.5px; }
  .fg-corporate-flow__node--fund { min-height: 64px; font-size: 12.5px; }
  .fg-corporate-flow__in::after { border-block-width: 5px; }
  .fg-corporate-flow__in--to-start::after { border-inline-end-width: 8px; }
  .fg-corporate-flow__in--to-end::after { border-inline-start-width: 8px; }
  .fg-corporate-flow__branches { column-gap: 12px; }
  .fg-corporate-flow__branches::before, .fg-corporate-flow__branches::after { inset-inline: calc(25% - 3px); }

  .fg-corporate-footer__top { flex-direction: column; align-items: flex-start; }
  .fg-corporate-footer__bottom { flex-direction: column; align-items: flex-start; padding-bottom: 96px; }
}

@media print {
  .fg-corporate-site-header, .fg-corporate-dock, .fg-corporate-hero__cta { display: none; }
  .fg-corporate-anim [data-fg-corporate-reveal] { opacity: 1 !important; transform: none !important; }
}
