/* ==========================================================================
   Basem Khaled Alzaaq — personal site
   Brand: "ENG Basem Alzaaq Brand Guidelines 2026" (colors, Thmanyah Sans, BKZ monogram)
   Layout & motion language inspired by augen.pro: label column + content column,
   divider rows, bracket tags, light/dark/accent section rhythm.
   ========================================================================== */

@font-face { font-family: "Thmanyah Sans"; src: url("../fonts/thmanyahsans-Light.woff2") format("woff2");   font-weight: 300; font-display: swap; }
@font-face { font-family: "Thmanyah Sans"; src: url("../fonts/thmanyahsans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Thmanyah Sans"; src: url("../fonts/thmanyahsans-Medium.woff2") format("woff2");  font-weight: 500; font-display: swap; }
@font-face { font-family: "Thmanyah Sans"; src: url("../fonts/thmanyahsans-Bold.woff2") format("woff2");    font-weight: 700; font-display: swap; }
@font-face { font-family: "Thmanyah Sans"; src: url("../fonts/thmanyahsans-Black.woff2") format("woff2");   font-weight: 900; font-display: swap; }

:root {
  /* Brand palette (guidelines p.17) */
  --white: #FFFFFF;
  --mist: #E8E7E5;
  --paper: #F1F0EE;
  --gray-light: #BCBBBB;
  --gray: #A19F9F;
  --gray-dark: #828181;
  --ink: #121212;
  --ink-2: #303030;
  --night: #0F0F10;
  --burgundy: #792C3D;
  --burgundy-light: #A83D59;
  --burgundy-deep: #5B1A31;
  --beige: #D0A686;
  --beige-light: #F7C7A6;

  --muted: #6E6C6B;
  --line: rgba(18, 18, 18, .12);
  --line-dark: rgba(255, 255, 255, .12);

  --font: "Thmanyah Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(16px, 2.8vw, 40px);
  --ease: cubic-bezier(.22, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-weight: 400; font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
b { font-weight: 500; }
sup { font-size: .55em; line-height: 0; vertical-align: super; margin-inline-start: 2px; }
::selection { background: var(--burgundy); color: var(--white); }
:focus-visible { outline: 2px solid var(--burgundy-light); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 999px; }
.skip-link:focus { top: 16px; }

/* ---------- 12-col grid: label col 4–5, content col 6–12 (mirrored for RTL) ---------- */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 20px; padding-inline: var(--pad); }
.grid > .lbl { grid-column: 4 / 6; }
.grid > .col-main { grid-column: 6 / 12; }

/* ---------- shared atoms ---------- */
.lbl { display: grid; align-content: start; gap: 2px; font-size: 13.5px; line-height: 1.35; color: var(--muted); }
.lbl span:first-child { color: var(--ink); }
.lbl span:last-child:not(:first-child) { opacity: .75; }
[data-theme="dark"] .lbl { color: rgba(255,255,255,.55); }
[data-theme="dark"] .lbl span:first-child { color: rgba(255,255,255,.92); }

.sq { display: grid; place-items: center; width: 34px; height: 34px; background: var(--burgundy); border-radius: 2px; }
.sq svg { width: 12px; height: 12px; fill: var(--white); }
.sq--ink { width: 26px; height: 26px; background: var(--ink); }
.sq--ink svg { width: 10px; height: 10px; }

.tag {
  display: inline-flex; align-items: center; height: 28px; padding-inline: 12px; border-radius: 999px;
  border: 1px solid rgba(121,44,61,.4); color: var(--burgundy); font-size: 13.5px; white-space: nowrap;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s;
}
.tag:hover, .tag--fill { background: var(--burgundy); border-color: var(--burgundy); color: var(--white); }
.tag--fill:hover { background: var(--burgundy-deep); }

.link { display: inline-flex; align-items: center; gap: 10px; color: var(--burgundy); font-size: 15px; }
.link small { font-size: 11px; opacity: .6; }
.link__icon { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid currentColor; transition: transform .4s var(--ease), background .3s, color .3s; }
.link__icon svg { width: 12px; height: 12px; }
.link:hover .link__icon { background: var(--burgundy); color: var(--white); transform: rotate(-8deg) scale(1.08); }
.link--light { color: var(--beige); }
.link--light:hover .link__icon { background: var(--beige); color: var(--ink); }

.h-lg { font-size: clamp(30px, 3.4vw, 46px); font-weight: 300; line-height: 1.2; letter-spacing: -.01em; }
.h-md { font-size: clamp(24px, 2.3vw, 32px); font-weight: 300; line-height: 1.3; }
.muted { color: var(--gray); }
.sec--dark .muted, .footer .muted { color: rgba(255,255,255,.4); }
.soft { opacity: .55; }
.accent { color: var(--burgundy); }

.bkz { --frame: var(--burgundy); --glyph: var(--white); }
.bkz__frame { fill: var(--frame); }
.bkz__glyph { fill: var(--glyph); }

/* ---------- sections ---------- */
.sec { position: relative; padding-block: clamp(96px, 12vw, 180px); }
.sec--light { background: var(--paper); }
.sec--dark { background: var(--night); color: rgba(255,255,255,.92); }
.sec--accent { background: var(--burgundy); color: var(--white); }

/* ==========================================================================
   NAV — icon square + glass pill + news line
   ========================================================================== */
.nav { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 50; display: grid; justify-items: center; gap: 8px; transition: transform .6s var(--ease); }
.nav.is-hidden { transform: translate(-50%, -150%); }
.nav__bar { display: flex; align-items: center; gap: 6px; }
.nav__mark, .nav__links, .nav__toggle {
  background: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.7);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-radius: 12px; transition: background .4s, border-color .4s;
}
.nav__mark { display: grid; place-items: center; width: 44px; height: 40px; }
.nav__mark .bkz { width: 30px; height: 11px; }
.nav__links { display: flex; align-items: center; height: 40px; padding-inline: 6px; }
.nav__links a { display: block; padding: 5px 16px; font-size: 14.5px; color: var(--ink-2); border-radius: 8px; transition: background .3s, color .3s; }
.nav__links a:hover, .nav__links a.is-active { background: rgba(18,18,18,.06); color: var(--ink); }
.nav__toggle { display: none; }
.nav__news {
  display: inline-flex; align-items: center; gap: 8px; height: 28px; padding-inline: 6px 12px; border-radius: 999px;
  font-size: 12.5px; color: var(--muted); background: rgba(255,255,255,.45); white-space: nowrap;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.nav__news svg { width: 12px; height: 12px; color: var(--burgundy); }
.nav__news-tag { background: var(--burgundy); color: var(--white); border-radius: 999px; padding: 0 8px; line-height: 20px; font-size: 11.5px; }
.nav.is-scrolled .nav__news { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.nav.on-dark .nav__mark, .nav.on-dark .nav__links, .nav.on-dark .nav__toggle { background: rgba(32,32,34,.55); border-color: rgba(255,255,255,.08); }
.nav.on-dark .nav__links a { color: rgba(255,255,255,.72); }
.nav.on-dark .nav__links a:hover, .nav.on-dark .nav__links a.is-active { background: rgba(255,255,255,.08); color: var(--white); }
.nav.on-dark .nav__mark .bkz { --frame: var(--beige); --glyph: #202022; }

/* side marker */
.marker { position: fixed; inset-inline-start: var(--pad); top: 50%; z-index: 30; display: grid; justify-items: start; gap: 8px; transform: translateY(-50%); opacity: 0; transition: opacity .5s var(--ease); pointer-events: none; }
.marker.is-visible { opacity: 1; }
.marker__box { display: grid; place-items: center; width: 30px; height: 30px; background: var(--burgundy); border-radius: 2px; transition: background .4s; }
.marker__box svg { width: 11px; height: 11px; fill: var(--white); }
.marker__num { font-size: 11px; color: var(--muted); font-feature-settings: "tnum"; direction: ltr; }
.marker.on-dark .marker__num { color: rgba(255,255,255,.5); }
.marker.on-accent .marker__box { background: var(--white); }
.marker.on-accent .marker__box svg { fill: var(--burgundy); }

/* ==========================================================================
   HERO — soft portrait that sharpens, small text bottom-start
   ========================================================================== */
.hero {
  position: relative; height: 100svh; min-height: 640px; overflow: hidden;
  background:
    radial-gradient(42% 60% at 50% 46%, rgba(208,166,134,.30), transparent 72%),
    linear-gradient(180deg, var(--white) 0%, var(--paper) 60%, var(--mist) 100%);
}
.hero__portrait {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  height: min(92svh, 1110px); aspect-ratio: 785 / 1110; will-change: transform;
}
.hero__portrait picture, .hero__portrait img { width: 100%; height: 100%; }
.hero__portrait img {
  object-fit: contain; object-position: bottom center;
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 98%);
          mask-image: linear-gradient(to bottom, #000 60%, transparent 98%);
}
.hero__intro { position: absolute; inset-inline-start: var(--pad); bottom: clamp(28px, 6vh, 64px); z-index: 2; display: grid; gap: 14px; max-width: 460px; }
.hero__name { font-size: 15px; color: var(--burgundy); }
.hero__title { font-size: clamp(32px, 3.3vw, 48px); font-weight: 300; line-height: 1.18; letter-spacing: -.01em; }
.hero__explore { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.hero__explore > span { margin-inline-end: 6px; }
.hero__role { position: absolute; inset-inline-end: var(--pad); bottom: clamp(28px, 6vh, 64px); z-index: 2; font-size: 13px; color: var(--muted); }
.hero__down { position: absolute; inset-inline-end: var(--pad); top: 50%; z-index: 2; display: grid; place-items: center; width: 30px; height: 44px; border-radius: 8px; background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.7); }
.hero__down svg { width: 14px; height: 14px; animation: nudge 1.8s var(--ease) infinite; }
@keyframes nudge { 0%,100% { transform: translateY(-3px); } 50% { transform: translateY(3px); } }

/* entrance (CSS fallback; GSAP takes over when present) */
.hero__portrait img { animation: heroIn 2.2s var(--ease) both; }
@keyframes heroIn { from { opacity: 0; filter: blur(28px); transform: scale(1.05); } to { opacity: 1; filter: blur(0); transform: none; } }
.hero__intro, .hero__role { animation: fadeUp 1.2s .6s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.js-anim .hero__intro, .js-anim .hero__role { animation: none; }

/* ==========================================================================
   OVERVIEW
   ========================================================================== */
.overview { padding-block: clamp(120px, 16vw, 240px); }
.statement { font-size: clamp(24px, 2.35vw, 33px); font-weight: 400; line-height: 1.55; letter-spacing: -.005em; max-width: 30ch; max-width: 820px; }
.statement .accent { color: var(--burgundy); }
.overview .link { margin-top: 40px; }
.word { display: inline; }

/* ==========================================================================
   MISSION (dark)
   ========================================================================== */
.mission__title { font-size: clamp(17px, 1.4vw, 20px); font-weight: 400; line-height: 1.5; color: rgba(255,255,255,.92); }
.mission__title span { color: var(--beige); }
.lbl--mark { align-content: start; }
.rows { margin-top: clamp(64px, 8vw, 110px); }
.row { padding-block: 26px; }
.row > .col-main { border-top: 1px solid var(--line-dark); padding-top: 26px; margin-top: -26px; }
.row .lbl { padding-top: 0; }
.row__text { font-size: clamp(20px, 1.85vw, 26px); font-weight: 300; line-height: 1.45; color: var(--white); }

.facts { margin-top: clamp(72px, 9vw, 130px); }
.facts__inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 24px; border-top: 1px solid var(--line-dark); }
.facts dt { font-size: 13px; color: rgba(255,255,255,.5); margin-bottom: 8px; }
.facts dd { margin: 0; font-size: 17px; line-height: 1.5; }

.values { margin-top: clamp(72px, 9vw, 130px); }
.values__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.brk { font-size: 17px; color: var(--beige); margin-bottom: 14px; white-space: nowrap; }
.brk sup { color: var(--beige-light); }
.values__list p:last-child { font-size: 14.5px; line-height: 1.6; color: rgba(255,255,255,.62); }

/* ==========================================================================
   MEET — huge burgundy word with monogram over it
   ========================================================================== */
.meet { position: relative; background: var(--paper); padding-block: clamp(110px, 12vw, 170px) clamp(72px, 8vw, 110px); overflow: hidden; }
.meet__stage { position: relative; display: grid; justify-items: center; }
.meet__kicker { display: grid; justify-items: center; gap: 10px; font-size: 14px; margin-bottom: clamp(16px, 3vw, 36px); }
.meet__word { display: grid; justify-items: center; font-size: clamp(84px, 13.5vw, 210px); font-weight: 300; line-height: 1.05; color: var(--burgundy); letter-spacing: -.01em; }
.meet__mark {
  position: absolute; top: 62%; left: 50%; width: clamp(200px, 25vw, 380px); height: auto; aspect-ratio: 414 / 144;
  transform: translate(-50%, -50%) rotate(-8deg);
  filter: drop-shadow(0 50px 50px rgba(18,18,18,.28)) drop-shadow(0 12px 14px rgba(18,18,18,.18));
  --frame: var(--ink); --glyph: var(--paper);
}
.meet__foot { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-top: clamp(48px, 7vw, 100px); padding-inline: var(--pad); }
.meet__text { max-width: 420px; font-size: 15.5px; color: var(--muted); line-height: 1.75; }
.meet__text b { color: var(--ink); letter-spacing: .2em; }
.meet__explore { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.meet__explore > span { margin-inline-end: 6px; }

/* ==========================================================================
   JOURNEY (dark) — 3 columns + timeline rows
   ========================================================================== */
.journey__head { row-gap: 48px; align-items: start; }
.journey__head > .lbl { grid-column: 1 / 3; }
.journey__intro { grid-column: 3 / 6; display: grid; gap: 28px; justify-items: start; }
.journey__body { grid-column: 6 / 9; display: grid; gap: 16px; font-size: 15.5px; line-height: 1.8; color: rgba(255,255,255,.66); }
.journey__lead { color: var(--white); font-size: 16px; }
.journey__photo { grid-column: 10 / 13; position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 5; background: #1a1a1b; }
.journey__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; filter: grayscale(.15); }
.journey__photo figcaption { position: absolute; inset-inline: 14px; bottom: 12px; font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.9); z-index: 1; }
.journey__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.6), transparent 45%); }

.timeline { margin-top: clamp(96px, 12vw, 160px); }
.tl { padding-block: 28px; }
.tl > .col-main { border-top: 1px solid var(--line-dark); padding-top: 28px; margin-top: -28px; }
.tl .lbl { flex-direction: row; display: flex; align-items: center; gap: 10px; }
.tl__year { font-size: 22px; font-weight: 300; color: var(--white) !important; font-feature-settings: "tnum"; line-height: 1; }
.tl__now { font-size: 11px; color: var(--ink) !important; background: var(--beige); border-radius: 999px; padding: 1px 8px; opacity: 1 !important; }
.tl__body h3 { font-size: clamp(18px, 1.6vw, 22px); font-weight: 400; line-height: 1.45; color: var(--white); }
.tl__org { color: var(--beige); font-size: 14px; margin-block: 4px 10px; }
.tl__body p:last-child { color: rgba(255,255,255,.58); font-size: 15px; max-width: 640px; }
.tl:hover .tl__body h3 { color: var(--beige-light); }

/* ==========================================================================
   CERTIFICATIONS (full burgundy)
   ========================================================================== */
.certs .lbl span:first-child { color: var(--white); }
.certs .lbl { color: rgba(255,255,255,.65); }
.certs__sub { margin-top: 20px; max-width: 560px; font-size: 16px; color: rgba(255,255,255,.75); line-height: 1.8; }
.certs__list { margin-top: clamp(64px, 8vw, 110px); }
.cert { padding-block: 30px; }
.cert > .col-main { border-top: 1px solid rgba(255,255,255,.22); padding-top: 30px; margin-top: -30px; }
.cert__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 24px; align-items: start; }
.cert__code { font-size: clamp(30px, 3.4vw, 50px); font-weight: 300; line-height: 1; text-align: end; letter-spacing: -.01em; }
.cert__code sup { font-size: .32em; opacity: .7; }
.cert__info { display: grid; gap: 6px; font-size: 15.5px; color: rgba(255,255,255,.85); }
.cert__name { font-size: 13px; color: var(--beige-light); text-align: end; }
.cert__meta { font-size: 13px; color: rgba(255,255,255,.55); font-feature-settings: "tnum"; }
.certs__more { margin-top: clamp(56px, 7vw, 90px); }
.certs__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.certs__chips li { padding: 8px 16px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; font-size: 14px; color: rgba(255,255,255,.85); }
.certs__chips b { margin-inline-end: 6px; color: var(--white); }

