/* ============================================================
   iDoris.ai — "The Organizational Brain"
   Near-black substrate · synapse dot-grid · Doris orange · neural cyan
   ------------------------------------------------------------
   Sibling to Self-FDE-WorkBench's blueprint-notebook look, but not
   a copy: dots instead of graph paper, Fraunces (soft/wonky) instead
   of Instrument Serif. The warm accent comes from Doris illustration details
   so the art and the page read as one object.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght,SOFT,WONK@0,9..144,400..700,50,1;1,9..144,400..700,50,1&family=IBM+Plex+Mono:wght@300;400;500;600&display=swap');

:root {
  --ink:        #09090C;
  --ink-2:      #0F0F14;
  --ink-3:      #16161D;
  --line:       rgba(233, 229, 224, 0.10);
  --line-soft:  rgba(233, 229, 224, 0.05);
  --paper:      #E9E5E0;
  --paper-dim:  #A3A2A8;
  --muted:      #6C6B76;

  /* Doris illustration accent. */
  --red:        #FF3B30;
  --red-dim:    rgba(255, 59, 48, 0.14);
  /* neural — used sparingly, for the "brain" register */
  --violet:     #9D8CFF;
  --violet-dim: rgba(157, 140, 255, 0.12);

  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --display: 'Fraunces', 'Songti SC', Georgia, serif;
  --han: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;

  --max: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono), var(--han);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- synapse substrate ---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(233, 229, 224, 0.13) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 120% 80% at 50% 0%, #000 15%, transparent 85%);
}
/* violet aura behind the hero — the brain in the room */
body::after {
  content: '';
  position: fixed;
  top: -30vh; left: 50%;
  width: 120vw; height: 90vh;
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(157, 140, 255, 0.10), transparent 62%);
}

main, header, footer, nav { position: relative; z-index: 2; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* ---------- type ---------- */
h1, h2, h3 { font-weight: 400; letter-spacing: -0.01em; line-height: 1.25; margin: 0; }

.display {
  font-family: var(--display), var(--han);
  font-weight: 500;
  font-variation-settings: 'SOFT' 50, 'WONK' 1, 'opsz' 100;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--red-dim), transparent);
}

a { color: var(--paper); text-decoration: none; }

p { margin: 0 0 1.1em; color: var(--paper-dim); }
strong { color: var(--paper); font-weight: 500; }
em { font-family: var(--display), var(--han); font-style: italic; color: var(--paper); }

code {
  font-family: var(--mono);
  font-size: 0.88em;
  color: var(--violet);
  background: var(--violet-dim);
  padding: 1px 6px;
  border-radius: 3px;
}

/* ---------- nav ---------- */
nav.top {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(9, 9, 12, 0.74);
  border-bottom: 1px solid var(--line);
}
nav.top .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 62px;
}
.brand {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-right: auto;
  white-space: nowrap;
}
.brand .dot {
  width: 7px; height: 7px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--red);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

nav.top a.link {
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
  transition: color .2s;
  white-space: nowrap;
}
nav.top a.link:hover { color: var(--paper); }
.nav-scroll { display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; }
.nav-scroll::-webkit-scrollbar { display: none; }

/* ---------- language toggle ---------- */
.lang {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line);
  margin-left: 22px;
  flex-shrink: 0;
}
.lang-btn {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 6px 11px;
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  transition: color .18s, background .18s;
  line-height: 1.5;
}
.lang-btn + .lang-btn { border-left: 1px solid var(--line); }
.lang-btn:hover { color: var(--paper); }
.lang-btn[aria-pressed="true"] {
  background: var(--red);
  color: var(--ink);
  font-weight: 600;
}

/* Fraunces carries no CJK/Thai glyphs, so localized headings fall back to
   system fonts with different apparent sizes. Rein the display sizes in. */
:root[data-lang="zh"] .hero h1 { max-width: 11em; font-size: clamp(38px, 5.4vw, 66px); }
:root[data-lang="th"] .hero h1 { max-width: 14em; font-size: clamp(36px, 5vw, 60px); line-height: 1.16; }
:root[data-lang="en"] .hero h1 { max-width: 14ch; }

/* ---------- hero ---------- */
.hero { padding: 68px 0 80px; position: relative; }
.hero .kicker {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}
.hero .kicker b { color: var(--red); font-weight: 500; }

.hero h1 {
  font-family: var(--display), var(--han);
  font-weight: 500;
  font-variation-settings: 'SOFT' 50, 'WONK' 1, 'opsz' 144;
  font-size: clamp(42px, 6.4vw, 78px);
  line-height: 1.06;
  letter-spacing: -0.022em;
  margin-bottom: 28px;
}
.hero h1 .glow { color: var(--red); font-style: italic; }

