/* Goman site styles: one file so the page has a single render-blocking request. */

/* ===== Fonts (self-hosted Estedad by Amin Abedi, SIL OFL 1.1; JetBrains Mono) ===== */
@font-face{font-family:Estedad;font-style:normal;font-weight:100 900;font-display:swap;src:url(../fonts/estedad/Estedad-wght.woff2)format("woff2")}
@font-face{font-family:"JetBrains Mono";font-style:normal;font-weight:100 800;font-display:swap;src:url(../fonts/13bf9871fe164e7f-s.2f7nqdagzwx2-.woff2)format("woff2");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:"JetBrains Mono";font-style:normal;font-weight:100 800;font-display:swap;src:url(../fonts/cc545e633e20c56d-s.176arc174-8zp.woff2)format("woff2");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}
@font-face{font-family:"JetBrains Mono";font-style:normal;font-weight:100 800;font-display:swap;src:url(../fonts/71b036adf157cdcf-s.0bp8oijd_gu96.woff2)format("woff2");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}
@font-face{font-family:"JetBrains Mono";font-style:normal;font-weight:100 800;font-display:swap;src:url(../fonts/89b21bb081cb7469-s.1fby2rem9ngyr.woff2)format("woff2");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:"JetBrains Mono";font-style:normal;font-weight:100 800;font-display:swap;src:url(../fonts/3fe682a82f50d426-s.0vfdmo25voy_0.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"JetBrains Mono";font-style:normal;font-weight:100 800;font-display:swap;src:url(../fonts/70bc3e132a0a741e-s.p.3t6q91iet4nsy.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* ===== Design tokens (generated from design-system/tokens.json) ===== */
:root {
  --font-sans: "Estedad", "Tahoma", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Courier New", monospace;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;
  --surface: #F5EBDD;
  --surface-raised: #FBF6EE;
  --surface-sunken: #EBDDC8;
  --border: #D9C9B1;
  --border-strong: #857463;
  --ink: #413333;
  --ink-muted: #6B5A57;
  --brand: #315B8C;
  --on-brand: #FFFFFF;
  --brand-hover: #274B75;
  --brand-subtle: #DDE7F2;
  --accent: #F2765E;
  --on-accent: #2B2020;
  --accent-hover: #F78E78;
  --accent-text: #B23F29;
  --focus-ring: #315B8C;
  --success: #13695F;
  --success-subtle: #D3EBE7;
  --warning: #8A5A00;
  --warning-subtle: #F8E7C0;
  --danger: #B3261E;
  --danger-subtle: #F9DEDA;
  --shadow-sm: 0 1px 2px rgba(65, 51, 51, 0.12);
  --shadow-md: 0 8px 24px rgba(65, 51, 51, 0.14);
  --shadow-lg: 0 20px 48px rgba(65, 51, 51, 0.2);
}

[data-theme="dark"] {
  --surface: #231A1A;
  --surface-raised: #332727;
  --surface-sunken: #1B1313;
  --border: #4A3C3C;
  --border-strong: #A39080;
  --ink: #F5EBDD;
  --ink-muted: #CDBFAE;
  --brand: #8FB4E3;
  --on-brand: #14202F;
  --brand-hover: #A9C6EC;
  --brand-subtle: #1F3047;
  --accent: #F2765E;
  --on-accent: #2B2020;
  --accent-hover: #F9A08C;
  --accent-text: #F7977F;
  --focus-ring: #8FB4E3;
  --success: #5BC4B8;
  --success-subtle: #173C38;
  --warning: #F2B84B;
  --warning-subtle: #44340F;
  --danger: #F28B82;
  --danger-subtle: #4A2423;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.65);
}

/* ===== Goman design-system components ===== */

@keyframes gm-spin { to { transform: rotate(360deg); } }
@keyframes gm-dot { 0%, 80%, 100% { transform: translateY(0); opacity: 0.45; } 40% { transform: translateY(-4px); opacity: 1; } }

.gm-icon { flex: none; }
.gm-spin { animation: gm-spin 0.8s linear infinite; }

/* Button */
.gm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding-inline: var(--space-5);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}
.gm-btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.gm-btn:active:not(:disabled) { transform: translateY(1px); box-shadow: none; }
.gm-btn--sm { min-height: 36px; padding-inline: var(--space-4); }
.gm-btn--lg { min-height: 52px; padding-inline: var(--space-6); font-size: 16px; line-height: 24px; }
.gm-btn--icon { padding-inline: 0; width: 44px; }
.gm-btn--icon.gm-btn--sm { width: 36px; }
.gm-btn--icon.gm-btn--lg { width: 52px; }
.gm-btn--block { display: flex; width: 100%; }
.gm-btn__icon { display: inline-flex; flex: none; }
.gm-btn__icon svg { width: 18px; height: 18px; }
.gm-btn--primary { background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow-sm); }
.gm-btn--primary:hover { background: var(--brand-hover); }
.gm-btn--accent { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-sm); }
.gm-btn--accent:hover { background: var(--accent-hover); }
.gm-btn--secondary { background: var(--surface-raised); color: var(--ink); border-color: var(--border-strong); }
.gm-btn--secondary:hover { background: var(--surface-sunken); }
.gm-btn--ghost { background: transparent; color: var(--brand); }
.gm-btn--ghost:hover { background: var(--brand-subtle); }
.gm-btn--danger { background: var(--surface-raised); color: var(--danger); border-color: var(--danger); }
.gm-btn--danger:hover { background: var(--danger-subtle); }
.gm-btn:disabled:not(.is-loading) {
  background: var(--surface-sunken);
  color: var(--ink-muted);
  border-color: var(--border);
  box-shadow: none;
  cursor: not-allowed;
}
.gm-btn.is-loading { cursor: progress; }

