@charset "UTF-8";

/* ==========================================================================
   Transingenium
   Palette taken from the live brand, not invented: --bs-primary #335EEA is the
   logo blue, #1B2A4E / #161C2D the navy the wordmark resolves into. Type is
   geometric to sit with the TG monogram; the wave motif from the mark recurs
   as a background gesture.
   ========================================================================== */

:root {
  /* Brand — from cdn.transingenium.com theme (--bs-primary et al.) */
  --brand:        #335EEA;
  --brand-deep:   #294BBB;
  --brand-soft:   #6C8AEC;
  --brand-tint:   #EEF2FE;

  --navy:         #1B2A4E;
  --ink:          #161C2D;
  --slate:        #506690;
  --slate-light:  #869AB8;
  --line:         #D9E2EF;
  --mist:         #F1F4F8;
  --near-white:   #F9FBFD;
  --white:        #FFFFFF;

  /* Signal colours, also from the brand theme */
  --green:        #42BA96;
  --amber:        #FAD776;
  --violet:       #7C69EF;

  --measure:      66ch;
  --gutter:       clamp(1.25rem, 5vw, 5rem);
  --rhythm:       clamp(4rem, 10vh, 8rem);
  --radius:       14px;

  --display: "Sora", "Segoe UI", sans-serif;
  --body:    "Manrope", "Segoe UI", sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 2px 8px rgba(22, 28, 45, 0.06);
  --shadow-md: 0 12px 32px rgba(22, 28, 45, 0.10);
  --shadow-lg: 0 24px 64px rgba(27, 42, 78, 0.16);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
  color: var(--navy);
}

p { margin: 0 0 1.15em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: inherit; }
img, svg, video { max-width: 100%; height: auto; display: block; }

::selection { background: var(--brand); color: #fff; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 3px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff;
  padding: 0.75rem 1.25rem; z-index: 100;
  font-family: var(--mono); font-size: 0.8rem;
}
.skip:focus { left: 0; }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.wrap { width: 100%; max-width: 80rem; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--rhythm); }
.section--tint { background: var(--near-white); border-block: 1px solid var(--line); }

.marker {
  display: flex; align-items: center; gap: 0.9rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.marker__num {
  font-family: var(--mono); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.14em; color: var(--brand);
  background: var(--brand-tint);
  padding: 0.3rem 0.6rem; border-radius: 5px; flex: none;
}
.marker__label {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--slate);
}
.marker::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}

.split { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; }
@media (min-width: 62rem) {
  .split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
  .split--flip > :first-child { order: 2; }
  .split--even { grid-template-columns: 1fr 1fr; }
}

.lede {
  font-size: clamp(1.1rem, 1rem + 0.55vw, 1.35rem);
  line-height: 1.55; color: var(--slate); font-weight: 400;
}

.eyebrow {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.17em;
  text-transform: uppercase; color: var(--brand); margin: 0 0 1.35rem; font-weight: 500;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.masthead {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.masthead__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4.4rem; flex-wrap: wrap;
}

/* Brand: icon + CSS wordmark. Two-tone sampled from logo.png —
   TRANSIN #1B64F5, GENIUM #003399. */
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; flex: none; min-width: 0;
}
.brand__icon { height: 2.15rem; width: auto; flex: none; }
.brand__word {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.05rem, 0.9rem + 0.55vw, 1.4rem);
  letter-spacing: -0.015em; line-height: 1; white-space: nowrap;
}
.brand__word .w1 { color: #1B64F5; }
.brand__word .w2 { color: #003399; }

/* TBot — the T carries the emphasis. */
.tbot-name { font-weight: 700; letter-spacing: -0.01em; }
.tbot-name > span { color: var(--brand); font-weight: 800; }
.tbot-name--light > span { color: var(--brand-soft); }
h1 .tbot-name > span, h2 .tbot-name > span { color: inherit; opacity: 1; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.9rem); }
.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.9rem); }
.nav__links a {
  font-family: var(--body); font-size: 0.925rem; font-weight: 600;
  text-decoration: none; color: var(--slate);
  padding-block: 0.4rem; position: relative;
  transition: color 0.25s var(--ease); white-space: nowrap;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: var(--brand);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s var(--ease); border-radius: 2px;
}
.nav__links a:hover { color: var(--navy); }
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__links a[aria-current="page"] { color: var(--navy); }

