/* Hang Ten Systems — site styles
   Two-color theme: off-white background, near-black text, sky-blue accents. */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f9fb;
  --ink: #111111;
  --ink-soft: #3a3f45;
  --sky: #0ea5e9;        /* primary sky-blue accent */
  --sky-deep: #0284c7;   /* hover / stronger accent */
  --sky-tint: #e6f6fe;   /* very light blue wash */
  --line: #e7eaee;
  --maxw: 760px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* main grows so the footer sticks to the bottom on every page. */
main { flex: 1 0 auto; }

/* Home page only: flexible column so the waves + footer anchor to the
   bottom and the gap above them flexes with viewport height. */
.home-layout { display: flex; flex-direction: column; }

a { color: var(--sky-deep); text-decoration: none; }
a:hover { color: var(--sky); text-decoration: underline; }

/* ---- Logo wordmark (recreated to match supplied logo) ---- */
.logo {
  font-family: "Cinzel", Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
  line-height: 1;
  display: inline-block;
}
.logo--hero { font-size: clamp(40px, 9vw, 92px); }
.logo--nav  { font-size: 22px; }

/* Actual logo artwork */
.logo-img { display: block; height: auto; }
.logo-img--nav  { height: 40px; width: auto; }
.logo-img--hero { width: min(640px, 92%); margin: 0 auto; }

/* ---- Layout ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; padding-bottom: 18px;
}
.nav a {
  color: var(--ink);
  margin-left: 26px;
  font-size: 16px;
  font-weight: 500;
}
.nav a:hover { color: var(--sky-deep); text-decoration: none; }
.nav a.active { color: var(--sky-deep); }

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 72px;
  color: var(--ink-soft);
  font-size: 14px;
  flex-shrink: 0;
}
/* On the home page the waves sit directly above the footer, so no extra gap. */
.site-footer--home { margin-top: 0; border-top: none; }
.site-footer .wrap { padding-top: 28px; padding-bottom: 40px; }

/* ---- Home ---- */
.hero { text-align: center; padding: 88px 0 36px; }
.hero .logo--hero { margin-bottom: 28px; }
.tagline {
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.5;
  max-width: 620px;
  margin: 0 auto;
  color: var(--ink);
}
.tagline .accent { color: var(--sky-deep); }

.actions {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
  margin: 40px 0 8px;
}
.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  border: 1.5px solid var(--sky);
}
.btn--primary { background: var(--sky); color: #fff; }
.btn--primary:hover { background: var(--sky-deep); border-color: var(--sky-deep); color: #fff; text-decoration: none; }
.btn--ghost { background: transparent; color: var(--sky-deep); }
.btn--ghost:hover { background: var(--sky-tint); text-decoration: none; }

.hiring {
  margin: 56px auto 0;
  max-width: 620px;
  text-align: center;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--sky);
  border-radius: 10px;
  padding: 28px 28px;
}
.hiring h2 { margin: 0 0 8px; font-size: 22px; }
.hiring p { margin: 0; color: var(--ink-soft); }
.hiring a { font-weight: 600; }

/* ---- Investors banner ---- */
.investors { text-align: center; margin: 72px 0 56px; }
.investors .eyebrow { margin-bottom: 22px; }
.investors img {
  width: min(560px, 88%);
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ---- Wave motion graphic ---- */
.waves {
  position: relative;
  width: 100%;
  height: 150px;
  margin-top: auto; /* absorbs free space → anchors waves to bottom, gap flexes */
  overflow: hidden;
  line-height: 0;
}
.waves svg { width: 100%; height: 100%; display: block; }
.waves .wave-layer {
  position: absolute;
  top: 0; left: 0;
  width: 200%;
  height: 100%;
  animation: waveShift linear infinite;
  will-change: transform;
}
.waves .w1 { animation-duration: 14s; opacity: 0.30; }
.waves .w2 { animation-duration: 20s; opacity: 0.22; animation-direction: reverse; }
.waves .w3 { animation-duration: 28s; opacity: 0.16; }

@keyframes waveShift {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .waves .wave-layer { animation: none; }
}

/* ---- Article / press ---- */
.page-head { padding-top: 56px; padding-bottom: 8px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  font-weight: 600;
  color: var(--sky-deep);
  margin: 0 0 14px;
}
h1.title { font-size: clamp(30px, 5vw, 44px); line-height: 1.15; margin: 0 0 14px; }
.byline { color: var(--ink-soft); font-size: 15px; margin: 0; }

.article { padding-top: 8px; }
.article p { margin: 0 0 22px; }
.dateline { font-weight: 600; }
.lead { font-size: 21px; }

.pullquote {
  border-left: 4px solid var(--sky);
  background: var(--sky-tint);
  margin: 28px 0;
  padding: 18px 24px;
  border-radius: 0 8px 8px 0;
  font-size: 19px;
}
.pullquote cite { display: block; margin-top: 10px; font-size: 15px; color: var(--ink-soft); font-style: normal; }

h2.section { font-size: 22px; margin: 40px 0 12px; }
.endmark { text-align: center; color: var(--sky); letter-spacing: 0.3em; margin: 40px 0; }

.back-link { display: inline-block; margin: 8px 0 0; font-size: 15px; }

@media (max-width: 520px) {
  body { font-size: 17px; }
  .nav a { margin-left: 16px; font-size: 15px; }
  .hero { padding-top: 56px; }
}
