:root{
  --royal:    #1e2a8f;   /* header / primary navy-blue */
  --royal-2:  #19237a;   /* deeper */
  --navy:     #0a1330;   /* dark sections */
  --navy-2:   #0d1838;
  --gold:     #c6a23e;   /* warm accent */
  --gold-2:   #d8b455;
  --cy:       #0099CC;   /* Gugi brand cyan */
  --cy-2:     #00b6e4;
  --ink:      #1c2780;   /* headline navy on white */
  --blue-body:#3a4aa3;   /* body blue on white */
  --slate:    #4a5573;
  --line:     #e3e7f2;
  --paper:    #ffffff;
  --paper-2:  #f4f6fc;
  --white-dim:#c4cef0;   /* light blue text on navy */
  --font: 'Assistant', system-ui, 'Segoe UI', sans-serif;
}

*{ box-sizing: border-box; }
html,body{ margin:0; padding:0; }
html{ scroll-behavior: smooth; background: var(--paper); }
body{
  font-family: var(--font);
  color: var(--slate);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a{ color: inherit; text-decoration: none; }
button{ font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img{ max-width: 100%; display: block; }

.wrap{ max-width: 1240px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 720px){ .wrap{ padding: 0 22px; } }

/* ───────────────── HEADER ───────────────── */
header.nav{
  position: sticky; top: 0; z-index: 60;
  background: var(--royal);
  color: #fff;
}
.nav-inner{
  display: flex; align-items: center; justify-content: space-between;
  height: 96px; gap: 28px;
}
/* brand sits at the start (right in RTL) */
.brand{ display: flex; align-items: center; gap: 14px; order: 2; }
.brand .wave{ width: 58px; height: 40px; color: #fff; }
.brand .wave svg{ width: 100%; height: 100%; }
.brand .btxt{ line-height: 1.05; text-align: start; }
.brand .btxt .bn{ font-size: 26px; font-weight: 800; letter-spacing: .02em; }
.brand .btxt .bt{
  font-size: 12px; font-weight: 500; letter-spacing: .22em;
  color: var(--gold-2); text-transform: uppercase; margin-top: 2px;
}
body[dir="rtl"] .brand .btxt .bt{ letter-spacing: .06em; }

nav.primary{ display: flex; align-items: center; gap: 30px; order: 1; }
nav.primary a{
  font-size: 16px; font-weight: 600; color: #eef1ff;
  position: relative; padding: 6px 0; white-space: nowrap;
  transition: color .18s ease;
}
nav.primary a::after{
  content:""; position: absolute; inset-inline: 0; bottom: -2px; height: 2px;
  background: var(--gold-2); transform: scaleX(0); transform-origin: center;
  transition: transform .22s ease;
}
nav.primary a:hover,
nav.primary a.active{ color: #fff; }
nav.primary a:hover::after,
nav.primary a.active::after{ transform: scaleX(1); }

.nav-tools{ display: flex; align-items: center; gap: 16px; order: 0; }
.lang-pill{
  display: flex; align-items: center; gap: 8px;
  border: 1.5px solid rgba(255,255,255,.55);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700; font-size: 14px; letter-spacing: .06em;
  color: #fff;
  transition: all .2s ease;
}
.lang-pill:hover{ border-color: var(--gold-2); color: var(--gold-2); }
.lang-pill .globe{ width: 18px; height: 18px; }
.lang-pill .chev{ width: 12px; height: 12px; opacity: .8; transition: transform .22s ease; }
.lang-dd{ position: relative; }
.lang-dd.open .lang-pill{ border-color: var(--gold-2); color: var(--gold-2); }
.lang-dd.open .lang-pill .chev{ transform: rotate(180deg); }
.lang-menu{
  position: absolute; inset-inline-end: 0; top: calc(100% + 10px);
  list-style: none; margin: 0; padding: 6px;
  min-width: 168px; z-index: 70;
  background: #fff; border-radius: 12px;
  box-shadow: 0 18px 40px rgba(10,19,48,.28), 0 0 0 1px rgba(10,19,48,.06);
  opacity: 0; transform: translateY(-8px) scale(.98); transform-origin: top;
  pointer-events: none; transition: opacity .18s ease, transform .18s ease;
}
.lang-dd.open .lang-menu{ opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.lang-menu li{
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 8px; cursor: pointer;
  color: var(--ink); transition: background .15s ease;
}
.lang-menu li:hover{ background: var(--paper-2); }
.lang-menu li .lm-code{
  font-size: 12px; font-weight: 800; letter-spacing: .08em;
  color: #fff; background: var(--royal);
  width: 30px; height: 22px; border-radius: 5px;
  display: grid; place-items: center; flex-shrink: 0;
}
.lang-menu li .lm-name{ font-size: 15px; font-weight: 600; flex: 1; text-align: start; }
.lang-menu li .lm-tick{ width: 18px; height: 18px; color: var(--cy); opacity: 0; flex-shrink: 0; }
.lang-menu li[aria-selected="true"] .lm-tick{ opacity: 1; }
.lang-menu li[aria-selected="true"] .lm-name{ color: var(--royal); font-weight: 700; }
.socials{ display: flex; align-items: center; gap: 12px; }
.socials a{
  width: 22px; height: 22px; color: #fff; opacity: .9;
  transition: color .2s ease, opacity .2s ease;
}
.socials a:hover{ color: var(--gold-2); opacity: 1; }
.socials svg{ width: 100%; height: 100%; }

.menu-btn{ display: none; width: 44px; height: 44px; color: #fff; align-items: center; justify-content: center; }
.menu-btn svg{ width: 26px; height: 26px; }

@media (max-width: 960px){
  .nav-inner{ height: 76px; }
  nav.primary{ display: none; }
  .socials{ display: none; }
  .menu-btn{ display: flex; order: 0; }
  .brand .wave{ width: 46px; height: 32px; }
  .brand .btxt .bn{ font-size: 22px; }
}

.mobile-menu{
  position: fixed; inset: 76px 0 0 0; z-index: 55;
  background: var(--royal);
  padding: 32px 26px;
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.mobile-menu.open{ opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-menu a{
  display: block; color: #fff; font-size: 24px; font-weight: 700;
  padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.14);
}
.mobile-menu .mm-c{ margin-top: 26px; color: var(--gold-2); font-weight: 600; letter-spacing: .04em; }
.mobile-menu .mm-c div{ margin-bottom: 8px; }

/* ───────────────── SCROLL DOTS ───────────────── */
.dots{
  position: fixed; z-index: 40;
  inset-inline-end: 26px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 16px; align-items: center;
}
.dots button{
  width: 11px; height: 11px; border-radius: 50%;
  border: 1.5px solid var(--royal);
  background: transparent; padding: 0;
  transition: all .2s ease; position: relative;
}
.dots button.on{ background: var(--royal); box-shadow: 0 0 0 4px rgba(30,42,143,.14); }
.dots button .tip{
  position: absolute; inset-inline-end: 22px; top: 50%; transform: translateY(-50%);
  white-space: nowrap; font-size: 12px; font-weight: 700; color: var(--royal);
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.dots button:hover .tip{ opacity: 1; }
/* dots invert over dark sections */
.dots.on-dark button{ border-color: #fff; }
.dots.on-dark button.on{ background: var(--gold-2); border-color: var(--gold-2); box-shadow: 0 0 0 4px rgba(216,180,85,.2); }
.dots.on-dark button .tip{ color: #fff; }
@media (max-width: 960px){ .dots{ display: none; } }

/* ───────────────── HERO ───────────────── */
.hero{ background: var(--paper); padding: 84px 0 0; position: relative; overflow: hidden; }
.hero-grid{
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  min-height: 540px;
}
.hero-copy{ }
.hero-copy h1{
  margin: 0; color: var(--ink);
  font-size: clamp(40px, 5.4vw, 76px); font-weight: 800;
  line-height: 1.04; letter-spacing: -.01em; text-wrap: balance;
}
.hero-copy .sub{
  margin: 22px 0 0; color: var(--blue-body);
  font-size: clamp(19px, 2vw, 26px); font-weight: 600; line-height: 1.4;
  text-wrap: pretty; max-width: 30ch;
}
.hero-copy .gold{
  margin-top: 18px; color: var(--gold);
  font-size: clamp(16px, 1.5vw, 20px); font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase;
}
.hero-cta{ margin-top: 38px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn{
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px; white-space: nowrap;
  font-weight: 700; font-size: 16px;
  transition: all .2s ease; border: 2px solid transparent;
}
.btn .arr{ width: 16px; height: 16px; }
body[dir="rtl"] .btn .arr{ transform: scaleX(-1); }
.btn-primary{ background: var(--royal); color: #fff; }
.btn-primary:hover{ background: var(--royal-2); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(30,42,143,.28); }
.btn-gold{ background: var(--gold); color: #1a1402; }
.btn-gold:hover{ background: var(--gold-2); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(198,162,62,.34); }
.btn-ghost{ border-color: var(--royal); color: var(--royal); }
.btn-ghost:hover{ background: var(--royal); color: #fff; }

.hero-art{ position: relative; }
/* placeholder image */
.ph{
  position: relative; width: 100%; border-radius: 14px; overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(30,42,143,.06) 0 12px, rgba(30,42,143,.02) 12px 24px),
    var(--paper-2);
  border: 1px solid var(--line);
  display: grid; place-items: center;
}
.ph .ph-lbl{
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: #97a0c4; font-weight: 700; text-align: center; padding: 12px 18px;
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
}
.hero-art .ph{ aspect-ratio: 1 / 0.92; }
.hero-art .badge{
  position: absolute; inset-block-end: 22px; inset-inline-start: 22px;
  background: var(--royal); color: #fff; border-radius: 12px;
  padding: 16px 22px; box-shadow: 0 14px 30px rgba(10,19,48,.25);
}
.hero-art .badge .n{ font-size: 34px; font-weight: 800; line-height: 1; }
.hero-art .badge .n span{ color: var(--gold-2); }
.hero-art .badge .t{ font-size: 13px; font-weight: 600; color: var(--white-dim); margin-top: 4px; }

/* illustrations (hero + service rows) — shown uncropped at natural aspect,
   framed as a soft card so the light artwork separates from the white page */
.hero-art .hero-img,
.row-art .row-img{
  width: 100%; height: auto; display: block;
  border-radius: 14px; border: 1px solid var(--line);
  box-shadow: 0 16px 44px rgba(20,30,80,.10);
}

@media (max-width: 900px){
  .hero{ padding: 48px 0 0; }
  .hero-grid{ grid-template-columns: 1fr; gap: 40px; min-height: 0; }
  .hero-art{ order: -1; max-width: 460px; margin-inline: auto; width: 100%; }
}

/* ───────────────── SERVICE CARDS ───────────────── */
.cards-band{ background: var(--paper); padding: 70px 0 100px; }
.cards{
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
  margin-top: -40px; position: relative; z-index: 2;
}
@media (max-width: 980px){ .cards{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px){ .cards{ grid-template-columns: 1fr; } }
.card{
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 30px 26px; text-align: start;
  box-shadow: 0 14px 40px rgba(20,30,80,.06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  cursor: pointer;
}
.card:hover{ transform: translateY(-6px); box-shadow: 0 22px 50px rgba(20,30,80,.13); border-color: #cfd6ee; }
.card .ic{
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 20px;
  background: rgba(0,153,204,.1); color: var(--cy);
}
.card:hover .ic{ background: var(--royal); color: #fff; }
.card .ic svg{ width: 30px; height: 30px; }
.card h3{ margin: 0 0 8px; color: var(--ink); font-size: 21px; font-weight: 800; }
.card .en{ font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--cy); text-transform: uppercase; margin-bottom: 12px; }
.card p{ margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--slate); }

/* ───────────────── SECTION HEAD ───────────────── */
.shead{ text-align: center; margin-bottom: 56px; }
.shead .kicker{
  color: var(--gold); font-weight: 800; font-size: 14px;
  letter-spacing: .22em; text-transform: uppercase; margin-bottom: 12px;
}
.shead h2{
  margin: 0; color: var(--ink); font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 800; line-height: 1.08; letter-spacing: -.01em;
}
.shead.light h2{ color: #fff; }
.shead .lead{
  max-width: 640px; margin: 18px auto 0; color: var(--slate);
  font-size: 18px; line-height: 1.6;
}
.shead.light .lead{ color: var(--white-dim); }

/* ───────────────── SERVICE ROWS ───────────────── */
.services{ background: var(--paper); padding: 100px 0; }
.rows{ display: flex; flex-direction: column; gap: 90px; }
.row{
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.row .row-art .ph{ aspect-ratio: 4 / 3; }
.row.flip .row-art{ order: 2; }
.row .row-copy .rk{
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--cy); font-weight: 800; font-size: 13px;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px;
}
.row .row-copy .rk .rn{
  width: 30px; height: 30px; border-radius: 8px; background: rgba(0,153,204,.12);
  display: grid; place-items: center; color: var(--cy); font-size: 13px;
}
.row .row-copy h3{
  margin: 0 0 8px; color: var(--ink); font-size: clamp(26px, 3vw, 38px);
  font-weight: 800; line-height: 1.1;
}
.row .row-copy .rlead{ margin: 0 0 22px; color: var(--blue-body); font-size: 17px; font-weight: 600; line-height: 1.5; }
.row .row-copy ul{ list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.row .row-copy li{
  display: grid; grid-template-columns: 22px 1fr; gap: 12px;
  font-size: 15.5px; line-height: 1.55; color: var(--slate); align-items: start;
}
.row .row-copy li .tick{ width: 22px; height: 22px; color: var(--gold); margin-top: 1px; }
.row .row-copy li b{ color: var(--ink); font-weight: 700; }
@media (max-width: 900px){
  .services{ padding: 70px 0; }
  .rows{ gap: 60px; }
  .row{ grid-template-columns: 1fr; gap: 30px; }
  .row .row-art{ order: -1 !important; }
  .row .row-art .ph{ aspect-ratio: 16/10; }
}

/* ───────────────── ABOUT (dark) ───────────────── */
.about{ background: var(--navy); color: var(--white-dim); padding: 110px 0; position: relative; }
.about::before{
  content:""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 40% at 80% 0%, rgba(30,42,143,.55), transparent 60%),
    radial-gradient(ellipse 40% 40% at 0% 100%, rgba(0,153,204,.12), transparent 55%);
}
.about .wrap{ position: relative; z-index: 1; }
.about-grid{ display: grid; grid-template-columns: 1.15fr 1fr; gap: 70px; align-items: start; }
.about-body p{ margin: 0 0 20px; font-size: 17px; line-height: 1.75; color: var(--white-dim); }
.about-body p strong{ color: #fff; font-weight: 700; }
.about-body .first{ font-size: 19px; }
.about-pull{
  margin: 30px 0 0; padding-inline-start: 22px; border-inline-start: 3px solid var(--gold);
  color: #fff; font-size: 21px; font-weight: 600; line-height: 1.5;
}
.about-pull em{ color: var(--gold-2); font-style: normal; }

.bio-card{
  background: var(--navy-2); border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px; padding: 34px; box-shadow: 0 24px 60px rgba(0,0,0,.3);
}
.bio-card .bh{ display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.bio-card .nm{ font-size: 24px; font-weight: 800; color: #fff; }
.bio-card .rl{ font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-2); }
.bio-card .blbl{
  margin: 24px 0 14px; font-size: 12px; font-weight: 800; letter-spacing: .18em;
  text-transform: uppercase; color: #8c97c8;
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px;
}
.bio-card .exp{ display: grid; gap: 14px; }
.bio-card .exp .co{ color: #fff; font-weight: 700; font-size: 15px; }
.bio-card .exp .what{ color: var(--white-dim); font-size: 13.5px; line-height: 1.45; }
@media (max-width: 900px){
  .about{ padding: 70px 0; }
  .about-grid{ grid-template-columns: 1fr; gap: 44px; }
}

/* ───────────────── CONTACT (dark) ───────────────── */
.contact{ background: var(--navy); color: #fff; padding: 100px 0 110px; border-top: 1px solid rgba(255,255,255,.07); }
.contact .shead .kicker-en{ color: var(--gold-2); font-weight: 800; font-size: 20px; margin-top: 6px; }
.contact-cols{
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 64px;
}
.ccol{ text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.ccol .cic{
  width: 66px; height: 66px; color: #fff;
  display: grid; place-items: center;
}
.ccol .cic svg{ width: 52px; height: 52px; }
.ccol .clbl{ font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); }
.ccol .cval{ font-size: 21px; font-weight: 700; color: #fff; transition: color .2s ease; }
.ccol a.cval:hover{ color: var(--gold-2); }
.contact-cta{ text-align: center; margin-top: 64px; }
@media (max-width: 760px){
  .contact-cols{ grid-template-columns: 1fr; gap: 44px; }
}

/* ───────────────── FOOTER ───────────────── */
footer{ background: var(--royal); color: #fff; padding: 30px 0; }
footer .frow{ display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 14px; }
footer .frow .l{ display: flex; align-items: center; gap: 12px; font-weight: 700; }
footer .frow .wave{ width: 38px; height: 26px; color: #fff; }
footer .frow .r{ color: var(--white-dim); }
footer .frow .gold{ color: var(--gold-2); font-weight: 700; letter-spacing: .04em; }

/* reveal — transform-only entrance so content is NEVER invisible, even if the
   animation is throttled/frozen (offscreen tabs, print, reduced-motion). */
.reveal{ }
.reveal.in{ animation: revUp .7s cubic-bezier(.2,.7,.2,1) both; }
@keyframes revUp{ from{ transform: translateY(26px); } to{ transform: translateY(0); } }
@media print, (prefers-reduced-motion: reduce){
  .reveal, .reveal.in{ animation: none !important; transform: none !important; }
}

body.lang-en{ /* latin already covered by Assistant */ }
