@font-face {
  font-family: Manrope;
  src: url('assets/fonts/manrope-variable.ttf') format('truetype');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #005e9d;
  --blue-hover: #004a7c;
  --ink: #101c2d;
  --copy: #536071;
  --paper: #f4f6fa;
  --line: #dce2ea;
  --white: #fff;
  --focus: #c65b08;
  --diagram-line: #b5c7d6;
  --pale-blue: #eaf3f9;
  --on-blue: #deedf7;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-smooth-out: cubic-bezier(.22, 1, .36, 1);
  --duration-fast: 250ms;
  --duration-very-slow: 500ms;
  --gutter: 56px;
  --section-space: 112px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 114px; scrollbar-color: var(--diagram-line) var(--paper); }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 16px/1.7 Manrope, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
::selection { background: #d3e7f4; color: var(--ink); }
a { color: inherit; text-decoration: none; text-underline-offset: 5px; }
button { font: inherit; cursor: pointer; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.13; letter-spacing: -.035em; text-wrap: balance; }
h2 { font-size: clamp(36px, 3.8vw, 52px); }
p { color: var(--copy); }
img { max-width: 100%; height: auto; }
svg { display: block; }
[hidden] { display: none !important; }
.container { width: min(100% - var(--gutter) * 2, 1240px); margin-inline: auto; }
.section { padding-block: var(--section-space); }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.skip-link { position: fixed; top: 12px; left: 20px; z-index: 10; padding: 12px 20px; color: var(--white); background: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.site-header { position: sticky; top: 0; z-index: 5; background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 15px; min-height: 44px; flex-shrink: 0; }
.brand img { width: 106px; height: auto; }
.brand-labs { display: inline-flex; align-items: center; gap: 4px; border-left: 1px solid var(--line); padding-left: 10px; }
.brand-labs > span { color: var(--blue); font-size: 21px; font-weight: 500; line-height: 1; letter-spacing: .045em; }
.brand .labs-mark { width: 46px; height: 46px; object-fit: contain; }
.brand-reordered .brand-labs { gap: 9px; padding-left: 15px; }
nav { display: flex; align-items: center; gap: 30px; }
nav > a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 600; }
nav > a:not(.button):hover { color: var(--blue); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 30px; min-height: 54px; padding: 15px 23px; border-radius: 6px; background: var(--blue); color: var(--white); font-size: 14px; font-weight: 650; line-height: 1.4; transition: background-color 220ms var(--ease); }
.button-small { min-height: 46px; padding: 12px 18px; gap: 22px; }
.button:hover { background: var(--blue-hover); }
.text-link { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; color: var(--blue); font-size: 14px; font-weight: 650; }
.text-link:hover { text-decoration: underline; }
.button .icon, .text-link .icon, .hero-note .icon, .contact-email .icon { transition: transform var(--duration-fast) var(--ease-smooth-out); }
.menu-toggle { width: 44px; height: 44px; padding: 11px; border: 1px solid var(--line); border-radius: 4px; background: var(--white); color: var(--ink); }
.menu-toggle span { display: block; width: 20px; height: 1.5px; margin-block: 5px; background: currentColor; transition: transform var(--duration-fast) var(--ease-smooth-out); }

.hero { padding-top: 90px; }
.hero-layout { display: grid; grid-template-columns: 1.35fr 1fr; align-items: center; gap: 46px; }
h1 { font-size: clamp(52px, 5.75vw, 82px); line-height: 1.1; letter-spacing: -.04em; }
h1 span, .contact-section h2 span { color: var(--blue); }
.hero-lead { font-size: 22px; color: var(--ink); margin-top: 29px; letter-spacing: -.02em; }
.hero-description { max-width: 54ch; margin-top: 14px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 13px 25px; margin-top: 30px; }
.learning-cycle { align-self: center; padding-top: 6px; }
.cycle-diagram { width: 100%; overflow: visible; }
.diagram-guide { stroke: var(--diagram-line); }
.cycle-path { stroke: var(--blue); opacity: 0; }
[data-phase="learn"] .path-learn, [data-phase="apply"] .path-apply, [data-phase="share"] .path-share { opacity: 1; }
.diagram-term rect { fill: var(--white); stroke: var(--diagram-line); stroke-width: 1.5; transition: fill 220ms var(--ease), stroke 220ms var(--ease); }
.diagram-term path, .diagram-term circle { fill: none; stroke: var(--blue); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
[data-phase="learn"] .term-learn rect, [data-phase="apply"] .term-apply rect, [data-phase="share"] .term-share rect { fill: var(--pale-blue); stroke: var(--blue); }
.endpoints { fill: var(--white); stroke: var(--blue); stroke-width: 1.5; }
.cycle-controls { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.cycle-controls button { position: relative; min-width: 85px; min-height: 44px; border: 0; border-bottom: 1px solid var(--line); padding: 9px 14px; background: transparent; color: var(--copy); font-size: 14px; font-weight: 600; transition: background-color 220ms var(--ease), color 220ms var(--ease); }
.cycle-controls button[aria-pressed="true"] { color: var(--blue); border-bottom-color: var(--blue); }
.cycle-controls button:hover { background: var(--paper); color: var(--blue); }
.cycle-caption { text-align: center; min-height: 64px; padding: 17px 8px 0; }
.cycle-caption p { font-size: 13px; }
.hero-note { margin-top: 62px; padding-block: 22px; border-block: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.hero-note p { font-size: 14px; }
.hero-note a { min-height: 44px; display: inline-flex; align-items: center; gap: 22px; color: var(--blue); font-size: 14px; font-weight: 600; }
.hero-note a:hover { text-decoration: underline; }

.section-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; margin-bottom: 54px; }
.section-intro > p { font-size: 17px; max-width: 48ch; padding-top: 6px; }
.engagement-row { display: grid; grid-template-columns: .85fr 1.65fr .7fr; gap: 54px; padding: 36px 0; border-top: 1px solid var(--line); }
.engagement-row:last-child { padding-bottom: 0; }
.engagement-row h3 { font-size: 29px; }
.engagement-row h4 { font-size: 22px; letter-spacing: -.025em; margin-bottom: 14px; }
.engagement-row p { font-size: 15px; max-width: 57ch; }
.engagement-row .engagement-note { font-size: 13px; padding-top: 5px; }
.engagement-row .text-link { margin-top: 16px; font-size: 13px; }
.topics-section { padding-block: var(--section-space); background: var(--paper); }
.topics-layout { display: grid; grid-template-columns: .95fr 1.25fr; gap: 100px; }
.topics-intro > p { margin-top: 24px; max-width: 37ch; }
.topics-intro .topics-note { font-size: 14px; margin-top: 19px; max-width: 39ch; }
.architecture-diagram { width: 240px; max-width: 90%; color: var(--blue); margin-top: 43px; }
.topic-list { border-top: 1px solid var(--diagram-line); }
.topic-list details { border-bottom: 1px solid var(--diagram-line); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 24px 0; cursor: pointer; list-style: none; color: var(--ink); font-size: 21px; font-weight: 600; line-height: 1.4; letter-spacing: -.025em; }
summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--blue); }
summary .icon { transition: transform var(--duration-fast) var(--ease-smooth-out); }
details[open] summary .icon { transform: rotate(45deg); }
.topic-content { padding: 0 35px 26px 0; }
.topic-content p { font-size: 15px; }
.topic-content ul { margin: 19px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; }
.topic-content li { font-size: 12px; color: var(--blue); font-weight: 600; }

.open-source-section { background: var(--blue); color: var(--white); padding-block: 96px 70px; }
.open-source-layout { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 90px; }
.open-source-copy h2 { font-size: clamp(44px, 4.65vw, 66px); }
.open-source-copy p { color: var(--on-blue); max-width: 51ch; margin-top: 19px; font-size: 16px; }
.open-source-copy .open-source-lead { color: var(--white); font-size: 21px; letter-spacing: -.015em; margin-top: 27px; }
.open-source-copy .text-link { color: var(--white); margin-top: 25px; }
.sharing-figure { color: var(--on-blue); }
.sharing-diagram { width: 100%; }
.sharing-nodes { fill: var(--blue); stroke: var(--on-blue); stroke-width: 1.5; }
.sharing-figure figcaption { font-size: 13px; text-align: center; margin-top: 18px; color: var(--on-blue); }
.open-principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 55px; margin-top: 68px; padding-top: 31px; border-top: 1px solid #528bb3; }
.open-principles h3 { font-size: 21px; line-height: 1.35; letter-spacing: -.02em; }
.open-principles p { color: var(--on-blue); font-size: 14px; margin-top: 13px; max-width: 37ch; }
.open-source-section :focus-visible { outline-color: #ffd595; }
.approach-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.approach-steps li { position: relative; border-top: 1px solid var(--line); padding-top: 26px; }
.step-number { display: inline-flex; justify-content: center; align-items: center; width: 30px; height: 30px; color: var(--blue); background: var(--pale-blue); border-radius: 50%; font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.approach-steps h3 { font-size: 23px; margin-top: 22px; }
.approach-steps p { font-size: 15px; max-width: 38ch; margin-top: 14px; }
.ai-first { display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px; border-top: 1px solid var(--line); padding-top: 38px; margin-top: 58px; }
.ai-first h3 { font-size: 29px; }
.ai-first p { font-size: 15px; max-width: 65ch; }
.ai-first .text-link { margin-top: 15px; }
.ai-actions { display: flex; flex-wrap: wrap; gap: 8px 30px; }

.contact-section { padding-block: 87px; background: var(--paper); }
.contact-layout { display: grid; grid-template-columns: 1fr 1.05fr; gap: 80px; align-items: start; }
.contact-section h2 { font-size: clamp(34px, 3.45vw, 48px); }
.contact-section h2 + p { max-width: 49ch; margin-top: 24px; }
.contact-section .button { margin-top: 30px; }
.contact-details { margin-top: 38px; display: flex; align-items: flex-start; flex-direction: column; gap: 13px; }
.contact-details > p { font-size: 14px; }
.contact-details > a { min-height: 44px; display: inline-flex; align-items: center; }
.contact-details > a:hover { color: var(--blue); text-decoration: underline; }
.contact-email { gap: 20px; font-size: 25px; font-weight: 500; letter-spacing: -.025em; }
.contact-details > p:last-child { margin-top: 18px; }
.site-footer { min-height: 128px; display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.site-footer > p { font-size: 12px; }
.site-footer .text-link { font-size: 13px; }
.site-footer .brand img { width: 90px; }
.site-footer .brand-labs > span { font-size: 18px; }
.site-footer .brand .labs-mark { width: 40px; height: 40px; }
.form-note { font-size: 12px; line-height: 1.65; }
.hgm-labs-contact-form { scroll-margin-top: 114px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; margin-top: 24px; }
.field-wide { grid-column: 1 / -1; }
.form-field { min-width: 0; }
.form-field label { display: block; font-size: 12px; font-weight: 650; margin-bottom: 8px; }
.form-field label span { font-weight: 400; color: var(--copy); }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 50px; border: 1px solid #788698; border-radius: 4px; padding: 12px 14px; color: var(--ink); background: var(--white); font: inherit; font-size: 16px; caret-color: var(--blue); transition: border-color 180ms var(--ease); }
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field input:hover, .form-field select:hover, .form-field textarea:hover { border-color: var(--blue); }
.form-field .form-note { margin-top: 5px; }
.hgm-labs-contact-form > .button { width: 100%; margin-top: 25px; border: 0; }
.hgm-labs-contact-form .button:disabled { opacity: .65; cursor: wait; }
.form-errors { padding: 18px; border: 1px solid #e0b6b6; border-radius: 4px; background: #fff1f1; margin-top: 22px; font-size: 14px; }
.form-errors p, .form-errors a, .field-error { color: #a12727; }
.form-errors ul { margin: 10px 0 0; padding-left: 20px; }
.form-errors a { text-decoration: underline; }
.field-error { margin-top: 6px; font-size: 12px; }
.form-field [aria-invalid="true"] { border-color: #a12727; }
.form-status { min-height: 23px; font-size: 13px; margin-top: 10px; }
.thanks-page { background: var(--paper); }
.thanks-page main { padding-block: 80px; }
.thanks-page main > a:first-child { display: inline-flex; min-height: 44px; align-items: center; }
.thanks-page h1 { margin-top: 65px; max-width: 14ch; }
.thanks-page main p { max-width: 57ch; margin-top: 26px; }
.thanks-page .button { margin-top: 32px; }

@media (hover: hover) and (pointer: fine) {
  .button:hover .icon, .text-link:hover .icon, .contact-email:hover .icon { transform: translate(2px, -2px); }
  .hero-note a:hover .icon { transform: translateX(3px); }
}
@media (prefers-reduced-motion: no-preference) {
  .learning-cycle.is-ready[data-phase="learn"] .path-learn { animation: trace-knowledge var(--duration-very-slow) var(--ease-smooth-out) both; }
  @keyframes trace-knowledge { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }
}
@media (min-width: 1500px) { .hero { padding-top: 110px; } .hero-note { margin-top: 80px; } }
@media (max-width: 1100px) {
  :root { --gutter: 32px; --section-space: 90px; }
  nav { gap: 22px; }
  .hero { padding-top: 68px; }
  .hero-layout { gap: 24px; grid-template-columns: 1.35fr 1fr; }
  h1 { font-size: clamp(48px, 5.7vw, 66px); }
  .hero-lead { font-size: 20px; }
  .hero-description { font-size: 15px; }
  .hero-actions { gap: 12px 20px; }
  .section-intro { gap: 48px; }
  .engagement-row { gap: 35px; grid-template-columns: .75fr 1.55fr .75fr; }
  .engagement-row h3 { font-size: 27px; }
  .topics-layout { gap: 54px; }
  .open-source-layout { gap: 50px; }
  .open-principles, .approach-steps { gap: 32px; }
  .contact-layout { gap: 48px; }
  .contact-email { font-size: 22px; }
}
@media (max-width: 800px) {
  :root { --gutter: 24px; --section-space: 76px; }
  .header-inner { min-height: 76px; gap: 20px; }
  .brand { gap: 12px; }
  .brand img { width: 92px; }
  .brand-labs { padding-left: 8px; }
  .brand-labs > span { font-size: 19px; }
  .brand .labs-mark { width: 42px; height: 42px; }
  .brand-reordered .brand-labs { gap: 8px; padding-left: 12px; }
  nav { gap: 19px; }
  nav > a { font-size: 12px; }
  nav > .button { padding: 11px 14px; gap: 12px; font-size: 12px; }
  .hero-layout { grid-template-columns: 1fr; gap: 30px; }
  h1 { font-size: clamp(50px, 8.5vw, 68px); }
  .hero-copy { max-width: 620px; }
  .hero-description { font-size: 16px; }
  .hero-actions { gap: 15px 27px; }
  .learning-cycle { max-width: 450px; width: 100%; justify-self: center; }
  .cycle-diagram { max-height: 270px; }
  .hero-note { margin-top: 30px; padding-block: 14px; }
  .section-intro { gap: 32px; margin-bottom: 40px; }
  .section-intro > p { font-size: 15px; }
  h2 { font-size: 36px; }
  .engagement-row { grid-template-columns: .75fr 1.6fr; gap: 28px; }
  .engagement-note { display: none; }
  .engagement-row h4 { font-size: 21px; }
  .topics-layout { grid-template-columns: 1fr; gap: 36px; }
  .topics-intro { position: relative; padding-right: 240px; }
  .topics-intro .architecture-diagram { position: absolute; right: 0; top: 10px; width: 190px; }
  .topics-intro > p { max-width: 49ch; }
  .open-source-section { padding-block: 76px 60px; }
  .open-source-layout { gap: 30px; }
  .open-source-copy h2 { font-size: 44px; }
  .open-source-copy .open-source-lead { font-size: 19px; }
  .open-source-copy p { font-size: 15px; }
  .sharing-figure figcaption { font-size: 12px; }
  .open-principles { gap: 27px; margin-top: 48px; }
  .open-principles h3 { font-size: 19px; }
  .approach-steps { gap: 26px; }
  .ai-first { gap: 32px; }
  .approach-steps h3 { font-size: 21px; }
  .approach-steps p { font-size: 14px; }
  .contact-layout { grid-template-columns: 1fr; gap: 44px; }
  .contact-form-wrap { width: 100%; }
  .contact-section { padding-block: 70px; }
  .contact-details { justify-self: start; }
  .contact-details > p:last-child { margin-top: 6px; }
  .site-footer { flex-wrap: wrap; padding-block: 32px; gap: 16px 28px; }
  .site-footer > p { order: 3; flex-basis: 100%; }
}
@media (max-width: 600px) {
  :root { --gutter: 20px; --section-space: 64px; }
  html { scroll-padding-top: 94px; }
  .header-inner { flex-wrap: wrap; gap: 0; padding-block: 14px; min-height: 76px; }
  .menu-toggle:not([hidden]) { display: block; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
  nav { width: 100%; flex-direction: column; align-items: stretch; gap: 5px; padding-top: 16px; padding-bottom: 7px; }
  .js nav:not(.is-open) { display: none; }
  nav > a { font-size: 14px; }
  nav > .button { font-size: 14px; justify-content: space-between; margin-top: 4px; }
  .hero { padding-top: 46px; }
  .hero-layout { gap: 22px; }
  h1 { font-size: clamp(38px, 10.3vw, 60px); line-height: 1.13; }
  .hero-lead { font-size: 18px; margin-top: 23px; }
  .hero-description { font-size: 15px; margin-top: 12px; line-height: 1.75; }
  .hero-actions { gap: 9px; flex-direction: column; align-items: flex-start; margin-top: 24px; }
  .hero-actions .button { gap: 25px; }
  .hero-actions .text-link { font-size: 13px; }
  .learning-cycle { max-width: 365px; padding-top: 0; }
  .cycle-diagram { max-height: 230px; }
  .cycle-controls { margin-top: 0; }
  .cycle-caption { min-height: 70px; padding-top: 13px; }
  .cycle-caption p { max-width: 33ch; margin-inline: auto; }
  .hero-note { margin-top: 8px; align-items: flex-start; gap: 3px; flex-direction: column; padding-block: 17px 13px; }
  .hero-note p { font-size: 13px; }
  .hero-note a { font-size: 13px; gap: 15px; }
  h2 { font-size: 34px; }
  .section-intro { grid-template-columns: 1fr; gap: 22px; margin-bottom: 32px; }
  .section-intro > p { padding-top: 0; max-width: 48ch; }
  .engagement-row { grid-template-columns: 1fr; gap: 22px; padding-block: 28px; }
  .engagement-row h3 { font-size: 28px; color: var(--blue); }
  .engagement-row h4 { font-size: 20px; margin-bottom: 12px; }
  .engagement-row p { font-size: 14px; }
  .topics-intro { padding-right: 0; }
  .topics-intro > p { font-size: 15px; margin-top: 21px; }
  .topics-intro .topics-note { font-size: 13px; margin-top: 15px; }
  .topics-intro .architecture-diagram { position: static; width: 190px; margin-top: 30px; }
  .topics-layout { gap: 30px; }
  summary { font-size: 19px; padding-block: 22px; }
  .topic-content { padding-right: 12px; }
  .topic-content p { font-size: 14px; }
  .topic-content ul { gap: 8px 16px; }
  .open-source-section { padding-block: 64px 48px; }
  .open-source-layout { grid-template-columns: 1fr; gap: 22px; }
  .open-source-copy h2 { font-size: 42px; }
  .open-source-copy .open-source-lead { font-size: 19px; }
  .sharing-figure { max-width: 360px; margin-inline: auto; }
  .sharing-diagram { max-height: 240px; }
  .sharing-figure figcaption { margin-top: 7px; }
  .open-principles { grid-template-columns: 1fr; gap: 26px; margin-top: 36px; padding-top: 28px; }
  .open-principles h3 { font-size: 20px; }
  .open-principles p { margin-top: 9px; max-width: 46ch; }
  .approach-steps { grid-template-columns: 1fr; gap: 27px; }
  .approach-steps li { padding-top: 25px; padding-left: 48px; }
  .step-number { position: absolute; left: 0; top: 24px; }
  .approach-steps h3 { margin-top: 3px; }
  .approach-steps p { margin-top: 12px; }
  .ai-first { grid-template-columns: 1fr; gap: 21px; margin-top: 40px; padding-top: 30px; }
  .ai-first h3 { font-size: 28px; }
  .ai-first p { font-size: 14px; }
  .ai-first .text-link { align-items: flex-start; font-size: 13px; }
  .contact-section { padding-block: 58px; }
  .contact-section h2 { font-size: clamp(30px, 8.4vw, 45px); }
  .contact-section h2 + p { font-size: 15px; margin-top: 23px; }
  .contact-layout { gap: 38px; }
  .form-grid { grid-template-columns: 1fr; gap: 20px; }
  .thanks-page h1 { font-size: 46px; }
  .contact-email { font-size: 24px; }
  .contact-details { gap: 7px; }
  .site-footer { gap: 20px; }
  .site-footer .brand { gap: 10px; }
  .site-footer .brand img { width: 78px; }
  .site-footer .brand-labs { padding-left: 7px; gap: 6px; }
  .site-footer .brand-labs > span { font-size: 16px; }
  .site-footer .brand .labs-mark { width: 34px; height: 34px; }
  .site-footer .text-link { gap: 8px; font-size: 12px; }
  .site-footer > p { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .button:hover .icon, .text-link:hover .icon, .contact-email:hover .icon, .hero-note a:hover .icon { transform: none; }
}

/* Language controls remain visible beside the brand, including with the menu closed. */
.header-inner > #site-navigation { margin-left: auto; order: 1; }
.language-switch { display: inline-flex; align-items: center; flex-shrink: 0; gap: 2px; }
.header-inner > .language-switch { order: 2; }
.language-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; min-height: 44px; padding: 10px 6px; color: var(--copy); font-size: 12px; font-weight: 600; }
.language-switch a:hover { color: var(--blue); }
.language-switch a[aria-current="true"] { color: var(--blue); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; }
.thanks-page .language-switch { float: right; }
@media (max-width: 1000px) {
  .header-inner { flex-wrap: wrap; gap: 0 12px; padding-block: 14px; min-height: 76px; }
  .header-inner > .language-switch { margin-left: auto; order: 1; }
  .menu-toggle:not([hidden]) { display: block; order: 2; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
  .header-inner > #site-navigation { order: 3; width: 100%; margin-left: 0; flex-direction: column; align-items: stretch; gap: 5px; padding-block: 16px 7px; }
  .js #site-navigation:not(.is-open) { display: none; }
  #site-navigation > a { font-size: 14px; }
  #site-navigation > .button { font-size: 14px; justify-content: space-between; margin-top: 4px; }
}
@media (max-width: 600px) {
  .header-inner { gap: 0 6px; }
  .site-header .brand { gap: 8px; }
  .site-header .brand > img { width: 76px; }
  .site-header .brand-labs { padding-left: 7px; gap: 3px; }
  .site-header .brand-labs > span { font-size: 17px; }
  .site-header .brand .labs-mark { width: 34px; height: 34px; }
  .site-header .brand-reordered .hgm-logo { width: 76px; }
  .site-header .brand-reordered .brand-labs { gap: 6px; padding-left: 8px; }
  .thanks-page h1 { font-size: clamp(36px, 10vw, 46px); }
}
@media (max-width: 380px) {
  .header-inner { column-gap: 4px; }
  .site-header .brand > img { width: 60px; }
  .site-header .brand { gap: 6px; }
  .site-header .brand-labs > span { font-size: 15px; }
  .site-header .brand .labs-mark { width: 28px; height: 28px; }
  .site-header .brand-reordered .hgm-logo { width: 60px; }
  .site-header .brand-reordered .brand-labs { gap: 5px; padding-left: 6px; }
  .language-switch a { min-width: 32px; padding-inline: 5px; }
  .thanks-page main > .brand { flex-wrap: wrap; max-width: 180px; }
}
