/* =========================================================
   PTC — Navy & Royal Gold — components
   ========================================================= */

/* ============ HEADER ============
   A single bar: logo → nav → actions. `.stuck` re-declares --head-h, so the
   bar, the nav links and the mobile drawer offset all shrink from one value. */
.header{
  position:sticky;top:0;z-index:600;
  background:var(--black);color:var(--white);
  border-bottom:1px solid rgba(255,255,255,.13);
  transition:box-shadow .3s var(--ease),border-color .3s var(--ease);
}
.header.stuck{--head-h:64px;border-color:transparent;box-shadow:0 14px 34px rgba(0,0,0,.34)}
.header__in{
  display:flex;align-items:center;gap:clamp(12px,1.8vw,30px);
  height:var(--head-h);transition:height .32s var(--ease);
}
.brand{display:flex;align-items:center;flex:0 0 auto}
.brand img{height:clamp(30px,3.2vw,38px);width:auto;transition:height .32s var(--ease)}
.header.stuck .brand img{height:28px}

/* actions, on the far side of the bar */
.header__act{display:flex;align-items:center;gap:12px;flex:0 0 auto}
.header__tel{
  font-size:.86rem;font-weight:700;letter-spacing:.03em;
  color:rgba(255,255,255,.7);
  padding-inline-end:14px;border-inline-end:1px solid rgba(255,255,255,.2);
  transition:color .25s var(--ease);
}
.header__tel:hover{color:var(--gold-light)}
.header__cta{
  display:inline-flex;align-items:center;
  height:40px;padding:0 22px;
  background:var(--gold);color:var(--black);
  font-size:.86rem;font-weight:700;letter-spacing:.02em;
  transition:background .25s var(--ease),color .25s var(--ease);
}
.header__cta:hover{background:var(--gold-light);color:var(--black)}
.lang{
  display:inline-flex;align-items:center;gap:5px;padding:0 4px;
  font-size:.8rem;font-weight:700;letter-spacing:.08em;
  color:rgba(255,255,255,.7);transition:color .25s var(--ease);
}
.lang:hover{color:var(--white)}

/* Homepage only: the bar floats over the full-height slider instead of
   sitting above it, then turns solid once you scroll past the first frame.
   Inner pages keep the sticky bar in normal flow. */
.home .header{position:fixed;inset-inline:0;top:0;background:transparent;border-color:transparent;box-shadow:none}
.home .header.stuck{background:var(--black);border-color:transparent;box-shadow:0 14px 34px rgba(0,0,0,.34)}

.nav{margin-inline-end:auto}
.nav__list{display:flex;align-items:center;gap:4px}
.nav__item{position:relative}
.nav__link{
  position:relative;
  display:flex;align-items:center;gap:7px;
  padding:0 15px;height:var(--head-h);
  font-size:.92rem;font-weight:600;color:rgba(255,255,255,.82);
  transition:color .25s var(--ease),height .32s var(--ease);
}
.nav__link:hover,.nav__link[aria-expanded="true"],.nav__link.is-on{color:var(--gold-light)}
/* underline grows from the reading-start edge, so it mirrors with the document */
.nav__link::after{
  content:'';position:absolute;inset-inline:15px;bottom:0;height:2px;
  background:var(--gold);transform:scaleX(0);transform-origin:inline-start;
  transition:transform .3s var(--ease);
}
.nav__link:hover::after,.nav__link[aria-expanded="true"]::after,.nav__link.is-on::after{transform:scaleX(1)}
/* Caret points down and stays down while the dropdown is open.
   Physical borders on purpose: a downward chevron is symmetric, so it must
   NOT mirror with the document direction the way logical borders would. */
.nav__link .caret{
  width:7px;height:7px;
  border-right:1.6px solid currentColor;border-bottom:1.6px solid currentColor;
  transform:translateY(-2px) rotate(45deg);
  transition:opacity .3s var(--ease);
}
.nav__link[aria-expanded="true"] .caret{opacity:.75}