/* ==========================================================================
   WORK (light) — expertise rows, projects list, tools
   ========================================================================== */
.exp { margin-top: clamp(56px, 7vw, 96px); }
.exp__row { padding-block: 22px; }
.exp__row > .col-main { border-top: 1px solid var(--line); padding-top: 22px; margin-top: -22px; }
.exp__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 24px; align-items: baseline; }
.exp__body h3 { font-size: clamp(19px, 1.7vw, 24px); font-weight: 400; line-height: 1.35; }
.exp__body p { color: var(--muted); font-size: 15.5px; }
.exp__row:hover h3 { color: var(--burgundy); }

.projects__head { margin-top: clamp(110px, 13vw, 190px); }
.plist { margin: clamp(40px, 5vw, 64px) var(--pad) 0; border-top: 1px solid var(--line); }
.plist__row {
  position: relative; display: grid; grid-template-columns: 70px minmax(0, 1.1fr) minmax(0, 1.4fr) 120px; align-items: baseline; gap: 24px;
  padding: 22px 0; border-bottom: 1px solid var(--line); transition: padding .5s var(--ease), color .3s; isolation: isolate;
}
.plist__row::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--burgundy); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); }
.plist__year { color: var(--gray-dark); font-size: 14px; font-feature-settings: "tnum"; }
.plist__row h3 { font-size: clamp(17px, 1.5vw, 21px); font-weight: 400; line-height: 1.4; }
.plist__row p { color: var(--muted); font-size: 15px; }
.plist__tag { justify-self: end; font-size: 13px; color: var(--burgundy); white-space: nowrap; }
@media (hover: hover) {
  .plist__row:hover { padding-inline: 20px; color: var(--white); }
  .plist__row:hover::before { transform: scaleY(1); }
  .plist__row:hover p, .plist__row:hover .plist__year, .plist__row:hover .plist__tag { color: rgba(255,255,255,.78); }
}
.plist__preview { position: fixed; top: 0; left: 0; z-index: 40; width: 240px; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.85) rotate(-3deg); transition: opacity .35s var(--ease), transform .35s var(--ease); box-shadow: 0 30px 80px -20px rgba(0,0,0,.45); }
.plist__preview.is-visible { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-3deg); }
.plist__preview img { width: 100%; height: 100%; object-fit: cover; }

