/* ===================================================================
   GOMO Technologies — bespoke landing page design system
   =================================================================== */

/* ---------- Tokens ----------
   --ink / --paper are a deliberate swap pair: every component either
   pairs (bg:ink + text:paper) or (bg:paper + text:ink). Flipping both
   values together for the dark theme is what makes the whole system
   invert correctly with no per-component overrides. */
:root {
  --ink: #0e0f13;
  --ink-line: rgba(14, 15, 19, 0.1);

  --paper: #faf8f3;
  --paper-2: #f1efe6;
  --paper-line: rgba(14, 15, 19, 0.08);

  --white: #ffffff;
  --muted: #6b6f76;
  --muted-on-ink: rgba(250, 248, 243, 0.62);

  /* translucent accents for surfaces whose bg is --ink (hero, footer, mobile nav) */
  --on-ink-line: rgba(250, 248, 243, 0.14);
  --on-ink-wash: rgba(250, 248, 243, 0.07);

  --header-glass: rgba(250, 248, 243, 0.7);
  --header-glass-strong: rgba(250, 248, 243, 0.92);

  /* brand purple — sampled from the logo mark, constant across themes */
  --accent: #602890;
  --accent-ink: #ffffff;
  --violet: #602890;
  --violet-light: #8b4fc7;

  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;

  --shadow-soft: 0 20px 60px -25px rgba(14, 15, 19, 0.35);
  --shadow-pop: 0 30px 80px -20px rgba(14, 15, 19, 0.45);

  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  --header-h: 84px;

  color-scheme: light;
}

/* ---------- Dark theme ----------
   Applies when the visitor's system prefers dark (until they choose
   explicitly) or once they toggle it — see layout/assets/js/theme.js. */
:root[data-theme="dark"] {
  --ink: #f5f2fb;
  --ink-line: rgba(255, 255, 255, 0.14);

  --paper: #100e1a;
  --paper-2: #17141f;
  --paper-line: rgba(255, 255, 255, 0.09);

  --white: #1c1830;
  --muted: #9b96ab;
  --muted-on-ink: rgba(14, 15, 19, 0.6);

  --on-ink-line: rgba(14, 15, 19, 0.16);
  --on-ink-wash: rgba(14, 15, 19, 0.08);

  --header-glass: rgba(16, 14, 26, 0.7);
  --header-glass-strong: rgba(16, 14, 26, 0.92);

  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f5f2fb;
    --ink-line: rgba(255, 255, 255, 0.14);

    --paper: #100e1a;
    --paper-2: #17141f;
    --paper-line: rgba(255, 255, 255, 0.09);

    --white: #1c1830;
    --muted: #9b96ab;
    --muted-on-ink: rgba(14, 15, 19, 0.6);

    --on-ink-line: rgba(14, 15, 19, 0.16);
    --on-ink-wash: rgba(14, 15, 19, 0.08);

    --header-glass: rgba(16, 14, 26, 0.7);
    --header-glass-strong: rgba(16, 14, 26, 0.92);

    color-scheme: dark;
  }
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body.gm-body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
input, textarea { font: inherit; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; text-align: justify; }

/* One consistent, on-brand keyboard-focus ring for every interactive element
   — mouse/touch clicks stay clean, :focus-visible only engages for keyboard
   nav, so this is pure accessibility gain with no visual noise otherwise. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.gm-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 10px;
}

.gm-section { position: relative; padding: 120px 0; }
.gm-section--tight { padding: 96px 0; }
.gm-section--ink { background: var(--ink); color: var(--paper); }
.gm-section--paper2 { background: var(--paper-2); }
@media (max-width: 768px) {
  .gm-section { padding: 76px 0; }
  .gm-section--tight { padding: 64px 0; }
}

.gm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 18px;
}
.gm-eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.gm-eyebrow--accent { color: var(--accent); }
.gm-section--ink .gm-eyebrow:not(.gm-eyebrow--accent) { color: var(--muted-on-ink); }

.gm-head { max-width: 720px; }
.gm-head--center { max-width: 640px; margin-left: auto; margin-right: auto; text-align: center; }
.gm-title { font-size: clamp(28px, 4vw, 44px); line-height: 1.12; }
.gm-title em { font-style: italic; color: var(--violet); }
.gm-section--ink .gm-title em { color: var(--accent); }
.gm-lede {
  margin-top: 18px;
  font-size: 17px;
  color: var(--muted);
  font-weight: 400;
}
.gm-section--ink .gm-lede { color: var(--muted-on-ink); }

/* ---------- Buttons ---------- */
.gm-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}
.gm-btn svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.gm-btn:hover svg { transform: translate(3px, -3px); }
.gm-btn--primary { background: var(--accent); color: var(--accent-ink); }
.gm-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(96, 40, 144, 0.5); }
.gm-btn--ink { background: var(--ink); color: var(--paper); }
.gm-btn--ink:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.gm-btn--ghost { background: transparent; color: inherit; border-color: currentColor; opacity: 0.85; }
.gm-btn--ghost:hover { opacity: 1; background: var(--on-ink-wash); }
.gm-btn--outline-ink { background: transparent; color: var(--ink); border-color: var(--ink-line); }
.gm-btn--outline-ink:hover { background: var(--ink); color: var(--paper); }
.gm-btn--sm { padding: 10px 18px; font-size: 13.5px; }
.gm-btn--block { width: 100%; justify-content: center; }

