/* ==========================================================================
   thinglet.com
   Warm graphite / Archivo / IBM Plex Sans.
   Deliberately shares no tokens, components or visual DNA with
   thingletai.com, thinglet.net or thingletmarketing.com.
   ========================================================================== */

/* --- Fonts. Self-hosted, no CDN. Variable weight, one file each. --------- */
@font-face {
  font-family: 'Archivo';
  src: url('/assets/fonts/archivo-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plex';
  src: url('/assets/fonts/plex-var.woff2') format('woff2');
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}

/* --- Tokens -------------------------------------------------------------- */
:root {
  --graphite:   #131211;
  --graphite-2: #1D1B18;
  --graphite-3: #262320;
  --edge:       rgba(255, 250, 242, .12);
  --edge-soft:  rgba(255, 250, 242, .06);
  --ink:        #F4F1EC;
  --dim:        #9A938A;
  --dimmer:     #6B655D;
  --blue:       #0A9DCC;
  --blue-hot:   #4FC9EE;

  --st-live:       #3FD08A;
  --st-building:   #E8A33D;
  --st-experiment: #4FC9EE;
  --st-venture:    #C08BF0;
  --st-archived:   #6B655D;

  --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --body:    'Plex', 'Helvetica Neue', Arial, sans-serif;

  --shell: 1320px;
  --prose: 68ch;
  --gut:   clamp(20px, 4vw, 56px);

  --step: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--graphite);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--blue-hot); text-decoration: none; }
a:hover { color: var(--ink); }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--blue);
  color: #041216;
  padding: 12px 20px;
  font-family: var(--display);
  font-weight: 700;
  z-index: 999;
}
.skip:focus { left: 8px; top: 8px; }

.sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --- Layout -------------------------------------------------------------- */
.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding-left: var(--gut);
  padding-right: var(--gut);
}

.band { padding: clamp(72px, 11vw, 148px) 0; }
.band + .band { padding-top: 0; }
.band--edged { border-top: 1px solid var(--edge-soft); }
/* An edged band draws a rule, so it needs its own breathing room back.
   Higher specificity than .band + .band, so order in the file does not matter. */
.band + .band.band--edged { padding-top: clamp(72px, 11vw, 148px); }

.prose { max-width: var(--prose); }

/* --- Type ---------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.028em;
  margin: 0;
  text-wrap: balance;
}

.t-hero {
  font-size: clamp(3.4rem, 12.5vw, 9.5rem);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: .88;
  text-transform: uppercase;
}

.t-section {
  font-size: clamp(2rem, 5.2vw, 3.9rem);
  text-transform: uppercase;
  letter-spacing: -.035em;
}

.t-sub {
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -.02em;
}

.lede {
  font-size: clamp(1.08rem, 1.9vw, 1.35rem);
  line-height: 1.55;
  color: var(--dim);
  margin: 22px 0 0;
  max-width: 56ch;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.muted { color: var(--dim); }
.small { font-size: .925rem; }

/* Sentence-case body headings inside prose blocks stay Plex, not Archivo,
   so the display face keeps its impact and is not diluted by overuse. */
.prose h3 {
  font-family: var(--body);
  font-weight: 600;
  font-size: 1.06rem;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: none;
}

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .085em;
  text-transform: uppercase;
  padding: 15px 26px;
  border: 1px solid var(--edge);
  border-radius: 2px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background .22s var(--step), border-color .22s var(--step), color .22s var(--step);
}
.btn:hover { background: var(--graphite-3); border-color: var(--dim); color: var(--ink); }

.btn--go {
  background: var(--blue);
  border-color: var(--blue);
  color: #04161C;
}
.btn--go:hover { background: var(--blue-hot); border-color: var(--blue-hot); color: #04161C; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

/* --- Status chip --------------------------------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--display);
  font-weight: 700;
  font-size: .68rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--dim);
}
.chip::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--dimmer);
  flex: none;
}
.chip--live::before       { background: var(--st-live); }
.chip--building::before   { background: var(--st-building); }
.chip--experiment::before { background: var(--st-experiment); }
.chip--venture::before    { background: var(--st-venture); }
.chip--archived::before   { background: var(--st-archived); }

.chip--building::before {
  animation: chipPulse 2.6s var(--step) infinite;
}
@keyframes chipPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .35; }
}

/* --- Header -------------------------------------------------------------- */
.top {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(19, 18, 17, .82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--edge-soft);
}
.top__in {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.18rem;
  letter-spacing: -.035em;
  text-transform: lowercase;
  flex: none;
}
.brand:hover { color: var(--ink); }
.brand svg { width: 22px; height: 22px; flex: none; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  display: block;
  padding: 9px 13px;
  color: var(--dim);
  font-family: var(--display);
  font-weight: 600;
  font-size: .87rem;
  letter-spacing: -.005em;
  border-radius: 2px;
  transition: color .18s var(--step), background .18s var(--step);
}
.nav a:hover { color: var(--ink); background: var(--graphite-2); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav .btn { margin-left: 10px; padding: 11px 18px; }
.nav .btn:hover { background: var(--graphite-3); }

.burger {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--edge);
  border-radius: 2px;
  color: var(--ink);
  cursor: pointer;
}
.burger span {
  display: block;
  width: 17px; height: 1.5px;
  background: currentColor;
  position: relative;
}
.burger span::before,
.burger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 17px; height: 1.5px;
  background: currentColor;
  transition: transform .24s var(--step);
}
.burger span::before { top: -5.5px; }
.burger span::after  { top:  5.5px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(5.5px) rotate(45deg); }
.burger[aria-expanded="true"] span::after  { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 940px) {
  .burger { display: flex; }
  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--graphite);
    border-bottom: 1px solid var(--edge);
    padding: 10px var(--gut) 26px;
    margin: 0;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 15px 0; font-size: 1.15rem; border-bottom: 1px solid var(--edge-soft); }
  .nav .btn { margin: 20px 0 0; text-align: center; }
}