.tools { margin-top: clamp(72px, 9vw, 120px); }
.tools__list { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 18px; font-size: 15px; color: var(--ink-2); }

/* ==========================================================================
   INVEST (image band)
   ========================================================================== */
.invest { position: relative; overflow: hidden; color: var(--white); background: var(--burgundy-deep); }
.invest__bg { position: absolute; inset: 0; }
.invest__bg img { width: 100%; height: 125%; object-fit: cover; }
.invest__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(91,26,49,.82), rgba(15,15,16,.86)); }
.invest__inner { position: relative; z-index: 1; padding-block: clamp(140px, 16vw, 230px); }
.invest .lbl span:first-child { color: var(--white); }
.invest .accent { color: var(--beige); }
.invest h2 { max-width: 760px; }
.invest__domains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(48px, 6vw, 80px); }
.invest__domains li { display: grid; gap: 6px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.28); font-size: clamp(19px, 1.7vw, 24px); font-weight: 300; }
.invest__domains span { font-size: 12px; color: var(--beige); font-feature-settings: "tnum"; }

/* ==========================================================================
   BRAND PATTERN (official BKZ pattern from the brand kit)
   ========================================================================== */
.pattern-band { height: clamp(120px, 14vw, 180px); overflow: hidden; background: var(--paper); border-block: 1px solid var(--line); }
.pattern-band__track {
  height: 100%; width: calc(100% + var(--tile) * 2); --tile: clamp(120px, 14vw, 180px);
  background: var(--burgundy);
  -webkit-mask: url("../img/brand/pattern-tile.svg?v=2") 0 0 / var(--tile) var(--tile) repeat;
          mask: url("../img/brand/pattern-tile.svg?v=2") 0 0 / var(--tile) var(--tile) repeat;
  animation: patternSlide 18s linear infinite;
}
@keyframes patternSlide { to { transform: translateX(var(--tile)); } }
.certs { isolation: isolate; overflow: hidden; }
.certs::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 60%; z-index: -1; pointer-events: none;
  background: var(--white); opacity: .05;
  -webkit-mask: url("../img/brand/pattern-tile-glyphs.svg?v=2") 0 0 / 150px 150px repeat, linear-gradient(to top, #000, transparent);
          mask: url("../img/brand/pattern-tile-glyphs.svg?v=2") 0 0 / 150px 150px repeat, linear-gradient(to top, #000, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}

/* ==========================================================================
   CTA (pre-footer)
   ========================================================================== */
.cta { padding-block: clamp(90px, 10vw, 150px); }
.cta__brand { display: flex; justify-content: center; padding-inline: var(--pad); margin-bottom: clamp(56px, 7vw, 96px); }
.cta__brand img { width: min(520px, 80vw); height: auto; }
.cta__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); padding-inline: var(--pad); max-width: 1180px; margin-inline: auto; }
.cta__item { display: grid; gap: 16px; justify-items: start; align-content: start; padding-top: 24px; border-top: 1px solid var(--line); }
.cta__item p:not(.lbl) { color: var(--muted); max-width: 420px; }
.cta__item .lbl { margin-bottom: 18px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--night); color: var(--white); padding: clamp(72px, 9vw, 120px) var(--pad) 28px; }
.footer__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 20px; row-gap: 48px; }
.footer__logo { grid-column: 1 / 4; width: 170px; height: auto; }
.footer__col { display: grid; grid-template-columns: 110px 1fr; gap: 20px; align-content: start; }
.footer__col:nth-of-type(1) { grid-column: 6 / 9; }
.footer__col:nth-of-type(2) { grid-column: 9 / 13; }
.footer__big { display: grid; gap: 4px; font-size: clamp(20px, 1.7vw, 24px); font-weight: 300; line-height: 1.35; }
.footer__big a { transition: color .3s; }
.footer__big a:hover { color: var(--beige); }
.footer__contact { grid-column: 2; margin-top: 18px; font-size: 13px; color: rgba(255,255,255,.5); text-align: end; }
.footer__bottom { display: flex; align-items: center; gap: 24px; margin-top: clamp(80px, 10vw, 140px); padding-top: 22px; border-top: 1px solid var(--line-dark); font-size: 13px; color: rgba(255,255,255,.45); }
.footer__bottom p:last-child { margin-inline-start: auto; }
.footer__star { width: 22px; height: 22px; fill: var(--beige); }

