/* ==========================================================================
   Shohd Abdullah Taher — digital business card
   Brand sources: Altiora logo (navy #222C64, sky #2FA2CF),
   Shohd Taher signature (#262262), Bebasata with Shohd (royal #0052C9, gold #FBB33B)
   Type: Readex Pro (variable: wght 160–700, HEXP expansion 0–100), self-hosted, OFL
   ========================================================================== */

/* ---------- 1. Fonts ---------- */
@font-face {
  font-family: "Readex Pro";
  src: url("../fonts/readex-pro-latin.woff2") format("woff2");
  font-weight: 160 700;
  font-style: normal;
  font-display: swap;
  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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Readex Pro";
  src: url("../fonts/readex-pro-arabic.woff2") format("woff2");
  font-weight: 160 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #0E1236;          /* page dark base (deepened Altiora navy) */
  --ink-2: #141946;
  --navy: #222C64;         /* Altiora navy */
  --indigo: #262262;       /* Shohd Taher signature */
  --sky: #2FA2CF;          /* Altiora sky */
  --sky-light: #8FD0EA;
  --gold: #FBB33B;         /* Bebasata gold */
  --gold-deep: #C98A22;
  --royal: #0052C9;        /* Bebasata blue */
  --paper: #F3F5FA;
  --white: #FFFFFF;

  --font: "Readex Pro", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", Tahoma, sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 68px;
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 44px);
  --grid-size: 44px;

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--ink);
}