.gm-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  background: none;
  border: none;
  border-bottom: 1px solid var(--ink-line);
  padding: 0 0 2px;
  text-align: left;
  transition: gap 0.25s var(--ease), border-color 0.25s ease, color 0.25s ease;
}
.gm-link-arrow svg { width: 14px; height: 14px; }
.gm-link-arrow:hover { gap: 12px; border-color: var(--ink); color: var(--violet); }

/* ---------- Icon chip ---------- */
.gm-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--ink);
  font-size: 20px;
  flex-shrink: 0;
}
.gm-icon--accent { background: var(--accent); color: var(--accent-ink); }
.gm-icon--ink { background: var(--ink); color: var(--paper); }

/* ===================================================================
   Preloader — tracks real image/font/DOM load progress (see theme.js),
   not a fake indeterminate animation. Always dark regardless of theme so
   the brand moment is consistent whether the visitor is in light or dark
   mode; the page underneath is scroll-locked (body.gm-loading) while it's up.
   =================================================================== */
body.gm-loading { overflow: hidden; }
.gm-preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background: #0e0f13;
  color: #faf8f3;
  transition: opacity 0.6s ease, visibility 0s linear 0.6s;
}
.gm-preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.gm-preloader__ring {
  position: relative;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gm-preloader__ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, var(--accent) 300deg, transparent 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  animation: gm-preloader-spin 1.1s linear infinite;
}
.gm-preloader__ring .gm-logo-badge { position: relative; z-index: 1; box-shadow: 0 8px 30px -10px rgba(96, 40, 144, 0.6); }
@keyframes gm-preloader-spin {
  to { transform: rotate(360deg); }
}
.gm-preloader__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
  margin: 0;
}
.gm-preloader__bar {
  width: 220px;
  height: 3px;
  border-radius: 999px;
  background: rgba(250, 248, 243, 0.14);
  overflow: hidden;
}
.gm-preloader__bar-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: inherit;
  transition: width 0.3s ease;
}
.gm-preloader__pct {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  opacity: 0.55;
  margin: -10px 0 0;
}
@media (prefers-reduced-motion: reduce) {
  .gm-preloader__ring::before { animation: none; }
}

/* ===================================================================
   Header
   =================================================================== */
.gm-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--header-glass);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.gm-header.is-scrolled {
  background: var(--header-glass-strong);
  border-bottom-color: var(--paper-line);
  box-shadow: 0 10px 30px -20px rgba(14, 15, 19, 0.25);
}
.gm-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}
.gm-logo { display: flex; align-items: center; gap: 10px; }
.gm-logo span { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.65; }

/* The brand mark's own colors are dark-on-transparent, so it disappears on
   dark surfaces (footer, dark theme header) — a light chip keeps it legible
   everywhere without needing a separate light-on-dark logo asset. */
.gm-logo-badge {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border-radius: 10px;
  padding: 5px 9px;
  flex-shrink: 0;
}
.gm-logo-badge img { height: 30px; width: auto; display: block; }

.gm-nav { display: flex; align-items: center; gap: 34px; }
.gm-nav a {
  position: relative;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  padding: 6px 0;
}
.gm-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--violet);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.gm-nav a:hover::after,
.gm-nav a.is-active::after { transform: scaleX(1); }

