:root {
  --ink: #132028;
  --muted: #5d6972;
  --paper: #f8f9f4;
  --white: #ffffff;
  --line: #d9ded8;
  --green: #1f6f63;
  --green-dark: #123d39;
  --red: #b94735;
  --gold: #c8902d;
  --blue: #315e8a;
  --aqua: #3aa99e;
  --leaf: #95b84f;
  --cream: #fff8e6;
  --shadow: 0 24px 70px rgba(19, 32, 40, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Aptos, "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(58, 169, 158, 0.12), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(200, 144, 45, 0.16), transparent 24%),
    linear-gradient(180deg, #fbfcf8 0%, var(--paper) 36%, #eef2ec 100%);
  line-height: 1.6;
  font-size: 16px;
  text-rendering: optimizeLegibility;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 54px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(19, 32, 40, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 46px;
  height: 44px;
  object-fit: contain;
}

.brand-mark.wide-mark {
  width: 94px;
  height: 40px;
  padding: 4px;
  border-radius: 6px;
  background: var(--white);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: 0;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 9px 12px;
  color: #34424b;
  font-size: 14px;
  border-radius: 8px;
}

.site-nav a:hover {
  background: linear-gradient(135deg, rgba(58, 169, 158, 0.14), rgba(200, 144, 45, 0.13));
  color: var(--green-dark);
}

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

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

.section,
.section-band {
  padding: clamp(58px, 8vw, 110px) clamp(20px, 5vw, 72px);
}

.section {
  max-width: 1240px;
  margin: 0 auto;
}

.section-band {
  max-width: none;
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(34px, 6vw, 86px);
  align-items: center;
  min-height: calc(100svh - 76px);
  color: var(--white);
  background:
    radial-gradient(circle at 82% 18%, rgba(149, 184, 79, 0.33), transparent 26%),
    radial-gradient(circle at 68% 78%, rgba(58, 169, 158, 0.32), transparent 30%),
    linear-gradient(115deg, rgba(18, 61, 57, 0.98) 0%, rgba(19, 32, 40, 0.94) 52%, rgba(49, 94, 138, 0.88) 100%),
    url("../../images/head_bckg.jpg") center/cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -18% 28%;
  height: 260px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  transform: rotate(-8deg);
  pointer-events: none;
}

.hero-copy {
  max-width: 780px;
}

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

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

h1 {
  max-width: 860px;
  margin-bottom: 24px;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(34px, 5.2vw, 66px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1.14;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-text {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(16px, 1.55vw, 20px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: linear-gradient(135deg, #e6b24f, var(--gold));
  color: #1b170f;
  box-shadow: 0 12px 24px rgba(200, 144, 45, 0.24);
}

.button.secondary {
  border: 1px solid currentColor;
  color: inherit;
}

.hero-visual {
  position: relative;
  min-height: 520px;
  padding: 26px;
}

.hero-showcase {
  display: grid;
  align-content: center;
  gap: 14px;
  min-height: 520px;
}

.showcase-main {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
}

.showcase-main img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.showcase-caption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(16, 24, 29, 0.72);
  backdrop-filter: blur(12px);
}

.showcase-caption span,
.showcase-caption strong {
  display: block;
}

.showcase-caption span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.showcase-caption strong {
  margin-top: 4px;
  color: var(--white);
  font-size: 17px;
  line-height: 1.3;
}

.showcase-strip {
  display: grid;
  grid-template-columns: 0.7fr 1fr 1fr;
  gap: 12px;
}

.showcase-strip img {
  width: 100%;
  height: 132px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
}

.section-intro {
  max-width: 780px;
}

.section-intro.wide {
  max-width: 960px;
}

.section-intro p,
.split-heading p,
.founder-copy p,
.proof-copy p {
  color: var(--muted);
  font-size: 17px;
}

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

.research-grid .section-intro {
  grid-column: span 3;
}

.research-card,
.solution-card,
.app-card,
.library-grid a,
.contact-grid a,
.contact-grid address {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 36px rgba(19, 32, 40, 0.06);
}

.research-card,
.solution-card,
.app-card,
.rating-card,
.library-grid a,
.contact-grid a,
.contact-grid address {
  position: relative;
  overflow: hidden;
}

.research-card::before,
.solution-card::before,
.app-card::before,
.rating-card::before,
.library-grid a::before,
.contact-grid a::before,
.contact-grid address::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--aqua), var(--gold), var(--red));
  opacity: 0.78;
}

.research-card {
  padding: 26px;
}

.research-card.image-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.research-card.image-card img {
  width: 132px;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

.research-card.image-card:nth-of-type(2) img {
  object-position: center;
}

.research-card.image-card:nth-of-type(3) img,
.research-card.image-card:nth-of-type(4) img {
  object-position: top center;
}

.research-card p,
.solution-card p {
  color: var(--muted);
}

.atlas-section {
  max-width: 1320px;
}

.atlas-section h2 {
  max-width: 760px;
}

.atlas-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.65fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 32px;
}

.atlas-panel,
.atlas-points article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.atlas-panel {
  border-color: rgba(58, 169, 158, 0.3);
}

.atlas-panel {
  overflow: hidden;
}

.atlas-panel img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
}

.atlas-points {
  display: grid;
  gap: 12px;
}

.atlas-points article {
  padding: 22px;
}

.atlas-points span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 28px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: #edf6f2;
  color: var(--green);
  font-weight: 900;
}

.atlas-points p {
  color: var(--muted);
}

.soft {
  background:
    linear-gradient(135deg, rgba(237, 246, 242, 0.95), rgba(255, 248, 230, 0.78)),
    #eceee7;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.solution-card {
  min-height: 280px;
  padding: 24px;
}

.solution-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 30px;
  margin-bottom: 22px;
  border-radius: 8px;
  background: linear-gradient(135deg, #edf6f2, #fff4d8);
  color: var(--green);
  font-weight: 900;
}

.solution-card a,
.library-grid a:hover {
  color: var(--red);
  font-weight: 800;
}

.proof-actions,
.founder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.rail-section {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(360px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.clients-section {
  max-width: 1320px;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.client-grid span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 78px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9)),
    linear-gradient(135deg, rgba(58, 169, 158, 0.12), rgba(200, 144, 45, 0.12));
  box-shadow: 0 14px 32px rgba(19, 32, 40, 0.06);
  color: var(--green-dark);
  font-weight: 900;
  text-align: center;
}

.rail-copy p {
  color: var(--muted);
  font-size: 17px;
}

.rail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.rail-tags span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
}