/* motion initial state (only when GSAP runs) */
.js-anim [data-fade] { opacity: 0; transform: translateY(26px); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .grid > .lbl { grid-column: 1 / 4; }
  .grid > .col-main { grid-column: 4 / 13; }
  .journey__head > .lbl { grid-column: 1 / 4; }
  .journey__intro { grid-column: 4 / 13; }
  .journey__body { grid-column: 4 / 9; }
  .journey__photo { grid-column: 9 / 13; }
  .values__list { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .footer__logo { grid-column: 1 / 13; }
  .footer__col:nth-of-type(1) { grid-column: 1 / 7; }
  .footer__col:nth-of-type(2) { grid-column: 7 / 13; }
  .marker { display: none; }
}

@media (max-width: 760px) {
  .grid { grid-template-columns: 1fr; row-gap: 14px; }
  .grid > .lbl, .grid > .col-main,
  .journey__head > .lbl, .journey__intro, .journey__body, .journey__photo { grid-column: 1 / -1; }
  .lbl { grid-auto-flow: column; justify-content: start; gap: 10px; }
  .lbl--mark { display: none; }

  .nav { left: 16px; right: 16px; transform: none; justify-items: stretch; }
  .nav.is-hidden { transform: translateY(-160%); }
  .nav__bar { justify-content: space-between; }
  .nav__news { justify-self: center; }
  .nav__toggle { display: grid; place-content: center; gap: 6px; width: 44px; height: 40px; cursor: pointer; }
  .nav__toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease); }
  .nav.on-dark .nav__toggle span { background: var(--white); }
  .nav__links {
    position: absolute; top: 48px; inset-inline: 0; height: auto; flex-direction: column; align-items: stretch; padding: 8px; border-radius: 16px;
    background: rgba(255,255,255,.94); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .35s, transform .35s var(--ease), visibility .35s;
  }
  .nav.on-dark .nav__links { background: rgba(26,26,28,.96); }
  .nav__links a { padding: 13px 14px; font-size: 17px; }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; }
  .nav.is-open .nav__news { opacity: 0; pointer-events: none; }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

  .hero { min-height: 600px; }
  .hero__portrait { height: auto; width: min(100vw, calc(66svh * 785 / 1110)); bottom: 17svh; }
  .nav__news-more { display: none; }
  .hero__portrait img { -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 96%); mask-image: linear-gradient(to bottom, #000 55%, transparent 96%); }
  .hero__intro { inset-inline: var(--pad); }
  .hero__role, .hero__down { display: none; }

  .row, .tl, .cert, .exp__row { padding-block: 22px; }
  .row > .col-main, .tl > .col-main, .cert > .col-main, .exp__row > .col-main { border-top: 0; padding-top: 0; margin-top: 0; }
  .row, .tl, .cert, .exp__row { border-top: 1px solid var(--line-dark); margin-inline: var(--pad); padding-inline: 0; }
  .exp__row { border-color: var(--line); }
  .cert { border-color: rgba(255,255,255,.22); }
  .facts__inner, .values__list, .invest__domains, .cta__grid { grid-template-columns: 1fr; }
  .cert__row, .exp__body { grid-template-columns: 1fr; gap: 10px; }
  .cert__code, .cert__name { text-align: start; direction: rtl; unicode-bidi: plaintext; }
  .journey__photo { aspect-ratio: 4 / 3; }
  .meet__word { font-size: clamp(72px, 24vw, 120px); }
  .meet__mark { width: 46vw; top: 66%; }
  .meet__foot { flex-direction: column; align-items: start; }
  .plist__row { grid-template-columns: 1fr auto; gap: 6px 16px; }
  .plist__row h3, .plist__row p { grid-column: 1 / -1; }
  .tools__list { justify-content: flex-start; direction: ltr; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__logo, .footer__col:nth-of-type(1), .footer__col:nth-of-type(2) { grid-column: 1 / -1; }
  .footer__col { grid-template-columns: 1fr; gap: 12px; }
  .footer__contact { grid-column: 1; text-align: start; }
  .footer__bottom { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
