:root {
  --ice: #d7e6f2;
  --ice-2: #c5d8e8;
  --sheet: #f4f8fb;
  --ink: #15202b;
  --soft: #405466;
  --fade: #7a8b9a;
  --sun: #e8c547;
  --sun-ink: #5c4a0a;
  --lagoon: #1f6f78;
  --line: rgba(21, 32, 43, 0.16);
  --rail: 232px;
  --display: "Fraunces", Georgia, serif;
  --sans: "Sora", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body.tq {
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(232, 197, 71, 0.28), transparent 55%),
    linear-gradient(165deg, var(--ice), var(--sheet) 42%, #eef4f8);
  min-height: 100vh;
  line-height: 1.65;
}

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

.tq-frame {
  display: grid;
  grid-template-columns: var(--rail) 1fr;
  min-height: 100vh;
}

.tq-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 1.75rem 1.25rem;
  border-right: 1px solid var(--line);
  background: rgba(244, 248, 251, 0.72);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tq-mark {
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.tq-rail__place {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lagoon);
  margin-top: -0.6rem;
}

.tq-rail__nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 0.5rem;
}

.tq-rail__nav a {
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--soft);
}

.tq-rail__nav a:hover,
.tq-rail__nav a[aria-current="page"] {
  background: rgba(31, 111, 120, 0.12);
  color: var(--lagoon);
}

.tq-rail__cta {
  margin-top: auto;
  display: inline-flex;
  justify-content: center;
  padding: 0.75rem 0.9rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
}

.tq-rail__cta:hover {
  background: var(--lagoon);
}

.tq-stage {
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 3vw, 2.75rem) 2rem;
  min-width: 0;
}

.tq-burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--sheet);
  margin-bottom: 1rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.tq-burger i {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

/* Mast — stacked, not split */
.tq-mast {
  display: grid;
  gap: 1.75rem;
  margin-bottom: 3rem;
}

.tq-kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lagoon);
}

.tq-mast h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 16ch;
}

.tq-mast h1 b {
  font-weight: 700;
  background: linear-gradient(120deg, transparent 0%, var(--sun) 0%, var(--sun) 100%);
  background-size: 100% 38%;
  background-position: 0 78%;
  background-repeat: no-repeat;
}

.tq-lede {
  color: var(--soft);
  font-size: 1.05rem;
  max-width: 40rem;
}

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

.tq-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
}

.tq-chip--fill {
  background: var(--lagoon);
  color: #fff;
}

.tq-chip--ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.tq-aside-note {
  font-size: 0.88rem;
  color: var(--fade);
  max-width: 36rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px dashed var(--line);
}

/* Horizontal form strip under mast */
.tq-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 1fr);
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 3.5rem;
  scroll-snap-type: x mandatory;
}

.tq-tile {
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1.05rem;
  min-height: 132px;
  position: relative;
  overflow: hidden;
}

.tq-tile::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(232, 197, 71, 0.25);
}

.tq-tile span {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fade);
}

.tq-tile strong {
  display: block;
  font-family: var(--display);
  font-size: 1.15rem;
  margin: 0.45rem 0 0.35rem;
}

.tq-tile p {
  font-size: 0.86rem;
  color: var(--soft);
}

.tq-tile[data-tone="ready"] {
  border-color: rgba(31, 111, 120, 0.35);
}

.tq-tile[data-tone="wait"] {
  background: linear-gradient(160deg, #fff, rgba(232, 197, 71, 0.18));
}

/* Zig sections */
.tq-band {
  margin-bottom: 3.25rem;
}

.tq-band__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.35rem;
}

.tq-band h2 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: -0.02em;
  max-width: 16ch;
}

.tq-band__head p {
  color: var(--soft);
  max-width: 28rem;
  font-size: 0.95rem;
}

.tq-mosaic {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 0.85rem;
}

.tq-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.35rem 1.3rem;
}

.tq-card--tall {
  grid-row: span 2;
  background:
    linear-gradient(165deg, rgba(31, 111, 120, 0.92), rgba(21, 32, 43, 0.95));
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
}

.tq-card--tall p {
  color: rgba(255, 255, 255, 0.78);
}

.tq-card__ix {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lagoon);
  margin-bottom: 0.55rem;
}

.tq-card--tall .tq-card__ix {
  color: var(--sun);
}

.tq-card h3 {
  font-family: var(--display);
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.tq-card p {
  color: var(--soft);
  font-size: 0.94rem;
}

.tq-card--tall h3 {
  font-size: 1.7rem;
  max-width: 12ch;
}

/* Timeline vertical */
.tq-timeline {
  display: grid;
  gap: 0;
  border-left: 2px solid var(--line);
  margin-left: 0.65rem;
  padding-left: 1.35rem;
}

.tq-beat {
  position: relative;
  padding: 0 0 1.5rem;
}

.tq-beat::before {
  content: "";
  position: absolute;
  left: -1.6rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--sun);
  border: 2px solid var(--ink);
}