.rail-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.rail-gallery img {
  width: 100%;
  min-height: 210px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 36px rgba(19, 32, 40, 0.08);
}

.rail-gallery img:first-child {
  grid-column: span 2;
  min-height: 300px;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.45fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: end;
  margin-bottom: 34px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.app-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.app-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  background: #e3e7e1;
}

.app-logo-card img {
  object-fit: contain;
  padding: 34px;
  background:
    radial-gradient(circle at 20% 20%, rgba(58, 169, 158, 0.18), transparent 34%),
    linear-gradient(135deg, #f8fbf5, #eef5ec);
}

.app-card span,
.app-card strong {
  display: block;
  padding-inline: 18px;
}

.app-card span {
  padding-top: 18px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-card strong {
  min-height: 82px;
  padding-top: 6px;
  padding-bottom: 10px;
  font-size: 19px;
  line-height: 1.25;
}

.app-card a {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: auto 18px 20px;
  color: var(--red);
  font-size: 14px;
  font-weight: 850;
}

.feature-app {
  grid-column: span 2;
}

.feature-app img {
  height: 260px;
}

.dark {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.65fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  color: var(--white);
  background:
    radial-gradient(circle at 85% 18%, rgba(58, 169, 158, 0.28), transparent 28%),
    linear-gradient(135deg, #10181d, #123d39 58%, #20334a);
}

.dark .proof-copy p {
  color: rgba(255, 255, 255, 0.72);
}

.dark .button.secondary {
  color: var(--white);
}

.recognition-section {
  max-width: 1320px;
}

.recognition-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.8fr);
  gap: 16px;
}

.rating-card,
.video-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 36px rgba(19, 32, 40, 0.07);
}

