:root {
  --bg: #f6f4f1;
  --surface: #ffffff;
  --ink: #111111;
  --muted: #64615d;
  --line: #ded9d2;
  --red: #e21a1a;
  --red-dark: #b91111;
  --soft-red: #fff0ee;
  --graphite: #1c1c1c;
  --steel: #eef1f3;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(17, 17, 17, 0.12);
  --page-x: clamp(20px, 5vw, 72px);
  --section-y: clamp(72px, 8vw, 96px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 16px var(--page-x);
  border-bottom: 1px solid rgba(222, 217, 210, 0.8);
  background: rgba(246, 244, 241, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 158px;
}

.brand img {
  display: block;
  width: 158px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #34312e;
  font-size: 14px;
  font-weight: 600;
}

.nav a {
  padding: 8px 0;
}

.nav a:hover {
  color: var(--red);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero,
.section {
  padding-inline: var(--page-x);
}

.hero {
  min-height: calc(100vh - 78px);
  display: flex;
  align-items: center;
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.hero-grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
}

.hero-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #f5f1ec;
}

.hero-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.eyebrow {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.05;
}

h1 {
  max-width: 980px;
  margin-top: 18px;
  font-size: clamp(38px, 4.2vw, 76px);
  overflow-wrap: normal;
  hyphens: auto;
  text-wrap: balance;
}

.hero-lead {
  max-width: 730px;
  margin-top: 26px;
  font-size: clamp(18px, 2vw, 24px);
  color: #3b3835;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-weight: 700;
  border: 1px solid var(--ink);
  font: inherit;
  cursor: pointer;
}

.button.primary {
  color: white;
  background: var(--ink);
}

.button.primary:hover {
  background: var(--red);
  border-color: var(--red);
}

.button.secondary {
  color: var(--ink);
  background: transparent;
}

.button.secondary:hover {
  background: var(--surface);
}

.card-topline span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  font-weight: 700;
}

.section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) minmax(0, 0.68fr);
  gap: 32px;
  align-items: start;
  margin-bottom: 42px;
}

.section-heading h2,
.why h2,
.contacts h2 {
  max-width: 930px;
  font-size: clamp(26px, 4.2vw, 58px);
}

.intro {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}

.intro-text {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-left: calc(32% + 22px);
}

.products-section {
  background: var(--graphite);
  color: white;
}

.products-section .eyebrow {
  color: var(--red);
}

.section-heading .products-title {
  max-width: none;
  white-space: normal;
  font-size: clamp(21px, 3.9vw, 58px);
}

.products-section p,
.products-section li {
  color: rgba(255, 255, 255, 0.72);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  position: relative;
  min-height: 318px;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.4vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  background-position: center;
  background-size: cover;
  overflow: hidden;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.42));
  pointer-events: none;
}

.product-card > * {
  position: relative;
  z-index: 1;
}

.product-card:not(.is-disabled):hover {
  transform: scale(1.018);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
}

.product-card-studio {
  color: #111111;
  background-image: url("assets/product-studio.jpg");
  border-color: rgba(255, 255, 255, 0.58);
}

.product-card-speech {
  background-image: url("assets/product-synth.jpg");
}

.product-card-typhlo {
  background-image: url("assets/product-tiflo.jpg");
}

.product-card-datasets {
  color: #111111;
  background-image: url("assets/product-data.jpg");
  border-color: rgba(255, 226, 165, 0.55);
}

.product-card-commentor {
  color: rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(145deg, #777777 0%, #565656 48%, #303030 100%);
  border-color: rgba(255, 255, 255, 0.1);
  opacity: 0.78;
}

.card-topline {
  position: absolute;
  top: calc(clamp(22px, 2.4vw, 30px) + 12px);
  right: 20px;
  display: inline-flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 0;
}

.card-topline span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.product-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  margin-bottom: 22px;
}

.product-card h3,
.capability-grid h3,
.solution-list h3 {
  font-size: clamp(24px, 2.4vw, 34px);
}

.product-card h3 {
  max-width: calc(100% - 24px);
}

.product-card-commentor h3 {
  max-width: 100%;
  font-size: clamp(25px, 2.15vw, 32px);
}

.product-card p {
  margin-top: 18px;
}

