/* ==========================================================================
   M.I.H. Group — base.css
  Shared globals: tokens, typography, navbar, drawer, footer.
   Motion values are ported 1:1 from reference-agency:
     - drawer enter .6s cubic-bezier(.645,.045,.355,1), exit .4s (menuSlide)
     - drawer items x:40->0, .8s cubic-bezier(.76,0,.24,1), stagger 50ms (slide)
     - burger line transform .3s; button conic spin 2.5s linear; hover .3s
     - hover-card fill in .15s / out .1s + .2s delay (HoverCards)
     - aurora 60s linear infinite, background-position 50% -> 350%
   Palette remapped to M.I.H.: #111A24 dark / #C5A059 gold / #FFFFFF white.
   ========================================================================== */

/* ------------------------------------------------------------ tokens ----- */
:root {
  /* color */
  --c-bg: #111A24;
  --c-bg-2: #16212D;
  --c-surface: #1B2734;
  --c-surface-2: #223140;
  --c-stroke: rgba(255, 255, 255, .10);
  --c-stroke-strong: rgba(255, 255, 255, .18);
  --c-gold: #C5A059;
  --c-gold-soft: #D9BC85;
  --c-gold-deep: #8F7136;
  --c-gold-dim: rgba(197, 160, 89, .14);
  --c-text: #FFFFFF;
  --c-text-2: rgba(255, 255, 255, .74);
  --c-text-3: rgba(255, 255, 255, .46);
  --c-number: #223140;             /* giant ghost numbers (ref: gray-1) */
  --c-overlay: rgba(17, 26, 36, .60);

  /* type scale — fluid clamp() per spec */
  --fs-display: clamp(64px, 8vw, 100px);
  --fs-h1: clamp(50px, 6.5vw, 80px);
  --fs-h2: clamp(40px, 5vw, 60px);
  --fs-h3: clamp(24px, 2.6vw, 36px);
  --fs-body: clamp(16px, 1.15vw, 20px);
  --fs-small: clamp(13px, 1vw, 15px);
  --font-sans: 'Montserrat', 'Segoe UI', sans-serif;

  /* spacing scale */
  --sp-1: .25rem;  --sp-2: .5rem;  --sp-3: .75rem; --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;   --sp-7: 3rem;   --sp-8: 4rem;
  --sp-9: 6rem;    --sp-10: 8rem;
  --gutter: clamp(20px, 6vw, 120px);          /* ref px-[6vw] desktop */
  --gutter-tight: clamp(16px, 3vw, 56px);     /* ref md:px-[3vw] */

  /* radius */
  --r-sm: 4px;
  --r-md: 12px;
  --r-lg: clamp(14px, 1.333vw, 24px);         /* ref rounded-[1.333vw] */
  --r-pill: 999px;

  /* motion — ported from reference */
  --ease-menu: cubic-bezier(.645, .045, .355, 1);
  --ease-slide: cubic-bezier(.76, 0, .24, 1);
  --dur-drawer: .6s;
  --dur-drawer-exit: .4s;
  --dur-item: .8s;
  --stagger: 50ms;
  --dur-hover: .3s;                /* ref duration-300 */
  --dur-hovercard-in: .15s;
  --dur-hovercard-out: .1s;

  /* layout */
  --nav-h: clamp(64px, 5vw, 92px);
  --reading-w: 800px;
}

/* ------------------------------------------------------------- reset ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
*::selection { background: var(--c-gold); color: var(--c-bg); }
html { color-scheme: dark; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul[class], ol[class] { list-style: none; }

:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 3px;
  border-radius: 2px;
}
.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 9000;
  padding: .6em 1em; background: var(--c-gold); color: var(--c-bg);
  font-weight: 700; border-radius: var(--r-sm); transition: top .2s;
}
.skip-link:focus-visible { top: 12px; }

/* ------------------------------------------------------- type helpers ---- */
.display {
  font-size: var(--fs-display); font-weight: 800; line-height: 1.02;
  letter-spacing: -.01em; text-wrap: balance;
}
.h1 { font-size: var(--fs-h1); font-weight: 800; line-height: 1.06; letter-spacing: -.01em; }
.h2 { font-size: var(--fs-h2); font-weight: 800; line-height: 1.08; }
.h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.2; }
.lead { font-size: clamp(18px, 1.5vw, 24px); color: var(--c-text-2); line-height: 1.6; }
.muted { color: var(--c-text-2); }
.gold { color: var(--c-gold); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: var(--fs-small); font-weight: 700; letter-spacing: .28em;
  text-transform: uppercase; color: var(--c-gold);
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--c-gold); }

