:root {
  --ink: #172126;
  --ink-soft: #506067;
  --graphite: #172126;
  --graphite-deep: #0e171b;
  --blue: #3548d4;
  --blue-soft: #e9edff;
  --terra: #8e3024;
  --terra-soft: #f3e8df;
  --gold: #c5964c;
  --paper: #ffffff;
  --offwhite: #f5f6f4;
  --line: #d9dedd;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
  --shell: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.shell {
  width: min(var(--shell), calc(100% - 3rem));
  margin-inline: auto;
}

.hero {
  position: relative;
  min-height: min(780px, 86svh);
  overflow: hidden;
  color: white;
  background-color: var(--graphite-deep);
  background-image: url("../img/factory-flow.webp");
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 17, 21, 0.96) 0%, rgba(8, 17, 21, 0.82) 38%, rgba(8, 17, 21, 0.2) 72%);
}

.topbar {
  position: relative;
  z-index: 3;
  min-height: 92px;
  display: grid;
  grid-template-columns: 230px 1fr auto;
  align-items: center;
  gap: 2rem;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(23, 33, 38, 0.15);
}

.topbar.shell {
  width: 100%;
  padding-inline: max(1.5rem, calc((100% - var(--shell)) / 2));
}

.progintaLogo {
  width: 190px;
  text-decoration: none;
}

.progintaLogo img {
  width: 100%;
  height: auto;
}

.navLinks {
  justify-self: center;
  display: flex;
  gap: 2.2rem;
}

.navLinks a,
.contactMini {
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.navLinks a:hover,
.navLinks a:focus-visible,
.contactMini:hover,
.contactMini:focus-visible {
  color: var(--blue);
}

.navTools {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.languageSelect {
  min-width: 62px;
  border: 0;
  border-bottom: 1px solid #aeb7ba;
  border-radius: 0;
  padding: 0.4rem 1.3rem 0.4rem 0.2rem;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 750;
  cursor: pointer;
}

.contactMini {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.heroContent {
  position: relative;
  z-index: 2;
  max-width: var(--shell);
  padding-top: 7rem;
  padding-bottom: 7.5rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow.light {
  color: #93a6ff;
}

.eyebrow.terra {
  color: var(--terra);
}

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 1.5rem;
  font-size: 4.7rem;
  line-height: 1.04;
}

.hero h1 span {
  color: #9baaff;
}

.heroLead {
  max-width: 660px;
  margin-bottom: 2.2rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.14rem;
}

.heroActions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 0.78rem 1.35rem;
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.buttonPrimary {
  color: white;
  background: var(--blue);
}

.buttonPrimary:hover,
.buttonPrimary:focus-visible {
  background: #5364e5;
}

.buttonGhost {
  border-color: rgba(255, 255, 255, 0.45);
  color: white;
  background: rgba(13, 27, 33, 0.38);
}

.buttonGhost:hover,
.buttonGhost:focus-visible {
  border-color: white;
  background: rgba(13, 27, 33, 0.72);
}

.logicBand {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

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

.logicItem {
  min-height: 125px;
  display: grid;
  grid-template-columns: 46px 1fr;
  align-content: center;
  gap: 0.15rem 1rem;
  padding: 1.5rem 2.2rem;
  border-right: 1px solid var(--line);
}

.logicItem:first-child {
  padding-left: 0;
}

.logicItem:last-child {
  border-right: 0;
}

.logicNum {
  grid-row: 1 / 3;
  color: var(--blue);
  font-family: var(--serif);
  font-size: 1.3rem;
}

.logicItem span:not(.logicNum) {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.logicItem strong {
  font-family: var(--serif);
  font-size: 1.13rem;
  font-weight: 500;
}

.directionsIntro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.65fr);
  gap: 6rem;
  align-items: end;
  padding-top: 7.5rem;
  padding-bottom: 4.5rem;
}

.directionsIntro h2,
.chooserHeading h2,
.contactBand h2 {
  margin-bottom: 0;
  font-size: 3.5rem;
  line-height: 1.08;
}

.directionsIntro > p {
  margin-bottom: 0.35rem;
  color: var(--ink-soft);
  font-size: 1.03rem;
}

.brandSection {
  padding: 7rem 0;
}

.leanSection {
  background: #f1f3f7;
  border-top: 1px solid #dce0e7;
  border-bottom: 1px solid #dce0e7;
}

.tonisSection {
  background: #f4eee5;
  border-bottom: 1px solid #dfd3c4;
}

.brandGrid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 6rem;
  align-items: center;
}

.brandGrid.reverse .brandCopy {
  order: 2;
}

.brandGrid.reverse .brandVisual {
  order: 1;
}

.childLogo {
  height: auto;
  margin-bottom: 2.2rem;
}

.childLogo.lean {
  width: 245px;
}

.childLogo.tonis {
  width: 148px;
}

.brandCopy h2 {
  max-width: 600px;
  margin-bottom: 1.3rem;
  font-size: 3rem;
  line-height: 1.1;
}

.brandCopy > p:not(.eyebrow) {
  max-width: 610px;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.featureList {
  list-style: none;
  margin: 2rem 0 2.3rem;
  padding: 0;
  border-top: 1px solid rgba(23, 33, 38, 0.16);
}

.featureList li {
  position: relative;
  padding: 0.85rem 0 0.85rem 1.6rem;
  border-bottom: 1px solid rgba(23, 33, 38, 0.16);
}

.featureList li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.35rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

.tonisSection .featureList li::before {
  background: var(--terra);
}

.brandLink {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.25rem;
}

.tonisSection .brandLink {
  color: var(--terra);
}

.brandLink i {
  font-style: normal;
  transition: transform 160ms ease;
}

.brandLink:hover i,
.brandLink:focus-visible i {
  transform: translate(3px, -3px);
}

.brandVisual {
  min-width: 0;
}

.tocFlowVisual {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--graphite-deep);
  box-shadow: 0 28px 60px rgba(14, 23, 27, 0.2);
}

.tocFlowVisual img {
  width: 100%;
  height: 100%;
  min-height: 470px;
  object-fit: cover;
  object-position: 60% center;
}

.tocFlowCaption {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 72%;
  padding: 1.25rem 1.55rem;
  border-top: 2px solid var(--gold);
  color: white;
  background: rgba(14, 23, 27, 0.92);
}

.tocFlowCaption span {
  display: block;
  color: #9baaff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.tocFlowCaption strong {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
}

.journeyVisual {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 28px 60px rgba(55, 37, 27, 0.16);
}

.journeyVisual img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
  object-position: center;
}

.journeyCaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.4rem 1.7rem;
  color: white;
  background: rgba(100, 26, 20, 0.92);
}