/* --- Hero + Universe ----------------------------------------------------- */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: flex-end;
  padding: 120px 0 clamp(56px, 8vw, 96px);
  overflow: hidden;
}
@media (max-width: 720px) { .hero { min-height: 78vh; } }

.hero__stage {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__stage canvas { width: 100%; height: 100%; }

/* Scrim: keeps the H1 dominant over the canvas, per spec section 22. */
.hero__stage::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, var(--graphite) 4%, rgba(19,18,17,.72) 34%, rgba(19,18,17,0) 66%),
    linear-gradient(to right, var(--graphite) 0%, rgba(19,18,17,.45) 34%, rgba(19,18,17,0) 62%);
}

.hero__in { position: relative; z-index: 1; width: 100%; }

.hero__eyebrow {
  font-family: var(--display);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 20px;
}

.hero .lede { max-width: 46ch; color: var(--ink); opacity: .82; }

.hero__hint {
  margin-top: 30px;
  font-size: .84rem;
  color: var(--dimmer);
  max-width: 42ch;
}

/* Node tooltip drawn over the canvas. */
.orb-tip {
  position: absolute;
  z-index: 3;
  min-width: 190px;
  max-width: 268px;
  padding: 13px 15px;
  background: var(--graphite-2);
  border: 1px solid var(--edge);
  border-radius: 2px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -118%);
  transition: opacity .16s var(--step);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
}
.orb-tip.on { opacity: 1; }
.orb-tip__name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -.02em;
  margin-bottom: 5px;
}
.orb-tip__note { font-size: .82rem; line-height: 1.45; color: var(--dim); margin-top: 7px; }

/* Simple-view toggle, always reachable by keyboard. */
.stage-ctl {
  position: absolute;
  right: var(--gut);
  bottom: clamp(56px, 8vw, 96px);
  z-index: 2;
  font-size: .72rem;
  padding: 10px 15px;
  letter-spacing: .1em;
  background: rgba(19, 18, 17, .7);
}
@media (max-width: 720px) { .stage-ctl { display: none; } }

/* --- Project cards ------------------------------------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
  background: var(--edge-soft);
  border: 1px solid var(--edge-soft);
  margin-top: 52px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--graphite);
  padding: 30px 28px 26px;
  min-height: 244px;
  transition: background .24s var(--step);
}
.card:hover { background: var(--graphite-2); }
.card[hidden] { display: none; }

.card.flash {
  animation: cardFlash 1.5s var(--step);
}
@keyframes cardFlash {
  0%   { background: var(--graphite-3); box-shadow: inset 3px 0 0 var(--blue); }
  100% { background: var(--graphite); box-shadow: inset 3px 0 0 transparent; }
}

.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.card__name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.42rem;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin: 0 0 12px;
}
.card__name a { color: var(--ink); }
.card__name a:hover { color: var(--blue-hot); }

.card__note {
  font-size: .95rem;
  line-height: 1.55;
  color: var(--dim);
  margin: 0;
  flex: 1;
}

.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--edge-soft);
  font-size: .78rem;
  color: var(--dimmer);
}
.card__rel {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: .04em;
}

/* --- Family map ---------------------------------------------------------- */
.family {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--edge-soft);
  border: 1px solid var(--edge-soft);
  margin-top: 52px;
}
.family a {
  display: block;
  background: var(--graphite);
  padding: 32px 28px;
  color: var(--ink);
  transition: background .24s var(--step);
}
.family a:hover { background: var(--graphite-2); }
.family__role {
  font-family: var(--display);
  font-weight: 700;
  font-size: .68rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--blue);
  display: block;
  margin-bottom: 14px;
}
.family__name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: -.03em;
  display: block;
  margin-bottom: 8px;
}
.family__line { font-size: .93rem; color: var(--dim); }