/* --- Mobile menu: CSS-only, no JS (the stack has no build step) --- */
.navtoggle { position: absolute; opacity: 0; pointer-events: none; }
.burger {
  display: none; width: 2.75rem; height: 2.75rem; flex: none;
  border: 1px solid var(--line); border-radius: 9px;
  cursor: pointer; padding: 0.7rem 0.65rem;
  flex-direction: column; justify-content: space-between;
  background: var(--white);
}
.burger span {
  display: block; height: 2px; width: 100%; background: var(--navy);
  border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.navtoggle:focus-visible + .burger { outline: 2px solid var(--brand); outline-offset: 3px; }

@media (max-width: 56rem) {
  .burger { display: flex; }
  .nav {
    order: 3; width: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    max-height: 0; overflow: hidden;
    transition: max-height 0.4s var(--ease);
  }
  .navtoggle:checked ~ .nav { max-height: 32rem; }
  .navtoggle:checked ~ .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .navtoggle:checked ~ .burger span:nth-child(2) { opacity: 0; }
  .navtoggle:checked ~ .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav__links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__links a {
    padding: 0.95rem 0.25rem; border-top: 1px solid var(--line);
    font-size: 1.02rem; white-space: normal;
  }
  .nav__links a::after { display: none; }
  .nav__cta { margin: 1rem 0 1.25rem; justify-content: center; width: 100%; }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--body); font-size: 0.94rem; font-weight: 700;
  text-decoration: none; padding: 0.8rem 1.5rem;
  border: 1.5px solid var(--brand); background: var(--brand); color: #fff;
  border-radius: 9px; line-height: 1.2;
  box-shadow: 0 4px 14px rgba(51, 94, 234, 0.24);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease),
              transform 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.25s var(--ease);
}
.btn:hover {
  background: var(--brand-deep); border-color: var(--brand-deep);
  transform: translateY(-2px); box-shadow: 0 8px 22px rgba(51, 94, 234, 0.32);
}
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

.btn--ghost {
  background: transparent; color: var(--navy);
  border-color: var(--line); box-shadow: none;
}
.btn--ghost:hover {
  background: var(--brand-tint); border-color: var(--brand-soft);
  color: var(--brand-deep); box-shadow: none;
}

.btn--onDark { background: #fff; border-color: #fff; color: var(--navy); }
.btn--onDark:hover { background: var(--brand-tint); border-color: var(--brand-tint); color: var(--navy); }

.btn--outlineLight {
  background: transparent; color: #fff;
  border-color: rgba(255,255,255,0.4); box-shadow: none;
}
.btn--outlineLight:hover { background: rgba(255,255,255,0.12); border-color: #fff; box-shadow: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.25rem; }

/* --------------------------------------------------------------------------
   Hero — the wave motif from the logo, as atmosphere
   -------------------------------------------------------------------------- */

.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(3.5rem, 10vh, 7rem) clamp(3rem, 8vh, 6rem);
  background:
    radial-gradient(1100px 520px at 78% -10%, rgba(51, 94, 234, 0.10), transparent 62%),
    radial-gradient(760px 420px at 8% 108%, rgba(108, 138, 236, 0.10), transparent 60%),
    var(--white);
  border-bottom: 1px solid var(--line);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 -1px 0; height: 140px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 140' preserveAspectRatio='none'%3E%3Cpath d='M0 96C240 40 420 128 720 96s520-72 720-24v68H0z' fill='%23335EEA' fill-opacity='0.05'/%3E%3Cpath d='M0 116C260 66 460 132 760 108s500-56 680-20v52H0z' fill='%231B2A4E' fill-opacity='0.04'/%3E%3C/svg%3E");
  background-size: 100% 100%; pointer-events: none;
}
.hero > .wrap { position: relative; z-index: 1; }

.hero h1 {
  font-size: clamp(2.35rem, 1.3rem + 4.6vw, 4.6rem);
  max-width: 17ch; margin-bottom: 1.6rem;
}
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lede { max-width: 54ch; }

.rise { opacity: 0; animation: rise 0.85s var(--ease) forwards; }
.rise--1 { animation-delay: 0.04s; }
.rise--2 { animation-delay: 0.15s; }
.rise--3 { animation-delay: 0.26s; }
.rise--4 { animation-delay: 0.37s; }
.rise--5 { animation-delay: 0.48s; }
@keyframes rise { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rise { opacity: 1; animation: none; } }

/* Reach strip */
.reach {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: center;
  margin-top: clamp(2.5rem, 6vw, 4rem); padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--slate-light);
}
.reach strong { color: var(--navy); font-weight: 600; }
.reach .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }

/* --------------------------------------------------------------------------
   Capability cards
   -------------------------------------------------------------------------- */

.cards { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 42rem) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 68rem) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.1rem);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.card:hover { border-color: var(--brand-soft); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card h3 { font-size: 1.2rem; margin-bottom: 0.7rem; }
.card p { font-size: 0.96rem; color: var(--slate); margin: 0; }
.card__ico {
  width: 2.6rem; height: 2.6rem; border-radius: 9px;
  background: var(--brand-tint); color: var(--brand);
  display: grid; place-items: center; margin-bottom: 1.1rem;
  font-family: var(--mono); font-size: 0.78rem; font-weight: 500;
}

/* --------------------------------------------------------------------------
   TBot — the dark showcase band
   -------------------------------------------------------------------------- */

.tbot {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 480px at 82% 12%, rgba(51, 94, 234, 0.38), transparent 60%),
    radial-gradient(700px 420px at 10% 96%, rgba(124, 105, 239, 0.26), transparent 58%),
    var(--navy);
  color: #fff; padding-block: var(--rhythm);
}
.tbot h2 { color: #fff; font-size: clamp(2rem, 1.2rem + 3.2vw, 3.5rem); margin-bottom: 1.35rem; }
.tbot .eyebrow { color: var(--brand-soft); }
.tbot .lede { color: rgba(255,255,255,0.76); }
.tbot p { color: rgba(255,255,255,0.68); }

.tbot__panel {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px; padding: 1.35rem;
  backdrop-filter: blur(8px); box-shadow: var(--shadow-lg);
}
.chat { display: grid; gap: 0.75rem; }
.bubble {
  padding: 0.75rem 1rem; border-radius: 14px;
  font-size: 0.94rem; line-height: 1.5; max-width: 85%;
}
.bubble--them {
  background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.92);
  border-bottom-left-radius: 4px; justify-self: start;
}
.bubble--bot {
  background: var(--brand); color: #fff;
  border-bottom-right-radius: 4px; justify-self: end;
}
.bubble__who {
  display: block; font-family: var(--mono); font-size: 0.62rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  opacity: 0.65; margin-bottom: 0.3rem;
}
.tbot__feats { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 0.7rem; }
.tbot__feats li {
  display: flex; gap: 0.7rem; align-items: flex-start;
  color: rgba(255,255,255,0.82); font-size: 0.97rem;
}
.tbot__feats li::before {
  content: "→"; color: var(--brand-soft); flex: none; font-weight: 700;
}

/* --------------------------------------------------------------------------
   Work ledger
   -------------------------------------------------------------------------- */