/* Input */
.gm-field { display: flex; flex-direction: column; gap: var(--space-2); font-family: var(--font-sans); }
.gm-field__label { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
.gm-field__hint { font-size: 12px; line-height: 20px; color: var(--ink-muted); }
.gm-field__error {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 12px;
  line-height: 20px;
  font-weight: 500;
  color: var(--danger);
}
.gm-input-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  box-sizing: border-box;
  min-height: 44px;
  padding-inline: var(--space-4);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  transition: border-color 0.15s ease;
}
.gm-input-wrap--sm { min-height: 36px; padding-inline: var(--space-3); }
.gm-input-wrap--lg { min-height: 52px; }
.gm-input-wrap:hover:not(.is-disabled) { border-color: var(--ink-muted); }
.gm-input-wrap:focus-within { border-color: var(--brand); outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.gm-input-wrap.is-invalid { border-color: var(--danger); }
.gm-input-wrap.is-disabled { background: var(--surface-sunken); border-color: var(--border); }
.gm-input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
}
.gm-input::placeholder { color: var(--ink-muted); opacity: 1; }
.gm-input:disabled { color: var(--ink-muted); cursor: not-allowed; }
.gm-input__icon { display: inline-flex; flex: none; color: var(--ink-muted); }
.gm-input__icon svg { width: 20px; height: 20px; }