.container { width: min(100% - 2 * var(--gutter), 1560px); margin-inline: auto; }
.section { padding-block: clamp(56px, 6vw, 120px); }        /* ref py-[6vw] */
.section + .section { border-top: 1px solid var(--c-stroke); }

/* Section title — ref SectionTitle: 7.5vw extrabold, 100% leading */
.section-title {
  font-size: clamp(40px, 7.5vw, 110px);
  font-weight: 800; line-height: 100%;
  text-transform: uppercase; letter-spacing: -.015em;
}
@media (min-width: 901px) and (max-width: 1800px) { .section-title { font-size: 9vw; } }
.section-title em { font-style: normal; color: var(--c-gold); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ------------------------------------------------------------ buttons ---- */
/* Ported from ui/Button: pill, spinning conic ring (2.5s linear),
   frosted inner pill, 300ms transitions, gold focus ring. */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: .55em; overflow: hidden; isolation: isolate;
  padding: 3px; border-radius: var(--r-pill);
  font-size: clamp(14px, 1.05vw, 18px); font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  transition: transform var(--dur-hover) ease, box-shadow var(--dur-hover) ease;
}
.btn::before {
  content: ""; position: absolute; inset: -1000%;
  background: conic-gradient(from 90deg at 50% 50%,
      var(--c-gold) 0%, var(--c-surface-2) 50%, var(--c-gold) 100%);
  animation: btn-spin 2.5s linear infinite; z-index: -1;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }
.btn > span, .btn > i { position: relative; }
.btn-inner {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .8em 1.6em; border-radius: var(--r-pill);
  background: var(--c-bg); color: var(--c-text);
  transition: background-color var(--dur-hover) ease, color var(--dur-hover) ease;
}
.btn-primary .btn-inner { background: var(--c-gold); color: var(--c-bg); }
.btn-ghost .btn-inner { background: rgba(255, 255, 255, .04); }
.btn:hover { box-shadow: 0 10px 30px -12px rgba(197, 160, 89, .45); }
.btn:hover .btn-inner { background: var(--c-gold-soft); color: var(--c-bg); }
.btn:active { transform: translateY(1px); }
.btn-static::before { animation: none; background: var(--c-gold); }

/* Text link with gold underline slide */
.link-more {
  display: inline-flex; align-items: center; gap: .5em; font-weight: 700;
  color: var(--c-gold); letter-spacing: .04em;
}
.link-more::after {
  content: "\2192"; transition: transform var(--dur-hover) var(--ease-slide);
}
.link-more:hover::after { transform: translateX(6px); }

/* ------------------------------------------------------ reveal system ---- */
/* data-rv="rise" — IntersectionObserver adds .is-in.
   Rise distance/duration/ease mirror the reference item slide values. */
[data-rv] { opacity: 0; will-change: opacity, transform; }
[data-rv="rise"] {
  transform: translateY(40px);                       /* ref slide initial x/y 40 */
  transition:
    opacity var(--dur-item) ease,
    transform var(--dur-item) var(--ease-slide);
  transition-delay: calc(var(--rv-i, 0) * var(--stagger));
}
[data-rv].is-in { opacity: 1; transform: none; }

/* image clip reveal (.imgrv) + shine sweep (.shine) */
.imgrv {
  position: relative; overflow: hidden;
  clip-path: inset(0 0 0% 0);
  transition: none;
}
.is-in .imgrv, .imgrv.is-in { /* no-op — image always fully visible */ }
.shine {
  pointer-events: none; position: absolute; inset: 0;
  opacity: 0;
}
.spot:hover .shine, a:hover > .shine, .course-thumb:hover .shine {
  opacity: 0;
  transition: none;
}

/* ======================================================== NAVBAR ======== */
.navbar {
  position: fixed; inset-inline: 0; top: 0; z-index: 4003;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4);
  padding: clamp(14px, 2vw, 30px) var(--gutter);
  transition: background-color .3s ease, box-shadow .3s ease;
}
.navbar.is-scrolled {
  background: rgba(17, 26, 36, .82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--c-stroke);
}
.brand { display: inline-flex; align-items: center; gap: 12px; z-index: 4002; }
.brand-mark { width: clamp(76px, 6vw, 92px); height: auto; flex: none; }
.wordmark {
  display: grid; line-height: 1; user-select: none;
}
.wordmark b {
  font-size: clamp(19px, 1.6vw, 24px); font-weight: 800; letter-spacing: .04em;
}
.wordmark b i { font-style: normal; color: var(--c-gold); }
.wordmark small {
  margin-top: 3px; font-size: 9px; font-weight: 700; letter-spacing: .52em;
  text-transform: uppercase; color: var(--c-text-3);
}