.tq-beat:last-child {
  padding-bottom: 0;
}

.tq-beat time {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--lagoon);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tq-beat h3 {
  font-family: var(--display);
  font-size: 1.2rem;
  margin: 0.25rem 0;
}

.tq-beat p {
  color: var(--soft);
  font-size: 0.94rem;
}

/* Feature ladder — reverse of previous lists */
.tq-ladder {
  display: grid;
  gap: 0.7rem;
}

.tq-rung {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 1.2rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
}

.tq-rung h3 {
  font-family: var(--display);
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.tq-rung p {
  color: var(--soft);
  font-size: 0.9rem;
}

.tq-rung em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sun-ink);
  background: var(--sun);
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}

.tq-split {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 1.5rem;
  align-items: start;
}

.tq-bullets {
  list-style: none;
  margin-top: 1rem;
  display: grid;
  gap: 0.45rem;
}

.tq-bullets li {
  padding: 0.55rem 0.75rem;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--soft);
  font-size: 0.94rem;
}

.tq-meter {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.2rem;
  display: grid;
  gap: 0.85rem;
}

.tq-meter div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--soft);
  padding-bottom: 0.65rem;
  border-bottom: 1px dashed var(--line);
}

.tq-meter div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.tq-meter strong {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink);
}

.tq-banner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1.4rem 1.5rem;
  border-radius: 18px;
  background: var(--ink);
  color: #fff;
  margin-bottom: 1rem;
}

.tq-banner h2 {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  margin-bottom: 0.3rem;
}

.tq-banner p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}

.tq-banner .tq-chip--ghost {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.tq-page h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.02em;
  max-width: 16ch;
  margin: 0.5rem 0 0.75rem;
}

.tq-page > .tq-lede {
  margin-bottom: 2rem;
}

.tq-legal {
  max-width: 720px;
}

.tq-legal h2 {
  font-family: var(--display);
  font-size: 1.2rem;
  margin: 1.6rem 0 0.45rem;
}

.tq-legal p {
  color: var(--soft);
  margin-bottom: 0.65rem;
}

.tq-legal a {
  color: var(--lagoon);
  text-decoration: underline;
}

.tq-contact {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1.2rem;
}

.tq-info {
  display: grid;
  gap: 0.65rem;
}

.tq-info article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.95rem 1.05rem;
}

.tq-info h3 {
  font-family: var(--display);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.tq-info p,
.tq-info a,
.tq-info address {
  font-style: normal;
  color: var(--soft);
  font-size: 0.92rem;
}

.tq-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem;
}

.tq-field {
  margin-bottom: 0.9rem;
}

.tq-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.tq-field input,
.tq-field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--sheet);
  font: inherit;
  color: var(--ink);
}

.tq-field input:focus,
.tq-field textarea:focus {
  outline: 2px solid rgba(31, 111, 120, 0.25);
  border-color: var(--lagoon);
}

.tq-field textarea {
  min-height: 120px;
  resize: vertical;
}

.tq-foot {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.75rem;
  color: var(--fade);
  font-size: 0.88rem;
}

.tq-foot strong {
  display: block;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.05rem;
}

.tq-foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.tq-cookie {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  max-width: 360px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 16px 40px rgba(21, 32, 43, 0.12);
  opacity: 0;
  transform: translateY(10px);
  transition: 0.3s ease;
}

.tq-cookie.is-on {
  opacity: 1;
  transform: none;
}

.tq-cookie p {
  font-size: 0.86rem;
  color: var(--soft);
  margin-bottom: 0.75rem;
}

.tq-cookie a {
  color: var(--lagoon);
  text-decoration: underline;
}

.tq-cookie__row {
  display: flex;
  gap: 0.45rem;
}

.tq-rise {
  opacity: 0;
  transform: translateY(14px);
  transition: 0.5s ease;
}

.tq-rise.is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 920px) {
  .tq-frame {
    grid-template-columns: 1fr;
  }

  .tq-rail {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(82vw, 280px);
    z-index: 40;
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    box-shadow: 12px 0 40px rgba(21, 32, 43, 0.15);
  }

  .tq-rail.is-open {
    transform: none;
  }

  .tq-burger {
    display: flex;
  }

  .tq-mosaic,
  .tq-split,
  .tq-contact {
    grid-template-columns: 1fr;
  }

  .tq-card--tall {
    grid-row: auto;
    min-height: auto;
  }

  .tq-rung {
    grid-template-columns: 1fr;
  }

  .tq-rung em {
    justify-self: start;
  }
}