.gm-header__actions { display: flex; align-items: center; gap: 14px; }

.gm-theme-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--ink-line);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  flex-shrink: 0;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.gm-theme-toggle:hover { border-color: var(--violet); color: var(--violet); }
.gm-theme-toggle svg {
  width: 18px;
  height: 18px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.25s ease, transform 0.35s var(--ease);
}
.gm-theme-toggle__moon { opacity: 0; transform: translate(-50%, -50%) rotate(-60deg) scale(0.5); }
.gm-theme-toggle[aria-pressed="true"] .gm-theme-toggle__sun { opacity: 0; transform: translate(-50%, -50%) rotate(60deg) scale(0.5); }
.gm-theme-toggle[aria-pressed="true"] .gm-theme-toggle__moon { opacity: 1; transform: translate(-50%, -50%) rotate(0) scale(1); }
.gm-theme-toggle--inline {
  width: auto;
  height: auto;
  border-radius: 999px;
  padding: 12px 20px;
  gap: 10px;
  justify-content: flex-start;
  color: var(--paper);
  border-color: var(--on-ink-line);
  font-size: 14.5px;
  font-weight: 600;
}
.gm-theme-toggle--inline svg { position: static; top: auto; left: auto; }
.gm-theme-toggle--inline .gm-theme-toggle__moon,
.gm-theme-toggle--inline .gm-theme-toggle__sun,
.gm-theme-toggle--inline[aria-pressed="true"] .gm-theme-toggle__moon,
.gm-theme-toggle--inline[aria-pressed="true"] .gm-theme-toggle__sun { opacity: 1; transform: none; }
.gm-theme-toggle--inline .gm-theme-toggle__moon { display: none; }
.gm-theme-toggle--inline[aria-pressed="true"] .gm-theme-toggle__sun { display: none; }
.gm-theme-toggle--inline[aria-pressed="true"] .gm-theme-toggle__moon { display: block; }
.gm-theme-toggle--inline:hover { color: var(--accent); border-color: var(--on-ink-line); }

.gm-burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--ink-line);
  background: transparent;
  align-items: center;
  justify-content: center;
}
.gm-burger span,
.gm-burger span::before,
.gm-burger span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}
.gm-burger span::before { position: absolute; top: -6px; }
.gm-burger span::after { position: absolute; top: 6px; }
.gm-burger[aria-expanded="true"] span { background: transparent; }
.gm-burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.gm-burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 992px) {
  .gm-nav { display: none; }
  .gm-header__actions .gm-btn--primary.gm-nav-cta { display: none; }
  .gm-burger { display: inline-flex; }
}

/* Mobile drawer */
.gm-mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  padding: 100px 32px 40px;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease);
  visibility: hidden;
}
.gm-mobile-nav.is-open { transform: translateY(0); visibility: visible; }
.gm-mobile-nav__close {
  position: absolute;
  top: 26px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--on-ink-line);
  background: transparent;
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gm-mobile-nav__close svg { width: 18px; height: 18px; }
.gm-mobile-nav__close:hover { background: var(--on-ink-wash); }
.gm-mobile-nav ul { display: flex; flex-direction: column; gap: 6px; }
.gm-mobile-nav a {
  font-family: var(--font-display);
  font-size: 34px;
  padding: 12px 0;
  border-bottom: 1px solid var(--on-ink-line);
  display: block;
}
.gm-mobile-nav__footer { margin-top: auto; display: flex; flex-direction: column; gap: 18px; }

/* ===================================================================
   Hero
   =================================================================== */
.gm-hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: calc(var(--header-h) + 64px) 0 100px;
  overflow: hidden;
  isolation: isolate;
}
.gm-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--on-ink-wash) 1px, transparent 1px),
    linear-gradient(90deg, var(--on-ink-wash) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black 40%, transparent 100%);
  z-index: -2;
}
.gm-hero__blob {
  position: absolute;
  top: -10%;
  right: -8%;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--violet), transparent 60%),
              radial-gradient(circle at 65% 70%, var(--accent), transparent 55%);
  filter: blur(80px);
  opacity: 0.55;
  z-index: -1;
  animation: gm-float 14s ease-in-out infinite;
}
@keyframes gm-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 30px) scale(1.06); }
}
.gm-hero__row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.gm-hero__headline {
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-align: left;
}
.gm-hero__headline .gm-accent-word {
  color: var(--accent);
  font-style: italic;
}
.gm-hero__desc {
  margin-top: 26px;
  max-width: 520px;
  font-size: 17px;
  color: var(--muted-on-ink);
}
.gm-hero__cta { margin-top: 38px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.gm-hero__media { position: relative; order: -1; }
.gm-hero__frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--on-ink-line);
  aspect-ratio: 6 / 5;
}
.gm-hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.gm-hero__tag {
  position: absolute;
  left: 18px;
  bottom: 28px;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-pop);
  font-family: var(--font-mono);
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.gm-hero__tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(96, 40, 144, 0.25); }

