/* TRAICE holding page */

:root {
  --bg: #211b24;
  --plum: #382238;
  --ink: #fff8f2;
  --coral: #ff5c76;
  --muted: #b8aab8;
  --line: rgba(255, 248, 242, .13);
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 7px;
}

.skip {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 10;
  background: var(--ink);
  color: var(--bg);
  padding: 12px;
}
.skip:focus { top: 15px; }

.ambient {
  position: absolute;
  inset: 0 0 auto;
  height: 900px;
  background: radial-gradient(ellipse at 95% 12%, rgba(92, 35, 65, .22), transparent 58%);
  pointer-events: none;
}

.shell {
  position: relative;
  max-width: 1600px;
  margin: auto;
  padding: 0 5.5vw;
}

/* Small caps labels share one size so nothing drops below 12px */
.launch-label,
.domain,
.eyebrow,
.scene-bottom,
.identity-caption,
.legal {
  font-size: .75rem;
  letter-spacing: .12em;
}

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

header {
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 25px;
}

.brand { display: flex; }
.brand img { width: 170px; height: auto; }

.launch-label { color: var(--coral); }

.domain {
  color: var(--muted);
  text-decoration: none;
  letter-spacing: .06em;
  padding: 10px 0;
  transition: color .2s;
}
.domain:hover { color: var(--ink); }

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3vw;
  align-items: center;
  padding: 70px 0 58px;
  min-height: 650px;
}

.eyebrow {
  color: var(--muted);
  margin: 0 0 30px;
  line-height: 1.6;
}

h1 {
  font-size: clamp(3.4rem, 6.3vw, 6.5rem);
  font-weight: 400;
  letter-spacing: -.05em;
  line-height: 1.04;
  margin: 0 0 30px;
}
h1 em {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  color: var(--coral);
  letter-spacing: -.05em;
}

.intro {
  font-size: 1.125rem;
  line-height: 1.5;
  margin: 0 0 12px;
}

.support {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
  max-width: 31em;
}
.support a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid #775568;
  transition: color .2s, border-color .2s;
}
.support a:hover { color: var(--coral); border-color: var(--coral); }

.actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 35px;
  flex-wrap: wrap;
}

.primary,
.secondary {
  border-radius: 4px;
  padding: 17px 21px;
  display: inline-flex;
  align-items: center;
  gap: 24px;
  font-size: 1rem;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.primary {
  border: 1px solid var(--coral);
  background: var(--coral);
  color: var(--bg);
  min-width: 195px;
  justify-content: space-between;
}
.primary:hover { background: #ff8095; transform: translateY(-2px); }
.secondary {
  border: 1px solid #775568;
  color: var(--ink);
}
.secondary:hover { border-color: var(--coral); color: var(--coral); transform: translateY(-2px); }

.button-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bg);
  flex-shrink: 0;
}

/* ---------- Signal illustration ---------- */

.signal-scene { position: relative; min-width: 0; }

#signal-map {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  margin: 3px 0 -8px;
}

.roads { opacity: .105; }
.block-lines { opacity: .055; }

#waypoints { fill: #6d5266; }
#waypoints circle:first-child { fill: var(--coral); }

.map-labels {
  font-size: 12px;
  letter-spacing: 1.3px;
  fill: #a28ba0;
}

.halo { transform-box: fill-box; transform-origin: center; animation: pulse 3.2s ease-out infinite; }

@keyframes pulse {
  0% { transform: scale(.6); opacity: .2; }
  80%, 100% { transform: scale(1.5); opacity: 0; }
}

/* Caption above the map */
.clue { padding: 0 12px 6px; }
.clue > span {
  font-size: .75rem;
  letter-spacing: .13em;
  color: var(--coral);
}
.clue p {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.3rem;
  line-height: 1.45;
  margin: 10px 0 0;
}

.scene-bottom {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  color: #a995a7;
  padding: 0 12px;
  gap: 20px;
  letter-spacing: .1em;
}

/* ---------- Identity ---------- */

.identity {
  border-top: 1px solid var(--line);
  padding: 28px 0 32px;
}

.identity-caption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
}
.identity-caption > span:first-child { color: var(--coral); }

#animated-logo { width: 100%; padding: 25px 2px 10px; }
#animated-logo svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 250px;
}

.reveal-copy {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-top: 26px;
}
.reveal-copy p {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  color: var(--muted);
}
.reveal-copy p:first-child { font-size: 1.4rem; color: var(--ink); }
.reveal-copy em { font-family: Georgia, serif; color: var(--coral); }

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

footer {
  border-top: 1px solid var(--line);
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  color: var(--muted);
}

.legal { letter-spacing: .08em; }