.ledger { border-top: 1px solid var(--line); }
.entry {
  display: grid; grid-template-columns: 1fr; gap: 0.4rem 2rem;
  padding: clamp(1.4rem, 3vw, 2rem) 0;
  border-bottom: 1px solid var(--line); text-decoration: none;
  transition: background 0.35s var(--ease), padding-inline 0.35s var(--ease);
}
@media (min-width: 54rem) {
  .entry { grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 2.4fr); align-items: baseline; }
}
.entry:hover { background: var(--near-white); padding-inline: 1.15rem; }
.entry__name {
  font-family: var(--display); font-weight: 600; color: var(--navy);
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem); letter-spacing: -0.025em; line-height: 1.2;
}
.entry__what { color: var(--slate); font-size: 0.96rem; }
.entry__meta {
  display: flex; flex-wrap: wrap; gap: 0.35rem 0.7rem; align-items: center;
  font-family: var(--mono); font-size: 0.67rem; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--slate-light);
}
.pill {
  padding: 0.2rem 0.5rem; border-radius: 20px;
  background: var(--mist); color: var(--slate);
}
.pill--live { background: rgba(66, 186, 150, 0.14); color: #2f8a6d; }
.pill--build { background: rgba(250, 215, 118, 0.22); color: #97701a; }

/* --------------------------------------------------------------------------
   Practice list / timeline
   -------------------------------------------------------------------------- */

.practice > div {
  padding-block: clamp(1.4rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line);
  display: grid; gap: 0.45rem 2rem; grid-template-columns: 1fr;
}
@media (min-width: 54rem) {
  .practice > div { grid-template-columns: 3rem minmax(0, 4fr) minmax(0, 6fr); align-items: baseline; }
}
.practice h3 { font-size: clamp(1.1rem, 1rem + 0.45vw, 1.35rem); }
.practice p { color: var(--slate); font-size: 0.96rem; margin: 0; }
.practice__n { font-family: var(--mono); font-size: 0.72rem; color: var(--brand); font-weight: 500; }

.quote {
  border-left: 3px solid var(--brand); border-radius: 2px;
  padding: 0.2rem 0 0.2rem clamp(1.1rem, 2.5vw, 1.9rem);
  margin: 0;
}
.quote p {
  font-family: var(--display); font-weight: 500; color: var(--navy);
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.6rem);
  line-height: 1.35; letter-spacing: -0.025em; margin: 0;
}
.quote cite {
  display: block; margin-top: 1rem; font-family: var(--mono);
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  font-style: normal; color: var(--slate-light);
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact h2 { font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.1rem); margin-bottom: 1.2rem; max-width: 18ch; }
.channels { display: grid; gap: 0; margin-top: 2rem; }
.channels a, .channels div {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 1.5rem;
  padding-block: 1rem; border-top: 1px solid var(--line); text-decoration: none;
  transition: color 0.25s var(--ease);
}
.channels a:last-of-type, .channels div:last-child { border-bottom: 1px solid var(--line); }
.channels a:hover { color: var(--brand); }
.channels .k {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--slate-light); min-width: 7.5rem;
}
.channels .v { font-size: 1.02rem; color: var(--navy); font-weight: 600; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.foot { background: var(--ink); color: rgba(255,255,255,0.6); padding-block: clamp(3rem, 6vw, 4.5rem) 1.75rem; font-size: 0.93rem; }
.foot__grid {
  display: grid; gap: 2.5rem; grid-template-columns: 1fr;
  padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (min-width: 48rem) { .foot__grid { grid-template-columns: 2fr 1fr 1fr; } }
.foot h4 {
  font-family: var(--mono); font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255,255,255,0.4); margin-bottom: 1rem;
}
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.foot a { text-decoration: none; transition: color 0.25s var(--ease); }
.foot a:hover { color: #fff; }
.foot img.footlogo { filter: brightness(0) invert(1); opacity: 0.95; }
.foot__note {
  padding-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 0.5rem 2rem;
  justify-content: space-between; font-family: var(--mono);
  font-size: 0.66rem; letter-spacing: 0.09em; text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: clamp(1rem, 3vw, 1.9rem); bottom: clamp(1rem, 3vw, 1.9rem);
  z-index: 60; width: 3.4rem; height: 3.4rem; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s var(--ease);
}
.wa-float:hover { transform: scale(1.08) translateY(-2px); }
.wa-float svg { width: 1.65rem; height: 1.65rem; }

/* 404 */
.oops { padding-block: clamp(5rem, 15vh, 10rem); }
.oops h1 { font-size: clamp(2.5rem, 1.8rem + 5vw, 6rem); margin-bottom: 1.25rem; }

/* --------------------------------------------------------------------------
   Legal & prose pages
   -------------------------------------------------------------------------- */

.legal-head {
  background: var(--near-white);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(3rem, 8vh, 5rem) clamp(2rem, 5vh, 3rem);
}
.legal-head h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); margin-bottom: 0.9rem; }
.legal-head .eff {
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--slate);
}