.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 38px); }
.nav-links a {
  position: relative; font-size: 15px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--c-text-2);
  transition: color var(--dur-hover) ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 2px; background: var(--c-gold);
  transform: scaleX(0); transform-origin: right;
  transition: transform var(--dur-hover) var(--ease-menu);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--c-text); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after {
  transform: scaleX(1); transform-origin: left;
}
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--c-stroke-strong);
  background: rgba(255, 255, 255, .04);
  color: var(--c-text-2);
  cursor: pointer;
  transition: border-color var(--dur-hover) ease, background var(--dur-hover) ease, color var(--dur-hover) ease, transform var(--dur-hover) ease;
}
.theme-toggle:hover {
  border-color: var(--c-gold);
  background: var(--c-gold-dim);
  color: var(--c-gold);
  transform: rotate(15deg);
}
.theme-toggle i {
  font-size: 16px;
}
@media (max-width: 640px) {
  .theme-toggle { width: 36px; height: 36px; }
  .theme-toggle i { font-size: 14px; }
}

/* Burger — ported from globals.scss .burger/.burgerActive */
.burger-btn {
  display: none; align-items: center; justify-content: center;
  width: 48px; height: 40px; border-radius: 0;
  background: transparent;
  transition: background-color var(--dur-hover) ease, transform var(--dur-hover) ease;
  z-index: 4002;
}
.burger-btn:hover { background: transparent; transform: none; }
.burger { position: relative; display: block; width: 30px; height: 20px; background: linear-gradient(var(--c-gold), var(--c-gold)) center / 30px 2px no-repeat; transition: background-size .25s ease, opacity .25s ease; }
.burger::before, .burger::after {
  content: ""; display: block; height: 2px; width: 30px;
  margin: 0; background: var(--c-gold); position: absolute; left: 0; top: 50%;
  transform-origin: center;
  transition: transform .45s cubic-bezier(.76, 0, .24, 1);
}
.burger::after { transform: translateY(-9px); }
.burger::before { transform: translateY(9px); }
.burger-active .burger { background-size: 30px 0; }
.burger-active .burger::after { transform: translateY(0) rotate(45deg); }
.burger-active .burger::before { transform: translateY(0) rotate(-45deg); }

@media (max-width: 640px) {
  .nav-links, .nav-cta { display: none; }
  .burger-btn { display: flex; }

  /* Burger — mobile: no animations, no transitions */
  .burger { transition: none; }
  .burger::before,
  .burger::after { transition: none; }
}

/* ======================================================== DRAWER ========
   Ported from SidebarMenu/menuSlide/slide:
   panel slides in from right (+100px overshoot), items rise from x:40
   with 50ms stagger; dimmed bg overlay closes on click/Esc.               */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 4000;
  background: var(--c-overlay);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur-drawer-exit) var(--ease-menu),
              visibility 0s linear var(--dur-drawer-exit);
}
.drawer-overlay.is-open {
  opacity: 1; visibility: visible;
  transition: opacity var(--dur-drawer) var(--ease-menu);
}
.drawer {
  position: fixed; right: 0; top: 0; z-index: 4001;
  height: 100dvh; width: min(32vw, 560px); min-width: min(86vw, 420px);
  background: var(--c-surface);
  border-left: 1px solid var(--c-stroke);
  padding: calc(var(--nav-h) + 1vh) clamp(32px, 6vw, 88px) 8dvh clamp(32px, 8vw, 112px);
  overflow-y: auto;
  transform: translateX(calc(100% + 100px));           /* ref menuSlide initial */
  visibility: hidden;
  transition: transform var(--dur-drawer-exit) var(--ease-menu),
              visibility 0s linear var(--dur-drawer-exit);
}
.drawer.is-open {
  transform: translateX(0); visibility: visible;
  transition: transform var(--dur-drawer) var(--ease-menu);
}
.drawer-heading {
  width: 100%;
  border-bottom: 1px solid var(--c-stroke-strong);
  padding-bottom: .4vw; margin-bottom: 2.2vw;
  font-size: clamp(12px, .95vw, 16px); font-weight: 600; line-height: 1.1;
  text-transform: uppercase; letter-spacing: .3em; color: var(--c-text-3);
}
.drawer-nav { display: flex; flex-direction: column; gap: 2px; }
.drawer-link {
  position: relative; display: block; overflow: hidden;
  padding: .35em 0;
  font-size: clamp(30px, 2.6vw, 44px); font-weight: 800; line-height: 1.15;
  text-transform: uppercase; letter-spacing: .01em; color: var(--c-text);
}
.drawer-link .drawer-word {
  display: inline-block;
  transition: transform var(--dur-hover) var(--ease-slide), color var(--dur-hover) ease;
}
.drawer-link::after {
  content: attr(data-label); position: absolute; left: 0; top: .35em;
  color: var(--c-gold);
  transform: translateY(110%);
  transition: transform var(--dur-hover) var(--ease-slide);
}
.drawer-link:hover .drawer-word, .drawer-link:focus-visible .drawer-word { transform: translateY(-110%); }
.drawer-link:hover::after, .drawer-link:focus-visible::after { transform: translateY(0); }
.drawer-link[aria-current="page"] .drawer-word { color: var(--c-gold); }