footer nav {
  display: flex;
  align-items: center;
  gap: 8px 28px;
  flex-wrap: wrap;
}
footer a {
  font-size: .8125rem;
  text-decoration: none;
  color: var(--muted);
  padding: 10px 0;
  transition: color .2s;
}
footer a:hover { color: var(--coral); }
footer a.contact {
  font-size: .9375rem;
  color: var(--ink);
  border-bottom: 1px solid #775568;
  padding: 4px 0;
}
footer a.contact:hover { color: var(--coral); }

footer button {
  background: none;
  border: 0;
  padding: 10px 0;
  color: var(--muted);
  font-size: .8125rem;
  cursor: pointer;
}
footer button:hover { color: var(--ink); }

/* Statutory company details, shown under the footer on every page */
.company {
  margin: 0;
  padding: 0 0 30px;
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.6;
  max-width: 60em;
}

/* ---------- With and without JavaScript ----------
   Without JS the route is simply shown fully drawn. */

.js .route-lines path { stroke-dasharray: 1000; stroke-dashoffset: 1000; }
.js #destination-label { opacity: .45; transition: opacity .6s; }

html:not(.js) #motion { display: none; }
html:not(.js) #waypoints circle { fill: var(--coral); }

.motion-paused * { animation-play-state: paused !important; }
.motion-paused .halo { opacity: .13; transform: scale(.8); }

/* ---------- Responsive ---------- */

@media (min-width: 1500px) {
  .shell { padding: 0 80px; }
}

@media (max-width: 1000px) {
  .hero { gap: 12px; padding: 58px 0 45px; min-height: 590px; }
  h1 { font-size: clamp(3.3rem, 6.5vw, 5rem); }
  .clue p { font-size: 1.1rem; }
  /* The map is drawn in a 600-unit box, so its labels need to grow as it shrinks */
  .map-labels { font-size: 16px; }
  footer { flex-wrap: wrap; padding: 18px 0; }
}

@media (max-width: 700px) {
  .shell { padding: 0 24px; }
  header { height: 88px; }
  .brand img { width: 140px; }
  .domain { display: none; }
  .launch-label { letter-spacing: .08em; max-width: 120px; text-align: right; line-height: 1.5; }
  .hero { grid-template-columns: 1fr; padding: 44px 0 34px; gap: 42px; }
  .eyebrow { margin-bottom: 23px; }
  h1 { font-size: clamp(3rem, 11.9vw, 5.3rem); margin-bottom: 23px; }
  .intro { font-size: 1.0625rem; }
  .support { font-size: .9375rem; }
  .actions { margin-top: 27px; gap: 16px; }
  .primary, .secondary { padding: 15px 18px; }
  .primary { min-width: 180px; }
  .clue p { font-size: 1.2rem; }
  .scene-bottom > span:last-child { max-width: 190px; text-align: right; line-height: 1.5; }
  .identity { padding-top: 22px; }
  .identity-caption { line-height: 1.5; gap: 24px; }
  .identity-caption span:last-child { text-align: right; max-width: 150px; }
  #animated-logo { padding-bottom: 8px; }
  .reveal-copy { flex-direction: column; gap: 16px; }
  .reveal-copy p:first-child { font-size: 1.25rem; }
  footer { gap: 6px 20px; padding: 20px 0; }
  footer nav { flex-basis: 100%; order: -1; gap: 4px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Legal pages (privacy.html, terms.html) ---------- */

.doc {
  max-width: 46rem;
  padding: 64px 0 80px;
}
.doc h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: -.04em;
  margin: 0 0 14px;
}
.doc .updated {
  color: var(--muted);
  font-size: .75rem;
  letter-spacing: .12em;
  margin: 0 0 44px;
}
.doc h2 {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.35;
  margin: 44px 0 12px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.doc h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 24px 0 6px;
}
.doc p,
.doc li,
.doc td,
.doc th {
  font-size: 1rem;
  line-height: 1.7;
  color: #ddd2da;
}
.doc p { margin: 0 0 14px; }
.doc ul { margin: 0 0 14px; padding-left: 1.2em; }
.doc li { margin-bottom: 6px; }
.doc li::marker { color: var(--coral); }
.doc strong { color: var(--ink); font-weight: 700; }
.doc a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid #775568;
  transition: color .2s, border-color .2s;
}
.doc a:hover { color: var(--coral); border-color: var(--coral); }
.doc address { font-style: normal; }

.doc .table-wrap { overflow-x: auto; margin: 0 0 14px; }
.doc table { border-collapse: collapse; width: 100%; min-width: 30rem; }
.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 12px 18px 12px 0;
  border-bottom: 1px solid var(--line);
}
.doc th {
  font-size: .75rem;
  letter-spacing: .12em;
  font-weight: 400;
  color: var(--muted);
}

@media (max-width: 700px) {
  .doc { padding: 40px 0 56px; }
  .doc h2 { margin-top: 34px; padding-top: 22px; }
}
