/* Qualytra v7 · corporate template
   Shared styles for every page. Tokens first, then layout, then components. */

:root {
  --white: #ffffff;
  --mist: #eceeed; /* light grey section background */
  --mist-2: #e2e6e4;
  --ink: #0d1010;
  --ink-2: #1b2020;
  --soft: #4d5756;
  --mute: #8b9493;
  --line: #d9dedc;
  --teal: #1d5f5e; /* brand, from the logo */
  --teal-2: #276d69;
  --teal-hi: #7fc2bd;
  --gutter: clamp(16px, 2.4vw, 36px);
  --max: 1440px;
  --ease: cubic-bezier(0.65, 0.05, 0.25, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
body {
  background: var(--white);
  color: var(--ink);
  font:
    400 16px/1.55 "Geist",
    system-ui,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a {
  color: inherit;
  text-decoration: none;
}
img,
video {
  display: block;
  max-width: 100%;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
.mono {
  font-family: "Geist Mono", ui-monospace, monospace;
}
.pad {
  padding-inline: var(--gutter);
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* ---------- micro type ---------- */

/* section label: hexagon number + rule + name */
.chip { display: inline-flex; align-items: center; gap: 10px; vertical-align: 0.42em; margin-right: 16px; font: 500 10.5px/1 "Geist Mono", monospace; letter-spacing: 0.1em; text-transform: uppercase; }
.chip span:first-child { display: grid; place-items: center; width: 28px; height: 25px; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); background: var(--teal); color: var(--white); font-size: 9.5px; letter-spacing: 0; }
.chip span:last-child { display: flex; align-items: center; gap: 10px; color: var(--mute); }
.chip span:last-child::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.cta .chip span:first-child { background: var(--white); color: var(--teal); }
.cta .chip span:last-child { color: #cfe5e2; }

.micro {
  font:
    500 10.5px/1.3 "Geist Mono",
    monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- buttons ---------- */

.btn { position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 14px; padding: 6px 6px 6px 22px; border: 1px solid var(--ink); border-radius: 999px; color: var(--ink); font: 500 14.5px "Geist", sans-serif; letter-spacing: -0.01em; overflow: hidden; transition: color 0.45s var(--ease), border-color 0.45s; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); border-radius: inherit; transform: scaleX(0); transform-origin: left; transition: transform 0.55s var(--ease); }
.btn i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--white); transition: background 0.45s, color 0.45s, transform 0.55s var(--ease); }
.btn i svg { width: 13px; height: 13px; }
.btn:hover { color: var(--white); }
.btn:hover::before { transform: scaleX(1); }
.btn:hover i { background: var(--teal-hi); color: var(--ink); transform: rotate(-45deg); }
.btn.light { color: var(--white); border-color: #ffffff80; }
.btn.light::before { background: var(--white); }
.btn.light i { background: var(--white); color: var(--ink); }
.btn.light:hover { color: var(--ink); border-color: var(--white); }
.btn.light:hover i { background: var(--teal); color: var(--white); }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px var(--gutter);
  color: var(--white);
  transition:
    color 0.4s,
    background 0.4s,
    transform 0.5s var(--ease);
  pointer-events: none;
}
.site-header > * {
  pointer-events: auto;
}
.site-header .logo {
  display: flex;
  align-items: center;
  height: 56px;
}
.site-header .logo img {
  height: 100%;
  width: auto;
  transition: filter 0.4s;
}
.site-header.is-light {
  color: var(--ink);
}
.site-header.is-light .logo img {
  filter: brightness(0);
}
.site-header.is-hidden {
  transform: translateY(-110%);
}
.hdr-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.hdr-link {
  font-size: 14px;
  font-weight: 500;
}
.menu-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
}
.menu-btn .ring {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.menu-btn .ring i {
  display: block;
  width: 12px;
  height: 1px;
  background: currentColor;
  transition: transform 0.4s var(--ease);
}
.menu-open .menu-btn .ring i:first-child {
  transform: translateY(2.5px) rotate(45deg);
}
.menu-open .menu-btn .ring i:last-child {
  transform: translateY(-2.5px) rotate(-45deg);
}
@media (max-width: 640px) {
  .hdr-link {
    display: none;
  }
}

/* ---------- full screen menu ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--ink);
  color: var(--white);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  padding: 110px var(--gutter) 34px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.8s var(--ease);
}
.menu-open .menu {
  clip-path: inset(0 0 0 0);
}
.menu-open .site-header {
  color: var(--white);
}
.menu-open .site-header .logo img {
  filter: none;
}
.menu nav {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.menu nav a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  font-size: clamp(2.4rem, 6.4vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 500;
  overflow: hidden;
}
.menu nav a span.t {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 0.8s var(--ease);
}
.menu nav a small {
  font:
    500 10px "Geist Mono",
    monospace;
  letter-spacing: 0.08em;
  color: var(--mute);
}
.menu nav a:hover span.t {
  color: var(--teal-hi);
}
.menu-open .menu nav a span.t {
  transform: none;
}
.menu-open .menu nav a:nth-child(2) span.t {
  transition-delay: 0.05s;
}
.menu-open .menu nav a:nth-child(3) span.t {
  transition-delay: 0.1s;
}
.menu-open .menu nav a:nth-child(4) span.t {
  transition-delay: 0.15s;
}
.menu-open .menu nav a:nth-child(5) span.t {
  transition-delay: 0.2s;
}
.menu aside {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 26px;
  color: #b9c2c1;
  font-size: 15px;
}
.menu aside .ph {
  aspect-ratio: 16 / 10;
}
@media (max-width: 860px) {
  .menu {
    grid-template-columns: 1fr;
  }
  .menu aside .ph {
    display: none;
  }
}

/* ---------- page curtain transition ---------- */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--teal);
  display: grid;
  place-items: center;
  pointer-events: none;
  transform: translateY(0);
}

.curtain.is-out {
  transform: translateY(-100%);
  transition: transform 0.9s var(--ease);
}
.curtain.is-in {
  transform: translateY(100%);
  transition: none;
}
.curtain.is-in.go {
  transform: translateY(0);
  transition: transform 0.7s var(--ease);
}

/* ---------- image placeholders ---------- */
.ph {
  position: relative;
  overflow: hidden;
  background: var(--mist-2);
  border-radius: 4px;
  background-image: repeating-linear-gradient(
    135deg,
    #0d10100a 0 1px,
    transparent 1px 14px
  );
}
.ph::after {
  content: attr(data-ph);
  position: absolute;
  left: 12px;
  bottom: 12px;
  right: 12px;
  font:
    500 9.5px/1.4 "Geist Mono",
    monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--soft);
}
.ph::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 12px;
  width: 22px;
  height: 18px;
  border: 1px solid var(--mute);
  border-radius: 3px;
  background:
    radial-gradient(circle at 70% 35%, var(--mute) 0 2px, transparent 2.5px),
    linear-gradient(
      135deg,
      transparent 55%,
      var(--mute) 55% 62%,
      transparent 62%
    );
}
.ph.dark {
  background-color: #1a1f1f;
  background-image: repeating-linear-gradient(
    135deg,
    #ffffff0d 0 1px,
    transparent 1px 14px
  );
}
.ph.dark::after {
  color: #9aa4a3;
}
.ph.dark::before {
  border-color: #5d6766;
}
.ph > img,
.ph > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ph:has(> img)::after,
.ph:has(> img)::before {
  display: none;
}