@media (max-width: 992px) {
  .gm-hero__row { grid-template-columns: 1fr; }
  .gm-hero__media { order: -1; max-width: 420px; margin: 0 auto; }
}

/* Hero slider (Swiper handles slide/touch/autoplay mechanics; styling is ours) */
.gm-hero-swiper { overflow: hidden; padding-bottom: 44px; }
.gm-hero-swiper .swiper-wrapper { align-items: stretch; }
.gm-hero-swiper .swiper-slide { height: auto; }

.gm-hero-swiper__pagination {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  gap: 8px;
  z-index: 2;
}
.gm-hero-swiper__pagination .swiper-pagination-bullet {
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: var(--on-ink-line);
  opacity: 1;
  margin: 0;
  transition: background 0.25s ease;
}
.gm-hero-swiper__pagination .swiper-pagination-bullet-active { background: var(--accent); }

.gm-hero-swiper__nav {
  position: absolute;
  top: calc(50% - 22px);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--on-ink-line);
  background: var(--header-glass);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.gm-hero-swiper__nav svg { width: 18px; height: 18px; }
.gm-hero-swiper__nav:hover { border-color: var(--accent); background: var(--on-ink-wash); }
.gm-hero-swiper__nav--prev { left: 14px; }
.gm-hero-swiper__nav--next { right: 14px; }
.gm-hero-swiper__nav.swiper-button-disabled { opacity: 0.35; pointer-events: none; }
.gm-hero-swiper__nav.swiper-button-lock { display: none; }
.gm-hero-swiper .swiper-pagination-lock { display: none; }

@media (max-width: 1280px) {
  .gm-hero-swiper__nav { display: none; }
}

/* ===================================================================
   Stats
   =================================================================== */
.gm-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--paper-line);
  border-left: 1px solid var(--paper-line);
  margin-top: 56px;
}
.gm-stat {
  border-right: 1px solid var(--paper-line);
  border-bottom: 1px solid var(--paper-line);
  padding: 34px 22px;
  text-align: left;
}
.gm-stat__num {
  font-family: var(--font-mono);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 600;
  color: var(--violet);
}
.gm-stat__label { margin-top: 10px; font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .gm-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gm-stats { grid-template-columns: 1fr; } }

/* ===================================================================
   About
   =================================================================== */
