:root {
  --ink: #161b1f;
  --ink-soft: #2a3136;
  --paper: #f8f8f6;
  --white: #ffffff;
  --line: #dfe4e5;
  --muted: #68737a;
  --gold: #b08a4a;
  --gold-dark: #7d5b24;
  --teal: #0b7772;
  --blue: #1f5f8c;
  --shadow: 0 18px 50px rgba(22, 27, 31, 0.12);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-180%);
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  border-radius: 6px;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(22, 27, 31, 0.64);
  backdrop-filter: blur(18px);
  transition: background 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  border-color: rgba(22, 27, 31, 0.12);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 32px rgba(22, 27, 31, 0.08);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 276px;
  max-width: 58vw;
}

.brand img {
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
}

.site-header.is-scrolled .brand img,
.site-header.is-open .brand img {
  filter: none;
}

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

.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  color: rgba(255, 255, 255, 0.88);
  border-radius: 6px;
  font-size: 0.94rem;
  font-weight: 700;
}

.site-header.is-scrolled .site-nav a,
.site-header.is-open .site-nav a {
  color: var(--ink-soft);
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--white);
  background: rgba(176, 138, 74, 0.25);
}

.site-header.is-scrolled .site-nav a:hover,
.site-header.is-scrolled .site-nav a.is-active,
.site-header.is-open .site-nav a:hover,
.site-header.is-open .site-nav a.is-active {
  color: var(--ink);
  background: rgba(176, 138, 74, 0.14);
}

.nav-toggle {
  width: 46px;
  height: 46px;
  display: none;
  place-items: center;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  cursor: pointer;
}

.site-header.is-scrolled .nav-toggle,
.site-header.is-open .nav-toggle {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

.nav-toggle path,
.button svg path,
.service-card svg path,
.address-panel svg path,
.contact-methods svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero {
  position: relative;
  min-height: 82svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("assets/images/bytrionix-enterprise-hero.png") center / cover no-repeat;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(14, 17, 20, 0.92) 0%, rgba(14, 17, 20, 0.72) 43%, rgba(14, 17, 20, 0.28) 100%),
    linear-gradient(180deg, rgba(14, 17, 20, 0.1) 0%, rgba(14, 17, 20, 0.6) 100%);
}

.hero-content {
  padding: 142px 0 84px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.83rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.15rem;
  line-height: 1.04;
  font-weight: 600;
}

.hero-copy {
  max-width: 690px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.2rem;
}

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

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

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

.button svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

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

.button.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.34);
}

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

.proof-band {
  background: var(--ink);
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.proof-grid div {
  min-height: 138px;
  padding: 28px 34px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.proof-grid div:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.proof-grid span {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
}

.proof-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 1.05rem;
}

.proof-grid p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.94rem;
}

.section {
  padding: 92px 0;
}

.intro {
  background: var(--white);
}

.split,
.section-heading,
.about-grid,
.contact-grid,
.model-grid,
.insight-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.6fr;
  gap: 72px;
  align-items: start;
}

h2 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  line-height: 1.08;
  font-weight: 600;
}

h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.35;
}

.split p,
.section-heading p,
.contact p,
.dark-panel p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.capabilities {
  background: linear-gradient(180deg, #f8f8f6 0%, #edf3f3 100%);
}

.value-model {
  background:
    linear-gradient(180deg, #f5f7f4 0%, #ffffff 100%);
}

.model-grid > div:first-child p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.model-stack {
  position: relative;
  display: grid;
  gap: 18px;
  perspective: 1200px;
}

.model-stack article {
  position: relative;
  min-height: 128px;
  padding: 24px 26px 24px 92px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(241, 248, 246, 0.95)),
    linear-gradient(90deg, rgba(176, 138, 74, 0.18), transparent);
  border: 1px solid rgba(22, 27, 31, 0.1);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(22, 27, 31, 0.12);
  transform: rotateX(2deg) rotateY(-3deg);
}

.model-stack article:nth-child(even) {
  transform: translateX(28px) rotateX(2deg) rotateY(-3deg);
}

.model-stack span {
  position: absolute;
  left: 26px;
  top: 24px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--ink), var(--teal));
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  box-shadow: 0 12px 22px rgba(11, 119, 114, 0.2);
}

.model-stack p {
  margin: 9px 0 0;
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 44px;
}

.service-card {
  min-height: 388px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--white);
  border: 1px solid rgba(22, 27, 31, 0.1);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(22, 27, 31, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(176, 138, 74, 0.5);
  box-shadow: var(--shadow);
}

.service-card svg {
  width: 42px;
  height: 42px;
  color: var(--teal);
  margin-bottom: 24px;
}