/* ---------- HOME · hero ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  color: var(--white);
  background: #0f2423;
}
.hero video,
.hero .poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero .shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #06141399 0%, #06141333 55%, transparent 80%),
    linear-gradient(
      180deg,
      #06141366 0%,
      transparent 30%,
      transparent 60%,
      #061413aa 100%
    );
}
.hero .inner {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 0 var(--gutter) var(--gutter);
}
.hero h1 {
  align-self: center;
  font-size: clamp(2.6rem, 5.4vw, 5.4rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
  max-width: 13ch;
}
.hero h1 .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}
.hero h1 .line > span {
  display: inline-block;
}
.hero .stat {
  position: absolute;
  left: 52%;
  top: 50%;
  font-size: 10.5px;
  line-height: 1.5;
}
.hero .stat::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--white);
  margin-bottom: 10px;
  box-shadow: 0 0 0 6px #ffffff26;
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  50% {
    box-shadow: 0 0 0 12px #ffffff00;
  }
}
.hero .bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.hero .lede {
  max-width: 38ch;
  font-size: 1.05rem;
  color: #e6efee;
}

/* sections that slide over the hero */

/* hero scroll cue (replaces the thumbnail links) */
.scroll-cue { display: flex; align-items: center; gap: 16px; color: var(--white); }
.scroll-cue .mouse { position: relative; width: 26px; height: 42px; border: 1px solid #ffffffb3; border-radius: 14px; flex: none; }
.scroll-cue .mouse::after { content: ""; position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--white); animation: wheel 1.8s var(--ease) infinite; }
.scroll-cue .txt { display: grid; gap: 4px; text-align: right; }
.scroll-cue .txt b { font-weight: 500; font-size: 15px; }
.scroll-cue .txt span { color: #cfdedc; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@media (max-width: 760px) { .hero .stat { display: none; } .scroll-cue .txt { display: none; } }

.stack {
  position: relative;
  z-index: 2;
  background: var(--white);
}

/* ---------- section scaffolding ---------- */
.sec {
  position: relative;
  min-height: 100svh;
  padding: clamp(80px, 11vh, 130px) var(--gutter);
}
.sec.mist {
  background: var(--mist);
}
.sec.ink {
  background: var(--ink);
  color: var(--white);
}
.statement {
  font-size: clamp(1.6rem, 2.9vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 500;
  max-width: 26ch;
}
.statement .w {
  color: #c7cdcb;
  transition: color 0.2s;
}
.ink .statement .w {
  color: #3a4342;
}
.statement .w.on {
  color: inherit;
}
.ink .statement .w.on {
  color: var(--white);
}
.sec-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 40px;
}

/* S.01 company */

.about-grid { display: grid; grid-template-columns: 2fr 1fr; gap: var(--gutter); margin-top: clamp(60px, 12vh, 140px); align-items: start; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: var(--gutter); }
.about-copy { margin-left: auto; max-width: 360px; font-size: 13.5px; color: var(--ink-2); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .about-copy { margin-left: 0; } .facts { grid-template-columns: 1fr 1fr; } }

.fact {
  display: grid;
  grid-template-columns: 30px 1fr;
  padding: 18px 0 22px;
  border-top: 1px solid var(--line);
}
.fact svg {
  width: 20px;
  height: 20px;
  stroke: var(--ink);
  fill: none;
  stroke-width: 1.3;
  margin-top: 4px;
}
.fact b {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  display: block;
  line-height: 1.1;
}
.fact span {
  font:
    500 9.5px "Geist Mono",
    monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
}

.about-copy .btn {
  margin-top: 22px;
}

/* S.02 solutions tiles */

.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: clamp(60px, 12vh, 140px); }
.tile { position: relative; aspect-ratio: 1; background: var(--white); border-radius: 4px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; transition: background 0.45s var(--ease), color 0.45s var(--ease), transform 0.45s var(--ease); }
.tile:hover { transform: translateY(-6px); }
.tile h3 { font-size: clamp(1rem, 1.25vw, 1.2rem); font-weight: 500; letter-spacing: -0.02em; }
@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .tile { aspect-ratio: auto; min-height: 170px; } .tile p { max-height: none; opacity: 0.8; margin-top: 8px; } }

