/* Match Home's visual language while retaining the work.css page layout. */
:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --text: #f5f5f5;
  --muted: #8a8a8a;
  --stroke: rgba(255, 255, 255, 0.11);
  --accent-a: #89aacc;
  --accent-b: #4e85bf;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Instrument Serif", Georgia, serif;
  --line: var(--stroke);
  --accent: var(--accent-a);
  --font: var(--font-body);
  --display: var(--font-display);
}

::selection {
  background: rgba(137, 170, 204, 0.3);
  color: var(--text);
}

/* Carry Home's cosmic atmosphere into the service page. */
body {
  background:
    radial-gradient(ellipse 70% 17% at 100% 30%, rgba(78, 133, 191, 0.07), transparent),
    radial-gradient(ellipse 65% 15% at 0% 56%, rgba(137, 170, 204, 0.045), transparent),
    var(--bg);
}

.hero {
  isolation: isolate;
}
.hero-atmosphere,
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  left: calc(50% - 50vw);
  width: 100vw;
  pointer-events: none;
}
.hero-atmosphere,
.hero::before {
  top: 0;
  bottom: -180px;
  mask-image: linear-gradient(#000 48%, rgba(0, 0, 0, 0.7) 66%, transparent 100%);
}
.hero-atmosphere {
  z-index: -3;
  overflow: hidden;
}
.hero-atmosphere::before,
.hero-atmosphere video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-atmosphere::before {
  content: "";
  background: url("../assets/cosmos-poster.webp") center 25% / cover no-repeat;
}
.hero-atmosphere video {
  display: block;
  object-fit: cover;
  object-position: center 25%;
  opacity: 0;
  transition: opacity 1.5s ease;
}
.hero-atmosphere.is-playing video {
  opacity: 1;
}
.hero::before {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.94), rgba(10, 10, 10, 0.58) 42%, rgba(10, 10, 10, 0.12) 75%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.12), transparent 40%, rgba(10, 10, 10, 0.9) 80%);
}
.hero::after {
  top: 100px;
  bottom: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(137, 170, 204, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(137, 170, 204, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 48% 55% at 74% 42%, #000, transparent);
}

.contact-section {
  position: relative;
  isolation: isolate;
}
.contact-section::before {
  content: "";
  position: absolute;
  inset: -50px calc(50% - 50vw) -40px;
  z-index: -1;
  background:
    radial-gradient(ellipse at 75% 45%, rgba(78, 133, 191, 0.12), transparent 58%),
    radial-gradient(ellipse at 8% 65%, rgba(137, 170, 204, 0.05), transparent 48%);
  mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
  pointer-events: none;
}

@media (max-width: 800px) {
  .hero::before {
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.5), rgba(10, 10, 10, 0.74) 42%, rgba(10, 10, 10, 0.95) 90%);
  }
  .hero-atmosphere::before {
    background-position: 62% top;
    background-size: auto 85%;
  }
  .hero-atmosphere video {
    object-position: 62% top;
  }
  .hero::after {
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 75% 45% at 65% 63%, #000, transparent);
  }
}

.navigation {
  background: rgba(20, 20, 20, 0.78);
  border-color: var(--stroke);
  backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 8px 32px rgba(0, 0, 0, 0.16);
}
.header.scrolled .navigation {
  background: rgba(20, 20, 20, 0.92);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}
.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  padding: 2px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
  transition: transform 180ms ease;
}
.brand-mark:hover { transform: scale(1.08); }
.brand-mark span {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: inherit;
  background: var(--bg);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-style: italic;
}
.brand-dot {
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
  background-clip: text;
  color: transparent;
}
.nav-links,
.language-switch button {
  color: var(--muted);
}
.nav-links a:is(:hover, :focus-visible) {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}
.language-switch button:is(:hover, :focus-visible) {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}
.language-switch button[aria-pressed="true"] {
  color: #d8e7f3;
  background: rgba(137, 170, 204, 0.14);
  box-shadow: inset 0 0 0 1px rgba(185, 210, 230, 0.1);
}
.nav-cta {
  background: rgba(185, 210, 230, 0.13);
  color: #d8e7f3;
}
.nav-cta:hover {
  background: rgba(185, 210, 230, 0.22);
}

h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.025em;
}
h1 em {
  color: var(--text);
  letter-spacing: -0.045em;
}
h2 {
  font-weight: 650;
}
h2 em,
.contact-copy h2 em,
.faq-heading h2,
.message-panel h2 {
  color: var(--text);
}
.eyebrow {
  font-weight: 700;
  letter-spacing: 0.22em;
}
.hero-description {
  color: var(--muted);
}
.signal {
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
  box-shadow: 0 0 8px rgba(137, 170, 204, 0.35);
}

.button {
  border-radius: 999px;
  transition: transform 180ms ease, color 180ms ease, background 180ms ease, border-color 180ms ease;
}
.button-light {
  background: var(--text);
  color: var(--bg);
}
.button-light:hover {
  background: var(--text);
  border-color: rgba(137, 170, 204, 0.8);
}
.button-outline {
  border-color: var(--stroke);
  background: rgba(10, 10, 10, 0.62);
}
.button-outline:hover {
  border-color: rgba(137, 170, 204, 0.8);
  background: var(--surface);
}
.quiet-link,
.hero-note,
.hero-bottom,
.scene-coordinate,
.scene-label,
.window-bar,
.window-caption,
.mini-bar,
.step-number,
.step-footnote,
.agreement-note p,
.personal-note div > span,
.direct-contact small,
.contact-arrow,
.field-hint,
.optional,
.form-note,
.optional-details summary,
.footer > span,
.footer > div,
.message-intro {
  color: var(--muted);
}
.quiet-link:hover,
.hero-bottom a:hover,
.footer a:hover {
  color: var(--text);
}

