:root {
  --bg: #050607;
  --bg-soft: #0b0d0e;
  --panel: #101214;
  --fg: #efefef;
  --muted: #aeb5b4;
  --dim: #747d7b;
  --line: rgba(181, 199, 195, 0.16);
  --accent: #9fc7dc;
  --display-font: 'Mares Display', 'Eurostile Extended Black', 'Eurostyle Extended Black', 'Arial Black', 'Trebuchet MS', sans-serif;
  --body-font: Baskerville, 'Baskerville Old Face', 'Times New Roman', serif;
  --ui-font: 'Segoe UI', Arial, Helvetica, sans-serif;
}

@font-face {
  font-family: 'Mares Display';
  src: url('fonts/eurostile-extended-black.woff2') format('woff2');
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color-scheme: dark;
  overflow-x: clip;
}

.home-document {
  scrollbar-width: none;
}

.home-document::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body {
  margin: 0;
  min-width: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body-font);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

p,
h1,
h2,
h3,
figure {
  margin-top: 0;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--fg);
  color: var(--bg);
  font-family: var(--ui-font);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Company home: the opening viewport intentionally preserves the original composition. */

.home {
  background: var(--bg);
}

.home-hero {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
  margin: 0 auto;
  padding: 48px 24px;
  background:
    radial-gradient(ellipse 92% 32% at 50% 53%, rgba(20, 48, 72, 0.075), rgba(12, 30, 48, 0.035) 45%, rgba(5, 6, 7, 0) 78%),
    radial-gradient(ellipse 130% 92% at 50% 48%, #18191a 0%, #101112 46%, var(--bg) 100%);
  text-align: center;
}

.logo-field {
  position: relative;
  isolation: isolate;
  display: inline-grid;
  place-items: center;
  width: min(100%, 1680px);
}

.logo-field::before,
.logo-field::after {
  position: absolute;
  z-index: -2;
  content: '';
  pointer-events: none;
}

.logo-field::before {
  width: 128%;
  height: 150%;
  background: radial-gradient(ellipse at center, rgba(76, 144, 198, 0.045), rgba(28, 72, 108, 0.026) 42%, rgba(5, 6, 7, 0) 78%);
  filter: blur(48px);
}

.logo-field::after {
  width: 145%;
  height: 210%;
  background: radial-gradient(ellipse at center, rgba(18, 58, 90, 0.035), rgba(5, 6, 7, 0) 74%);
  filter: blur(76px);
}

.brand-logo,
.brand {
  position: relative;
  font-family: var(--display-font);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  background: linear-gradient(180deg, #beddea 0%, #a9cada 26%, #88b0c5 58%, #5f86a5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0.0048em rgba(151, 208, 236, 0.38);
  filter:
    drop-shadow(0 0 0.012em rgba(194, 230, 247, 0.2))
    drop-shadow(0 0 0.05em rgba(105, 178, 226, 0.13));
}

.brand-logo {
  margin: 0;
  font-size: clamp(1rem, 4.8vw, 6.05rem);
  letter-spacing: clamp(0.012em, 0.22vw, 0.044em);
  font-stretch: expanded;
  filter:
    drop-shadow(0 0 0.012em rgba(194, 230, 247, 0.2))
    drop-shadow(0 0 0.05em rgba(105, 178, 226, 0.13))
    drop-shadow(0 0 0.15em rgba(45, 112, 174, 0.09));
  text-shadow:
    0 0.006em 0 rgba(24, 55, 82, 0.22),
    0 0 0.035em rgba(110, 184, 226, 0.12);
}

.brand-logo::before,
.brand::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: attr(data-text);
  pointer-events: none;
  color: rgba(98, 176, 230, 0.08);
  -webkit-text-fill-color: rgba(98, 176, 230, 0.08);
  filter: blur(0.055em);
}

.brand-logo::before {
  -webkit-text-stroke: 0.007em rgba(78, 158, 220, 0.045);
  text-shadow:
    0 0 0.16em rgba(96, 177, 230, 0.08),
    0 0 0.52em rgba(52, 124, 188, 0.055);
}

.home-work {
  width: min(100% - 48px, 1180px);
  min-height: 72vh;
  margin: 0 auto;
  padding: 104px 0 56px;
}

.home-work-heading,
.eyebrow,
.section-kicker,
.instrument-label,
.status-note {
  font-family: var(--ui-font);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-work-heading {
  margin-bottom: 32px;
  color: var(--dim);
}

.project-list {
  border-bottom: 1px solid var(--line);
}

.project-link {
  display: grid;
  grid-template-columns: minmax(150px, 0.55fr) minmax(0, 1fr) auto;
  gap: 32px;
  align-items: baseline;
  min-height: 108px;
  border-top: 1px solid var(--line);
  padding: 30px 4px;
  text-decoration: none;
}

.project-name {
  font-size: clamp(1.7rem, 4vw, 3.4rem);
  line-height: 1;
}

.project-description {
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
}

.project-arrow {
  color: var(--dim);
  font-family: var(--ui-font);
}

.project-link:hover .project-name,
.project-link:focus-visible .project-name,
.project-link:hover .project-arrow,
.project-link:focus-visible .project-arrow {
  color: var(--accent);
}

.home-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 72px;
  color: var(--dim);
  font-family: var(--ui-font);
  font-size: 0.78rem;
}

/* Shared product shell. */

.product-page {
  background:
    radial-gradient(ellipse 70% 34% at 76% 0%, rgba(65, 93, 106, 0.09), transparent 68%),
    linear-gradient(180deg, #090b0c 0%, var(--bg) 42%, #070808 100%);
}

.site-header,
.site-footer,
.product-main,
main:not(.home-main) {
  width: min(100% - 40px, 1180px);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 86px;
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.brand-link {
  text-decoration: none;
}

.brand {
  display: inline-block;
  font-size: 0.66rem;
  letter-spacing: 0.11em;
}

.global-nav,
.nav-links,
.language-switcher,
.header-actions {
  display: flex;
  align-items: center;
}

.global-nav,
.nav-links {
  gap: 4px;
  font-family: var(--ui-font);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.global-nav a,
.nav-links a,
.language-link {
  border: 1px solid transparent;
  padding: 7px 9px;
  color: var(--muted);
  text-decoration: none;
}

.global-nav a:hover,
.nav-links a:hover,
.global-nav a[aria-current='page'],
.nav-links a[aria-current='page'],
.language-link:hover,
.language-link[aria-current='true'] {
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  color: var(--fg);
}

.header-actions {
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.language-switcher {
  gap: 2px;
  font-family: var(--ui-font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.language-link {
  min-width: 38px;
  text-align: center;
}

.flag {
  display: none;
}

.product-main {
  min-height: calc(100vh - 180px);
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(44px, 7vw, 96px);
  align-items: center;
  min-height: calc(100vh - 86px);
  min-height: calc(100svh - 86px);
  padding: 72px 0 88px;
}

.product-hero-copy {
  min-width: 0;
}

.eyebrow,
.section-kicker {
  margin-bottom: 14px;
  color: var(--accent);
}

.product-title {
  margin-bottom: 22px;
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.86;
}

.product-tagline {
  max-width: 24ch;
  margin-bottom: 18px;
  font-size: clamp(1.55rem, 3.4vw, 2.75rem);
  line-height: 1.08;
}

.hero-lede,
.section-lede {
  max-width: 58ch;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.8vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button,
.inline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid color-mix(in srgb, var(--accent) 44%, transparent);
  padding: 9px 14px;
  color: var(--fg);
  font-family: var(--ui-font);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
}

.button-primary {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

.button:hover,
.inline-link:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.section {
  border-top: 1px solid var(--line);
  padding: clamp(64px, 9vw, 112px) 0;
}

.section.narrow {
  max-width: 820px;
}

.section h2,
.manual-hero h1 {
  max-width: 18ch;
  margin-bottom: 18px;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.02;
}

.section h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.2;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(40px, 7vw, 88px);
  align-items: start;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.feature-grid article {
  min-height: 190px;
  border-bottom: 1px solid var(--line);
  padding: 24px 24px 24px 0;
}

.feature-grid article + article {
  border-left: 1px solid var(--line);
  padding-left: 24px;
}

.feature-grid p,
.split p,
.check-list,
.number-list,
.status-note {
  color: var(--muted);
}

.check-list,
.number-list {
  margin: 0;
  padding-left: 20px;
}

.check-list li + li,
.number-list li + li {
  margin-top: 12px;
}

.status-note {
  border-left: 1px solid var(--accent);
  margin-top: 36px;
  padding-left: 16px;
  line-height: 1.7;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  color: var(--dim);
  font-family: var(--ui-font);
  font-size: 0.76rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--fg);
}

.footer-links {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.footer-made {
  color: var(--muted);
}

.footer-flag {
  margin-left: 4px;
}

.footer-meta {
  color: var(--dim);
}

/* Faber */

.faber-page {
  --accent: #a9c6d5;
}

.faber-visual {
  margin: 0;
}

.faber-visual img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(169, 198, 213, 0.22);
  background: #f7f8fa;
}

.faber-visual figcaption,
.capture-note {
  margin-top: 10px;
  color: var(--dim);
  font-family: var(--ui-font);
  font-size: 0.72rem;
  line-height: 1.45;
}

.verdicts {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.verdict-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  background: var(--panel);
  padding: 18px 20px;
  font-family: var(--ui-font);
}

.verdict-value {
  font-weight: 800;
  letter-spacing: 0.08em;
}

.verdict-block {
  color: #ff8279;
}

.verdict-pass {
  color: #8ef5a2;
}

/* Minimai */

.minimai-page {
  --accent: #a9c6d5;
}

.minimai-main {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 194px);
  min-height: calc(100svh - 194px);
}

.minimai-hero {
  width: min(100%, 920px);
  padding: 120px 0;
}

.minimai-hero .product-title {
  font-size: clamp(4.5rem, 15vw, 11rem);
}

.minimai-hero .product-tagline {
  max-width: none;
}

@media (max-width: 900px) {
  .product-hero,
  .split {
    grid-template-columns: 1fr;
  }

  .product-hero {
    min-height: 0;
    padding-top: 64px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid article + article {
    border-left: 0;
    padding-left: 0;
  }

  .feature-grid article {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .home-hero {
    padding: 36px 18px;
  }

  .brand-logo {
    font-size: clamp(0.76rem, 3.7vw, 1.65rem);
    letter-spacing: 0.006em;
  }

  .brand-logo::before {
    color: rgba(98, 176, 230, 0.045);
    -webkit-text-fill-color: rgba(98, 176, 230, 0.045);
    -webkit-text-stroke-color: rgba(78, 158, 220, 0.04);
  }

  .home-work {
    width: min(100% - 32px, 1180px);
    padding-top: 72px;
  }

  .project-link {
    grid-template-columns: 1fr auto;
    gap: 10px 20px;
    min-height: 0;
  }

  .project-description {
    grid-column: 1 / -1;
  }

  .project-arrow {
    grid-column: 2;
    grid-row: 1;
  }

  .home-footer,
  .site-footer {
    flex-direction: column;
  }

  .site-header,
  .site-footer,
  .product-main,
  main:not(.home-main) {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .global-nav,
  .header-actions,
  .nav-links,
  .language-switcher {
    width: 100%;
  }

  .global-nav,
  .nav-links {
    flex-wrap: wrap;
  }

  .global-nav a,
  .nav-links a {
    flex: 1;
    text-align: center;
  }

  .header-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .product-title {
    font-size: clamp(3.3rem, 19vw, 5.4rem);
  }

  .button,
  .inline-link {
    width: 100%;
  }

  .minimai-hero {
    padding: 84px 0;
  }
}

@media (forced-colors: active) {
  .brand-logo,
  .brand {
    color: CanvasText;
    background: none;
    -webkit-text-fill-color: CanvasText;
    -webkit-text-stroke: 0;
    filter: none;
  }

  .brand-logo::before,
  .brand::before {
    content: none;
  }
}

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