.hero .lede {
  font-size: 16px;
  max-width: 58ch;
  color: var(--paper-dim);
  line-height: 1.85;
}
.hero .lede b { color: var(--paper); font-weight: 500; }

.hero-inner { display: grid; grid-template-columns: 1fr 440px; gap: 48px; align-items: center; }
.hero-copy { min-width: 0; }
.hero-art {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.55);
}
.hero-art img { display: block; width: 100%; height: auto; }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-art { max-width: 460px; margin: 0 auto; }
}

.hero-actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }

.btn {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 13px 22px;
  border: 1px solid var(--line);
  color: var(--paper);
  transition: all .22s ease;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: transparent;
}
.btn:hover { border-color: var(--red); color: var(--red); transform: translateY(-1px); }
.btn.primary {
  background: var(--red);
  border-color: var(--red);
  color: var(--ink);
  font-weight: 600;
}
.btn.primary:hover { background: transparent; color: var(--red); }

/* ---------- sections ---------- */
section { padding: 96px 0; border-top: 1px solid var(--line); }
.sec-head { margin-bottom: 56px; max-width: 62ch; }
.sec-head h2 {
  font-family: var(--display), var(--han);
  font-weight: 500;
  font-variation-settings: 'SOFT' 50, 'WONK' 1, 'opsz' 120;
  font-size: clamp(30px, 3.8vw, 46px);
  margin: 22px 0 20px;
  letter-spacing: -0.015em;
}
.sec-head p { font-size: 15px; }

/* ---------- the naming aside ---------- */
.aside-note {
  border: 1px solid var(--line);
  border-left: 2px solid var(--violet);
  background: var(--ink-2);
  padding: 26px 30px;
  max-width: 68ch;
  margin: 0 auto;
}
.aside-note .tag {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--violet);
  font-weight: 500;
  display: block;
  margin-bottom: 12px;
}
.aside-note p { font-size: 14px; margin-bottom: 0.9em; }
.aside-note p:last-child { margin-bottom: 0; }
.aside-note s { color: var(--muted); text-decoration-color: var(--red); }

/* ---------- product rows ---------- */
.prod {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 56px;
  align-items: center;
  padding: 60px 0;
  border-top: 1px solid var(--line-soft);
}
.prod:first-of-type { border-top: 0; }
.prod.flip { grid-template-columns: 380px 1fr; }
.prod.flip .prod-art { order: -1; }

/* The art is black-ink line work with large black fills (hair, jacket).
   It cannot float on a dark page: any filter that reveals black lines on
   black also inverts those fills — the jacket goes white, the face becomes
   a hole. So the art keeps its own light panel. */
.prod-art {
  position: relative;
  background: #F4F1EC;
  border: 1px solid rgba(233, 229, 224, 0.12);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.prod-art::before {
  content: '';
  position: absolute;
  top: -5px; left: 50%;
  transform: translateX(-50%);
  width: 10px; height: 10px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.6);
  z-index: 2;
}
.prod-art img { display: block; width: 100%; height: 100%; object-fit: cover; }