/* ---------- 3. Tones ---------- */
.tone-dark {
  --bg: var(--ink);
  --surface: rgba(255, 255, 255, .04);
  --surface-hover: rgba(255, 255, 255, .07);
  --text: #D3D8EF;
  --text-strong: #FFFFFF;
  --muted: #9AA3C9;
  --line: rgba(255, 255, 255, .1);
  --line-strong: rgba(255, 255, 255, .24);
  --link: var(--sky-light);
  --chip: rgba(255, 255, 255, .05);
  --ar: var(--sky-light);
  color-scheme: dark;
  background-color: var(--bg);
  color: var(--text);
}
.tone-light {
  --bg: var(--paper);
  --surface: #FFFFFF;
  --surface-hover: #FFFFFF;
  --text: #3A416C;
  --text-strong: #141A47;
  --muted: #5B638D;
  --line: rgba(34, 44, 100, .13);
  --line-strong: rgba(34, 44, 100, .3);
  --link: #0A6F9C;
  --chip: rgba(34, 44, 100, .045);
  --ar: var(--royal);
  color-scheme: light;
  background-color: var(--bg);
  color: var(--text);
}
.tone-light--white { --bg: #FFFFFF; --surface: var(--paper); }

/* Light sections follow the viewer's dark preference */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tone-light {
    --bg: #10143B; --surface: #171C4C; --surface-hover: #1C2256;
    --text: #CDD3EE; --text-strong: #FFFFFF; --muted: #99A1C8;
    --line: rgba(255, 255, 255, .1); --line-strong: rgba(255, 255, 255, .24);
    --link: var(--sky-light); --chip: rgba(255, 255, 255, .05); --ar: var(--sky-light);
    color-scheme: dark;
  }
  :root:not([data-theme="light"]) .tone-light--white { --bg: #131843; --surface: #1A1F52; }
  :root:not([data-theme="light"]) .sig-navy { display: none; }
  :root:not([data-theme="light"]) .sig-white { display: block; }
  :root:not([data-theme="light"]) .platform__logo { background: #FFFFFF; padding: 14px 18px; border-radius: 14px; }
}
:root[data-theme="dark"] .tone-light {
  --bg: #10143B; --surface: #171C4C; --surface-hover: #1C2256;
  --text: #CDD3EE; --text-strong: #FFFFFF; --muted: #99A1C8;
  --line: rgba(255, 255, 255, .1); --line-strong: rgba(255, 255, 255, .24);
  --link: var(--sky-light); --chip: rgba(255, 255, 255, .05); --ar: var(--sky-light);
  color-scheme: dark;
}
:root[data-theme="dark"] .tone-light--white { --bg: #131843; --surface: #1A1F52; }
:root[data-theme="dark"] .sig-navy { display: none; }
:root[data-theme="dark"] .sig-white { display: block; }
:root[data-theme="dark"] .platform__logo { background: #FFFFFF; padding: 14px 18px; border-radius: 14px; }

/* ---------- 4. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--ink);
  color: #D3D8EF;
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.15; color: var(--text-strong, #fff); }
p { margin: 0 0 1em; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
::selection { background: rgba(251, 179, 59, .35); }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 300;
  padding: 10px 16px; border-radius: 10px; background: var(--gold); color: #11153C;
  font-weight: 500; text-decoration: none; transition: top .2s ease;
}
.skip-link:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

/* ---------- 5. Buttons ---------- */
.btn {
  --btn-h: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--btn-h); padding: 0 24px;
  border: 1px solid transparent; border-radius: 999px;
  font: 500 1rem/1.1 var(--font); letter-spacing: .005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .25s var(--ease-out), background-color .25s ease, border-color .25s ease, box-shadow .25s ease, color .25s ease;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn--sm { --btn-h: 40px; padding: 0 16px; gap: 8px; font-size: .9rem; }
.btn--sm svg { width: 17px; height: 17px; }
.btn--gold {
  background: var(--gold); color: #11153C;
  box-shadow: 0 10px 28px -14px rgba(251, 179, 59, .7), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn--gold:hover { background: #FCBF55; transform: translateY(-2px); box-shadow: 0 16px 32px -14px rgba(251, 179, 59, .75), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn--line { background: transparent; border-color: var(--line-strong, rgba(255, 255, 255, .24)); color: var(--text-strong, #fff); }
.btn--line:hover { border-color: currentColor; background: var(--surface-hover, rgba(255, 255, 255, .07)); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }

/* ---------- 6. Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid transparent;
  --text-strong: #FFFFFF; --line-strong: rgba(255, 255, 255, .26); --surface-hover: rgba(255, 255, 255, .08);
  transition: background-color .35s ease, border-color .35s ease;
}
.site-header.is-scrolled {
  background: rgba(14, 18, 54, .84);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom-color: rgba(255, 255, 255, .07);
}
.site-header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-header__brand { display: block; width: 78px; border-radius: 6px; }
.site-header__brand img { width: 100%; }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + clamp(28px, 6vh, 72px)) 0 clamp(44px, 7vh, 72px);
  background:
    radial-gradient(60rem 38rem at 88% -4%, rgba(47, 162, 207, .17), transparent 62%),
    radial-gradient(42rem 30rem at -6% 104%, rgba(251, 179, 59, .07), transparent 60%),
    var(--ink);
}
.hero__grid {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 74% 26%, #000 8%, transparent 72%);
  mask-image: radial-gradient(ellipse 75% 70% at 74% 26%, #000 8%, transparent 72%);
}
.hero__grid::before, .cta__grid::before, .intro__grid::before {
  content: ""; position: absolute; inset: calc(var(--grid-size) * -1);
  background-image:
    linear-gradient(to right, rgba(143, 208, 234, .08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(143, 208, 234, .08) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
}
.hero__grid::before { animation: grid-drift 50s linear infinite; }
@keyframes grid-drift { to { transform: translate3d(var(--grid-size), var(--grid-size), 0); } }

.hero__inner { position: relative; display: grid; gap: 40px; }
.hero__text { max-width: 40rem; }
.hero__portrait {
  width: 88px; height: 88px; margin-bottom: 24px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 3px var(--ink), 0 0 0 4.5px var(--gold);
}
.hero__eyebrow {
  display: flex; align-items: center; gap: 14px; margin: 0 0 22px;
  color: var(--sky-light); font-size: .975rem; font-weight: 400; letter-spacing: .01em;
}
.hero__eyebrow::before { content: ""; width: 32px; height: 1px; flex: none; background: var(--gold); }
.hero__name {
  margin: 0; color: #FFFFFF;
  font-size: clamp(1.95rem, .8rem + 5.7vw, 3.4rem);
  font-weight: 300; font-variation-settings: "HEXP" 40;
  line-height: 1.04; letter-spacing: -.012em;
}
.hero__name span { display: block; }
.hero__role { margin: 26px 0 0; color: var(--gold); font-size: 1.1875rem; font-weight: 500; letter-spacing: .005em; }
.hero__sub { margin: 4px 0 0; color: var(--muted); font-size: 1rem; }
.hero__lead { margin: 22px 0 32px; max-width: 34em; color: var(--text); font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.creds {
  list-style: none; margin: clamp(4px, 2vh, 20px) 0 0; padding: 26px 0 0;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 24px;
}
.creds strong { display: block; color: #FFFFFF; font-size: 1.0625rem; font-weight: 400; line-height: 1.3; }
.creds li > span { display: block; margin-top: 5px; color: var(--muted); font-size: .875rem; line-height: 1.45; }

.hero__visual { display: none; }

@media (max-width: 520px) {
  .hero__actions .btn { flex: 1 1 calc(50% - 6px); padding: 0 14px; }
  .hero__actions .btn--gold { flex-basis: 100%; }
}
@media (min-width: 960px) {
  .hero { min-height: min(100svh, 980px); display: flex; flex-direction: column; justify-content: center; }
  .hero__inner { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: clamp(32px, 5vw, 72px); align-items: center; }
  .hero__name { font-size: clamp(3.1rem, 5.3vw, 4.3rem); }
  .creds { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(24px, 5vh, 56px); }
  .hero__visual { display: flex; justify-content: center; align-items: center; }
  .card-scene { position: relative; padding: 44px 0; perspective: 1200px; }
  .card-scene::after {
    content: ""; position: absolute; left: 14%; right: 14%; bottom: 0; height: 30px;
    background: radial-gradient(closest-side, rgba(2, 4, 20, .6), rgba(2, 4, 20, 0));
  }
  .card-tilt {
    transform-style: preserve-3d;
    transform: rotateX(var(--rx, 7deg)) rotateY(var(--ry, -18deg));
    transition: transform .9s var(--ease-out);
  }
  .hero__visual .bcard { --w: clamp(320px, 32vw, 440px); }
  .hero__visual .bcard__sheen i { transition: transform .9s var(--ease-out), opacity .6s ease; }
}
html.intro-active .hero__visual .bcard { visibility: hidden; }

/* ---------- 8. Business card (3D) ---------- */
.bcard {
  --w: 440px; --t: 6px; --r: calc(var(--w) * .03);
  position: relative; width: var(--w); height: calc(var(--w) * .6);
  transform-style: preserve-3d;
  font-size: calc(var(--w) / 30); line-height: 1.35;
}
.bcard__face {
  position: absolute; inset: 0; overflow: hidden; border-radius: var(--r);
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.bcard__face--front {
  transform: translateZ(calc(var(--t) / 2));
  background: radial-gradient(140% 120% at 8% 0%, #2B3478 0%, #1A1F55 44%, #10143C 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
  color: #FFFFFF;
}
.bcard__face--front::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 255, 255, .09) 0%, rgba(255, 255, 255, 0) 40%);
}
.bcard__face--back {
  transform: rotateY(180deg) translateZ(calc(var(--t) / 2));
  background: linear-gradient(155deg, #FFFFFF 0%, #EEF2F9 100%);
  box-shadow: inset 0 0 0 1px rgba(34, 44, 100, .08);
  color: var(--navy);
}
/* embossed grid: light line + offset shadow line */
.bcard__grid {
  --g: calc(var(--w) / 14);
  position: absolute; inset: 0; border-radius: inherit;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .075) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .075) 1px, transparent 1px),
    linear-gradient(to right, rgba(0, 0, 0, .3) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, .3) 1px, transparent 1px);
  background-size: var(--g) var(--g);
  background-position: 0 0, 0 0, 1px 0, 0 1px;
  -webkit-mask-image: linear-gradient(115deg, #000 0%, rgba(0, 0, 0, .55) 55%, rgba(0, 0, 0, .12) 100%);
  mask-image: linear-gradient(115deg, #000 0%, rgba(0, 0, 0, .55) 55%, rgba(0, 0, 0, .12) 100%);
}
.bcard__face--back .bcard__grid {
  background-image:
    linear-gradient(to right, rgba(34, 44, 100, .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(34, 44, 100, .07) 1px, transparent 1px),
    linear-gradient(to right, rgba(255, 255, 255, .95) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .95) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 45%, #000 20%, rgba(0, 0, 0, .25) 100%);
  mask-image: radial-gradient(ellipse 80% 90% at 50% 45%, #000 20%, rgba(0, 0, 0, .25) 100%);
}
.bcard__sig { position: absolute; left: 7%; top: 9%; width: 42%; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .35)); }
.bcard__info {
  position: absolute; left: 7.5%; right: 7.5%; bottom: 9%;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1em;
}
.bcard__rule { display: block; width: 2.4em; height: 1px; margin: 0 0 .8em; background: linear-gradient(90deg, var(--gold), rgba(251, 179, 59, .15)); }
.bcard__name { margin: 0; font-size: 1.06em; font-weight: 500; letter-spacing: .01em; font-variation-settings: "HEXP" 22; white-space: nowrap; }
.bcard__role { margin: .28em 0 0; color: var(--gold); font-size: .8em; font-weight: 500; white-space: nowrap; }
.bcard__lines { list-style: none; margin: 0; padding: 0; text-align: right; color: #BAC2E6; font-size: .7em; line-height: 1.62; white-space: nowrap; }
.bcard__logo { position: absolute; left: 50%; top: 45%; width: 40%; transform: translate(-50%, -50%); }
.bcard__tagline { position: absolute; left: 0; right: 0; bottom: 10%; margin: 0; text-align: center; color: #4A5385; font-size: .68em; letter-spacing: .05em; }
.bcard__edge { position: absolute; background: linear-gradient(180deg, #E3A437, #FCD27E 50%, #CF8E24); outline: 1px solid transparent; }
.bcard__edge--l, .bcard__edge--r { top: var(--r); width: var(--t); height: calc(100% - 2 * var(--r)); }
.bcard__edge--l { left: calc(var(--t) / -2); transform: rotateY(-90deg); }
.bcard__edge--r { right: calc(var(--t) / -2); transform: rotateY(90deg); }
.bcard__edge--t, .bcard__edge--b { left: var(--r); width: calc(100% - 2 * var(--r)); height: var(--t); }
.bcard__edge--t { top: calc(var(--t) / -2); transform: rotateX(90deg); }
.bcard__edge--b { bottom: calc(var(--t) / -2); transform: rotateX(-90deg); }
.bcard__shade {
  position: absolute; inset: 0; border-radius: inherit; opacity: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(4, 6, 24, .92), rgba(4, 6, 24, .72));
}
.bcard__face--back .bcard__shade { background: linear-gradient(90deg, rgba(18, 24, 66, .6), rgba(18, 24, 66, .42)); }
.bcard__sheen { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.bcard__sheen i {
  position: absolute; top: -25%; bottom: -25%; left: 0; width: 55%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .05) 30%, rgba(255, 255, 255, .34) 50%, rgba(255, 255, 255, .05) 70%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(var(--sx, -110%)) skewX(-14deg);
  opacity: var(--so, 0);
}
.bcard__face--back .bcard__sheen i {
  background: linear-gradient(100deg, rgba(143, 208, 234, 0) 0%, rgba(143, 208, 234, .14) 36%, rgba(255, 255, 255, .95) 50%, rgba(143, 208, 234, .14) 64%, rgba(143, 208, 234, 0) 100%);
}
.bcard .rv { transition: opacity .55s ease, transform .7s var(--ease-out); transition-delay: calc(var(--i, 0) * 75ms); }
.bcard.is-info-hidden .rv { opacity: 0; transform: translateY(.5em); transition: none; }

/* ---------- 9. Intro ---------- */
.intro { display: none; }
.js .intro { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; overflow: hidden; }
.intro__backdrop {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 65% at 50% 42%, #1E2562 0%, #11163F 50%, #080B26 100%);
}
.intro__grid {
  position: absolute; inset: 0; overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 55% 50% at 50% 45%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 55% 50% at 50% 45%, #000 0%, transparent 78%);
}
.intro__center { position: relative; display: flex; flex-direction: column; align-items: center; opacity: 0; }
.intro__scene { perspective: 1200px; }
.intro__entry { transform-style: preserve-3d; }
.intro .bcard { --w: min(86vw, 460px); will-change: transform; }
.intro__floor {
  width: min(70vw, 380px); height: 28px; margin-top: 34px;
  background: radial-gradient(closest-side, rgba(2, 4, 18, .75), rgba(2, 4, 18, 0));
}
.intro__progress { width: 132px; height: 2px; margin-top: 28px; border-radius: 2px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.intro__progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); transform-origin: left center; transform: scaleX(0); }
.intro__skip {
  position: absolute;
  right: max(20px, env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .03);
  color: rgba(255, 255, 255, .78); font: 400 .8125rem var(--font); cursor: pointer;
}
.intro__skip:hover { border-color: rgba(255, 255, 255, .45); color: #FFFFFF; }
html.intro-active, html.intro-active body { overflow: hidden; }

/* ---------- 10. Sections ---------- */
.section { position: relative; padding-block: clamp(72px, 10vw, 128px); }
.section-head { max-width: 40rem; margin-bottom: clamp(32px, 5vw, 56px); }
.section-title {
  margin: 0; color: var(--text-strong);
  font-size: clamp(1.75rem, 1.3rem + 1.7vw, 2.5rem);
  font-weight: 400; font-variation-settings: "HEXP" 18;
  line-height: 1.12; letter-spacing: -.012em;
}
.section-intro { margin: 14px 0 0; color: var(--muted); font-size: 1.0625rem; }

/* Contact */
.contact { padding-top: clamp(56px, 8vw, 96px); background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%); }
.contact__groups { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.contact__label { margin: 0 0 10px; color: var(--muted); font-size: .875rem; font-weight: 500; letter-spacing: .02em; }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.row { display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.row__link {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 16px;
  padding: 14px 8px; margin: 2px -8px; border-radius: 14px;
  color: var(--text-strong); text-decoration: none;
  transition: background-color .2s ease;
}
.row__link:hover { background: var(--surface); }
.row__icon {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--sky-light);
  transition: border-color .2s ease, color .2s ease;
}
.row__icon svg { width: 20px; height: 20px; }
.row__link:hover .row__icon { border-color: var(--gold); color: var(--gold); }
.row__text { display: flex; flex-direction: column; min-width: 0; }
.row__label { color: var(--muted); font-size: .8125rem; line-height: 1.3; }
.row__value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.0625rem; font-weight: 400; line-height: 1.35; }
.row__copy {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin-left: 12px;
  border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer;
  transition: color .2s ease, background-color .2s ease;
}
.row__copy:hover { color: var(--text-strong); background: var(--surface-hover); }
.row__copy svg { width: 19px; height: 19px; }
@media (min-width: 860px) { .contact__groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; } }

/* Services */
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.service { display: grid; gap: 12px 48px; padding: 28px 0 30px; border-bottom: 1px solid var(--line); }
.service__title { margin: 0; color: var(--text-strong); font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); font-weight: 400; font-variation-settings: "HEXP" 12; line-height: 1.2; }
.service__for { margin: 6px 0 0; color: var(--muted); font-size: .9375rem; }
.service__body p { margin: 0; max-width: 36em; }
.service__ask {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 4px 0;
  color: var(--link); font-size: .9375rem; font-weight: 500; text-decoration: none;
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.service__ask svg { width: 17px; height: 17px; }
.service__ask:hover { border-bottom-color: currentColor; }
@media (min-width: 860px) { .service { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); padding: 36px 0 38px; } }

/* Platforms */
.platforms { display: grid; gap: 20px; }
.platform { position: relative; overflow: hidden; padding: clamp(26px, 3.5vw, 40px); border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.platform::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; }
.platform--altiora::before { background: linear-gradient(90deg, var(--navy), var(--sky)); }
.platform--bebasata::before { background: linear-gradient(90deg, var(--royal), var(--gold)); }
.platform__logo { display: flex; align-items: center; width: fit-content; height: 96px; margin-bottom: 26px; }
.platform__logo img { width: auto; max-width: 100%; }
.platform--altiora .platform__logo img { height: 58px; }
.platform--bebasata .platform__logo img { height: 88px; }
.platform__role { margin: 0 0 8px; color: var(--text-strong); font-size: 1rem; font-weight: 500; }
.platform__text { margin: 0; max-width: 34em; }
@media (min-width: 860px) { .platforms { grid-template-columns: 1fr 1fr; gap: 28px; } }

/* About */
.about { display: grid; gap: 48px; }
.about__bio .section-title { margin-bottom: 24px; }
.about__bio p { max-width: 38em; }
.about__sign { width: 150px; margin-top: 28px; }
.sig-white { display: none; }
.about__label { margin: 0 0 16px; color: var(--text-strong); font-size: 1.0625rem; font-weight: 500; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  padding: 9px 15px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--chip); color: var(--text-strong); font-size: .9375rem; font-weight: 400; line-height: 1.2;
}
@media (min-width: 960px) {
  .about { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; align-items: start; }
  .about__side { padding-top: 10px; }
}

/* Guiding principle */
.principle__inner { max-width: 46rem; text-align: center; }
.principle__mark {
  width: 68px; margin: 0 auto 28px; padding: 13px; border-radius: 18px; background: #FFFFFF;
  box-shadow: 0 14px 30px -18px rgba(34, 44, 100, .55), inset 0 0 0 1px rgba(34, 44, 100, .06);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.principle__label { margin: 0 0 18px; color: var(--muted); font-size: .9375rem; font-weight: 500; letter-spacing: .02em; line-height: 1.4; }
.principle__statement {
  max-width: 17em; margin: 0 auto; color: var(--text-strong);
  font-size: clamp(1.8rem, 1.15rem + 2.7vw, 3.1rem);
  font-weight: 300; font-variation-settings: "HEXP" 28;
  line-height: 1.16; letter-spacing: -.012em;
}
.principle__ar { margin: 22px 0 0; color: var(--ar); font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); font-weight: 400; line-height: 1.6; }

/* Final CTA */
.cta {
  overflow: hidden;
  background: radial-gradient(52rem 30rem at 50% 118%, rgba(47, 162, 207, .2), transparent 70%), var(--ink);
}
.cta__grid {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 100%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 100%, #000 0%, transparent 75%);
}
.cta__inner { position: relative; max-width: 44rem; text-align: center; }
.cta__title { margin: 0; color: #FFFFFF; font-size: clamp(1.8rem, 1.25rem + 2.3vw, 2.9rem); font-weight: 300; font-variation-settings: "HEXP" 24; line-height: 1.15; letter-spacing: -.01em; }
.cta__text { max-width: 32em; margin: 18px auto 32px; color: var(--text); font-size: 1.125rem; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cta__alt { margin: 24px 0 0; color: var(--muted); font-size: .9375rem; }
.cta__alt a { color: var(--sky-light); }

/* Footer */
.footer { --bg: #0A0D2B; padding: 48px 0 calc(28px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(255, 255, 255, .06); }
.footer__inner { display: grid; gap: 28px; }
.footer__sig { width: 118px; margin-bottom: 18px; }
.footer__name { margin: 0; color: #FFFFFF; font-weight: 500; }
.footer__role { margin: 2px 0 0; color: var(--muted); font-size: .9375rem; }
.footer__social { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.footer__social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .16); color: #D3D8EF;
  transition: border-color .2s ease, color .2s ease;
}
.footer__social a:hover { border-color: var(--gold); color: var(--gold); }
.footer__social svg { width: 19px; height: 19px; }
.footer__contact { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; font-size: .9375rem; }
.footer__contact a { color: var(--text); text-decoration: none; }
.footer__contact a:hover { text-decoration: underline; }
.footer__base { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .06); color: #7C84AE; font-size: .8125rem; }
.footer__base p { margin: 0; }
@media (min-width: 760px) {
  .footer__inner { grid-template-columns: 1fr auto; align-items: end; }
  .footer__links { text-align: right; }
  .footer__social, .footer__contact { justify-content: flex-end; }
}

/* ---------- 11. Modal & toast ---------- */
.modal {
  width: min(100% - 32px, 520px); max-width: none; max-height: calc(100dvh - 32px);
  padding: 0; border: 0; border-radius: 24px; background: transparent; color: #D3D8EF; overflow: visible;
}
.modal::backdrop { background: rgba(5, 7, 24, .74); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal__panel {
  position: relative; max-height: calc(100dvh - 32px); overflow: auto;
  padding: 32px 28px 28px; border-radius: 24px;
  background: linear-gradient(180deg, #1A2055 0%, #12173F 100%);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .65);
  color-scheme: dark;
  --line-strong: rgba(255, 255, 255, .24); --text-strong: #FFFFFF; --surface-hover: rgba(255, 255, 255, .07);
}
.modal[open] .modal__panel { animation: modal-in .45s var(--ease-out); }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal__close {
  position: absolute; top: 12px; right: 12px; display: grid; place-items: center;
  width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: #C9D0EE; cursor: pointer;
}
.modal__close:hover { background: rgba(255, 255, 255, .08); color: #FFFFFF; }
.modal__close svg { width: 22px; height: 22px; }
.modal__title { margin: 0 48px 8px 0; color: #FFFFFF; font-size: 1.5rem; font-weight: 400; font-variation-settings: "HEXP" 18; }
.modal__title:focus { outline: none; }
.modal__text { margin: 0 0 22px; color: #B6BEE0; }
.modal__form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { color: #B6BEE0; font-size: .875rem; font-weight: 400; }
.field input {
  width: 100%; min-height: 48px; padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px;
  background: rgba(255, 255, 255, .04); color: #FFFFFF;
  font: 400 1rem var(--font);
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.field input:focus { outline: none; border-color: var(--sky); background: rgba(255, 255, 255, .06); box-shadow: 0 0 0 3px rgba(47, 162, 207, .28); }
.field input[aria-invalid="true"] { border-color: #F28B82; }
.modal__error { margin: 0; color: #FFB4AB; font-size: .9375rem; }
.modal__note { margin: 4px 0 0; color: #8F98C2; font-size: .8125rem; line-height: 1.5; }
.modal__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.modal__actions .btn { flex: 1 1 auto; }
.modal__done {
  margin-top: 16px; padding: 10px 0; border: 0; background: none; cursor: pointer;
  color: #B6BEE0; font: 500 .9375rem var(--font); text-decoration: underline; text-underline-offset: 3px;
}
@media (min-width: 540px) {
  .modal__form { grid-template-columns: 1fr 1fr; }
  .modal__form > * { grid-column: 1 / -1; }
  .modal__form > .field--half { grid-column: auto; }
}

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 200;
  max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 999px;
  background: #FFFFFF; color: #11153C; font-size: .9375rem; font-weight: 500;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .45);
  opacity: 0; transform: translate(-50%, 20px); pointer-events: none;
  transition: opacity .3s ease, transform .4s var(--ease-out);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 12. Entrance & reveal ---------- */
.js [data-hero], .js [data-reveal] { opacity: 0; transform: translateY(16px); }
.is-ready [data-hero] {
  opacity: 1; transform: none;
  transition: opacity .9s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); }

/* Failsafe: if the script never runs, show everything and remove the intro */
.js:not(.app-ok) [data-hero], .js:not(.app-ok) [data-reveal] { animation: failsafe-show .01s linear 3.5s forwards; }
.js:not(.app-ok) .intro { animation: failsafe-hide .4s ease 3.5s forwards; }
@keyframes failsafe-show { to { opacity: 1; transform: none; } }
@keyframes failsafe-hide { to { opacity: 0; visibility: hidden; } }

/* ---------- 13. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
  .js [data-hero], .js [data-reveal] { transform: none; }
  .hero__grid::before, .principle__mark { animation: none; }
}