/* dropdown */
.drop{
  position:absolute;top:100%;inset-inline-start:0;min-width:250px;
  background:var(--white);color:var(--ink);
  border:1px solid var(--line);box-shadow:0 22px 48px rgba(0,0,0,.16);
  padding:8px;opacity:0;visibility:hidden;transform:translateY(8px);
  transition:opacity .25s var(--ease),transform .25s var(--ease),visibility 0s linear .25s;
}
.nav__item.open .drop{opacity:1;visibility:visible;transform:none;transition-delay:0s}
.drop a{
  display:block;padding:11px 16px;font-size:.9rem;font-weight:600;
  transition:background .2s var(--ease),padding .2s var(--ease);
}
.drop a:hover{background:var(--grey-1);padding-inline-start:22px;color:var(--gold-dark)}

.burger{display:none;width:42px;height:42px;position:relative;margin-inline-start:auto}
.burger span{
  position:absolute;inset-inline:10px;height:2px;background:var(--white);
  transition:transform .35s var(--ease),opacity .2s;
}
.burger span:nth-child(1){top:14px}
.burger span:nth-child(2){top:20px}
.burger span:nth-child(3){top:26px}
.burger.on span:nth-child(1){transform:translateY(6px) rotate(45deg)}
.burger.on span:nth-child(2){opacity:0}
.burger.on span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}