.prod-text .n {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--red);
  font-weight: 500;
  display: block;
  margin-bottom: 14px;
}
.prod-text h3 {
  font-family: var(--display), var(--han);
  font-weight: 500;
  font-variation-settings: 'SOFT' 50, 'WONK' 1, 'opsz' 100;
  font-size: 30px;
  margin-bottom: 6px;
}
.prod-text .tagline {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.prod-text p { font-size: 14px; line-height: 1.85; max-width: 48ch; }
.prod-text ul { padding-left: 0; list-style: none; margin: 0 0 1.4em; }
.prod-text li {
  color: var(--paper-dim);
  font-size: 13.5px;
  padding: 5px 0 5px 22px;
  position: relative;
  line-height: 1.75;
}
.prod-text li::before {
  content: '─';
  position: absolute;
  left: 0;
  color: var(--red);
  opacity: 0.55;
}
.prod-links { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 20px; }
.prod-links a {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition: color .2s, border-color .2s;
}
.prod-links a:hover { color: var(--red); border-color: var(--red); }

@media (max-width: 900px) {
  .prod, .prod.flip { grid-template-columns: 1fr; gap: 30px; padding: 44px 0; }
  .prod.flip .prod-art { order: 0; }
  .prod-art { max-width: 420px; }
}

/* ---------- cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.card {
  border: 1px solid var(--line);
  background: var(--ink-2);
  padding: 30px 28px 32px;
  position: relative;
  transition: border-color .25s, transform .25s;
  display: block;
  overflow: hidden;
}
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, var(--red-dim), transparent 55%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.card:hover { border-color: rgba(255, 59, 48, 0.4); transform: translateY(-3px); }
.card:hover::after { opacity: 1; }

.card .icon { font-size: 22px; display: block; margin-bottom: 14px; line-height: 1; }
.card h3 {
  font-family: var(--display), var(--han);
  font-weight: 500;
  font-variation-settings: 'SOFT' 50, 'WONK' 1;
  font-size: 24px;
  margin-bottom: 6px;
}
.card .sub {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.card p { font-size: 13.5px; line-height: 1.8; margin-bottom: 0; }
.card .go {
  margin-top: 22px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color .2s, gap .2s;
}
.card:hover .go { color: var(--red); gap: 14px; }

/* pull-quote */
.quote {
  border-left: 2px solid var(--red);
  padding: 6px 0 6px 28px;
  margin: 44px 0;
  max-width: 66ch;
}
.quote p {
  font-family: var(--display), var(--han);
  font-weight: 400;
  font-variation-settings: 'SOFT' 50, 'WONK' 1, 'opsz' 120;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.55;
  color: var(--paper);
  margin: 0;
}
.quote cite {
  display: block;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-style: normal;
}

/* business */
.business-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 34px;
  align-items: stretch;
  border: 1px solid var(--line);
  background: var(--ink-2);
  padding: 30px;
}
.business-panel .tag,
.contact-box .tag {
  display: block;
  margin-bottom: 12px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet);
  font-weight: 500;
}
.business-panel p {
  margin: 0;
  max-width: 62ch;
  font-size: 14px;
}
.contact-box {
  border-left: 1px solid var(--line);
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.contact-box a {
  color: var(--paper);
  border-bottom: 1px solid var(--line);
  width: fit-content;
}
.contact-box a:hover {
  color: var(--red);
  border-color: var(--red);
}
@media (max-width: 760px) {
  .business-panel { grid-template-columns: 1fr; padding: 24px; }
  .contact-box { border-left: 0; border-top: 1px solid var(--line); padding: 22px 0 0; }
}

/* roles table */
.spec { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.spec th, .spec td {
  text-align: left;
  padding: 15px 18px;
  border: 1px solid var(--line);
  vertical-align: top;
}
.spec th {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  background: var(--ink-2);
}
.spec td { color: var(--paper-dim); }
.spec td:first-child { color: var(--paper); white-space: nowrap; }
.spec tr:hover td { background: var(--ink-2); }

/* status chip */
.chip {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 9px;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 2px;
  margin-left: 10px;
  vertical-align: middle;
}
.chip.live { color: var(--violet); border-color: rgba(157, 140, 255, 0.4); }
.chip.wip  { color: var(--red);    border-color: rgba(255, 59, 48, 0.4); }

/* ---------- meetup / channels ---------- */
.chan {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.chan:last-child { border-bottom: 1px solid var(--line); }
.chan .who {
  font-family: var(--display), var(--han);
  font-weight: 500;
  font-variation-settings: 'SOFT' 50, 'WONK' 1;
  font-size: 21px;
  color: var(--paper);
}
.chan .what { font-size: 13.5px; color: var(--paper-dim); margin: 0; }
.chan .when {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.chan .when a { color: var(--violet); border-bottom: 1px solid rgba(157,140,255,0.3); }
.chan .when a:hover { color: var(--red); border-color: var(--red); }
@media (max-width: 760px) {
  .chan { grid-template-columns: 1fr; gap: 8px; }
}

/* footer */
footer {
  border-top: 1px solid var(--line);
  padding: 54px 0 70px;
  font-size: 12px;
  color: var(--muted);
}
footer .wrap { display: flex; justify-content: space-between; gap: 26px; flex-wrap: wrap; align-items: flex-end; }
footer a { color: var(--paper-dim); }
footer a:hover { color: var(--red); }
footer .links { display: flex; gap: 22px; flex-wrap: wrap; }

/* reveal */
.rise { opacity: 0; transform: translateY(18px); animation: rise .8s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.d1 { animation-delay: .08s; } .d2 { animation-delay: .18s; }
.d3 { animation-delay: .28s; } .d4 { animation-delay: .40s; }

.io { opacity: 0; transform: translateY(22px); transition: opacity .9s cubic-bezier(.2,.7,.3,1), transform .9s cubic-bezier(.2,.7,.3,1); }
.io.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .io { opacity: 1; transform: none; }
}

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 60px; }
  section { padding: 68px 0; }
  .wrap { padding: 0 20px; }
}