.journeyCaption span {
  display: block;
  color: #edc783;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.journeyCaption strong {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
}

.chooser {
  padding: 7.5rem 0 8rem;
  background: var(--paper);
}

.chooserHeading {
  max-width: 820px;
  margin-bottom: 3.5rem;
}

.choiceTable {
  border-top: 1px solid var(--line);
}

.choiceRow {
  min-height: 112px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  align-items: center;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}

.choiceRow > div:first-child {
  display: grid;
  grid-template-columns: 210px 1fr;
  align-items: center;
  gap: 2rem;
}

.choiceRow span {
  color: var(--ink-soft);
  font-size: 0.73rem;
  font-weight: 800;
  text-transform: uppercase;
}

.choiceRow strong {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
}

.routeTag {
  justify-self: end;
  min-width: 160px;
  padding: 0.55rem 0.75rem;
  border-left: 3px solid var(--blue);
  color: var(--blue);
  font-weight: 800;
}

.routeTag.tonis {
  border-color: var(--terra);
  color: var(--terra);
}

.routeTag.both {
  border-image: linear-gradient(var(--blue), var(--terra)) 1;
  color: var(--ink);
}

.contactBand {
  padding: 7rem 0;
  color: white;
  background: var(--graphite-deep);
}

.contactGrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.72fr);
  gap: 7rem;
  align-items: center;
}

.contactBand p:not(.eyebrow) {
  max-width: 650px;
  margin-top: 1.2rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.66);
}