/* ============ FLOATING RAIL ============ */
.rail{
  position:fixed;inset-inline-start:0;top:50%;transform:translateY(-50%);
  z-index:500;display:grid;background:var(--black);
}
.rail a{
  width:46px;height:48px;display:grid;place-items:center;
  border-bottom:1px solid rgba(255,255,255,.14);
  transition:background .25s var(--ease);
}
.rail a:last-child{border-bottom:0}
.rail a:hover{background:var(--gold);}
.rail a:hover svg{stroke:var(--black)}
.rail svg{width:19px;height:19px;fill:none;stroke:var(--white);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

/* ============ HERO ============
   On the homepage the slider owns the whole viewport and the header floats
   over it, so the first frame is uninterrupted. `100svh` keeps mobile browser
   chrome from cropping the controls; the `100vh` line before it is the
   fallback for engines without the small-viewport units. */
.hero{position:relative;height:100vh;height:100svh;min-height:560px;overflow:hidden;background:var(--black)}
.hero__slides{position:absolute;inset:0}
.hero__slide{position:absolute;inset:0;opacity:0;transition:opacity 1.2s var(--ease)}
.hero__slide.on{opacity:1}
.hero__slide img{width:100%;height:100%;object-fit:cover;transform:scale(1.04);transition:transform 8s linear}
.hero__slide.on img{transform:scale(1.13)}

/* two scrims: a directional one for the copy, a vertical one so the floating
   header and the control rail stay legible over any frame */
.hero__scrim{position:absolute;inset:0;background:var(--scrim-rtl)}
[dir="ltr"] .hero__scrim{background:var(--scrim)}
.hero__scrim::after{
  content:'';position:absolute;inset:0;
  background:linear-gradient(to bottom,rgba(0,0,0,.55) 0,rgba(0,0,0,0) 26%,rgba(0,0,0,0) 58%,rgba(0,0,0,.62) 100%);
}

.hero__in{
  position:relative;z-index:2;height:100%;display:flex;align-items:flex-end;
  padding-top:var(--head-h);
  padding-bottom:clamp(104px,14vh,168px);
}
.hero__copy{max-width:760px;color:var(--white)}
.hero__kicker{
  display:block;font-size:clamp(.9rem,1.5vw,1.1rem);font-weight:600;
  letter-spacing:.14em;text-transform:uppercase;
  color:var(--gold-light);margin-bottom:10px;
}
.hero__title{font-size:clamp(2rem,5.2vw,4rem);line-height:1.12;margin-bottom:26px}

/* ---- control rail: arrows only ---- */
.hero__ctrl{
  position:absolute;inset-inline:0;bottom:clamp(30px,5vh,54px);z-index:3;
  display:flex;align-items:center;color:var(--white);
}
.hero__arrows{display:flex;gap:8px;flex:0 0 auto;margin-inline-start:auto}
.hero__arrows button{
  width:44px;height:44px;display:grid;place-items:center;
  border:1px solid rgba(201,162,39,.5);
  transition:background .25s var(--ease),border-color .25s var(--ease);
}
.hero__arrows button:hover{background:var(--gold);border-color:var(--gold)}
.hero__arrows svg{width:16px;height:16px;fill:none;stroke:var(--white);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
/* the prev/next chevron paths are fixed coordinates authored for RTL
   ("prev" points right, "next" points left, matching RTL reading flow) —
   mirror them in LTR so prev points left and next points right, without
   touching DOM order or the logical-property positioning above */
[dir="ltr"] .hero__arrows svg{transform:scaleX(-1)}
.hero__arrows button:hover svg{stroke:var(--black)}

@media (prefers-reduced-motion:reduce){
  .hero__slide img,.hero__slide.on img{transition:none;transform:none}
}

/* ============ INTRO / VISION ============ */
.intro{display:grid;grid-template-columns:.95fr 1.05fr;gap:clamp(28px,5vw,72px);align-items:center}
.intro__h{font-size:clamp(1.6rem,3.2vw,2.6rem);line-height:1.22}
.intro p{color:var(--grey-6);margin:0 0 16px}
.intro__media{position:relative;aspect-ratio:4/3;overflow:hidden}
.intro__media img{width:100%;height:100%;object-fit:cover;transition:transform 1s var(--ease)}
.intro__media:hover img{transform:scale(1.05)}

/* ============ EXPLORE CARD GRID ============ */
.xgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--line)}
.sec--black .xgrid{background:var(--line-dark)}
.xcard{
  background:var(--white);padding:clamp(24px,3vw,38px);
  display:flex;flex-direction:column;gap:12px;min-height:212px;
  transition:background .3s var(--ease),color .3s var(--ease),border-color .3s var(--ease);
  border-bottom:3px solid transparent;
}
.sec--black .xcard{background:var(--black)}
.xcard:hover{background:var(--black);color:var(--white);border-bottom-color:var(--gold)}
.sec--black .xcard:hover{background:var(--white);color:var(--black);border-bottom-color:var(--gold)}
.xcard__n{font-size:.76rem;font-weight:700;letter-spacing:.16em;color:var(--gold)}
.sec--black .xcard .xcard__n{color:var(--gold)}
.xcard h3{font-size:1.1rem;line-height:1.4}
.xcard p{font-size:.92rem;color:var(--grey-6);margin:0;flex:1}
.xcard:hover p,.xcard:hover .xcard__n{color:var(--grey-3)}
.xcard:hover .xcard__n{color:var(--gold-light)}
.sec--black .xcard p{color:var(--grey-4)}
.sec--black .xcard:hover p{color:var(--grey-6)}
.xcard__go{font-size:.84rem;font-weight:700}

/* ============ STATS ============ */
.stats{display:grid;grid-template-columns:repeat(4,1fr)}
.stat{padding:clamp(22px,3vw,34px) 18px;text-align:center;border-inline-end:1px solid var(--line-dark)}
.stat:last-child{border-inline-end:0}
.stat b{display:block;font-size:clamp(1.9rem,4vw,3.1rem);line-height:1.1;font-weight:700;color:var(--gold-light)}
.stat span{display:block;margin-top:6px;font-size:.86rem;color:var(--grey-3)}

/* ============ CAROUSEL ============ */
.car{position:relative}
.car__track{display:flex;gap:22px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;padding-bottom:6px}
.car__track::-webkit-scrollbar{height:3px}
.car__track::-webkit-scrollbar-thumb{background:var(--grey-3)}
.car__item{flex:0 0 clamp(280px,32%,420px);scroll-snap-align:start}
.car__nav{display:flex;gap:8px;margin-top:22px;justify-content:flex-end}
.car__nav button{
  width:44px;height:44px;border:1px solid var(--line);display:grid;place-items:center;
  transition:background .25s var(--ease),border-color .25s var(--ease);
}
.sec--black .car__nav button{border-color:var(--line-dark)}
.car__nav button:hover{background:var(--gold);border-color:var(--gold)}
.sec--black .car__nav button:hover{background:var(--gold)}
.car__nav svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
[dir="ltr"] .car__nav svg{transform:scaleX(-1)}   /* see .hero__arrows svg above */
.car__nav button:hover svg{stroke:var(--black)}
.sec--black .car__nav button:hover svg{stroke:var(--black)}

