/* Cyrinex main stylesheet. Mobile-first; tokens follow the ui-ux-pro-max "Cyrinex" design system.
   Typography uses the system UI font in heavy weights, like cyrinex.com (Segoe UI on Windows, SF Pro on Apple, Roboto on Android). */

:root {
  --color-primary: #0f172a;
  --color-secondary: #334155;
  --color-accent: #0369a1;
  --color-accent-hover: #075985;
  --color-accent-soft: #e0f2fe;
  --color-accent-light: #7dd3fc;
  --color-highlight: #38bdf8;
  --color-background: #f8fafc;
  --color-foreground: #020617;
  --color-muted: #e8ecf1;
  --color-muted-foreground: #475569;
  --color-border: #e2e8f0;
  --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #0c4a6e 100%);
  --radius: 12px;
  --shadow: 0 1px 2px rgb(15 23 42 / 0.06), 0 12px 32px rgb(15 23 42 / 0.08);
  --header-height: 72px;
  --safe-top: env(safe-area-inset-top, 0px);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + var(--safe-top)); -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { margin: 0; font: 600 1rem/1.7 var(--font); color: var(--color-foreground); background: var(--color-background); }
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0 0 0.5em; line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; font-weight: 800; }
h1 { font-size: clamp(2.25rem, 4vw + 1rem, 3.75rem); }
h2 { font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem); }
h3 { font-size: 1.125rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--color-accent); }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; border-radius: 4px; }
/* Controls respond on tap without delay and don't select their label on long-press */
button, summary, .button, .site-nav a { touch-action: manipulation; -webkit-user-select: none; user-select: none; }
/* Reduced motion keeps colour and opacity fades but drops movement */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-property: color, background-color, border-color, opacity, box-shadow !important; }
}