.gm-about__row {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
  margin-top: 56px;
}
.gm-about__media { position: relative; }
.gm-about__media img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--ink-line);
}
.gm-about__media::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-lg);
  z-index: -1;
}
.gm-values { display: flex; flex-direction: column; gap: 28px; }
.gm-value { display: flex; gap: 20px; align-items: flex-start; }
.gm-value__num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--violet);
  padding-top: 4px;
  flex-shrink: 0;
  width: 28px;
}
.gm-value h6 { font-family: var(--font-sans); font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.gm-value p { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .gm-about__row { grid-template-columns: 1fr; gap: 40px; } .gm-about__media::before{display:none;} }

/* ===================================================================
   Services
   =================================================================== */
.gm-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 56px;
}
.gm-service-card {
  background: var(--white);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.gm-service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.gm-service-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.gm-service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gm-service-card:hover .gm-service-card__media img { transform: scale(1.06); }
.gm-service-card__badge {
  position: absolute;
  left: 16px;
  bottom: -20px;
  width: 40px;
  height: 40px;
  font-size: 17px;
  border: 3px solid var(--white);
}
.gm-service-card__body { padding: 30px 20px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.gm-service-card__title { font-family: var(--font-sans); font-size: 16px; font-weight: 700; }
.gm-service-card__desc { font-size: 13.5px; color: var(--muted); flex: 1; }
.gm-service-card .gm-link-arrow { align-self: flex-start; }

@media (max-width: 992px) { .gm-services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gm-services-grid { grid-template-columns: 1fr; } }

/* ===================================================================
   CTA banner
   =================================================================== */
.gm-cta-band {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 64px 0;
}
.gm-cta-band__row { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.gm-cta-band__row h2 { font-size: clamp(24px, 3.4vw, 36px); max-width: 640px; }
.gm-cta-band__row p { margin-top: 12px; color: rgba(255, 255, 255, 0.78); max-width: 560px; font-family: var(--font-sans); font-size: 15px; }

/* ===================================================================
   Projects
   =================================================================== */
.gm-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 48px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.gm-tabs .nav-link {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--ink-line);
  color: var(--muted);
  white-space: nowrap;
  transition: all 0.25s ease;
}
.gm-tabs .nav-link:hover { color: var(--ink); border-color: var(--ink); }
.gm-tabs .nav-link.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.gm-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 32px;
}
.gm-project-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--paper-line);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.gm-project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.gm-project-card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--paper-2); }
.gm-project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gm-project-card:hover .gm-project-card__media img { transform: scale(1.06); }
.gm-project-card__body { padding: 22px; }
.gm-project-card__title { font-family: var(--font-sans); font-weight: 700; font-size: 15.5px; }
.gm-project-card__desc { margin-top: 8px; font-size: 13.5px; color: var(--muted); min-height: 40px; }
.gm-project-card__body .gm-link-arrow { margin-top: 16px; }

@media (max-width: 992px) { .gm-projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gm-projects-grid { grid-template-columns: 1fr; } }

/* Bootstrap Tab.js contract: only .active panes are shown */
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ===================================================================
   Team
   =================================================================== */
.gm-team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
  margin-top: 56px;
}
.gm-team-card { text-align: center; flex: 0 1 260px; }
.gm-team-card__avatar {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  margin: 0 auto 20px;
  overflow: hidden;
  border: 1px solid var(--ink-line);
  outline: 6px solid var(--paper-2);
  position: relative;
}
.gm-team-card__avatar img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(45%); transition: filter 0.4s ease; }
.gm-team-card:hover .gm-team-card__avatar img { filter: grayscale(0%); }
.gm-team-card__name { font-family: var(--font-sans); font-weight: 700; font-size: 16px; text-align: center; }
.gm-team-card__role {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet);
}
.gm-team-card__email {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  word-break: break-word;
}
.gm-team-card__email svg { width: 14px; height: 14px; flex-shrink: 0; }

@media (max-width: 480px) { .gm-team-card { flex-basis: 100%; max-width: 320px; } }

/* ===================================================================
   FAQ / accordion
   =================================================================== */
.gm-faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; margin-top: 16px; }
@media (max-width: 900px) { .gm-faq-grid { grid-template-columns: 1fr; gap: 0; } }

.gm-accordion { display: flex; flex-direction: column; }
.accordion-item {
  border-bottom: 1px solid var(--ink-line);
}
.accordion-item:first-child { border-top: 1px solid var(--ink-line); }
.accordion-button {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15.5px;
  color: var(--ink);
}
.accordion-button .gm-plus {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.accordion-button .gm-plus::before,
.accordion-button .gm-plus::after {
  content: "";
  position: absolute;
  background: var(--ink);
  transition: transform 0.3s var(--ease);
}
.accordion-button .gm-plus::before { left: 0; top: 50%; width: 100%; height: 1.5px; transform: translateY(-50%); }
.accordion-button .gm-plus::after { top: 0; left: 50%; height: 100%; width: 1.5px; transform: translateX(-50%); }
.accordion-button[aria-expanded="true"] .gm-plus::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.accordion-button[aria-expanded="true"] { color: var(--violet); }

/* Bootstrap Collapse.js contract */
.collapse:not(.show) { display: none; }
.collapsing { height: 0; overflow: hidden; transition: height 0.35s ease; }

.accordion-body { padding: 0 4px 24px; font-size: 14.5px; color: var(--muted); line-height: 1.7; }

/* ===================================================================
   Contact
   =================================================================== */
.gm-contact__row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 56px; align-items: stretch; }
.gm-map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--ink-line); height: 100%; min-height: 420px; }
.gm-map-frame iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(35%) contrast(1.05); }