/* ============ SECTION HEAD WITH CONTROLS ============
   Heading on the reading side, "view all" + carousel arrows on the other,
   so the controls sit level with the title instead of under the track. */
.shead{
  display:flex;align-items:flex-end;justify-content:space-between;
  gap:clamp(20px,3vw,40px);margin-bottom:clamp(30px,4vw,52px);
}
.shead .sec__h{margin-bottom:12px}
.shead .sec__p{margin-bottom:0}
.shead__act{display:flex;align-items:center;gap:clamp(16px,2vw,26px);flex:0 0 auto;padding-bottom:4px}
.shead__act .car__nav{margin-top:0}

/* ============ PROJECT CARD ============ */
.pcard{display:block;background:var(--white)}
.sec--black .pcard{background:var(--black)}
.pcard__media{position:relative;aspect-ratio:4/3;overflow:hidden}
.pcard__media img{width:100%;height:100%;object-fit:cover;transition:transform .9s var(--ease)}
.pcard:hover .pcard__media img{transform:scale(1.07)}
.pcard__tag{
  position:absolute;top:0;inset-inline-start:0;z-index:2;
  background:var(--white);color:var(--black);
  font-size:.72rem;font-weight:700;letter-spacing:.1em;padding:7px 14px;
}
.sec--black .pcard__tag{background:var(--black);color:var(--white)}
.pcard__body{padding:20px 0 0}
.pcard__body h3{font-size:1.14rem;line-height:1.4;margin-bottom:6px}
.pcard__meta{font-size:.88rem;color:var(--grey-5);margin:0 0 14px}
.sec--black .pcard__meta{color:var(--grey-4)}

/* ---- overlay variant: portrait frame, caption sits on the photograph ---- */
.car--over .pcard{position:relative;overflow:hidden;background:var(--black)}
.car--over .pcard__media{aspect-ratio:3/4}
.car--over .pcard__media::after{
  content:'';position:absolute;inset:0;
  background:linear-gradient(to top,rgba(0,0,0,.88) 0,rgba(0,0,0,.4) 42%,rgba(0,0,0,0) 72%);
}
/* the tag can land on a bright sky, so it carries its own scrim */
.car--over .pcard__tag{
  top:18px;inset-inline-start:18px;
  background:rgba(0,0,0,.42);color:var(--white);
  border:1px solid rgba(255,255,255,.5);
  backdrop-filter:blur(3px);
}
.car--over .pcard__body{
  position:absolute;inset-inline:0;bottom:0;z-index:2;
  padding:clamp(20px,2vw,28px);color:var(--white);
}
.car--over .pcard__body h3{font-size:clamp(1.05rem,1.3vw,1.22rem);margin-bottom:8px}
.car--over .pcard__meta{color:rgba(255,255,255,.72);margin-bottom:12px}
/* the read-more link slides in on hover so the resting card stays quiet */
.car--over .tlink{opacity:0;transform:translateY(8px);transition:opacity .3s var(--ease),transform .3s var(--ease),background-size .3s var(--ease)}
.car--over .pcard:hover .tlink,.car--over .pcard:focus-within .tlink{opacity:1;transform:none}
@media (hover:none){
  .car--over .tlink{opacity:1;transform:none}
}