.contactLinks {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.contactLink {
  min-height: 96px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  text-decoration: none;
}

.contactLink span {
  color: #9baaff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contactLink strong {
  grid-row: 2;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
}

.contactLink i {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  font-style: normal;
}

.footer {
  min-height: 190px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 4rem;
  color: var(--ink-soft);
  font-size: 0.83rem;
}

.footerLogo {
  width: 165px;
  height: auto;
}

.companyDetails,
.companyContact {
  line-height: 1.7;
}

.companyContact a {
  color: var(--blue);
  text-decoration: none;
}

@media (max-width: 1050px) {
  .hero h1 {
    font-size: 3.8rem;
  }

  .directionsIntro,
  .brandGrid,
  .contactGrid {
    gap: 3.5rem;
  }

  .directionsIntro h2,
  .chooserHeading h2,
  .contactBand h2 {
    font-size: 3rem;
  }

  .brandCopy h2 {
    font-size: 2.6rem;
  }
}

@media (max-width: 820px) {
  .shell {
    width: min(100% - 2rem, var(--shell));
  }

  .topbar {
    min-height: 82px;
    grid-template-columns: 1fr auto;
  }

  .topbar.shell {
    padding-inline: 1rem;
  }

  .progintaLogo {
    width: 155px;
  }

  .navLinks,
  .contactMini {
    display: none;
  }

  .hero {
    min-height: 84svh;
    background-position: 62% center;
  }

  .hero::after {
    background: rgba(8, 17, 21, 0.75);
  }

  .heroContent {
    padding-top: 5.5rem;
    padding-bottom: 6rem;
  }

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

  .logicGrid,
  .directionsIntro,
  .brandGrid,
  .contactGrid {
    grid-template-columns: 1fr;
  }

  .logicItem,
  .logicItem:first-child {
    min-height: 95px;
    padding: 1rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .logicItem:last-child {
    border-bottom: 0;
  }

  .directionsIntro {
    gap: 1.5rem;
    padding-top: 5rem;
    padding-bottom: 3rem;
  }

  .brandSection {
    padding: 5rem 0;
  }

  .brandGrid {
    gap: 3rem;
  }

  .brandGrid.reverse .brandCopy {
    order: 1;
  }

  .brandGrid.reverse .brandVisual {
    order: 2;
  }

  .tocFlowVisual,
  .tocFlowVisual img {
    min-height: 390px;
  }

  .journeyVisual,
  .journeyVisual img {
    min-height: 420px;
  }

  .chooser {
    padding: 5rem 0;
  }

  .choiceRow {
    grid-template-columns: 1fr 160px;
  }

  .choiceRow > div:first-child {
    grid-template-columns: 160px 1fr;
  }

  .contactGrid {
    gap: 3rem;
  }

  .footer {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .footerLogo {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: 2.55rem;
  }

  .heroLead {
    font-size: 1rem;
  }

  .heroActions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .directionsIntro h2,
  .chooserHeading h2,
  .contactBand h2 {
    font-size: 2.45rem;
  }

  .brandCopy h2 {
    font-size: 2.25rem;
  }

  .childLogo.lean {
    width: 210px;
  }

  .tocFlowVisual,
  .tocFlowVisual img {
    min-height: 340px;
  }

  .tocFlowCaption {
    max-width: 100%;
    padding: 1rem 1.15rem;
  }

  .journeyVisual,
  .journeyVisual img {
    min-height: 350px;
  }

  .choiceRow {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    padding: 1.4rem 0;
  }

  .choiceRow > div:first-child {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .routeTag {
    justify-self: start;
  }

  .footer {
    grid-template-columns: 1fr;
    gap: 1.3rem;
  }

  .footerLogo {
    grid-column: auto;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* Consent banner */
.consentBanner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  background: var(--graphite-deep);
  color: #fff;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.25);
}

.consentBanner[hidden] {
  display: none;
}

.consentBanner p {
  margin: 0;
  max-width: 640px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.consentBanner a {
  color: var(--gold);
}

.consentActions {
  display: flex;
  gap: 0.6rem;
}

.consentBtn {
  padding: 0.55rem 1.2rem;
  font: inherit;
  font-size: 0.92rem;
  border-radius: 3px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  cursor: pointer;
}

.consentBtn.ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
}

/* Legal pages */
.legalPage {
  max-width: 760px;
  padding: 3.5rem 0 4.5rem;
}

.legalPage h1 {
  font-family: var(--serif);
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

.legalPage h2 {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin: 2.2rem 0 0.6rem;
}

.legalPage .updated {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.legalTopbar {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}

.legalTopbar .progintaLogo {
  display: inline-block;
}