.tile svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.3;
}

.tile p {
  font-size: 12.5px;
  line-height: 1.45;
  max-width: 32ch;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.5s var(--ease),
    opacity 0.4s,
    margin 0.4s;
}
.tile .tag {
  position: absolute;
  right: 18px;
  top: 20px;
  color: var(--mute);
}
.tile:hover {
  background: var(--teal);
  color: var(--white);
}
.tile:hover p {
  max-height: 100px;
  opacity: 0.9;
  margin-top: 8px;
}
.tile:hover .tag {
  color: var(--teal-hi);
}

/* S.03 pinned showcase */

/* stacked deck: each screen slides up and piles on top of the previous one */
.sc-stage { position: relative; aspect-ratio: 1; display: grid; place-items: center; border-radius: 6px; overflow: hidden; background: var(--mist) radial-gradient(circle, #0d10101f 1px, transparent 1.4px) 0 0 / 18px 18px; }
.sc-count { position: absolute; left: 16px; top: 14px; color: var(--mute); }
.sc-count b { color: var(--ink); }
.sc-bar { position: absolute; left: 16px; right: 16px; bottom: 16px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.sc-bar i { display: block; height: 100%; width: 100%; background: var(--teal); transform-origin: left; transform: scaleX(0); }
.screens { position: relative; width: 58%; aspect-ratio: 10 / 13; }
.screen { position: absolute; inset: 0; border-radius: 14px; background: var(--white); box-shadow: 0 30px 60px -30px #0d101066, 0 0 0 1px var(--line); padding: 14px; display: flex; flex-direction: column; gap: 8px; font-size: 11px; will-change: transform; transform-origin: 50% 0; }

.showcase {
  height: 100svh;
  min-height: 640px;
  padding: clamp(80px, 11vh, 120px) var(--gutter) 40px;
  display: grid;
  grid-template-columns: 1fr minmax(320px, 520px) 1fr;
  align-items: center;
  overflow: hidden;
}
.showcase .head {
  position: absolute;
  left: var(--gutter);
  top: clamp(80px, 11vh, 120px);
}
.sc-list {
  align-self: end;
  padding-bottom: 6vh;
}
.sc-list ol {
  list-style: none;
}
.sc-list .micro {
  color: var(--mute);
  margin-bottom: 12px;
  display: block;
}
.sc-list li {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 500;
  color: #c7cdcb;
  transition: color 0.4s;
}
.sc-list li.on {
  color: var(--ink);
}

.screen .bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font:
    500 9px "Geist Mono",
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mute);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.screen .bar b {
  color: var(--ink);
  font-family: "Geist", sans-serif;
  font-size: 12px;
  text-transform: none;
  letter-spacing: -0.01em;
}
.screen .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--mist);
  border-radius: 8px;
}
.screen .row.hl {
  background: var(--teal);
  color: var(--white);
}
.screen .pill {
  font:
    500 8.5px "Geist Mono",
    monospace;
  padding: 3px 6px;
  border-radius: 99px;
  background: var(--white);
  color: var(--teal);
  text-transform: uppercase;
}
.screen .grid7 {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.screen .grid7 i {
  aspect-ratio: 1;
  border-radius: 4px;
  background: var(--mist);
}
.screen .grid7 i.b {
  background: var(--teal);
}
.screen .grid7 i.c {
  background: var(--teal-hi);
}
.screen .kpi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.screen .kpi div {
  background: var(--mist);
  border-radius: 8px;
  padding: 8px;
}
.screen .kpi b {
  display: block;
  font-size: 18px;
  letter-spacing: -0.03em;
}
.screen .bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 70px;
  padding: 6px;
  background: var(--mist);
  border-radius: 8px;
}
.screen .bars i {
  flex: 1;
  background: var(--teal);
  border-radius: 2px;
}
.screen .bubble {
  max-width: 80%;
  padding: 7px 10px;
  border-radius: 12px;
  background: var(--mist);
}
.screen .bubble.me {
  align-self: flex-end;
  background: var(--teal);
  color: var(--white);
}
.screen .prod {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.screen .prod div {
  border-radius: 8px;
  background: var(--mist);
  padding: 6px;
}
.screen .prod .ph {
  aspect-ratio: 1;
  border-radius: 5px;
}
.screen .prod .ph::after,
.screen .prod .ph::before {
  display: none;
}
.screen .node {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.screen .node::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}
.screen .arrow {
  text-align: center;
  color: var(--mute);
  line-height: 1;
}
.sc-code {
  justify-self: end;
  align-self: center;
  text-align: right;
  color: var(--mute);
}
.sc-code b {
  display: block;
  color: var(--ink);
  font-size: 12px;
  margin-top: 4px;
}
.sc-copy {
  position: absolute;
  right: var(--gutter);
  bottom: 40px;
  max-width: 280px;
  font-size: 13.5px;
  color: var(--soft);
}
@media (max-width: 900px) {
  .showcase {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    padding-top: 140px;
  }
  .sc-stage {
    width: min(90vw, 420px);
    justify-self: center;
    grid-row: 2;
  }
  .sc-list {
    grid-row: 3;
    padding-bottom: 0;
  }
  .sc-list li {
    font-size: 1.2rem;
    display: inline;
    margin-right: 10px;
  }
  .sc-code,
  .sc-copy {
    display: none;
  }
}

/* S.04 process (big centered + dark cards) */
.big-center {
  text-align: center;
  padding-top: 6vh;
}
.big-center h2 {
  font-size: clamp(2.6rem, 6.4vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 500;
}
.big-center .micro {
  color: var(--mute);
  margin-top: 14px;
  display: block;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: clamp(50px, 10vh, 110px);
}
.card {
  position: relative;
  aspect-ratio: 0.78;
  background: var(--ink);
  color: var(--white);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
}
.card .num {
  font:
    500 10.5px "Geist Mono",
    monospace;
  letter-spacing: 0.08em;
  color: var(--teal-hi);
}
.card .big {
  position: absolute;
  right: -6px;
  top: 10%;
  font-size: clamp(7rem, 13vw, 12rem);
  font-weight: 500;
  letter-spacing: -0.08em;
  line-height: 1;
  color: #ffffff0d;
  transition: color 0.5s;
}
.card p {
  font-size: 12.5px;
  color: #b6c0bf;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.5s var(--ease),
    opacity 0.4s;
}
.card h3 {
  font-size: 1.15rem;
  font-weight: 500;
}
.card:hover .big {
  color: #7fc2bd33;
}
.card:hover p {
  max-height: 120px;
  opacity: 1;
  margin-top: 8px;
}
.card-cap {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--soft);
}
@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
  .card p {
    max-height: none;
    opacity: 1;
  }
}

/* S.05 sectors wheel */
.wheel-sec {
  height: 100svh;
  min-height: 600px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 0 var(--gutter);
}
.wheel-sec .head {
  position: absolute;
  left: var(--gutter);
  top: clamp(80px, 11vh, 120px);
  max-width: 520px;
}
.wheel {
  position: relative;
  height: 60vh;
  width: 100%;
  -webkit-mask: linear-gradient(transparent, #000 30%, #000 70%, transparent);
  mask: linear-gradient(transparent, #000 30%, #000 70%, transparent);
}
.wheel ul {
  list-style: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  text-align: center;
}
.wheel li {
  height: 1.3em;
  font-size: clamp(2rem, 4.4vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.3;
  color: #cdd3d1;
  transition:
    color 0.3s,
    transform 0.3s;
}
.wheel li.on {
  color: var(--ink);
}
.wheel-sec .rail {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  height: 46vh;
  width: 1px;
  background: repeating-linear-gradient(var(--mute) 0 1px, transparent 1px 8px);
}
.wheel-sec .rail.l {
  left: var(--gutter);
}
.wheel-sec .rail.r {
  right: var(--gutter);
}

/* CTA band · brand teal + drawn logo */

.cta { position: relative; min-height: 90svh; display: grid; align-items: end; color: var(--white); overflow: hidden; background: var(--teal); padding: var(--gutter); }
.cta .mark { position: absolute; right: -3vw; top: 7%; width: min(46vw, 640px); overflow: visible; }
.cta .mark path { fill: #ffffff08; stroke: #ffffff4d; stroke-width: 1.5; }
.cta .inner { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: end; }
.cta h2 { font-size: clamp(2.6rem, 6vw, 6rem); line-height: 0.98; letter-spacing: -0.05em; font-weight: 500; margin-top: 22px; }
.cta p { color: #d4e7e5; max-width: 36ch; margin-bottom: 22px; }
.cta .mail { display: inline-block; margin-top: 22px; font-size: clamp(1.2rem, 2vw, 1.6rem); letter-spacing: -0.02em; border-bottom: 1px solid #ffffff66; padding-bottom: 4px; transition: border-color 0.3s; }
.cta .mail:hover { border-color: var(--white); }
@media (max-width: 760px) { .cta .inner { grid-template-columns: 1fr; } .cta .mark { width: 120vw; right: -40vw; } }

/* ---------- inner page hero ---------- */
.page-hero {
  position: relative;
  min-height: 78svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 120px var(--gutter) var(--gutter);
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}
.page-hero > .ph,
.page-hero > video {
  position: absolute;
  inset: 0;
  border-radius: 0;
  opacity: 0.55;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero .shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0d101099, #0d101033 40%, #0d1010cc);
}
.page-hero .crumbs {
  position: relative;
  color: #b9c2c1;
}
.page-hero h1 {
  position: relative;
  align-self: end;
  font-size: clamp(3rem, 8.4vw, 8.4rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
  font-weight: 500;
}
.page-hero .row {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-top: 30px;
}
.page-hero .row p {
  max-width: 44ch;
  color: #d6dedd;
  font-size: 1.05rem;
}

/* ---------- solutions page ---------- */
.sol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
  padding: clamp(70px, 10vh, 110px) var(--gutter);
  border-top: 1px solid var(--line);
  align-items: center;
}
.sol:nth-of-type(even) .sol-media {
  order: -1;
}
.sol-media {
  aspect-ratio: 4 / 3;
}
.sol .k {
  color: var(--mute);
}
.sol h2 {
  font-size: clamp(2rem, 4.2vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 500;
  margin: 14px 0 18px;
}
.sol p.lead {
  color: var(--soft);
  max-width: 46ch;
  font-size: 1.05rem;
}
.sol .cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-top: 30px;
}
.sol .cols ul {
  list-style: none;
  font-size: 14px;
}
.sol .cols li {
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.sol .cols .micro {
  color: var(--mute);
  display: block;
  margin-bottom: 8px;
}
@media (max-width: 860px) {
  .sol {
    grid-template-columns: 1fr;
  }
  .sol:nth-of-type(even) .sol-media {
    order: 0;
  }
}

/* ---------- company page ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 60px;
}
.value {
  background: var(--white);
  border-radius: 4px;
  padding: 22px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.value h3 {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.value p {
  font-size: 13.5px;
  color: var(--soft);
  margin-top: 8px;
}
.team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 60px;
}
.member .ph {
  aspect-ratio: 3 / 4;
}
.member b {
  display: block;
  margin-top: 10px;
  font-weight: 500;
}
.member span {
  color: var(--mute);
}
@media (max-width: 900px) {
  .values,
  .team {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- careers page ---------- */
.jobs {
  list-style: none;
  margin-top: 50px;
  border-top: 1px solid var(--ink);
}
.job {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  transition:
    padding 0.4s var(--ease),
    background 0.4s;
}
.job h3 {
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}
.job > span {
  color: var(--soft);
  font-size: 14px;
}
.job:hover {
  padding-inline: 14px;
  background: var(--mist);
}
@media (max-width: 760px) {
  .job {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* ---------- forms ---------- */
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 20px;
}
.field {
  display: grid;
  gap: 8px;
}
.field.full {
  grid-column: 1 / -1;
}
.field label {
  font:
    500 10px "Geist Mono",
    monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}
.field input,
.field select,
.field textarea {
  font:
    400 1.05rem "Geist",
    sans-serif;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 8px 0 12px;
  border-radius: 0;
  outline: none;
  transition: border-color 0.3s;
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--teal);
}
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.choices label {
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  font:
    400 14px "Geist",
    sans-serif;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 8px 14px;
  transition: all 0.25s;
}
.choices input:checked + label {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.choices input:focus-visible + label {
  outline: 2px solid var(--teal);
}
.form-note {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--mute);
  font-size: 13px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: calc(var(--gutter) * 2);
}
.contact-info {
  display: grid;
  gap: 28px;
  align-content: start;
}
.contact-info .micro {
  color: var(--mute);
  display: block;
  margin-bottom: 6px;
}
.contact-info a,
.contact-info p {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.contact-info .ph {
  aspect-ratio: 4 / 3;
}
@media (max-width: 860px) {
  .contact-grid,
  .form {
    grid-template-columns: 1fr;
  }
}

/* ---------- footer ---------- */

.f-top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 30px; padding-bottom: 60px; border-bottom: 1px solid #ffffff1a; }
.f-bottom { padding-top: 24px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--mute); font-size: 13px; }

.site-footer {
  position: relative;
  z-index: 2;
  background: var(--ink);
  color: var(--white);
  padding: 70px var(--gutter) 26px;
  overflow: hidden;
}

.f-top .brand p {
  color: #a5afae;
  max-width: 30ch;
  margin-top: 16px;
  font-size: 14px;
}
.f-top .brand img {
  height: 26px;
  width: auto;
}
.f-col h4 {
  font:
    500 10px "Geist Mono",
    monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 16px;
}
.f-col a,
.f-col span {
  display: block;
  font-size: 14.5px;
  color: #d9e0df;
  padding: 4px 0;
}
.f-col a:hover {
  color: var(--teal-hi);
}

.f-bottom nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.f-bottom a:hover {
  color: var(--white);
}
.next-page {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  padding: 60px var(--gutter);
  background: var(--mist);
  position: relative;
  z-index: 2;
}
.next-page a {
  font-size: clamp(2.4rem, 6vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 500;
  transition: color 0.3s;
}
.next-page a:hover {
  color: var(--teal);
}
@media (max-width: 960px) {
  .f-top {
    grid-template-columns: 1fr 1fr;
  }
  .f-top .brand {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01s !important;
    animation-duration: 0.01s !important;
  }
}

/* careers: no open positions */
.no-jobs { margin-top: 50px; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 30px; border: 1px dashed var(--mute); border-radius: 6px; }
.no-jobs .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mute); box-shadow: 0 0 0 6px #8b949326; }
.no-jobs h3 { font-size: clamp(1.3rem, 2.2vw, 2rem); font-weight: 500; letter-spacing: -0.03em; }
.no-jobs p { color: var(--soft); margin-top: 4px; }
@media (max-width: 760px) { .no-jobs { grid-template-columns: 1fr; } }

/* section label floated before an h2, so the heading text stays clean for SEO */
.chip.float { float: left; margin: 0.62em 16px 0 0; vertical-align: 0; }
.wheel-sec .chip.float { margin-top: 0.42em; }

/* CTA with the sunset video */
.cta { background: #2a160b; }
.cta video, .cta .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta .shade { position: absolute; inset: 0; background: linear-gradient(180deg, #0d101000 25%, #0d1010b3 80%, #0d1010e6 100%), linear-gradient(90deg, #0d101073 0%, transparent 60%); }
.cta .chip span:first-child { background: var(--white); color: var(--ink); }

/* the curtain only covers the page when arriving from an internal link (and never without JS) */
.curtain { display: none; }
.js .curtain { display: grid; }
.js:not(.from-nav) .curtain:not(.is-in) { transform: translateY(-100%); }

/* footer column labels (plain text, not headings) */
.f-h { display: block; font: 500 10px "Geist Mono", monospace; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); margin-bottom: 16px; }
.f-col span.f-h { padding: 0; color: var(--mute); }
.menu nav a[aria-current="page"] small { color: var(--teal-hi); }

/* ---------- intro: the Q "powers on" ----------
   First page of a visit only. The page renders underneath from the first paint (good for
   LCP and crawlers); the intro is the top layer that leaves with the first scroll, tap or
   key, or by itself when the animation ends. Then it is removed and can't be reached again.
   The mark starts turned -150° so the bar points north (a power symbol), gets pressed,
   turns into place and lights up; then UALYTRA is typed with the logo's own letters. */
.intro { display: none; }
.js:not(.intro-seen) .intro { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; overflow: hidden; background: var(--teal); animation: q-bg 1.5s both; cursor: pointer; }
.intro.is-leaving { transform: translateY(-100%); transition: transform 0.95s var(--ease); pointer-events: none; }

/* logo box = qualytra-logo.png bounding box (1269×210 px); children placed in % of it */
.q-logo { position: relative; aspect-ratio: 1269 / 210; }
.q-logo .q { position: absolute; left: 0; top: 0; width: 19%; height: 100%; overflow: visible; }
.q-logo .q path { fill: #fff; stroke: #fff0; stroke-width: 9; stroke-linejoin: round; }
.q-logo .q-type { position: absolute; left: 21.99%; top: 0; width: 78.8%; height: 100%; fill: #fff; }
.q-logo .q-caret { position: absolute; top: 26.2%; height: 69.5%; width: 2px; left: 101.5%; background: var(--teal-hi); opacity: 0; }
.intro .q-logo { width: min(460px, 72vw); }
.curtain .q-logo { width: min(260px, 56vw); }
.q-pulse { position: absolute; left: 50%; top: 50%; width: 130px; height: 130px; margin: -65px 0 0 -65px; border-radius: 50%; border: 1px solid var(--teal-hi); opacity: 0; }

.intro .q { animation: q-turn 1.5s both; }
.intro .q path { animation: q-on 1.5s both; }
.intro .q-pulse { animation: q-pulse 1.5s both; }
.intro .q-logo { animation: q-slide 0.45s 1.45s cubic-bezier(0.65, 0.05, 0.25, 1) both; }
.intro .q-type path { animation: q-letter 0.01s both; }
.intro .q-type path:nth-child(1) { animation-delay: 1.75s; }
.intro .q-type path:nth-child(2) { animation-delay: 1.85s; }
.intro .q-type path:nth-child(3) { animation-delay: 1.95s; }
.intro .q-type path:nth-child(4) { animation-delay: 2.05s; }
.intro .q-type path:nth-child(5) { animation-delay: 2.15s; }
.intro .q-type path:nth-child(6) { animation-delay: 2.25s; }
.intro .q-type path:nth-child(7) { animation-delay: 2.35s; }
.intro .q-caret { animation: q-caret 0.7s 1.75s both, q-caret-on 2.7s both; }

@keyframes q-turn {
  0% { transform: rotate(-150deg) scale(0.92); opacity: 0; filter: drop-shadow(0 0 0 #7fc2bd00); }
  14% { transform: rotate(-150deg) scale(1); opacity: 1; }
  28% { transform: rotate(-150deg) scale(0.82); animation-timing-function: cubic-bezier(0.5, 0, 0.2, 1); }
  36% { transform: rotate(-150deg) scale(0.9); animation-timing-function: cubic-bezier(0.75, 0, 0.2, 1); }
  74% { transform: rotate(8deg) scale(1.05); filter: drop-shadow(0 0 26px #7fc2bdcc); animation-timing-function: ease-out; }
  88%, 100% { transform: rotate(0deg) scale(1); opacity: 1; filter: drop-shadow(0 0 8px #7fc2bd55); }
}
@keyframes q-on { 0%, 54% { fill: #ffffff00; stroke: #ffffff80; } 74%, 100% { fill: #fff; stroke: #fff0; } }
@keyframes q-bg { 0%, 56% { background-color: #0b2423; } 80%, 100% { background-color: var(--teal); } }
@keyframes q-pulse { 0%, 70% { opacity: 0; transform: scale(0.6); } 75% { opacity: 0.9; } 100% { opacity: 0; transform: scale(2.8); } }
@keyframes q-slide { from { transform: translateX(40.5%); } to { transform: none; } }
@keyframes q-letter { from { opacity: 0; } to { opacity: 1; } }
@keyframes q-caret {
  0% { left: 22.8%; animation-timing-function: steps(1, end); }
  14.3% { left: 32.3%; animation-timing-function: steps(1, end); }
  28.6% { left: 44.8%; animation-timing-function: steps(1, end); }
  42.9% { left: 55.3%; animation-timing-function: steps(1, end); }
  57.1% { left: 66.3%; animation-timing-function: steps(1, end); }
  71.4% { left: 77.8%; animation-timing-function: steps(1, end); }
  85.7% { left: 89.3%; animation-timing-function: steps(1, end); }
  100% { left: 101.5%; }
}
@keyframes q-caret-on { 0%, 62% { opacity: 0; } 63%, 89% { opacity: 1; } 90%, 93% { opacity: 0; } 94%, 97% { opacity: 1; } 98%, 100% { opacity: 0; } }
/* the header logo waits for the intro, so the wordmark isn't shown twice */
.site-header .logo { transition: opacity 0.6s 0.3s; }
.js:not(.intro-seen):not(.intro-done) .site-header .logo { opacity: 0; }

/* =====================================================================
   MOBILE (≤ 760px) — layouts designed for phones, not just squeezed.
   Kept in one block at the end so it overrides the desktop rules above.
   ===================================================================== */
@media (max-width: 760px) {
  /* sections size to their content (full-screen only where the design needs it) */
  .sec { min-height: 0; padding: 80px var(--gutter); }
  .statement { font-size: clamp(1.45rem, 6.6vw, 1.95rem); max-width: none; }
  .chip.float, .wheel-sec .chip.float { float: none; display: flex; width: max-content; margin: 0 0 18px; }

  /* header + menu: 44px touch targets */
  .site-header { padding: 14px var(--gutter); }
  .menu-btn .ring { width: 44px; height: 44px; }
  .menu { padding: 96px var(--gutter) 28px; gap: 28px; }
  .menu nav a { font-size: clamp(2.2rem, 11vw, 3rem); padding: 4px 0; }
  .menu aside { gap: 16px; font-size: 15px; }
  .menu aside a { display: inline-block; padding: 6px 0; }

  /* hero: text stacked, swipe cue instead of the mouse icon */
  .hero h1 { font-size: clamp(2.4rem, 11.5vw, 3.2rem); }
  .hero .bottom { flex-direction: column; align-items: flex-start; gap: 22px; }
  .hero .lede { font-size: 1rem; }
  .scroll-cue { flex-direction: row-reverse; }
  .scroll-cue .txt { display: grid; text-align: left; }
  .scroll-cue .txt .micro { display: none; }

  /* S.01 facts */
  .about-grid { margin-top: 48px; gap: 36px; }
  .fact b { font-size: 1.45rem; }

  /* S.02 solutions: a readable list instead of tiny squares */
  .tiles { grid-template-columns: 1fr; gap: 6px; margin-top: 40px; }
  .tile { aspect-ratio: auto; min-height: 0; display: grid; grid-template-columns: 26px 1fr; column-gap: 14px; align-items: start; padding: 18px 16px; }
  .tile:hover { transform: none; }
  .tile h3 { font-size: 1.1rem; padding-right: 52px; }
  .tile p { max-height: none; opacity: 0.8; margin-top: 6px; font-size: 14px; }
  .tile .tag { top: 20px; right: 16px; }
  .sec-foot { justify-content: flex-start; margin-top: 28px; }

  /* S.03 showcase: label · stage · pills, all within one screen */
  .showcase { display: flex; flex-direction: column; justify-content: center; gap: 22px; height: 100svh; min-height: 0; padding: 84px var(--gutter) 28px; }
  .showcase .head { position: static; order: 0; align-self: flex-start; }
  .sc-stage { order: 1; width: min(100%, 380px); align-self: center; aspect-ratio: 0.95; }
  .screens { width: 68%; }
  .sc-list { order: 2; padding: 0; }
  .sc-list .micro { margin-bottom: 10px; }
  .sc-list ol { display: flex; flex-wrap: wrap; gap: 6px; }
  .sc-list li { display: block; margin: 0; font-size: 13.5px; letter-spacing: 0; padding: 7px 12px; border-radius: 99px; border: 1px solid var(--line); color: var(--mute); transition: all 0.3s; }
  .sc-list li.on { background: var(--ink); border-color: var(--ink); color: var(--white); }
  .sc-code, .sc-copy { display: none; }

  /* S.04 process */
  .big-center { padding-top: 0; }
  .cards { margin-top: 40px; gap: 6px; }
  .card { aspect-ratio: auto; min-height: 220px; padding: 16px; }
  .card p { max-height: none; opacity: 1; margin-top: 6px; font-size: 13px; }
  .card .big { font-size: 6.5rem; }

  /* S.05 sectors */
  .wheel-sec .head { top: 84px; right: var(--gutter); }
  .wheel { height: 54vh; margin-top: 60px; }
  .wheel li { font-size: clamp(1.8rem, 8.5vw, 2.4rem); }

  /* CTA */
  .cta { min-height: 88svh; padding: 28px var(--gutter); }
  .cta h2 { font-size: clamp(2.4rem, 11vw, 3.2rem); }

  /* inner page heroes */
  .page-hero { min-height: 72svh; padding-top: 104px; }
  .page-hero h1 { font-size: clamp(2.8rem, 13vw, 4rem); }
  .page-hero .row { flex-direction: column; align-items: flex-start; gap: 20px; }
  .page-hero .row p { font-size: 1rem; }

  /* solutions page */
  .sol { padding: 64px var(--gutter); gap: 26px; }
  .sol-media { order: -1; }
  .sol h2 { font-size: clamp(1.9rem, 8.6vw, 2.5rem); }
  .sol .cols { grid-template-columns: 1fr; gap: 18px; }

  /* company + careers */
  .values { grid-template-columns: 1fr; }
  .value { min-height: 0; gap: 26px; }
  .no-jobs { padding: 22px; gap: 14px; }
  .no-jobs .btn { justify-self: start; }

  /* contact */
  .contact-grid { gap: 48px; }
  .contact-info { grid-template-columns: 1fr; gap: 18px; }
  .contact-info a { display: inline-block; padding: 4px 0; }
  .choices label { padding: 10px 16px; font-size: 14.5px; }
  .form .btn { width: 100%; justify-content: space-between; }

  /* footer: one column of sections, roomy links */
  .next-page { flex-direction: column; align-items: flex-start; padding: 44px var(--gutter); }
  .site-footer { padding-top: 52px; }
  .f-top { grid-template-columns: 1fr 1fr; gap: 34px 20px; padding-bottom: 36px; }
  .f-col a, .f-col span { padding: 9px 0; font-size: 15px; }
  .f-bottom { flex-direction: column; gap: 14px; }
  .f-bottom nav { gap: 6px 20px; }
  .f-bottom nav a { padding: 8px 0; }
}

/* touch screens: no hover, so show a swipe cue instead of a mouse */
@media (hover: none) {
  .scroll-cue .mouse { width: 1px; height: 44px; border: 0; border-radius: 0; background: linear-gradient(#fff0, #ffffffb3); }
  .scroll-cue .mouse::after { width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; top: 0; animation: swipe 1.8s var(--ease) infinite; }
}
@keyframes swipe { 0% { transform: translateY(0); opacity: 0; } 25% { opacity: 1; } 100% { transform: translateY(38px); opacity: 0; } }

/* =====================================================================
   TRABAJADOR AUTÓNOMO — our product. Uses its own navy so it reads as
   "their product inside our site"; layout follows the rest of the page.
   ===================================================================== */
:root { --ta: #0b1d2c; --ta-2: #13314a; }
.f-top { grid-template-columns: 1.4fr repeat(4, 1fr); }
@media (max-width: 960px) { .f-top { grid-template-columns: 1fr 1fr; } }

.ta-logo { display: block; width: min(320px, 70%); height: auto; }
.ta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 28px; }
.ta-link { font-size: 15px; border-bottom: 1px solid currentColor; padding: 4px 0; opacity: 0.85; transition: opacity 0.3s; }
.ta-link:hover { opacity: 1; }
.ta-inline { color: var(--teal); border-bottom: 1px solid #1d5f5e55; }
.ta-inline:hover { border-color: var(--teal); }

/* browser + phone frames around the real screenshots */
.ta-browser { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 40px 80px -30px #000c, 0 0 0 1px #ffffff1f; }
.ta-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #eef1f3; border-bottom: 1px solid #dfe4e7; }
.ta-bar i { width: 9px; height: 9px; border-radius: 50%; background: #c9d0d5; }
.ta-bar span { margin-left: 10px; font: 500 11px "Geist Mono", monospace; color: #7b8790; background: #fff; border-radius: 6px; padding: 3px 10px; }
.ta-browser img { width: 100%; height: auto; display: block; }
.ta-phone { position: absolute; width: 24%; right: -2%; bottom: -10%; border-radius: 26px; padding: 7px; background: #0a0f14; box-shadow: 0 30px 60px -20px #000d; }
.ta-phone img { width: 100%; height: auto; border-radius: 20px; display: block; }

/* page hero */
.ta-hero { position: relative; min-height: 100svh; background: radial-gradient(70% 60% at 80% 30%, var(--ta-2), var(--ta) 70%); color: #fff; padding: 110px var(--gutter) 80px; overflow: hidden; }
.ta-hero .crumbs { color: #9fb0bd; }
.ta-hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(30px, 5vw, 80px); align-items: center; margin-top: clamp(30px, 6vh, 70px); }
.ta-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 7px; border: 1px solid #ffffff2e; border-radius: 99px; color: #d6e0e7; }
.ta-badge img { width: 18px; height: 18px; border-radius: 4px; background: var(--teal); padding: 2px; }
.ta-hero .ta-logo { margin-top: 28px; }
.ta-hero h1 { font-size: clamp(2.2rem, 4.2vw, 4rem); line-height: 1.02; letter-spacing: -0.045em; font-weight: 500; margin-top: 26px; max-width: 15ch; }
.ta-hero-copy > p { color: #c6d3dc; font-size: 1.1rem; max-width: 46ch; margin-top: 20px; }
.ta-price { color: #9fb0bd; }
.ta-hero-media { position: relative; margin-bottom: 8%; }

/* hero: the logo is the h1 */
.ta-hero h1 { margin-top: 28px; max-width: none; }
.ta-hero h1 .ta-logo { width: min(460px, 90%); margin: 0; }
.ta-hero-copy > p { font-size: clamp(1.15rem, 1.7vw, 1.45rem); color: #d6e0e7; max-width: 30ch; }
.ta-hero-media { display: block; transition: transform 0.6s var(--ease); }
.ta-hero-media:hover { transform: translateY(-6px); }

/* screenshot gallery (no explanations: the product's own site does that) */
.ta-shot { display: grid; place-items: center; padding: clamp(14px, 2vw, 28px); background: linear-gradient(150deg, #eef2f5, #e2e8ec); border-radius: 6px; }
.ta-shot img { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 24px 50px -24px #0b1d2c66, 0 0 0 1px #0b1d2c14; }
.ta-gallery { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; margin-top: clamp(50px, 9vh, 90px); align-items: stretch; }
.ta-present .ta-actions { margin-top: 36px; }

@media (max-width: 860px) {
  .ta-hero-grid { grid-template-columns: 1fr; }
  .ta-hero { padding-top: 100px; }
  .ta-hero-media { margin: 10px 4% 14% 0; }
  .ta-gallery { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .ta-hero-copy > p { font-size: 1.1rem; }
  .ta-phone { width: 30%; right: -4%; }
  .ta-bar span { display: none; }
}