.prose { padding-block: clamp(2.5rem, 6vh, 4rem) var(--rhythm); max-width: 52rem; }
.prose h2 {
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem);
  margin: 2.25rem 0 0.75rem; color: var(--navy);
}
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--slate); max-width: none; }
.prose ul { margin: 0 0 1.15em; padding-left: 1.2rem; display: grid; gap: 0.45rem; }
.prose li::marker { color: var(--brand); }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.prose .addr {
  margin-top: 2.5rem; padding: 1.25rem 1.4rem;
  background: var(--brand-tint); border-radius: var(--radius);
  border: 1px solid var(--line);
}
.prose .addr p { margin: 0; color: var(--navy); }
.prose .rights {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  font-size: 0.85rem; color: var(--slate-light);
}

/* --------------------------------------------------------------------------
   Social icons
   -------------------------------------------------------------------------- */

.foot ul.socials, ul.socials {
  list-style: none; margin: 1.6rem 0 0; padding: 0;
  display: flex; flex-flow: row wrap; gap: 0.6rem;
}
.socials a {
  display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem; border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.72);
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.socials a:hover {
  background: var(--brand); border-color: var(--brand);
  color: #fff; transform: translateY(-2px);
}
.socials svg { width: 1.1rem; height: 1.1rem; }

/* Footer brand block */
.foot .foot__brand img.footlogo {
  height: auto; width: min(17rem, 78%);
  filter: brightness(0) invert(1); opacity: 0.95;
  margin-bottom: 1.1rem;
}
.foot__brand p { max-width: 34ch; }
.foot__note a { text-decoration: none; }
.foot__note a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   Mobile — everything below is a deliberate small-screen pass
   -------------------------------------------------------------------------- */

/* Nothing may cause a horizontal scrollbar. */
html, body { max-width: 100%; overflow-x: hidden; }

/* Long unbreakable strings (URLs, emails) must wrap rather than push the page. */
p, li, .entry__what, .channels .v, .prose a { overflow-wrap: anywhere; }

@media (max-width: 64rem) {
  .split--even { grid-template-columns: 1fr; }
}

@media (max-width: 54rem) {
  :root { --rhythm: clamp(3rem, 8vh, 4.5rem); }

  /* Work ledger reads as stacked blocks, not a squashed table. */
  .entry { gap: 0.5rem; padding-block: 1.5rem; }
  .entry__meta { order: 3; }

  /* Practice list: number sits inline above the heading. */
  .practice > div { gap: 0.4rem; }
  .practice__n { order: -1; }

  .marker { gap: 0.7rem; }
  .marker__label { font-size: 0.66rem; letter-spacing: 0.12em; }
}

@media (max-width: 42rem) {
  .hero { padding-block: 2.75rem 2.5rem; }
  .hero h1 { max-width: 100%; }
  .hero .lede, .lede { font-size: 1.05rem; }

  /* Full-width tap targets — easier to hit, and they stop wrapping oddly. */
  .btn-row { gap: 0.65rem; margin-top: 1.75rem; }
  .btn-row .btn { width: 100%; justify-content: center; }

  .reach { gap: 0.4rem 0.9rem; font-size: 0.66rem; }
  .reach .dot { display: none; }

  .cards { gap: 1rem; }
  .card { padding: 1.35rem; }

  /* Chat bubbles need more of the width on a phone. */
  .tbot__panel { padding: 1rem; }
  .bubble { max-width: 94%; font-size: 0.9rem; }

  .channels .k { min-width: 100%; }
  .channels a, .channels div { padding-block: 0.85rem; }

  .foot__grid { gap: 2rem; }
  .foot .foot__brand img.footlogo { width: min(14rem, 82%); }
  .foot__note { flex-direction: column; gap: 0.5rem; }

  .legal-head { padding-block: 2.25rem 1.5rem; }
  .prose { padding-block: 2rem 3rem; }
  .prose ul { padding-left: 1rem; }

  /* Keep the floating button clear of the last CTA. */
  .wa-float { width: 3rem; height: 3rem; }
  .wa-float svg { width: 1.4rem; height: 1.4rem; }
  main { padding-bottom: 1rem; }
}