.drawer-foot { margin-top: 6vh; display: grid; gap: 10px; }
.drawer-foot a.row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .03); color: var(--c-text-2);
  font-weight: 600; font-size: 15px; letter-spacing: .02em;
  transition: background-color var(--dur-hover) ease, color var(--dur-hover) ease;
}
.drawer-foot a.row:hover { background: var(--c-gold-dim); color: var(--c-text); }
.drawer-foot i { color: var(--c-gold); width: 18px; text-align: center; }
.drawer-tagline { margin-top: 4vh; font-size: 13px; color: var(--c-text-3); letter-spacing: .08em; }

body.drawer-open { overflow: hidden; }
@media (max-width: 640px) {
  .drawer {
    width: 100vw;
    min-width: 100vw;
    padding-top: 12vh;
    transform: none;
    transition: none;
  }
  .drawer.is-open {
    transform: none;
    transition: none;
  }
  .drawer-overlay { transition: none; }
  .drawer-overlay.is-open { transition: none; }

  /* Drawer links: simple color change only, no flip/slide animation */
  .drawer-link .drawer-word { transition: color var(--dur-hover) ease; }
  .drawer-link::after { display: none; }
  .drawer-link:hover .drawer-word { transform: none; color: var(--c-gold); }
  .drawer-link:hover::after { display: none; }
  .drawer-link:focus-visible .drawer-word { transform: none; }
  .drawer-link:focus-visible::after { display: none; }

  .drawer-link { font-size: clamp(20px, 6vw, 30px); line-height: 1.1; }
  .drawer-heading { font-size: 11px; letter-spacing: .22em; }
  .drawer-foot a.row { font-size: 13px; }
}