/* ============ SPLIT PROMO ============ */
.promo{position:relative;min-height:clamp(340px,52vh,540px);display:flex;align-items:center;overflow:hidden}
.promo__bg{position:absolute;inset:0}
.promo__bg img{width:100%;height:100%;object-fit:cover}
.promo__bg::after{content:'';position:absolute;inset:0;background:var(--scrim-rtl)}
[dir="ltr"] .promo__bg::after{background:var(--scrim)}
.promo .wrap{position:relative;z-index:2;display:grid;grid-template-columns:minmax(0,560px) minmax(0,1fr);gap:clamp(28px,4.5vw,64px);align-items:center;padding-block:clamp(40px,7vw,80px)}
.promo__in{color:var(--white)}
.promo__in h2{font-size:clamp(1.6rem,3.4vw,2.6rem);margin-bottom:14px}
.promo__in p{color:rgba(255,255,255,.82);margin:0 0 22px}

/* Real product screenshot, framed like a browser window */
.promo__shot{border-radius:10px;overflow:hidden;background:var(--black);border:1px solid rgba(255,255,255,.16);box-shadow:0 30px 70px -24px rgba(0,0,0,.6)}
.promo__shot__bar{direction:ltr;display:flex;align-items:center;gap:6px;padding:10px 14px;background:rgba(255,255,255,.07);border-bottom:1px solid rgba(255,255,255,.1)}
.promo__shot__bar i{width:9px;height:9px;border-radius:50%;background:rgba(255,255,255,.25)}
.promo__shot__bar i:nth-child(1){background:#FF5F57}
.promo__shot__bar i:nth-child(2){background:#FEBC2E}
.promo__shot__bar i:nth-child(3){background:#28C840}
.promo__shot__url{flex:1;text-align:center;font-size:.72rem;color:rgba(255,255,255,.5);letter-spacing:.3px}
.promo__shot img{display:block;width:100%;height:auto}

/* ============ CTA BOXES ============ */
.boxes{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--line-dark)}
.box{
  background:var(--black);color:var(--white);padding:clamp(24px,3vw,36px);
  display:flex;flex-direction:column;gap:10px;
  border-top:3px solid transparent;
  transition:background .3s var(--ease),color .3s var(--ease),border-color .3s var(--ease);
}
.box:hover{background:var(--gold);color:var(--black);border-top-color:var(--gold-dark)}
.box__ic{width:34px;height:34px}
.box__ic svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.box h3{font-size:1.04rem}
.box p{font-size:.9rem;color:var(--grey-4);margin:0;flex:1}
.box:hover p{color:var(--ink)}

/* ============ NEWSLETTER ============
   A black panel rather than a full-width band: the footer is already black,
   so a band would merge into it and lose its own edges. */
.news{
  background:var(--black);color:var(--white);
  padding:clamp(30px,4.4vw,62px) clamp(24px,4vw,64px);
  display:grid;grid-template-columns:1fr minmax(300px,.8fr);
  gap:clamp(24px,4vw,60px);align-items:center;
}
.news .eyebrow{color:var(--grey-4)}
.news h2{font-size:clamp(1.4rem,2.6vw,2.05rem);margin-bottom:10px}
.news p{color:var(--grey-3);margin:0;max-width:52ch}

.news__form{display:block}
.news__field{display:flex}
.news__field input{
  flex:1;min-width:0;padding:15px 18px;
  border:1px solid rgba(255,255,255,.28);border-inline-end:0;
  background:transparent;color:var(--white);outline:none;
  transition:border-color .25s var(--ease);
}
.news__field input::placeholder{color:rgba(255,255,255,.45)}
.news__field input:focus{border-color:var(--white)}
.news__field button{
  flex:0 0 auto;padding:0 28px;
  background:var(--white);color:var(--black);
  font-size:.9rem;font-weight:700;letter-spacing:.02em;
  border:1px solid var(--white);
  transition:background .25s var(--ease),color .25s var(--ease);
}
.news__field button:hover{background:transparent;color:var(--white)}
.news__note{margin-top:12px;font-size:.8rem;color:var(--grey-5)}
.news__ok{display:none;margin-top:10px;font-size:.88rem;font-weight:700;color:var(--white)}
.news__ok.on{display:block}

/* ============ FOOTER ============ */
/* every string in the footer is white; hierarchy comes from size and weight */
.foot{background:var(--black);color:var(--white);padding-top:clamp(46px,6vw,76px)}
.foot__top{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr 1.1fr;gap:clamp(22px,3vw,44px);padding-bottom:44px}
.foot__logo{height:36px;width:auto;margin-bottom:18px}
.foot__about{font-size:.9rem;line-height:1.85;color:var(--white);max-width:34ch}
.foot h4{
  color:var(--white);font-size:.78rem;letter-spacing:.16em;text-transform:uppercase;
  margin-bottom:16px;font-weight:700;
}
.foot__col ul{display:grid;gap:10px}
.foot__col a{font-size:.9rem;color:var(--white);transition:opacity .25s var(--ease)}
.foot__col a:hover{opacity:.7}
.foot__soc{display:flex;gap:10px;margin-top:20px}
.foot__soc a{
  width:38px;height:38px;border:1px solid rgba(201,162,39,.35);display:grid;place-items:center;
  transition:background .25s var(--ease),border-color .25s var(--ease);
}
.foot__soc a:hover{background:var(--gold);border-color:var(--gold)}
.foot__soc svg{width:16px;height:16px;fill:none;stroke:var(--white);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.foot__soc a:hover svg{stroke:var(--black)}
.foot__addr{font-style:normal;font-size:.9rem;color:var(--white);line-height:1.85}
.foot__bar{
  border-top:1px solid rgba(255,255,255,.14);padding:20px 0;
  display:flex;flex-wrap:wrap;gap:12px 26px;align-items:center;
  font-size:.82rem;color:var(--white);
}
.foot__bar nav{display:flex;flex-wrap:wrap;gap:20px;margin-inline-start:auto}
.foot__bar a:hover{opacity:.7}

/* Build/maintenance credit. The partner mark is placed transparent, in its
   real brand colours, per the client's instruction. Note its navy (#0d2659)
   sits at roughly 1.3:1 against the site's own --black (#07132c — the two
   navies are close), so the Arabic wordmark reads faintly — a light strip
   behind it, or the white knockout in partner-mashreq-white.png, are the
   two fixes if that becomes a problem. */
.foot__by{
  border-top:1px solid rgba(255,255,255,.1);
  padding:18px 0 26px;
  display:flex;flex-wrap:wrap;align-items:center;justify-content:center;
  gap:12px 16px;text-align:center;
  font-size:.78rem;letter-spacing:.01em;color:var(--white);
}
.foot__by img{height:34px;width:auto}
@media (max-width:560px){
  .foot__by{flex-direction:column;gap:14px}
  .foot__by img{height:28px}
}

/* ============ PAGE HERO (inner pages) ============ */
.phero{position:relative;min-height:clamp(260px,42vh,420px);display:flex;align-items:flex-end;overflow:hidden;background:var(--black)}
.phero__bg{position:absolute;inset:0}
.phero__bg img{width:100%;height:100%;object-fit:cover;opacity:.62}
.phero__bg::after{content:'';position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.86),rgba(0,0,0,.25))}
.phero__in{position:relative;z-index:2;color:var(--white);padding-block:clamp(30px,5vw,56px)}
.phero h1{font-size:clamp(1.8rem,4.4vw,3.2rem);margin-bottom:10px}
.crumb{font-size:.84rem;color:var(--grey-3);display:flex;gap:9px;flex-wrap:wrap}
.crumb a:hover{color:var(--gold-light)}

/* ============ RESPONSIVE ============ */
@media (max-width:1100px){
  .xgrid{grid-template-columns:repeat(2,1fr)}
  .boxes{grid-template-columns:repeat(2,1fr)}
  .foot__top{grid-template-columns:1fr 1fr 1fr}
}
@media (max-width:900px){
  .shead{flex-direction:column;align-items:flex-start;gap:20px}
  .shead__act{padding-bottom:0}
  .intro{grid-template-columns:1fr}
  .intro__media{order:-1}
  .news{grid-template-columns:1fr}
  .promo .wrap{grid-template-columns:1fr}
  .promo__shot{order:-1}
  .stats{grid-template-columns:1fr 1fr}
  .stat:nth-child(2){border-inline-end:0}
  .stat:nth-child(1),.stat:nth-child(2){border-bottom:1px solid var(--line-dark)}
}
@media (max-width:1100px){
  .header__tel{display:none}
}
@media (max-width:860px){
  /* nav becomes a fixed drawer, so the actions take over the spacer duty */
  .burger{display:block;margin-inline-start:0}
  .header__act{margin-inline-start:auto}
  .header__cta{height:36px;padding:0 16px;font-size:.82rem}
  .nav{
    position:fixed;inset:var(--head-h) 0 0;background:var(--black);
    margin:0;padding:18px var(--gut);overflow-y:auto;
    visibility:hidden;opacity:0;
    transition:opacity .3s var(--ease),visibility 0s linear .3s;
  }
  .nav.open{visibility:visible;opacity:1;transition-delay:0s}
  .nav__list{flex-direction:column;align-items:stretch;gap:0}
  .nav__link{height:auto;padding:16px 0;font-size:1.05rem;border-bottom:1px solid rgba(255,255,255,.12)}
  .drop{
    position:static;opacity:1;visibility:visible;transform:none;
    background:transparent;border:0;box-shadow:none;padding:0;
    max-height:0;overflow:hidden;transition:max-height .35s var(--ease);
  }
  .nav__item.open .drop{max-height:420px}
  .drop a{color:var(--grey-3);padding:11px 16px}
  .drop a:hover{background:rgba(255,255,255,.06);color:var(--white)}
  .rail{display:none}
}
@media (max-width:640px){
  /* touch swipe replaces the arrows */
  .hero__arrows{display:none}
  .hero__in{padding-bottom:clamp(64px,10vh,110px)}
  .xgrid,.boxes,.foot__top{grid-template-columns:1fr}
  .stats{grid-template-columns:1fr 1fr}
  .car__item{flex-basis:84%}
}

/* ============ INNER PAGES ============ */

/* long-form text (privacy / terms) */
.prose{max-width:80ch}
.prose h2{font-size:clamp(1.2rem,2.2vw,1.55rem);margin:38px 0 12px}
.prose h2:first-child{margin-top:0}
.prose h3{font-size:1.05rem;margin:24px 0 8px}
.prose p,.prose li{color:var(--grey-6);margin:0 0 12px}
.prose ul{margin:0 0 16px;padding-inline-start:20px;list-style:disc}
.prose li{margin-bottom:8px}
.prose strong{color:var(--ink)}
.prose__meta{font-size:.86rem;color:var(--grey-5);padding-bottom:20px;border-bottom:1px solid var(--line);margin-bottom:28px}

/* two-column article + sticky aside */
.doc{display:grid;grid-template-columns:1fr 290px;gap:clamp(28px,5vw,64px);align-items:start}
.aside{position:sticky;top:calc(var(--head-h) + 20px);border:1px solid var(--line);padding:26px}
.aside h3{font-size:1rem;margin-bottom:14px}
.aside ul{display:grid;gap:10px;margin-bottom:20px}
.aside a{font-size:.9rem;color:var(--grey-6)}
.aside a:hover{color:var(--gold-dark)}

/* spec table (project detail) */
.spec{width:100%;border-collapse:collapse;font-size:.94rem}
.spec th,.spec td{padding:15px 18px;border-bottom:1px solid var(--line);text-align:start;vertical-align:top}
.spec th{width:34%;font-weight:700;color:var(--ink)}
.spec td{color:var(--grey-6)}
.spec tr:last-child th,.spec tr:last-child td{border-bottom:0}

/* fact strip */
.facts{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--line)}
.facts div{background:var(--white);padding:24px 18px;text-align:center}
.facts b{display:block;font-size:clamp(1.3rem,2.6vw,1.9rem);line-height:1.2}
.facts span{display:block;margin-top:5px;font-size:.84rem;color:var(--grey-5)}