@media (max-width: 26rem) {
  .brand__icon { height: 1.85rem; }
  .brand__word { font-size: 0.98rem; }
  .hero h1 { font-size: 1.95rem; }
  h2 { font-size: 1.5rem !important; }
}

/* Coarse pointers get larger hit areas regardless of width. */
@media (pointer: coarse) {
  .nav__links a { padding-block: 0.9rem; }
  .socials a { width: 2.75rem; height: 2.75rem; }
}

/* --------------------------------------------------------------------------
   Product marks in the work ledger
   -------------------------------------------------------------------------- */

.entry__brand { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.entry__logo {
  height: 2.1rem; width: auto; max-width: 6.5rem;
  object-fit: contain; object-position: left center; flex: none;
  /* Marks arrive in wildly different weights and backgrounds; a slight
     desaturation at rest keeps the ledger calm, full colour on hover. */
  filter: saturate(0.85);
  transition: filter 0.3s var(--ease), transform 0.3s var(--ease);
}
.entry:hover .entry__logo { filter: saturate(1); transform: scale(1.03); }

@media (max-width: 54rem) {
  .entry__brand { gap: 0.6rem; }
  .entry__logo { height: 1.8rem; max-width: 5.25rem; }
}

/* --------------------------------------------------------------------------
   Hero: "Welcome to TRANSINGENIUM." + illustration
   -------------------------------------------------------------------------- */

.hero__grid {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 62rem) {
  .hero__grid { grid-template-columns: minmax(0, 6.5fr) minmax(0, 5.5fr); }
}

.hero__welcome {
  font-size: clamp(1.9rem, 1.1rem + 3.7vw, 3.9rem);
  line-height: 1.06; margin-bottom: 0.5rem; max-width: 14ch;
  color: var(--navy);
}
/* The wordmark inside the H1 inherits nothing — it keeps its brand colours. */
.hero__welcome .brand__word {
  display: inline; font-size: inherit; font-weight: 800;
  letter-spacing: -0.03em; white-space: normal;
}
.hero__welcome .brand__word .stop { color: #1B64F5; }

.hero__sub {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.6rem);
  color: var(--brand); letter-spacing: -0.02em;
  margin: 0 0 1.35rem;
}

.hero__art img { width: 100%; height: auto; }
@media (max-width: 62rem) {
  .hero__art { max-width: 26rem; margin-inline: auto; }
}
@media (max-width: 42rem) {
  .hero__art { max-width: 19rem; }
  .hero__welcome { max-width: 100%; }
}

/* Masthead is now an icon-only slot. */
.brand__icon { height: 2.4rem; }
@media (max-width: 26rem) { .brand__icon { height: 2.05rem; } }

/* Legal entity line, footer brand block */
.foot__legalname {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.11em;
  text-transform: uppercase; color: rgba(255,255,255,0.5);
  margin: 0.1rem 0 0.9rem;
}

/* Emphasis inside a lede — "surgical precision" and its kin. */
.lede .mark {
  font-style: normal; font-weight: 700; color: var(--navy);
  background: linear-gradient(transparent 62%, rgba(51, 94, 234, 0.18) 62%);
}

/* --------------------------------------------------------------------------
   Back to top — sits above the WhatsApp float, never over it
   -------------------------------------------------------------------------- */

.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 1.9rem);
  bottom: calc(clamp(1rem, 3vw, 1.9rem) + 4rem);
  z-index: 59;
  width: 2.9rem; height: 2.9rem;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--white); color: var(--navy);
  cursor: pointer; padding: 0;
  box-shadow: var(--shadow-md);
  animation: toTopIn 0.3s var(--ease);
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
              transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.to-top[hidden] { display: none; }
.to-top:hover {
  background: var(--brand); border-color: var(--brand);
  color: #fff; transform: translateY(-2px);
}
.to-top svg { width: 1.15rem; height: 1.15rem; }
@keyframes toTopIn { from { opacity: 0; transform: translateY(0.5rem); } to { opacity: 1; } }

@media (max-width: 42rem) {
  .to-top {
    width: 2.6rem; height: 2.6rem;
    bottom: calc(clamp(1rem, 3vw, 1.9rem) + 3.6rem);
  }
  .to-top svg { width: 1rem; height: 1rem; }
}