/* ========================================================= FOOTER ======= */
.footer {
  border-top: 1px solid var(--c-stroke);
  background: linear-gradient(180deg, var(--c-bg) 0%, #0D151D 100%);
  padding-top: clamp(48px, 5vw, 96px);
}
.footer-grid {
  display: grid; gap: clamp(32px, 4vw, 72px);
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  padding-bottom: clamp(40px, 5vw, 80px);
}
.footer-brand p { margin-top: 16px; max-width: 34ch; color: var(--c-text-2); font-size: 15px; text-align: justify; text-justify: inter-word; word-spacing: -0.02em; }
.footer-col h4 {
  font-size: 13px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase;
  color: var(--c-text-3); margin-bottom: 18px;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a {
  color: var(--c-text-2); font-size: 15px;
  transition: color var(--dur-hover) ease, padding-left var(--dur-hover) ease;
}
.footer-col a:hover { color: var(--c-gold); padding-left: 6px; }
.footer-contact li {
  display: flex; gap: 12px; align-items: flex-start;
  color: var(--c-text-2); font-size: 15px;
}
.footer-contact i { color: var(--c-gold); margin-top: 4px; width: 18px; text-align: center; }
.footer-contact a:hover { color: var(--c-gold); }
.footer-social {
  display: flex;
  gap: 7px;
  margin-top: 16px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--c-stroke-strong);
  border-radius: 50%;
  color: var(--c-text-2);
  background: rgba(255, 255, 255, .03);
  font-size: 14px;
  transition: color var(--dur-hover) ease, border-color var(--dur-hover) ease, background-color var(--dur-hover) ease, transform var(--dur-hover) ease;
}
.footer-social a:hover,
.footer-social a:focus-visible {
  color: var(--c-bg);
  border-color: var(--c-gold);
  background: var(--c-gold);
  transform: translateY(-2px);
}
.footer-word {
  text-align: center;
  font-size: clamp(80px, 10vw, 160px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -.02em;
}
.footer-word span {
  display: block;
}
.footer-bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  border-top: 1px solid var(--c-stroke);
  padding: 20px var(--gutter-tight) 26px;
  font-size: 13px; color: var(--c-text-3); letter-spacing: .04em;
}
.footer-bar a { color: var(--c-text-2); }
.footer-bar a:hover { color: var(--c-gold); }
@media (max-width: 1100px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .footer { padding-top: 44px; }
  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "brand services"
      "company contact";
    column-gap: clamp(12px, 4vw, 20px);
    row-gap: 20px;
    padding-bottom: 34px;
  }
  .footer-brand { grid-area: brand; min-width: 0; }
  .footer-grid > .footer-col:nth-child(2) { grid-area: services; min-width: 0; overflow: hidden; }
  .footer-grid > .footer-col:nth-child(3) { grid-area: company; min-width: 0; overflow: hidden; }
  .footer-grid > .footer-col:nth-child(4) { grid-area: contact; min-width: 0; overflow: hidden; }
  .footer-brand p { margin-top: 14px; font-size: 13px; line-height: 1.6; text-align: left; word-spacing: -0.02em; hyphens: auto; }
  .footer-col h4 { margin-bottom: 10px; font-size: 11px; letter-spacing: .2em; }
  .footer-col ul { gap: 5px; }
  .footer-col a, .footer-contact li { font-size: 12px; line-height: 1.45; }
  .footer-contact { gap: 8px !important; }
  .footer-contact li { gap: 6px; align-items: flex-start; min-width: 0; }
  .footer-contact i { width: 14px; flex: 0 0 14px; margin-top: 3px; text-align: center; }
  .footer-contact li a { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
  .footer-contact li:first-child a { white-space: nowrap; font-size: 10px; letter-spacing: -.01em; }
  .footer-social {
    gap: 6px;
    margin-top: 10px;
  }
  .footer-social a {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
  .footer-word {
    font-size: clamp(40px, 12vw, 64px);
  }
  .footer-bar {
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    padding: 18px 16px 24px;
    font-size: 11px;
    line-height: 1.5;
  }
  .footer-bar span { display: block; max-width: 34ch; }
}

/* ---------------------------------------------------- shared cards ------- */
/* .course cards live in project_cards.html / blog_cards.html partials.
   Hover treatment follows the reference language: lift + spotlight border +
   shine sweep; fill-in uses hovercard timing (.15s in / .1s out). */
.course {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--c-surface);
  border: 1px solid var(--c-stroke);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .35s var(--ease-slide),
              border-color var(--dur-hovercard-in) ease,
              box-shadow var(--dur-hovercard-in) ease;
  cursor: default;
}
/* When a card has a data-link, make the whole article clickable */
.course[data-link] { cursor: pointer; }
.cards-grid > [hidden] { display: none !important; }
.course:hover {
  transform: translateY(-6px);
  border-color: rgba(197, 160, 89, .5);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .6);
}
.course.blog-card:hover {
  transform: none;
  border-color: var(--c-stroke);
  box-shadow: none;
}
.course-thumb { position: relative; overflow: hidden; background: var(--c-bg-2); }
.course-thumb img { width: 100%; height: 100%; object-fit: cover; transition: none; }
.course:hover .course-thumb img { transform: none; }
@media (pointer: coarse) { .course:hover .course-thumb img { transform: none; } }
.course-body { display: flex; flex-direction: column; gap: 12px; padding: clamp(18px, 2vw, 28px); flex: 1; }
.course-title { font-size: clamp(20px, 1.6vw, 26px); font-weight: 700; line-height: 1.25; }
.course-title a { transition: color var(--dur-hover) ease; }
.course-title a:hover { color: var(--c-gold); }
.course-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; font-size: clamp(12px, 1vw, 13px); color: var(--c-text-3); }
.course-meta span { display: inline-flex; align-items: center; gap: 6px; }
.course-meta i { color: var(--c-gold); }
.course-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.course-tag { padding: 3px 10px; border-radius: var(--r-pill); background: rgba(255,255,255,.05); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-text-3); transition: background-color var(--dur-hover) ease, color var(--dur-hover) ease; }
.course-tag:hover { background: var(--c-gold); color: var(--c-bg); }