.product-card-studio p,
.product-card-datasets p {
  color: rgba(17, 17, 17, 0.76);
}

.product-card-studio .card-topline span,
.product-card-datasets .card-topline span {
  color: #111111;
  background: rgba(255, 255, 255, 0.22);
}

.product-note {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 700;
  font-style: italic;
}

.solution-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.solution-list article {
  display: grid;
  grid-template-columns: 84px minmax(240px, 0.35fr) minmax(0, 0.65fr);
  gap: 24px;
  padding: 30px;
  background: var(--surface);
}

.solution-list span {
  color: var(--red);
  font-weight: 800;
}

.capabilities {
  background: var(--surface);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.capability-grid article {
  min-height: 330px;
  padding: 28px;
}

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

.capability-grid p {
  margin-top: 18px;
}

.why-panel,
.contact-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.48fr) minmax(0, 0.52fr);
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(28px, 5vw, 58px);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 16px 50px rgba(17, 17, 17, 0.08);
}

.why-panel p + p {
  margin-top: 18px;
}

.plain-text-block {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.plain-text-block p {
  color: #34312e;
  font-size: clamp(17px, 1.25vw, 21px);
  line-height: 1.65;
}

.plain-text-block p + p {
  margin-top: 0;
}

.contact-card {
  align-items: end;
  color: white;
  background:
    linear-gradient(135deg, rgba(226, 26, 26, 0.92), rgba(93, 14, 14, 0.74)),
    var(--red-dark);
}

.contact-card .eyebrow,
.contact-card p {
  color: rgba(255, 255, 255, 0.82);
}

.contact-card address {
  display: grid;
  gap: 16px;
  font-style: normal;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
}

.contact-card address span {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding: 24px var(--page-x);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer img {
  width: 158px;
  height: auto;
}

.footer-details {
  display: grid;
  gap: 4px;
  max-width: 860px;
  text-align: right;
  font-size: 14px;
  line-height: 1.35;
}

.footer-details strong {
  color: var(--ink);
  font-size: 15px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.58);
  backdrop-filter: blur(8px);
}

.modal-panel {
  position: relative;
  width: min(680px, 100%);
  max-height: min(720px, calc(100vh - 40px));
  overflow: auto;
  padding: clamp(26px, 5vw, 44px);
  border-radius: var(--radius);
  color: white;
  background:
    linear-gradient(135deg, rgba(226, 26, 26, 0.95), rgba(93, 14, 14, 0.82)),
    var(--red-dark);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
}

.modal-panel .eyebrow,
.modal-panel p {
  color: rgba(255, 255, 255, 0.82);
}

.modal-panel h2 {
  max-width: 560px;
  margin-top: 14px;
  font-size: clamp(28px, 4vw, 44px);
}

.modal-panel p {
  margin-top: 18px;
}

.modal-panel address {
  display: grid;
  gap: 14px;
  margin-top: 30px;
  font-style: normal;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
}

.modal-panel address span {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.modal-close span {
  position: absolute;
  display: block;
  width: 18px;
  height: 2px;
  background: white;
}

.modal-close span:first-child {
  transform: rotate(45deg);
}

.modal-close span:last-child {
  transform: rotate(-45deg);
}

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

  .hero-copy,
  .hero-image {
    grid-column: 1 / -1;
  }

  .hero-image {
    max-width: 760px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .capability-grid article:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .capability-grid article:nth-child(4) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 820px) {
  .site-header {
    min-height: 68px;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 13px 10px;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid,
  .section-heading,
  .intro-text,
  .plain-text-block,
  .capability-grid,
  .why-panel,
  .contact-card {
    grid-template-columns: 1fr;
  }

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

  .intro-text {
    margin-left: 0;
  }

  .hero-image {
    max-width: none;
  }

  .solution-list article {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 24px;
  }

  .capability-grid article + article,
  .capability-grid article:nth-child(3),
  .capability-grid article:nth-child(4) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 520px) {
  .brand {
    min-width: 0;
  }

  .brand img {
    width: 120px;
  }

  h1 {
    font-size: 40px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .product-card,
  .capability-grid article {
    min-height: auto;
  }

  .section-heading .products-title {
    font-size: clamp(14px, 4.35vw, 28px);
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-details {
    text-align: left;
  }
}