.hero-scene::before {
  background: radial-gradient(ellipse at 60% 45%, rgba(137, 170, 204, 0.2), transparent 65%);
}
.scene-orbit,
.scene-orbit::before {
  border-color: rgba(137, 170, 204, 0.16);
}
.scene-orbit {
  box-shadow: 0 0 50px rgba(137, 170, 204, 0.035), inset 0 0 40px rgba(137, 170, 204, 0.025);
}
.scene-orbit::after {
  content: "";
  position: absolute;
  top: 14%;
  right: 12%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-a);
  box-shadow: 0 0 12px rgba(137, 170, 204, 0.65);
}

@keyframes cosmic-drift {
  from { transform: scale(1.02) translate(0, 0); }
  to { transform: scale(1.1) translate(-1%, 1%); }
}
@keyframes orbit-turn {
  from { transform: rotate(-12deg); }
  to { transform: rotate(348deg); }
}
@keyframes atmosphere-breathe {
  from { opacity: 0.55; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-atmosphere::before {
    animation: cosmic-drift 24s ease-in-out infinite alternate;
  }
  .scene-orbit {
    animation: orbit-turn 70s linear infinite;
  }
  .hero-scene::before,
  .hero::after,
  .contact-section::before {
    animation: atmosphere-breathe 7s ease-in-out infinite alternate;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-atmosphere video {
    display: none;
  }
}
.product-window,
.case-visual,
.releases-strip,
.agreement-note,
.brief-form,
.message-dialog {
  border-color: var(--stroke);
  background: var(--surface);
}
.product-window,
.case-visual,
.releases-strip,
.agreement-note,
.contact-icon,
.field input,
.field textarea,
.message-preview {
  border-radius: 8px;
}
.product-window {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}
.window-bar,
.tiny-tag,
.circle-link,
.contact-icon,
.close-dialog {
  border-color: var(--stroke);
}
.case-visual::after {
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
}
.case-tabs {
  border-color: var(--stroke);
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.78);
}
.case-tabs button {
  border-radius: 999px;
  color: var(--muted);
}
.case-tabs button[aria-pressed="true"] {
  background: var(--text);
  color: var(--bg);
}
.capability-list > a,
.visual-caption,
.release-links,
.field label,
.faq-list summary {
  color: rgba(255, 255, 255, 0.78);
}
.capability-symbol,
.capability-arrow,
.circle-link,
.contact-icon,
.faq-list summary > span:last-child,
.optional-details summary > span:last-child {
  color: var(--muted);
}
.circle-link:hover {
  background: var(--text);
  border-color: var(--accent-a);
  color: var(--bg);
}
.avatar-mark {
  border-color: var(--accent-a);
  background: var(--bg);
  color: var(--text);
}
.type-options label > span {
  border-radius: 999px;
  border-color: var(--stroke);
  color: var(--muted);
}
.type-options input:checked + span {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}
.type-options label:hover > span {
  border-color: rgba(137, 170, 204, 0.8);
}
.field input,
.field textarea,
.message-preview {
  border-color: var(--stroke);
  background: rgba(10, 10, 10, 0.62);
  color: var(--text);
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
}
.field input:focus,
.field textarea:focus {
  border-color: var(--accent-a);
  outline-color: rgba(137, 170, 204, 0.35);
}
.message-dialog {
  background: rgba(12, 12, 12, 0.96);
  border-color: rgba(137, 170, 204, 0.42);
}
.message-dialog::backdrop {
  background: rgba(0, 0, 0, 0.84);
  backdrop-filter: blur(12px);
}

/* Lucide service icons share one optical size and stroke treatment. */
.circle-link,
.close-dialog {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}
.circle-link .icon { --icon-size: 22px; }
.close-dialog .icon { --icon-size: 16px; }
.nav-cta .icon,
.contact-arrow .icon { --icon-size: 14px; }
.quiet-link .icon,
.hero-bottom .icon,
.window-marker .icon,
.release-links .icon,
.section-index .icon { --icon-size: 12px; }
.section-index .icon { margin-inline: 4px; }
.label-cross .icon,
.form-mark .icon { --icon-size: 20px; }
.note-symbol .icon { --icon-size: 24px; }
.contact-arrow,
.label-cross,
.window-marker,
.form-mark,
.note-symbol,
.disclosure-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}
.footer > div a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.release-links a {
  align-items: center;
}
.button .icon,
.nav-cta .icon,
.contact-icon .icon {
  display: block;
}
.capability-symbol,
.capability-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 1.5em;
  transition: color 180ms ease;
}
.capability-symbol {
  width: 20px;
}
.capability-arrow {
  width: 12px;
}
.capability-symbol svg,
.capability-arrow svg {
  display: block;
  flex-shrink: 0;
}
.capability-list > a:is(:hover, :focus-visible) .capability-symbol {
  color: var(--accent-a);
}
.capability-list > a:is(:hover, :focus-visible) .capability-arrow {
  color: var(--text);
}