/* ==========================================================================
   CONSOLIDATED SHARED UTILITIES (moved from page css files)
   These were duplicated across 5–7 page css files — single source now.
   ========================================================================== */

/* ------------------------------------------- SUB-SERVICES (under Digital Marketing) */
.service-sub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: clamp(16px, 2vw, 24px) 0;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.service-sub-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.service-sub-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.service-sub-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-stroke-strong);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--c-text-2);
  transition: border-color var(--dur-hover) ease, color var(--dur-hover) ease, background-color var(--dur-hover) ease;
}
.service-sub-tag:hover {
  border-color: var(--c-gold);
  color: var(--c-gold);
  background: var(--c-gold-dim);
}

/* Container used by all pages */
.container-tight {
  width: min(100% - 2 * var(--gutter), 1560px);
  margin-inline: auto;
}

/* Override centering for cards-grid containers to left-align cards from viewport edge */
.cards-grid.container-tight {
  width: 100% !important;
  margin-inline: 0 !important;
  max-width: none !important;
}
@media (max-width: 900px) { .container-tight { width: calc(100% - 2 * var(--gutter-tight)); } }

/* Visually hidden helper (accessibility) */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* Search/sort toolbar fields (blog + projects) */
.search-field, .sort-field {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: var(--r-pill);
  border: 1px solid var(--c-stroke-strong); background: rgba(255,255,255,.03);
  color: var(--c-text-3);
  transition: border-color var(--dur-hover) ease;
}
.search-field:focus-within, .sort-field:focus-within { border-color: var(--c-gold); }
.search-field input {
  width: min(280px, 56vw); background: none; border: 0; outline: none;
  color: var(--c-text); font-size: 15px;
}
.search-field input::placeholder { color: var(--c-text-3); }
.sort-field select { background: none; border: 0; outline: none; color: var(--c-text-2); font-size: 14px; cursor: pointer; }
.sort-field select option { background: var(--c-surface); color: var(--c-text); }

/* Approach / feature card pattern (home + about) */
.approach-card {
  position: relative;
  padding: clamp(24px, 2.2vw, 36px);
  border: 1px solid var(--c-stroke);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .02);
  transition: border-color var(--dur-hovercard-in) ease, transform .35s var(--ease-slide);
}
.approach-card:hover { border-color: rgba(197, 160, 89, .45); transform: translateY(-4px); }
.approach-card i { color: var(--c-gold); font-size: 22px; margin-bottom: 14px; display: inline-block; }
.approach-card h3 { font-size: clamp(17px, 1.35vw, 21px); font-weight: 700; margin-bottom: 8px; }
.approach-card p { color: var(--c-text-2); font-size: 15px; line-height: 1.65; }

/* Related projects / posts grid */
.related-grid {
  display: grid; gap: clamp(18px, 2vw, 32px);
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1100px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .related-grid { grid-template-columns: 1fr; } }

/* Empty state (blog + projects filtered) */
.empty-state { padding: clamp(48px, 6vw, 96px) 0; text-align: center; }
.empty-state p + p { margin-top: 8px; }

/* CTA section wrapper */
.cta-wrap {
  min-height: 44vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  max-width: min(60vw, 1100px); margin-inline: auto; padding-inline: var(--gutter-tight);
}
@media (max-width: 900px) { .cta-wrap { max-width: 92%; } }
.cta-title { font-size: clamp(34px, 4vw, 68px); font-weight: 500; text-transform: uppercase; }
.cta-btn { margin-top: 26px; }

/* Section title — ref SectionTitle: 7.5vw extrabold, 100% leading */
.section-title {
  font-size: clamp(40px, 7.5vw, 110px);
  font-weight: 800; line-height: 100%;
  text-transform: uppercase; letter-spacing: -.015em;
}
@media (min-width: 901px) and (max-width: 1800px) { .section-title { font-size: 9vw; } }
.section-title em { font-style: normal; color: var(--c-gold); }