/* Card */
.gm-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  box-sizing: border-box;
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  color: var(--ink);
  font-family: var(--font-sans);
  text-decoration: none;
}
.gm-card--elevated { border-color: transparent; box-shadow: var(--shadow-sm); }
.gm-card--filled { background: var(--surface-sunken); border-color: transparent; }
.gm-card--filled .gm-card__eyebrow { color: var(--brand); }
.gm-card--interactive { cursor: pointer; transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease; }
.gm-card--interactive:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--border-strong); }
.gm-card--interactive:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.gm-card__header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); }
.gm-card__heading { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.gm-card__eyebrow { font-size: 12px; line-height: 20px; font-weight: 600; color: var(--accent-text); }
.gm-card__title { margin: 0; font-size: 20px; line-height: 32px; font-weight: 700; color: var(--ink); }
.gm-card__desc { margin: 0; font-size: 14px; line-height: 24px; color: var(--ink-muted); }
.gm-card__actions { display: flex; flex: none; align-items: center; gap: var(--space-1); }
.gm-card__body { font-size: 16px; line-height: 28px; }
.gm-card__footer {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

/* Badge */
.gm-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0 var(--space-3);
  min-height: 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 20px;
  font-weight: 600;
  white-space: nowrap;
}
.gm-badge--sm { min-height: 20px; padding: 0 var(--space-2); }
.gm-badge .gm-icon { width: 14px; height: 14px; }
.gm-badge__dot { width: 6px; height: 6px; border-radius: var(--radius-pill); background: currentColor; }
.gm-badge--neutral { background: var(--surface-sunken); color: var(--ink); }
.gm-badge--brand { background: var(--brand-subtle); color: var(--brand); }
.gm-badge--accent { background: var(--accent); color: var(--on-accent); }
.gm-badge--info { background: var(--brand-subtle); color: var(--brand); }
.gm-badge--success { background: var(--success-subtle); color: var(--success); }
.gm-badge--warning { background: var(--warning-subtle); color: var(--warning); }
.gm-badge--danger { background: var(--danger-subtle); color: var(--danger); }

/* Alert */
.gm-alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  color: var(--ink);
  font-family: var(--font-sans);
}
.gm-alert__chip {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  background: var(--surface-raised);
}
.gm-alert__chip .gm-icon { width: 20px; height: 20px; }
.gm-alert__content { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.gm-alert__title { font-size: 14px; line-height: 32px; font-weight: 700; }
.gm-alert__text { font-size: 14px; line-height: 24px; }
.gm-alert__action { display: flex; gap: var(--space-2); margin-top: var(--space-3); }
.gm-alert__close {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.gm-alert__close:hover { background: var(--surface-raised); }
.gm-alert__close:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.gm-alert--info { background: var(--brand-subtle); }
.gm-alert--info .gm-alert__chip, .gm-alert--info .gm-alert__title { color: var(--brand); }
.gm-alert--success { background: var(--success-subtle); }
.gm-alert--success .gm-alert__chip, .gm-alert--success .gm-alert__title { color: var(--success); }
.gm-alert--warning { background: var(--warning-subtle); }
.gm-alert--warning .gm-alert__chip, .gm-alert--warning .gm-alert__title { color: var(--warning); }
.gm-alert--danger { background: var(--danger-subtle); }
.gm-alert--danger .gm-alert__chip, .gm-alert--danger .gm-alert__title { color: var(--danger); }

/* ChatBubble */
.gm-chat {
  display: flex;
  align-items: flex-end;
  gap: var(--space-2);
  max-width: 600px;
  font-family: var(--font-sans);
}
.gm-chat--user { align-self: flex-start; }
.gm-chat--assistant { align-self: flex-end; flex-direction: row-reverse; }
.gm-chat__avatar {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
}
.gm-chat--user .gm-chat__avatar { background: var(--surface-sunken); color: var(--ink); }
.gm-chat--assistant .gm-chat__avatar { background: var(--brand-subtle); color: var(--brand); }
.gm-chat__main { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.gm-chat--user .gm-chat__main { align-items: flex-start; }
.gm-chat--assistant .gm-chat__main { align-items: flex-end; }
.gm-chat__bubble {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  font-size: 16px;
  line-height: 28px;
}
.gm-chat--user .gm-chat__bubble {
  background: var(--brand);
  color: var(--on-brand);
  border-end-start-radius: var(--radius-sm);
}
.gm-chat--assistant .gm-chat__bubble {
  background: var(--surface-raised);
  color: var(--ink);
  border: 1px solid var(--border);
  border-end-end-radius: var(--radius-sm);
}
.gm-chat__bubble code {
  padding: 0 var(--space-1);
  border-radius: var(--radius-sm);
  background: var(--surface-sunken);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  direction: ltr;
  unicode-bidi: isolate;
}
.gm-chat__bubble pre {
  margin: var(--space-2) 0;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--surface-sunken);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 22px;
  direction: ltr;
  text-align: left;
  overflow-x: auto;
}
.gm-chat__bubble pre code { padding: 0; background: transparent; }
.gm-chat__pending { display: inline-flex; align-items: center; gap: var(--space-1); min-height: 28px; }
.gm-chat__pending i {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--ink-muted);
  animation: gm-dot 1.2s ease-in-out infinite;
}
.gm-chat__pending i:nth-child(2) { animation-delay: 0.15s; }
.gm-chat__pending i:nth-child(3) { animation-delay: 0.3s; }
.gm-chat__meta { font-size: 12px; line-height: 20px; color: var(--ink-muted); }
.gm-chat__actions { display: flex; gap: var(--space-1); }

/* Tabs */
.gm-tabs {
  display: inline-flex;
  gap: var(--space-1);
  padding: var(--space-1);
  border-radius: var(--radius-pill);
  background: var(--surface-sunken);
  font-family: var(--font-sans);
}
.gm-tab {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 36px;
  padding-inline: var(--space-4);
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.gm-tab:hover { color: var(--ink); }
.gm-tab:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.gm-tab.is-selected { background: var(--surface-raised); color: var(--ink); box-shadow: var(--shadow-sm); }
.gm-tab__count {
  min-width: 20px;
  padding: 0 var(--space-2);
  border-radius: var(--radius-pill);
  background: var(--brand-subtle);
  color: var(--brand);
  font-size: 12px;
  line-height: 20px;
  text-align: center;
}

/* Switch */
.gm-switch { display: inline-flex; align-items: center; gap: var(--space-3); font-family: var(--font-sans); }
.gm-switch__track {
  position: relative;
  flex: none;
  box-sizing: border-box;
  width: 44px;
  height: 26px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: var(--surface-sunken);
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}
.gm-switch__track:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.gm-switch__track.is-on { background: var(--brand); border-color: var(--brand); }
.gm-switch__thumb {
  position: absolute;
  top: 3px;
  inset-inline-start: 3px;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-pill);
  background: var(--border-strong);
  transition: inset-inline-start 0.18s ease, background-color 0.18s ease;
}
.gm-switch__track.is-on .gm-switch__thumb { inset-inline-start: 21px; background: var(--on-brand); }
.gm-switch__label { font-size: 14px; line-height: 24px; color: var(--ink); cursor: pointer; }
.gm-switch.is-disabled { opacity: 0.55; }
.gm-switch.is-disabled .gm-switch__track, .gm-switch.is-disabled .gm-switch__label { cursor: not-allowed; }

@media (prefers-reduced-motion: reduce) {
  .gm-btn, .gm-input-wrap, .gm-card--interactive, .gm-tab, .gm-switch__track, .gm-switch__thumb { transition: none; }
  .gm-spin, .gm-chat__pending i { animation: none; }
  .gm-card--interactive:hover { transform: none; }
}

/* Button spinner: kept separate from the page motion class `.gm-spin` (48s orbit) in motion.css */
@keyframes gm-btn-spin { to { transform: rotate(360deg); } }
.gm-btn-spin { animation: gm-btn-spin 0.8s linear infinite; }

/* ===== Motion and surface patterns ===== */
/* Gomaan motion & surface language: dashed = question, solid = answer */
@keyframes gm-rise{from{transform:translateY(18px)}to{transform:none}}
@keyframes gm-dash{to{stroke-dashoffset:-80}}
@keyframes gm-flow{to{stroke-dashoffset:-24}}
@keyframes gm-pulse{0%{opacity:.8;transform:scale(.9)}100%{opacity:0;transform:scale(1.5)}}
@keyframes gm-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
@keyframes gm-marquee{from{transform:translateX(0)}to{transform:translateX(50%)}}
@keyframes gm-blink{0%,100%{opacity:1}50%{opacity:.2}}
@keyframes gm-grow{0%,100%{transform:scaleY(.35)}50%{transform:scaleY(1)}}
@keyframes gm-scan{from{transform:translateY(0)}to{transform:translateY(160px)}}
@keyframes gm-spin{to{transform:rotate(360deg)}}
@keyframes gm-tile{0%,100%{opacity:1}50%{opacity:.35}}
@keyframes gm-travel{from{right:0}to{right:calc(100% - 24px)}}
@keyframes gm-pop{0%,60%{transform:scale(.85);opacity:0}75%{transform:scale(1.05);opacity:1}85%,100%{transform:scale(1);opacity:1}}

.gm-rise{animation:gm-rise .7s ease-out}
.gm-dash{animation:gm-dash 4s linear infinite}
.gm-flow{animation:gm-flow 1s linear infinite}
.gm-pulse{transform-box:fill-box;transform-origin:center;animation:gm-pulse 2.6s ease-out infinite}
.gm-float{animation:gm-float 5s ease-in-out infinite}
.gm-marquee{animation:gm-marquee 60s linear infinite}
.gm-blink{animation:gm-blink 1.4s ease-in-out infinite}
.gm-grow{transform-box:fill-box;transform-origin:bottom;animation:gm-grow 3.2s ease-in-out infinite}
.gm-scan{animation:gm-scan 2.6s ease-in-out infinite alternate}
.gm-spin{transform-box:fill-box;transform-origin:center;animation:gm-spin 48s linear infinite}
.gm-tile{animation:gm-tile 3.6s ease-in-out infinite}
.gm-travel{animation:gm-travel 6s ease-in-out infinite alternate}
.gm-pop{transform-box:fill-box;transform-origin:center;animation:gm-pop 4s ease-out infinite}

.gm-d1{animation-delay:.12s}.gm-d2{animation-delay:.24s}.gm-d3{animation-delay:.36s}
.gm-d4{animation-delay:.48s}.gm-d5{animation-delay:.6s}.gm-d6{animation-delay:.9s}
.gm-d7{animation-delay:1.3s}.gm-d8{animation-delay:1.8s}

@keyframes gm-type{0%,100%{transform:scaleX(.15)}50%{transform:scaleX(1)}}
@keyframes gm-belt{to{transform:translateX(-120px)}}
@keyframes gm-sweep{0%,100%{transform:rotate(-18deg)}50%{transform:rotate(18deg)}}
.gm-type{transform-box:fill-box;transform-origin:right center;animation:gm-type 3s ease-in-out infinite}
.gm-belt{animation:gm-belt 4s linear infinite}
.gm-sweep{transform-box:fill-box;transform-origin:top center;animation:gm-sweep 5s ease-in-out infinite}
.gm-d9{animation-delay:2.4s}
@keyframes gm-drift{0%,100%{transform:translateY(0) rotate(var(--r,0deg))}50%{transform:translateY(-12px) rotate(var(--r,0deg))}}
@keyframes gm-xfade{0%,40%{opacity:1}50%,90%{opacity:0}100%{opacity:1}}
@keyframes gm-ticker{from{transform:translateX(0)}to{transform:translateX(50%)}}
@keyframes gm-breathe{0%,100%{transform:scale(1)}50%{transform:scale(1.04)}}
.gm-drift{animation:gm-drift 9s ease-in-out infinite}
.gm-xfade{animation:gm-xfade 10s ease-in-out infinite}
.gm-ticker{animation:gm-ticker 90s linear infinite}
.gm-breathe{transform-box:fill-box;transform-origin:center;animation:gm-breathe 7s ease-in-out infinite}

.gm-row{transition:background-color .2s ease}
.gm-row:hover{background-color:#FBF6EE}

.gm-card{transition:transform .15s ease,box-shadow .15s ease}
.gm-card:hover{transform:translateY(-4px);box-shadow:0 8px 24px rgba(65,51,51,.14)}
.gm-card:focus-visible{outline:2px solid #315B8C;outline-offset:2px}

.gm-dots{background-image:radial-gradient(#D9C9B1 1.2px,transparent 1.2px);background-size:24px 24px}
.gm-dots-dark{background-image:radial-gradient(#4A3C3C 1.2px,transparent 1.2px);background-size:24px 24px}

@media (prefers-reduced-motion: reduce){
[class*="gm-"]{animation:none !important;transition:none !important}
}

/* ===== Site base styles ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 28px;
}

.gm-page {
  overflow-x: hidden;
}

a {
  color: var(--brand);
}
a:hover {
  color: var(--brand-hover);
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

details summary {
  cursor: pointer;
  list-style: none;
}
details summary::-webkit-details-marker {
  display: none;
}

/* Consultation topic chips (contact form) */
.topic-chip {
  font: inherit;
  font-size: 14px;
  line-height: 24px;
  cursor: pointer;
  padding: 8px 16px;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid #857463;
  background: #FBF6EE;
  color: #413333;
}
.topic-chip[aria-pressed="true"] {
  border-color: #315B8C;
  background: #315B8C;
  color: #FFFFFF;
}

/* Capability tabs on the knowledge service page (blue band) */
.kn-tab {
  font: inherit;
  font-size: 14px;
  line-height: 24px;
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 2px solid #8FB4E3;
  background: transparent;
  color: #FFFFFF;
}
.kn-tab[aria-selected="true"] {
  border-color: #FBF6EE;
  background: #FBF6EE;
  color: #315B8C;
}
.tab-panel {
  display: contents;
}
.tab-panel[hidden] {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Page cards reuse the .gm-card hover class from the motion layer; they keep the text
   color of their section instead of the design-system Card's ink color. */
main .gm-card:not([class*="gm-card--"]) {
  color: inherit;
}

/* Call-to-action links never wrap their label. */
main a[style*="display: inline-flex"][style*="height:"] {
  white-space: nowrap;
  flex-shrink: 0;
}

/* ===== Clients (home page) ===== */
.clients {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.client {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 132px;
  padding: 20px 12px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  font-size: 14px;
  line-height: 22px;
  font-weight: 600;
  color: var(--ink-muted);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}
.client img {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.85;
  transition: filter 0.15s ease, opacity 0.15s ease;
}
.client:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
}
.client:hover img {
  filter: none;
  opacity: 1;
}
@media (hover: none) {
  .client img {
    filter: none;
    opacity: 1;
  }
}

/* ===== Site header ===== */
.site-header {
  position: relative;
  z-index: 20;
  background: #F5EBDD;
  color: #413333;
  font-family: var(--font-sans);
  border-bottom: 1px solid #D9C9B1;
}
.site-header__bar {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 48px;
}
.site-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  line-height: 40px;
  font-weight: 800;
  color: #413333;
  text-decoration: none;
}
.site-header__brand:hover { color: #413333; }
.site-header__menu {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}
.site-header__nav a {
  color: #413333;
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.site-header__nav a:hover,
.site-header__nav a.is-active {
  color: #315B8C;
}
.site-header__nav a.is-active {
  border-bottom-color: #315B8C;
}
.site-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  background: #F2765E;
  color: #2B2020;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(65, 51, 51, 0.12);
  transition: background-color 0.15s ease;
}
.site-header__cta:hover { background: #F78E78; color: #2B2020; }
.site-header__toggle {
  display: none;
  margin-inline-start: auto;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid #857463;
  border-radius: 12px;
  background: #FBF6EE;
  color: #413333;
  cursor: pointer;
}
.site-header__icon-close { display: none; }
.site-header.is-open .site-header__icon-open { display: none; }
.site-header.is-open .site-header__icon-close { display: inline; }

@media (max-width: 900px) {
  .site-header__bar { padding: 12px 16px; gap: 16px; flex-wrap: wrap; }
  .site-header__brand { font-size: 22px; }
  .site-header__brand svg { width: 36px; height: 36px; }
  .site-header__toggle { display: inline-flex; }
  .site-header__menu {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 8px 0 12px;
  }
  .site-header.is-open .site-header__menu { display: flex; }
  .site-header__nav { flex-direction: column; gap: 0; font-size: 16px; line-height: 24px; }
  .site-header__nav a {
    padding: 12px 4px;
    border-bottom: 1px solid #D9C9B1;
  }
  .site-header__nav a.is-active { border-bottom-color: #D9C9B1; }
  .site-header__cta { height: 48px; font-size: 16px; }
}

/* ===== Responsive =====
   The page markup comes from the design canvas with inline desktop styles, so the
   tablet and phone layouts override those inline values here (hence !important). */
@media (max-width: 1024px) {
  main [style*="padding: 96px 24px"],
  main [style*="padding: 112px 24px 96px"],
  main [style*="padding: 88px 24px"] { padding-top: 72px !important; padding-bottom: 72px !important; }
  main [style*="font-size: 44px; line-height: 62px"] { font-size: 36px !important; line-height: 52px !important; }
  main [style*="grid-template-columns: repeat(4, minmax(0, 1fr))"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  main [style*="grid-template-columns: 64px minmax(0, 3fr) minmax(0, 4fr) 160px"] { grid-template-columns: 48px minmax(0, 1fr) !important; }
  main [style*="grid-template-columns: 64px minmax(0, 3fr) minmax(0, 4fr) 160px"] > :nth-child(n+3) { grid-column: 2 !important; }
  main [style*="grid-template-columns: minmax(0, 3fr) minmax(0, 9fr)"],
  main [style*="grid-template-columns: minmax(0, 4fr) minmax(0, 8fr)"] { grid-template-columns: minmax(0, 1fr) !important; }
}

@media (max-width: 900px) {
  /* side-by-side rows (hero text + illustration, form + intro) stack */
  main [style*="flex: 1 1 3"],
  main [style*="flex: 1 1 4"],
  main [style*="flex: 1 1 5"],
  main [style*="flex: 1.1 1 4"],
  main [style*="flex: 1.2 1 4"],
  main [style*="flex: 1.3 1 5"],
  main [style*="flex: 1.4 1 5"],
  main [style*="flex: 1.5 1 5"],
  main [style*="flex: 2 1 5"] { flex-basis: 100% !important; }
  /* two-column section layouts (hero text + illustration, heading + list) stack */
  main [style*="max-width: 1240px"][style*="display: grid"][style*="grid-template-columns: minmax(0"] { grid-template-columns: minmax(0, 1fr) !important; }
  /* chatbot hero: floating channel chips stay inside the screen */
  main [style*="position: absolute"][style*="left: -18px"] { left: 0 !important; }
  main [style*="position: absolute"][style*="right: -22px"] { right: 0 !important; }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .clients { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  /* card grids that would leave a lone card on the last row go two by two */
  main [style*="grid-template-columns: repeat(auto-fit, minmax(2"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (max-width: 767px) {
  /* side gutters and section rhythm */
  main [style*="max-width: 1240px"],
  footer [style*="max-width: 1240px"] { padding-left: 16px !important; padding-right: 16px !important; }
  main [style*="padding: 96px 24px"],
  main [style*="padding: 112px 24px 96px"],
  main [style*="padding: 88px 24px"],
  main [style*="padding: 80px 24px"],
  main [style*="padding: 72px 24px"] { padding-top: 56px !important; padding-bottom: 56px !important; }
  main [style*="padding: 56px 24px 88px"],
  main [style*="padding: 64px 24px 80px"],
  main [style*="padding: 96px 24px 72px"],
  main [style*="padding: 72px 24px 96px"],
  main [style*="padding: 56px 24px 96px"] { padding-top: 40px !important; padding-bottom: 56px !important; }
  main [style*="padding: 0 24px 96px"] { padding-bottom: 56px !important; }
  main [style*="padding: 96px 24px 24px"] { padding-top: 56px !important; }
  main [style*="padding: 80px 24px 0"] { padding-top: 56px !important; }
  footer [style*="padding: 64px 24px 32px"] { padding-top: 48px !important; }

  /* type scale */
  main [style*="font-size: 44px; line-height: 62px"] { font-size: 30px !important; line-height: 44px !important; }
  main [style*="font-size: 32px; line-height: 46px"],
  main [style*="font-size: 32px; line-height: 52px"] { font-size: 24px !important; line-height: 38px !important; }
  main [style*="font-size: 18px; line-height: 32px"] { font-size: 16px !important; line-height: 28px !important; }

  /* big inner padding and gaps */
  main [style*="padding: 48px;"],
  main [style*="padding: 40px;"] { padding: 24px !important; }
  main [style*="padding: 32px;"] { padding: 20px !important; }
  main a[style*="padding: 0 32px"] { padding: 0 24px !important; }
  main [style*="gap: 64px"],
  main [style*="gap: 56px"],
  main [style*="gap: 48px"] { gap: 32px !important; }
  main [style*="gap: 40px"] { gap: 24px !important; }

  /* every multi-column layout stacks */
  main [style*="grid-template-columns: repeat(2, minmax(0, 1fr))"],
  main [style*="grid-template-columns: repeat(3, minmax(0, 1fr))"],
  main [style*="grid-template-columns: repeat(4, minmax(0, 1fr))"],
  main [style*="grid-template-columns: minmax(0"],
  main [style*="grid-template-columns: 160px minmax(0, 1fr)"],
  main [style*="grid-template-columns: repeat(auto-fit, minmax(3"],
  main [style*="grid-template-columns: repeat(auto-fit, minmax(2"] { grid-template-columns: minmax(0, 1fr) !important; }
  main [style*="grid-template-columns: 160px minmax(0, 1fr)"] > svg,
  main [style*="grid-template-columns: 160px minmax(0, 1fr)"] > div:first-child:has(> svg) { max-width: 200px; }
  main [style*="grid-template-columns: repeat(auto-fit, minmax(140px, 1fr))"],
  main [style*="grid-template-columns: repeat(auto-fit, minmax(160px, 1fr))"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  main [style*="grid-template-columns: 72px minmax(0, 1fr)"] { grid-template-columns: 56px minmax(0, 1fr) !important; }


  /* spans from the desktop grids would create phantom columns once stacked */
  main [style*="grid-column: span"],
  main [style*="grid-row: span"] { grid-column: auto !important; grid-row: auto !important; }

  /* home: the "knot / untangling / with Goman" column labels only make sense side by side */
  main [style*="grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 3fr)"]:not(.gm-row) { display: none !important; }
  main .gm-row > svg,
  main .gm-row > div:has(> svg) { max-width: 260px; }

  /* services hero orbit: shrink so the satellite labels stay on screen */
  main [style*="max-width: 520px; aspect-ratio: 1"] { max-width: 68% !important; }


  /* wide process diagrams scroll sideways instead of shrinking to unreadable text */
  main :has(> svg[viewBox^="0 0 1200"]) { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  main svg[viewBox^="0 0 1200"] { min-width: 760px; }

  /* forms: full-width submit */
  main [data-consult-form] .gm-btn { width: 100%; }

  /* footer: link columns side by side */
  footer [style*="grid-template-columns: repeat(auto-fit, minmax(200px, 1fr))"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 32px 16px !important; }
  footer [style*="grid-template-columns: repeat(auto-fit, minmax(200px, 1fr))"] > :first-child,
  footer [style*="grid-template-columns: repeat(auto-fit, minmax(200px, 1fr))"] > :last-child { grid-column: 1 / -1; }

  /* client tiles: two per row */
  .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client { min-height: 112px; padding: 16px 8px; }
}

/* ===== Performance ===== */
/* Animations pause while their section is off screen (js/site.js toggles .gm-offscreen). */
.gm-offscreen [class*="gm-"],
.gm-offscreen[class*="gm-"] {
  animation-play-state: paused !important;
}

/* Smooth cross-page transitions in browsers that support them. */
@view-transition {
  navigation: auto;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.18s;
}
@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
}