/* Layout helpers (the container also keeps content clear of a landscape notch) */
.container { width: min(100% - 2.5rem - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px), 1200px); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--muted { background: var(--color-muted); }
.section__header { max-width: 680px; margin-bottom: 3rem; }
.section__header p:last-child { font-size: 1.125rem; color: var(--color-muted-foreground); }
.section__lead { font-size: 1.125rem; color: var(--color-muted-foreground); }
.grid, .split { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .grid--2, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1.3fr 1fr; gap: 4rem; }
  .split--center { align-items: center; }
  .split--intro { grid-template-columns: 1fr 1.6fr; }
}
@media (min-width: 1100px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }
.skip-link { position: absolute; top: -100px; left: 1rem; z-index: 100; padding: 0.75rem 1rem; border-radius: var(--radius); background: var(--color-primary); color: #fff; }
.skip-link:focus { top: 1rem; }
/* Small section label: line, dot, text */
.eyebrow { display: flex; align-items: center; gap: 0.625rem; margin-bottom: 1rem; font-size: 0.875rem; font-weight: 600; color: var(--color-muted-foreground); }
.eyebrow::before { content: ""; flex: none; order: -2; width: 2.5rem; height: 1px; background: currentColor; opacity: 0.5; }
.eyebrow::after { content: ""; flex: none; order: -1; width: 7px; height: 7px; border-radius: 50%; background: var(--color-highlight); }
/* Highlighted words in headings (*word* in the translations): an underline that draws in on reveal */
mark { padding-bottom: 0.05em; color: inherit; background: linear-gradient(var(--color-highlight), var(--color-highlight)) left 100% / 100% 0.14em no-repeat; transition: background-size 0.6s 0.2s var(--ease-out); }
.motion-ready [data-reveal]:not(.is-revealed) mark { background-size: 0 0.14em; }
.statement { font-size: clamp(1.375rem, 1vw + 1rem, 1.75rem); font-weight: 700; line-height: 1.4; letter-spacing: -0.01em; color: var(--color-foreground); }
.prose { max-width: 720px; color: var(--color-secondary); }
.prose h2 { margin-top: 2rem; font-size: 1.375rem; color: var(--color-foreground); }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 48px; padding: 0.75rem 1.5rem; border: 1px solid transparent; border-radius: 999px; background: none; font: 600 1rem/1 var(--font); text-decoration: none; cursor: pointer; transition: background-color 0.2s, border-color 0.2s, transform 160ms var(--ease-out); }
.button:active, .chat__toggle:active { transform: scale(0.97); }
.button:disabled { opacity: 0.6; cursor: progress; }
.button--accent { background: var(--color-accent); color: #fff; }
.button--ghost { border-color: rgb(255 255 255 / 0.4); color: #fff; }

/* Header and navigation */
.site-header { position: sticky; top: 0; z-index: 50; padding-top: var(--safe-top); border-bottom: 1px solid var(--color-border); background: rgb(255 255 255 / 0.92); backdrop-filter: blur(12px); transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s; }
.site-header.is-scrolled { box-shadow: 0 4px 20px rgb(15 23 42 / 0.08); }
.nav-open .site-header { background: #fff; }
/* Home: the header floats transparently over the full-screen video until the page is scrolled */
[data-page="home"] .site-header { position: fixed; inset: 0 0 auto; }
[data-page="home"]:not(.nav-open) .site-header:not(.is-scrolled) { border-color: transparent; background: transparent; backdrop-filter: none; }
[data-page="home"]:not(.nav-open) .site-header:not(.is-scrolled) :is(.brand, .site-nav > a:not(.button), .dropdown > summary) { color: #fff; }
[data-page="home"]:not(.nav-open) .site-header:not(.is-scrolled) .brand img { filter: invert(1); }
[data-page="home"]:not(.nav-open) .site-header:not(.is-scrolled) .nav-toggle span,
[data-page="home"]:not(.nav-open) .site-header:not(.is-scrolled) .nav-toggle span::before,
[data-page="home"]:not(.nav-open) .site-header:not(.is-scrolled) .nav-toggle span::after { background: #fff; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-height); }
.brand { display: inline-flex; align-items: center; gap: 0.625rem; font-size: 1.25rem; font-weight: 800; color: var(--color-primary); text-decoration: none; }
.nav-toggle { display: grid; place-items: center; width: 48px; height: 48px; border: 0; background: none; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 22px; height: 2px; background: var(--color-primary); transition: transform 0.2s; }
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }
.site-nav { display: none; position: absolute; inset: calc(var(--header-height) + var(--safe-top)) 0 auto; flex-direction: column; gap: 0.25rem; max-height: calc(100dvh - var(--header-height) - var(--safe-top)); padding: 1rem 1.25rem 1.5rem; overflow-y: auto; overscroll-behavior: contain; border-bottom: 1px solid var(--color-border); background: #fff; box-shadow: var(--shadow); }
.nav-open .site-nav { display: flex; }
.site-nav > a:not(.button), .dropdown summary, .dropdown a { display: flex; align-items: center; justify-content: space-between; gap: 0.375rem; min-height: 44px; padding: 0.5rem 0.75rem; border-radius: 8px; font-weight: 600; color: var(--color-secondary); text-decoration: none; cursor: pointer; }
.site-nav a[aria-current="page"] { color: var(--color-accent); text-decoration: underline 2px var(--color-highlight); text-underline-offset: 8px; }
.dropdown summary { list-style: none; }
.dropdown summary::-webkit-details-marker { display: none; }
.dropdown summary::after { content: ""; width: 7px; height: 7px; margin: 0 0.25rem 0.25rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform 0.2s; }
.dropdown[open] summary::after { transform: translateY(0.25rem) rotate(225deg); }
.dropdown ul { margin: 0; padding: 0 0 0 0.75rem; list-style: none; }
@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; position: static; flex-direction: row; align-items: center; max-height: none; padding: 0; overflow: visible; border: 0; background: none; box-shadow: none; }
  .dropdown { position: relative; }
  .dropdown ul { position: absolute; top: calc(100% + 0.5rem); left: 0; min-width: 260px; padding: 0.5rem; border: 1px solid var(--color-border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
  .dropdown--end ul { left: auto; right: 0; min-width: 180px; }
}

/* Hero and page header */
.hero, .page-header { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--gradient-dark); }
.hero { display: grid; align-items: center; min-height: 100vh; min-height: 100svh; padding: calc(var(--header-height) + var(--safe-top) + 3rem) 0 5rem; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(15 23 42 / 0.92), rgb(15 23 42 / 0.65) 55%, rgb(15 23 42 / 0.3)); }
.hero__video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero__content > * { max-width: 720px; }
.hero__lead, .page-header p:last-child { font-size: clamp(1.0625rem, 0.5vw + 1rem, 1.25rem); color: rgb(255 255 255 / 0.85); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero__credit { position: absolute; right: 1.25rem; bottom: 1rem; margin: 0; font-size: 0.75rem; color: rgb(255 255 255 / 0.55); }
.hero .eyebrow, .page-header .eyebrow { color: var(--color-accent-light); }
.page-header { display: grid; align-items: center; min-height: clamp(320px, 42vh, 460px); padding: clamp(3rem, 7vw, 5rem) 0; }
.page-header p:last-child { max-width: 680px; margin: 0; }
.page-header .container > * { max-width: 760px; }
/* Animated SVG or video behind the heading, darkened on the left where the text sits */
.page-header__visual { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.page-header::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(15 23 42 / 0.9), rgb(15 23 42 / 0.55) 55%, rgb(15 23 42 / 0.15)); }

/* Cards, lists and process */
.card { display: flex; flex-direction: column; padding: clamp(1.5rem, 3vw, 2rem); border: 1px solid var(--color-border); border-radius: var(--radius); background: #fff; color: inherit; text-decoration: none; }
.card p { color: var(--color-muted-foreground); }
a.card { transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease-out); }
.card__icon { padding: 12px; margin-bottom: 1.25rem; border-radius: 10px; background: var(--color-accent-soft); }
.card__title { font-size: 1.25rem; }
.card__more { display: inline-flex; align-items: center; gap: 0.375rem; margin-top: auto; font-weight: 600; color: var(--color-accent); text-decoration: none; }
.process__number { margin-bottom: 0.75rem; font-size: 0.875rem; font-weight: 800; color: var(--color-accent); }
.illustration { width: 100%; height: auto; border-radius: 20px; box-shadow: var(--shadow); }

/* Process timeline: a rail with a dot per step; zigzag on wide screens */
.timeline { position: relative; }
.timeline__track { position: absolute; top: 0; bottom: 0; left: 15px; width: 2px; background: var(--color-border); }
.timeline__progress { display: block; height: 100%; background: var(--color-accent); transform-origin: top; }
.process { display: grid; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.process > li { position: relative; margin-left: 40px; }
.process > li::before { content: ""; position: absolute; top: 2rem; left: -32px; width: 16px; height: 16px; border: 3px solid var(--color-accent); border-radius: 50%; background: #fff; transition: background-color 0.25s, border-color 0.25s, transform 0.25s var(--ease-out); }
.timeline--animated .process > li:not(.is-active)::before { border-color: var(--color-border); }
.process > li.is-active::before { background: var(--color-accent); transform: scale(1.2); }
.process__image { width: 100%; max-width: 240px; height: auto; margin-bottom: 1rem; }
@media (min-width: 900px) {
  .timeline__track { left: calc(50% - 1px); }
  .process > li { display: grid; grid-template-columns: 150px 1fr; align-content: start; column-gap: 1.25rem; width: calc(50% - 40px); margin: 0; }
  .process > li + li { margin-top: -5rem; }
  .process > li:nth-child(even) { margin-left: auto; }
  .process > li:nth-child(odd)::before { left: auto; right: -48px; }
  .process > li:nth-child(even)::before { left: -48px; }
  .process__image { grid-row: span 4; margin: 0; }
}

/* Numbered approach steps on service pages */
.steps { display: grid; gap: 2rem; margin: 0; padding: 0; list-style: none; }
.steps li { position: relative; }
.steps p { color: var(--color-muted-foreground); }
.steps__number, .feature-list__number { display: block; font-size: 3.5rem; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--color-accent); }
.steps__number { margin-bottom: 1rem; }

/* Capabilities as numbered rows; the heading stays in view while the list scrolls */
.feature-list { margin: 0; padding: 0; list-style: none; }
.feature-list li { position: relative; display: grid; grid-template-columns: 5rem 1fr; padding: 1.75rem 0; }
.feature-list li:first-child { padding-top: 0; }
.feature-list__number { grid-row: span 2; font-size: 2.75rem; transition: color 0.4s var(--ease-out); }
.feature-list h3 { margin-bottom: 0.375rem; font-size: 1.25rem; }
.feature-list p { margin: 0; color: var(--color-muted-foreground); }
/* Row divider that draws in from the left when the row is revealed */
.feature-list li::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 1px; background: #cbd5e1; transform-origin: left; transition: transform 0.7s 0.1s var(--ease-out); }
.motion-ready .feature-list li:not(.is-revealed)::after { transform: scaleX(0); }

/* Capabilities timeline: a rail on the left with a dot per row; the number fills when the line reaches it */
.timeline--rows { padding-left: 2rem; }
.timeline--rows .timeline__track { left: 5px; }
.timeline--rows .feature-list li::before { content: ""; position: absolute; top: calc(1.75rem + 0.9rem); left: -2rem; width: 12px; height: 12px; border: 2px solid var(--color-accent); border-radius: 50%; background: var(--color-muted); transition: background-color 0.25s, border-color 0.25s, transform 0.25s var(--ease-out); }
.timeline--rows .feature-list li:first-child::before { top: 0.9rem; }
.timeline--animated .feature-list li:not(.is-active)::before { border-color: #cbd5e1; }
.timeline--rows .feature-list li.is-active::before { background: var(--color-accent); transform: scale(1.2); }
.timeline--rows .feature-list li.is-active .feature-list__number { color: var(--color-accent); }
@media (min-width: 900px) {
  .split--sticky { grid-template-columns: 1fr 1.7fr; }
  .split--sticky > header { position: sticky; top: calc(var(--header-height) + 2rem); }
}

/* Typographic columns (applications, technologies, production line) */
.columns { display: grid; gap: 2.5rem 3rem; }
@media (min-width: 640px) { .columns { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .columns { grid-template-columns: repeat(3, 1fr); } }
.columns h3 { margin-bottom: 0.5rem; padding-bottom: 0.75rem; border-bottom: 2px solid var(--color-foreground); font-size: 1.125rem; }
.columns ul { margin: 0; padding: 0; list-style: none; }
.columns li { padding: 0.625rem 0; border-bottom: 1px solid var(--color-border); color: var(--color-secondary); }
.checklist--large li { font-size: 1.125rem; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps li:not(:last-child)::after { content: ""; position: absolute; top: 1.75rem; left: 5.5rem; right: 0; height: 1px; background: linear-gradient(90deg, var(--color-accent), transparent); transform-origin: left; transition: transform 0.7s 0.3s var(--ease-out); }
  .motion-ready .steps li:not(.is-revealed)::after { transform: scaleX(0); }
}
.tags { display: flex; flex-wrap: wrap; gap: 0.375rem; margin: 0; padding: 0; list-style: none; }
.process .tags { margin-top: auto; }
.card--accent { border-top: 3px solid var(--color-accent); }
.legal { counter-reset: legal; }
.legal section { margin-bottom: 2.5rem; counter-increment: legal; }
.legal h2::before { content: counter(legal) ". "; color: var(--color-accent); }
.legal ul { margin: 0 0 1em; padding-left: 1.25rem; }
.legal li { margin-bottom: 0.375rem; }
.tags li { padding: 0.25rem 0.625rem; border-radius: 999px; background: var(--color-muted); font-size: 0.8125rem; color: var(--color-secondary); }
.checklist, .link-list, .contact-list { display: grid; gap: 0.875rem; margin: 0; padding: 0; list-style: none; }
.checklist li, .contact-list li { display: flex; align-items: flex-start; gap: 0.75rem; font-weight: 500; }
.checklist li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 0.15rem; background: url("../icons/check.svg") center / contain no-repeat; }
.contact-list img { flex: none; margin-top: 0.15rem; }
.link-arrow::after { content: "→"; transition: transform 0.2s var(--ease-out); }
.contact-list a { color: inherit; }

/* Call to action: one large statement before the footer */
.cta { padding: clamp(4rem, 10vw, 7rem) 0; border-top: 1px solid var(--color-border); background: #fff; }
.cta__title { margin-bottom: 1.25rem; font-size: clamp(2.75rem, 6vw + 1rem, 5.5rem); letter-spacing: -0.035em; }
.cta__lead { max-width: 640px; margin-bottom: 2rem; font-size: 1.125rem; color: var(--color-muted-foreground); }

/* Contact form */
.form { display: flex; flex-direction: column; gap: 1.25rem; }
.field { display: grid; gap: 0.375rem; font-size: 0.9375rem; font-weight: 600; }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 0.75rem 1rem; border: 1px solid #cbd5e1; border-radius: 10px; font: 400 1rem/1.5 var(--font); color: inherit; background: #fff; }
.field textarea { resize: vertical; }
.form .button { align-self: flex-start; }
.form__honeypot { position: absolute; left: -9999px; }
.form__note { margin: 0; font-size: 0.875rem; }
.form__status { margin: 0; padding: 0.75rem 1rem; border-radius: 10px; font-weight: 600; background: var(--color-muted); }
.form__status:empty { display: none; }
.form__status[data-status="sent"] { background: #dcfce7; color: #15803d; }
.form__status:is([data-status="invalid"], [data-status="limited"], [data-status="failed"]) { background: #fee2e2; color: #b91c1c; }

/* Footer */
.site-footer { padding: 3.5rem 0 6rem; background: url("../images/footer-circuit.svg") right center / cover no-repeat, linear-gradient(115deg, #0c4a6e 0%, var(--color-accent) 55%, #0284c7 100%); color: #fff; font-size: 0.9375rem; font-weight: 600; line-height: 1.6; }
@media (max-width: 899px) { .site-footer { background-image: linear-gradient(rgb(3 105 161 / 0.55), rgb(3 105 161 / 0.55)), url("../images/footer-circuit.svg"), linear-gradient(115deg, #0c4a6e, var(--color-accent)); background-size: auto, cover, auto; background-position: center, right center, center; background-repeat: no-repeat; } }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer .brand { margin-bottom: 2rem; color: #fff; }
.site-footer .brand img { filter: brightness(0) invert(1); }
.footer__grid { display: grid; gap: 1.5rem 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.footer__grid p { margin: 0; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / 0.25); font-size: 0.8125rem; font-weight: 500; color: rgb(255 255 255 / 0.8); }
.footer__bottom p { margin: 0; }
.footer__bottom a + a { margin-left: 1.5rem; }

/* Cookie consent banner (shown until the visitor accepts or rejects) */
.cookie-banner { position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); left: calc(1rem + env(safe-area-inset-left, 0px)); z-index: 100; max-width: 420px; padding: 1.25rem; border: 1px solid #1e293b; border-radius: 14px; background: var(--color-primary); color: #cbd5e1; font-size: 0.875rem; line-height: 1.55; box-shadow: 0 16px 40px rgb(2 6 23 / 0.35); opacity: 0; transform: translateY(12px); transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out); }
.cookie-banner.is-visible { opacity: 1; transform: none; }
.cookie-banner h2 { margin-bottom: 0.5rem; font-size: 1rem; color: #fff; }
.cookie-banner a { color: var(--color-accent-light); }
.cookie-banner__actions { display: flex; gap: 0.625rem; margin-top: 1rem; }
.cookie-banner .button { flex: 1; min-height: 44px; padding: 0.625rem 1rem; font-size: 0.875rem; }
.cookie-banner .button--ghost { border-color: #334155; color: #cbd5e1; }

/* Floating contact window (bottom right) */
.chat { position: fixed; right: calc(1.25rem + env(safe-area-inset-right, 0px)); bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); z-index: 90; }
.chat__toggle { display: grid; place-items: center; width: 60px; height: 60px; border: 0; border-radius: 50%; background: var(--color-accent); box-shadow: 0 10px 30px rgb(3 105 161 / 0.4); cursor: pointer; transition: background-color 0.2s, transform 160ms var(--ease-out); }
.chat__toggle img { filter: brightness(0) invert(1); }
.chat__panel { position: absolute; right: 0; bottom: calc(100% + 0.75rem); width: min(360px, 100vw - 2.5rem); max-height: calc(100dvh - 7rem); padding: 1.5rem; overflow-y: auto; overscroll-behavior: contain; border-radius: 16px; background: #fff; box-shadow: 0 24px 60px rgb(15 23 42 / 0.25); transform-origin: bottom right; }
.chat__close { position: absolute; top: 0.5rem; right: 0.5rem; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; font-size: 1.5rem; color: var(--color-muted-foreground); cursor: pointer; }
.chat .form { gap: 0.875rem; }
.chat .form .button { align-self: stretch; }

/* Hover styles only for precise pointers; on touch they would stick after a tap */
@media (hover: hover) and (pointer: fine) {
  .button--accent:hover { background: var(--color-accent-hover); }
  .button--ghost:hover { background: rgb(255 255 255 / 0.1); }
  .site-nav a:hover, .dropdown summary:hover { background: var(--color-muted); color: var(--color-accent); }
  [data-page="home"]:not(.nav-open) .site-header:not(.is-scrolled) :is(.site-nav > a, .dropdown > summary):hover { background: rgb(255 255 255 / 0.12); color: #fff; }
  a.card:hover { border-color: var(--color-accent); box-shadow: var(--shadow); transform: translateY(-2px); }
  .link-arrow:hover::after, a:hover .link-arrow::after { transform: translateX(3px); }
  .site-footer a:hover { text-decoration: underline; }
  .chat__toggle:hover { background: var(--color-accent-hover); }
  .chat__close:hover { background: var(--color-muted); }
}