.gm-form-card {
  background: var(--paper-2);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.gm-field { margin-bottom: 20px; text-align: left; }
.gm-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.gm-field .form-control {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--ink-line);
  background: transparent;
  padding: 10px 2px;
  font-size: 15px;
  font-family: var(--font-sans);
  color: var(--ink);
  border-radius: 0;
  transition: border-color 0.25s ease;
}
.gm-field .form-control:focus { outline: none; border-color: var(--violet); border-bottom-width: 2px; padding-bottom: 9px; }
.gm-field textarea.form-control { resize: vertical; min-height: 120px; }
.gm-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.gm-social-row { display: flex; gap: 10px; }
.gm-social-row a,
.gm-social-row button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--ink-line);
  color: var(--ink);
  font-size: 16px;
  transition: all 0.25s ease;
}
.gm-social-row a:hover,
.gm-social-row button:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

@media (max-width: 900px) { .gm-contact__row { grid-template-columns: 1fr; } .gm-map-frame{min-height:280px;} .gm-map-frame iframe{min-height:280px;} }

/* ===================================================================
   Footer
   =================================================================== */
.gm-footer { background: var(--ink); color: var(--paper); padding: 88px 0 0; }
.gm-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 64px; border-bottom: 1px solid var(--on-ink-line); }
.gm-footer__brand .gm-logo-badge { margin-bottom: 18px; }
.gm-footer__brand p { color: var(--muted-on-ink); font-size: 14.5px; max-width: 340px; }
.gm-footer h6 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-on-ink);
  margin-bottom: 20px;
  font-weight: 600;
}
.gm-footer ul { display: flex; flex-direction: column; gap: 12px; }
.gm-footer ul a { font-size: 14.5px; opacity: 0.85; transition: opacity 0.2s ease, color 0.2s ease; }
.gm-footer ul a:hover { opacity: 1; color: var(--accent); }
.gm-footer ul li a { display: flex; align-items: center; gap: 10px; }
.gm-footer ul li a svg { width: 15px; height: 15px; opacity: 0.7; flex-shrink: 0; }
.gm-footer__social { display: flex; gap: 10px; margin-top: 18px; }
.gm-footer__social a,
.gm-footer__social button {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--on-ink-wash);
  border: 1px solid var(--on-ink-line);
  color: var(--paper);
  transition: all 0.25s ease;
}
.gm-footer__social a:hover,
.gm-footer__social button:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.gm-footer__bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted-on-ink);
  font-family: var(--font-mono);
}
@media (max-width: 900px) { .gm-footer__grid { grid-template-columns: 1fr; gap: 40px; } }

/* ===================================================================
   Back to top
   =================================================================== */
.gm-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  z-index: 800;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.25s ease;
}
.gm-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.gm-to-top:hover { background: var(--violet); }
.gm-to-top svg { width: 18px; height: 18px; }

/* ===================================================================
   Modals (Bootstrap Modal.js contract)
   =================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1055;
  display: none;
  outline: 0;
  overflow-x: hidden;
  overflow-y: auto;
}
.modal.show { display: block; }
.modal-dialog {
  position: relative;
  width: auto;
  margin: 40px auto;
  max-width: 520px;
  pointer-events: none;
  transform: translateY(-24px);
  transition: transform 0.3s var(--ease);
}
.modal.show .modal-dialog { transform: translateY(0); }
.modal-dialog.modal-lg { max-width: 760px; }
.modal-content {
  pointer-events: auto;
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid var(--ink-line);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 30px;
  border-bottom: 1px solid var(--paper-line);
}
.modal-title { font-family: var(--font-display); font-size: 20px; }
.modal-body { padding: 30px; font-size: 14.5px; color: var(--muted); line-height: 1.7; max-height: 65vh; overflow-y: auto; }
.btn-close {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--ink-line);
  background: transparent;
  position: relative;
  flex-shrink: 0;
}
.btn-close::before, .btn-close::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 14px; height: 1.5px; background: var(--ink);
}
.btn-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.btn-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.btn-close:hover { background: var(--ink); }
.btn-close:hover::before, .btn-close:hover::after { background: var(--paper); }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(14, 15, 19, 0.7);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.modal-backdrop.show { opacity: 1; }
body.modal-open { overflow: hidden; }

/* ===================================================================
   Scroll reveal
   =================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .gm-hero__blob { animation: none; }
}