/* Service grid cards (services hub) */
.sv-grid {
  display: grid; gap: clamp(18px, 2vw, 32px);
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1100px) { .sv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .sv-grid { grid-template-columns: 1fr; } }

.sv-card {
  padding: clamp(22px, 2vw, 34px);
  border: 1px solid var(--c-stroke);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .02);
  transition: border-color var(--dur-hovercard-in) ease, transform .35s var(--ease-slide);
}
.sv-card:hover { border-color: rgba(197, 160, 89, .45); transform: translateY(-4px); }
.sv-card i { color: var(--c-gold); font-size: 22px; margin-bottom: 14px; display: inline-block; }
.sv-card h3 { font-size: clamp(17px, 1.35vw, 21px); font-weight: 700; margin-bottom: 8px; }
.sv-card p { color: var(--c-text-2); font-size: 15px; line-height: 1.65; }

/* Service process steps */
.sv-steps { counter-reset: step; display: grid; gap: 0; }
.sv-step {
  position: relative;
  display: grid; grid-template-columns: auto 1fr; gap: 20px;
  padding: clamp(18px, 2vw, 32px) 0;
  border-top: 1px solid rgba(255, 255, 255, .07);
}
.sv-step:last-child { border-bottom: 1px solid rgba(255,255,255,.07); }
.sv-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-size: clamp(22px, 2vw, 34px); font-weight: 800; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(197, 160, 89, .75);
}
.sv-step h3 { font-size: clamp(17px, 1.4vw, 23px); font-weight: 700; margin-bottom: 6px; }
.sv-step p { color: var(--c-text-2); font-size: 15px; line-height: 1.65; max-width: 68ch; }

/* FAQ accordion */
.sv-faq { max-width: 860px; }
.sv-faq details { border-top: 1px solid rgba(255, 255, 255, .07); }
.sv-faq details:last-child { border-bottom: 1px solid rgba(255,255,255,.07); }
.sv-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  cursor: pointer; list-style: none;
  padding: 20px 0;
  font-size: clamp(16px, 1.25vw, 19px); font-weight: 600;
}
.sv-faq summary::-webkit-details-marker { display: none; }
.sv-faq summary::after {
  content: "\2b"; font-weight: 400; font-size: 24px; color: var(--c-gold);
  transition: transform var(--dur-hover) ease; flex: none;
}
.sv-faq details[open] summary::after { transform: rotate(45deg); }
.sv-faq details p { padding: 0 0 20px; color: var(--c-text-2); font-size: 15px; line-height: 1.7; max-width: 70ch; }

/* Related section header */
.sv-related-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 18px;
  margin-bottom: clamp(20px, 2.5vw, 40px);
}

/* ==========================================================================
   POLISH UPGRADES
   ========================================================================== */

/* Scroll progress hairline */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; z-index: 9999;
  background: linear-gradient(90deg, var(--c-gold), var(--c-gold-soft));
  transform-origin: 0 0; transform: scaleX(0);
  pointer-events: none;
}

/* Back to top button */
.back-to-top {
  position: fixed; bottom: 32px; right: 32px; z-index: 1000;
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-gold); color: var(--c-bg);
  box-shadow: 0 8px 24px -8px rgba(197, 160, 89, .5);
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .3s var(--ease-slide), visibility .3s, transform .3s var(--ease-slide);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--c-gold-soft); transform: translateY(-2px); }
@media (max-width: 640px) { .back-to-top { bottom: 20px; right: 20px; width: 44px; height: 44px; } }

/* Focus visible rings — only show for keyboard nav */
:focus:not(:focus-visible) { outline: none; }
:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Skip link visible on focus */
.skip-link {
  position: absolute; top: -100%; left: 50%; transform: translateX(-50%);
  padding: 12px 24px; background: var(--c-gold); color: var(--c-bg);
  font-weight: 700; border-radius: var(--r-pill); z-index: 9999;
  transition: top .2s var(--ease-slide);
}
.skip-link:focus { top: 16px; }
.course-desc {
  color: var(--c-text-2); font-size: 15px; line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.course-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--c-text-3); }
.course-meta i { color: var(--c-gold); margin-right: 6px; }
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: var(--r-pill);
  border: 1px solid rgba(197, 160, 89, .4); color: var(--c-gold-soft);
  font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 11px;
}
.m-date, .m-read { display: inline-flex; align-items: center; }
.course-foot { margin-top: auto; padding-top: 8px; }