/* --- Split section (heading left, content right) ------------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 26px; }
}

/* --- Principles ---------------------------------------------------------- */
.tenets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(28px, 4vw, 52px);
  margin-top: 52px;
}
.tenet {
  border-top: 2px solid var(--blue);
  padding-top: 20px;
}
.tenet h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -.025em;
  text-transform: none;
  margin: 0 0 10px;
}
.tenet p { font-size: .95rem; color: var(--dim); margin: 0; }

/* --- Founder ------------------------------------------------------------- */
.founder {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: clamp(26px, 4vw, 48px);
  align-items: start;
  margin-top: 44px;
}
@media (max-width: 620px) { .founder { grid-template-columns: 1fr; } }

.founder__portrait {
  width: 168px; height: 168px;
  border: 1px solid var(--edge);
  border-radius: 2px;
  background: var(--graphite-2);
  object-fit: cover;
}

/* --- Footer -------------------------------------------------------------- */
.foot {
  border-top: 1px solid var(--edge);
  padding: clamp(56px, 7vw, 88px) 0 40px;
  margin-top: clamp(72px, 10vw, 130px);
  color: var(--dim);
  font-size: .92rem;
}
.foot__cols {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(28px, 4vw, 56px);
}
.foot h4 {
  font-family: var(--display);
  font-weight: 700;
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 16px;
}
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 9px; }
.foot a { color: var(--dim); }
.foot a:hover { color: var(--ink); }

.foot__mark {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -.04em;
  color: var(--ink);
  text-transform: lowercase;
  margin-bottom: 14px;
  display: block;
}

.foot__base {
  margin-top: clamp(44px, 6vw, 70px);
  padding-top: 26px;
  border-top: 1px solid var(--edge-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-items: center;
  justify-content: space-between;
  font-size: .84rem;
  color: var(--dimmer);
}

.foot__social { display: flex; gap: 18px; }

/* --- Contact form -------------------------------------------------------- */
.form { margin-top: 44px; max-width: 640px; }
.form label {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 26px 0 9px;
}
.form input[type="text"],
.form input[type="email"],
.form select,
.form textarea {
  width: 100%;
  background: var(--graphite-2);
  border: 1px solid var(--edge);
  border-radius: 2px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  padding: 14px 15px;
}
.form textarea { min-height: 168px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus {
  border-color: var(--blue);
  outline: none;
}
.form .btn { margin-top: 32px; }

.notice {
  border-left: 2px solid var(--blue);
  background: var(--graphite-2);
  padding: 16px 20px;
  margin: 26px 0 0;
  font-size: .95rem;
}
.notice--bad { border-left-color: var(--st-building); }

.hp { position: absolute; left: -9999px; }

/* --- Filters ------------------------------------------------------------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
}
.filters button {
  font-family: var(--display);
  font-weight: 600;
  font-size: .76rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid var(--edge);
  border-radius: 2px;
  color: var(--dim);
  cursor: pointer;
  transition: color .18s var(--step), border-color .18s var(--step);
}
.filters button:hover { color: var(--ink); border-color: var(--dim); }
.filters button[aria-pressed="true"] {
  color: #04161C;
  background: var(--blue);
  border-color: var(--blue);
}

/* --- Reduced motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* --- Journal post body ---------------------------------------------------- */
.pull {
  margin: 40px 0;
  padding: 4px 0 4px 24px;
  border-left: 2px solid var(--blue);
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  line-height: 1.32;
  letter-spacing: -.02em;
  color: var(--ink);
}

.ticks { list-style: none; margin: 0 0 1.4em; padding: 0; }
.ticks li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 14px;
  color: var(--dim);
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 2px; top: .62em;
  width: 9px; height: 1px;
  background: var(--blue);
}

/* --- Research: findings block and data tables ----------------------------- */
.findings {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 2px 28px;
  margin: 0;
  max-width: 78ch;
}
@media (max-width: 620px) {
  .findings { grid-template-columns: 1fr; gap: 4px; }
  .findings dd { margin-bottom: 22px; }
}
.findings dt {
  font-family: var(--display);
  font-weight: 700;
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  padding-top: 6px;
}
.findings dd {
  margin: 0 0 16px;
  font-size: 1.02rem;
  line-height: 1.55;
}

.tablewrap { overflow-x: auto; margin: 32px 0 12px; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  min-width: 420px;
}
table.data th,
table.data td {
  text-align: left;
  padding: 11px 16px 11px 0;
  border-bottom: 1px solid var(--edge-soft);
  vertical-align: top;
}
table.data th {
  font-family: var(--display);
  font-weight: 700;
  font-size: .68rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--dim);
  border-bottom-color: var(--edge);
}
table.data td { color: var(--dim); }
table.data td:first-child { color: var(--ink); }
/* Numeric columns line up when they are right aligned. */
table.data td:not(:first-child),
table.data th:not(:first-child) { text-align: right; padding-right: 0; }
table.data tbody tr:last-child td {
  border-bottom: none;
  border-top: 1px solid var(--edge);
  color: var(--ink);
  font-weight: 500;
}