.rating-card {
  padding: 24px;
}

.rating-card p,
.video-card p {
  color: var(--muted);
}

.rating-card a,
.video-card a {
  color: var(--red);
  font-weight: 850;
}

.rating-label {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rating-bars {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.rating-bars div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #edf6f2;
}

.rating-bars span {
  color: var(--green-dark);
  font-weight: 850;
}

.rating-bars strong {
  color: var(--ink);
}

.video-card {
  display: grid;
  grid-column: span 2;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr);
  gap: 0;
  overflow: hidden;
}

.video-card > div:last-child {
  padding: 24px;
}

.video-frame {
  min-height: 310px;
  background: #10181d;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 310px;
  border: 0;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.library-grid a {
  min-height: 92px;
  padding: 18px;
  color: var(--ink);
  font-weight: 750;
}

.founder-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.4fr) minmax(0, 0.7fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.founder-image img {
  width: min(100%, 380px);
  aspect-ratio: 2 / 3;
  object-fit: contain;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.founder-copy {
  max-width: 720px;
}

.compact-title h2 {
  font-size: clamp(28px, 3vw, 40px);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.75fr);
  gap: clamp(24px, 5vw, 70px);
}

.contact-grid {
  display: grid;
  gap: 12px;
}

.contact-grid a,
.contact-grid address {
  display: block;
  padding: 20px;
  font-style: normal;
}

.contact-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-grid strong {
  display: block;
  margin-top: 5px;
  font-size: 17px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.74);
  background:
    linear-gradient(135deg, #10181d, #123d39);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.footer-brand img {
  width: 130px;
  height: 56px;
  object-fit: contain;
  padding: 8px;
  border-radius: 8px;
  background: var(--white);
}

.footer-brand strong,
.footer-brand small {
  display: block;
}

.footer-brand strong {
  color: var(--white);
  font-size: 17px;
}

.footer-brand small {
  color: rgba(255, 255, 255, 0.68);
}

.site-footer p {
  max-width: 560px;
  margin-bottom: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: start;
  justify-content: flex-end;
}

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

@media (max-width: 940px) {
  .hero,
  .dark,
  .contact-section,
  .founder-section,
  .rail-section,
  .atlas-layout,
  .split-heading {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 420px;
  }

  .research-grid,
  .solution-grid,
  .app-grid,
  .library-grid,
  .client-grid,
  .recognition-grid {
    grid-template-columns: 1fr 1fr;
  }

  .research-grid .section-intro,
  .feature-app,
  .video-card {
    grid-column: span 2;
  }

  .video-card {
    grid-template-columns: 1fr;
  }
}

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

  .nav-toggle {
    display: block;
  }

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

  .site-header.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
  }

  .brand small {
    display: none;
  }

  .section,
  .section-band {
    padding-inline: 18px;
  }

  .hero {
    padding-top: 60px;
  }

  .hero-visual {
    min-height: 360px;
    padding: 10px;
  }

  .atlas-panel img {
    min-height: 260px;
  }

  .showcase-strip {
    grid-template-columns: 1fr;
  }

  .showcase-strip img {
    height: 150px;
  }

  .showcase-caption {
    position: static;
    border-radius: 0;
  }

  .research-grid,
  .solution-grid,
  .app-grid,
  .library-grid,
  .client-grid,
  .recognition-grid {
    grid-template-columns: 1fr;
  }

  .research-grid .section-intro,
  .feature-app,
  .video-card {
    grid-column: auto;
  }

  .research-card.image-card {
    grid-template-columns: 1fr;
  }

  .research-card.image-card img {
    width: 100%;
    height: 220px;
  }

  .feature-app img,
  .app-card img {
    height: 210px;
  }

  .rail-gallery {
    grid-template-columns: 1fr;
  }

  .rail-gallery img:first-child {
    grid-column: auto;
  }

  .site-footer {
    display: block;
  }

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

  .site-footer nav {
    justify-content: flex-start;
    margin-top: 20px;
  }
}