.service-card p {
  margin: 13px 0 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.service-card ul,
.timeline ul {
  display: grid;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.service-card li,
.timeline li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.service-card li::before,
.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
}

.service-card a {
  margin-top: auto;
  color: var(--gold-dark);
  font-size: 0.92rem;
  font-weight: 800;
}

.dark-panel {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(22, 27, 31, 0.98), rgba(33, 42, 45, 0.98)),
    radial-gradient(circle at 100% 0%, rgba(11, 119, 114, 0.22), transparent 42%);
}

.dark-panel h2,
.dark-panel h3 {
  color: var(--white);
}

.dark-panel p {
  color: rgba(255, 255, 255, 0.74);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.fact-grid article {
  min-height: 132px;
  padding: 18px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}

.fact-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
}

.fact-grid span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.93rem;
}

.tag-row span {
  padding: 9px 12px;
  color: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
}

.address-panel {
  padding: 34px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
}

.address-panel svg {
  width: 54px;
  height: 54px;
  color: var(--gold);
  margin-bottom: 22px;
}

.address-panel p {
  font-size: 1.02rem;
}

.address-panel .legal-name {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
}

.approach {
  background: var(--white);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 46px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.timeline article {
  min-height: 390px;
  padding: 30px 26px;
  border-left: 1px solid var(--line);
}

.timeline article:last-child {
  border-right: 1px solid var(--line);
}

.timeline span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 38px;
  color: var(--white);
  background: var(--ink);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 800;
}

.timeline p {
  margin: 12px 0 0;
  color: var(--muted);
}

.timeline ul {
  margin-top: 20px;
}

.industries {
  background: #eef5f2;
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 44px;
}

.industry-grid article {
  min-height: 178px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(31, 95, 140, 0.16);
  border-radius: 8px;
}

.industry-grid article::before {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin-bottom: 22px;
  background: var(--gold);
}

.industry-grid p {
  margin: 10px 0 0;
  color: var(--muted);
}

.insight-band {
  background: var(--ink);
  color: var(--white);
}

.insight-band h2,
.insight-band h3 {
  color: var(--white);
}

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

.insight-list article {
  min-height: 190px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.insight-list p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.contact {
  background: var(--paper);
}

.contact-methods {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.contact-methods a {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
}

.contact-methods svg {
  width: 28px;
  height: 28px;
  color: var(--gold-dark);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 28px;
  background: var(--white);
  border: 1px solid rgba(22, 27, 31, 0.1);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
}

.contact-form .full,
.contact-form button {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fbfcfc;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.contact-form textarea {
  min-height: 132px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(11, 119, 114, 0.12);
}

.contact-form button {
  justify-self: start;
  margin-top: 4px;
}

.site-footer {
  color: rgba(255, 255, 255, 0.76);
  background: #111518;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 1fr;
  gap: 70px;
  padding: 58px 0 36px;
}

.footer-grid img {
  width: 240px;
  filter: brightness(0) invert(1);
}

.footer-grid h2 {
  margin: 0 0 16px;
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.4;
}

.footer-grid a {
  display: block;
  margin-bottom: 9px;
}

.footer-grid p {
  margin: 14px 0 0;
}

.footer-bottom {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
}

@media (max-width: 1120px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .service-card {
    min-height: 290px;
  }
}

@media (max-width: 920px) {
  .container {
    width: min(100% - 28px, var(--max));
  }

  .header-inner {
    min-height: 68px;
  }

  .brand {
    width: 232px;
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: 68px;
    left: 14px;
    right: 14px;
    display: none;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-header.is-open .site-nav {
    display: grid;
  }

  .site-nav a {
    color: var(--ink);
  }

  .hero {
    min-height: 80svh;
  }

  .hero-content {
    padding: 116px 0 62px;
  }

  .hero h1 {
    font-size: 3.55rem;
    line-height: 1.02;
  }

  .hero-copy {
    font-size: 1.05rem;
  }

  .proof-grid,
  .split,
  .section-heading,
  .about-grid,
  .contact-grid,
  .model-grid,
  .insight-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .proof-grid div,
  .proof-grid div:last-child {
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .section {
    padding: 72px 0;
  }

  h2 {
    font-size: 2.35rem;
  }

  .service-grid,
  .fact-grid,
  .industry-grid,
  .insight-list {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 640px) {
  .hero {
    min-height: 78svh;
  }

  .hero-content {
    padding-top: 104px;
    padding-bottom: 48px;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

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

  .service-grid,
  .fact-grid,
  .industry-grid,
  .insight-list,
  .timeline,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .model-stack article,
  .model-stack article:nth-child(even) {
    padding-left: 78px;
    transform: none;
  }

  .service-card,
  .fact-grid article,
  .timeline article,
  .industry-grid article,
  .insight-list article {
    min-height: auto;
  }

  .timeline article,
  .timeline article:last-child {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .contact-form {
    padding: 20px;
  }

  .footer-bottom {
    min-height: auto;
    padding: 22px 0;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .brand {
    width: 198px;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-copy,
  .split p,
  .section-heading p,
  .contact p,
  .dark-panel p {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