/* numbered method steps */
.steps{display:grid;gap:1px;background:var(--line)}
.step6{background:var(--white);display:grid;grid-template-columns:78px 1fr;gap:20px;padding:26px 24px;align-items:start}
.step6 b{font-size:1.5rem;font-weight:700;color:var(--grey-3)}
.step6 h3{font-size:1.06rem;margin-bottom:6px}
.step6 p{margin:0;color:var(--grey-6);font-size:.93rem}

/* news list */
.nlist{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(20px,3vw,32px)}
.ncard__media{aspect-ratio:16/10;overflow:hidden;margin-bottom:16px}
.ncard__media img{width:100%;height:100%;object-fit:cover;transition:transform .8s var(--ease)}
.ncard:hover .ncard__media img{transform:scale(1.06)}
.ncard time{display:block;font-size:.78rem;letter-spacing:.12em;text-transform:uppercase;color:var(--gold);margin-bottom:8px}
.ncard h3{font-size:1.06rem;line-height:1.45;margin-bottom:8px}
.ncard p{font-size:.92rem;color:var(--grey-6);margin:0}

/* contact */
.cgrid{display:grid;grid-template-columns:1fr 1.05fr;gap:clamp(28px,5vw,70px);align-items:start}
.cinfo li{display:flex;gap:16px;padding:18px 0;border-bottom:1px solid var(--line)}
.cinfo li:last-child{border-bottom:0}
.cinfo__ic{flex:0 0 40px;width:40px;height:40px;border:1px solid var(--line);display:grid;place-items:center}
.cinfo__ic svg{width:18px;height:18px;fill:none;stroke:var(--black);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.cinfo strong{display:block;font-size:.94rem;margin-bottom:3px}
.cinfo span,.cinfo a{font-size:.9rem;color:var(--grey-6);line-height:1.8}
.cinfo a:hover{color:var(--gold-dark)}

.cform{border:1px solid var(--line);padding:clamp(24px,3vw,38px)}
.cform h2{font-size:1.3rem;margin-bottom:22px}
.frow{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.fld{margin-bottom:14px}
.fld label{display:block;font-size:.82rem;font-weight:700;margin-bottom:6px}
.fld input,.fld select,.fld textarea{
  width:100%;padding:13px 15px;border:1px solid var(--line);background:var(--white);
  color:var(--ink);outline:none;transition:border-color .25s var(--ease);resize:vertical;
}
.fld input:focus,.fld select:focus,.fld textarea:focus{border-color:var(--black)}
.fnote{font-size:.8rem;color:var(--grey-5);margin:12px 0 0}
.fok{display:none;margin-top:14px;padding:13px 16px;border:1px solid var(--black);font-size:.9rem;font-weight:700}
.fok.on{display:block}

/* sitemap */
.smap{display:grid;grid-template-columns:repeat(4,1fr);gap:clamp(22px,3vw,40px)}
.smap h3{font-size:.8rem;letter-spacing:.14em;text-transform:uppercase;color:var(--gold);margin-bottom:14px}
.smap ul{display:grid;gap:9px}
.smap a{font-size:.94rem}
.smap a:hover{text-decoration:underline}

/* filter bar */
.filter{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:34px}
.filter button{
  padding:10px 22px;border:1px solid var(--line);font-size:.88rem;font-weight:600;
  transition:background .25s var(--ease),color .25s var(--ease),border-color .25s var(--ease);
}
.filter button:hover{border-color:var(--gold);color:var(--gold-dark)}
.filter button.on{background:var(--black);color:var(--gold);border-color:var(--black)}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(20px,3vw,30px)}
.hide{display:none}

@media (max-width:1000px){
  .doc{grid-template-columns:1fr}
  .aside{position:static}
  .nlist,.grid3{grid-template-columns:repeat(2,1fr)}
  .smap{grid-template-columns:repeat(2,1fr)}
  .facts{grid-template-columns:1fr 1fr}
}
@media (max-width:760px){
  .cgrid{grid-template-columns:1fr}
  .nlist,.grid3{grid-template-columns:1fr}
  .frow{grid-template-columns:1fr}
  .step6{grid-template-columns:52px 1fr;gap:14px;padding:20px 18px}
}
