/* ============================================================
   indot 2.0 — "The site that answers back"
   Noise → signal. Conversation → line. Brochure → experience.
   Brand: deep teal-charcoal · teal accent · editorial serif
   ============================================================ */

:root {
  --brand-dark: #002820;
  --accent: #00C9B4;
  --accent-2: #00A898;
  --accent-deep: #0a8f7f;
  --accent-glow: rgba(0, 201, 180, 0.30);

  --bg: #030f0c;
  --bg-soft: #051712;
  --surface: #07201a;
  --surface-2: #0a2820;
  --surface-3: #0d3026;

  --text: #e9f3f0;
  --text-strong: #ffffff;
  --muted: #93aaa3;
  --muted-2: #6d857e;

  --line: rgba(180, 220, 212, 0.10);
  --line-strong: rgba(180, 220, 212, 0.22);

  --radius: 18px;
  --radius-lg: 28px;
  --radius-sm: 12px;
  --maxw: 1240px;
  --measure: 760px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: "Fraunces", Georgia, serif;
  --font-ui: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* film grain — the premium texture layer */
body::after {
  content: "";
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 9s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0,0); } 10% { transform: translate(-3%,2%); }
  30% { transform: translate(2%,-3%); } 50% { transform: translate(-2%,3%); }
  70% { transform: translate(3%,1%); } 90% { transform: translate(-1%,-2%); }
}

::selection { background: var(--accent); color: #02110d; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
canvas { display: block; }

.container { width: min(100% - 48px, var(--maxw)); margin-inline: auto; }
.section-pad { padding: clamp(60px, 7.5vw, 100px) 0; }

/* blended section separators — no hard lines, just a breath of light */
main > .section-pad { position: relative; }
main > .section-pad:not(:first-of-type)::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(100% - 48px, 720px); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(180, 220, 212, 0.09) 35%, rgba(0, 201, 180, 0.14) 50%, rgba(180, 220, 212, 0.09) 65%, transparent);
}

/* brand flair: Indot + a tiny raised teal dot */
.bw { font-family: var(--font-ui); font-weight: 600; color: var(--text-strong); white-space: nowrap; }
.bw::after { content: "."; color: var(--accent); margin-inline-start: 1px; text-shadow: 0 0 10px var(--accent-glow); }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--font-ui); color: var(--text-strong); line-height: 1.12; font-weight: 600; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); }

.accent {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 480;
  letter-spacing: 0;
  color: var(--accent);
  text-shadow: 0 0 50px var(--accent-glow);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-ui);
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent); opacity: 0.6; }

.section-head { max-width: var(--measure); margin-bottom: clamp(40px, 5vw, 64px); }
.section-head p { color: var(--muted); margin-top: 16px; max-width: 60ch; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-ui); font-weight: 500; font-size: 0.95rem;
  padding: 12px 22px; border-radius: 999px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s, color 0.35s, border-color 0.35s;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #02110d; box-shadow: 0 0 0 0 var(--accent-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px -8px var(--accent-glow), 0 0 0 1px var(--accent); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-lg { padding: 16px 30px; font-size: 1.02rem; }
.bdot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }

/* ============================================================
   CURSOR LINE TRAIL — your pointer draws the line
   ============================================================ */
#trail { position: fixed; inset: 0; z-index: 9998; pointer-events: none; }
@media (hover: none), (max-width: 760px) { #trail { display: none; } }

/* ============================================================
   WORD REVEAL — blur (noise) resolves into sharp (signal)
   ============================================================ */
.wr .w { display: inline-block; opacity: 0; filter: blur(10px); transform: translateY(0.35em); transition: opacity 0.7s var(--ease), filter 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--wd, 0s); }
.wr.wron .w { opacity: 1; filter: blur(0); transform: none; }

/* ============================================================
   CONVERSATION PRIMITIVES (used by the final CTA)
   ============================================================ */
.th-line {
  font-family: var(--font-display);
  font-weight: 380;
  font-size: clamp(1.25rem, 2.6vw, 1.8rem);
  line-height: 1.45;
  color: var(--muted);
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), color 0.8s;
}
.th-line.on { opacity: 1; transform: none; }
.th-line.now { color: var(--text-strong); }
.th-line .caret {
  display: inline-block; width: 2px; height: 1em;
  background: var(--accent); vertical-align: -0.12em;
  margin-inline-start: 3px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.th-q {
  display: block;
  font-family: var(--font-display); font-style: italic; font-weight: 460;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  color: var(--accent); text-shadow: 0 0 60px var(--accent-glow);
  margin-bottom: 22px;
}
.th-row { display: flex; gap: 12px; align-items: center; border-bottom: 1px solid var(--line-strong); transition: border-color 0.4s; }
.th-row:focus-within { border-color: var(--accent); }
.th-row input {
  flex: 1; background: none; border: none; outline: none;
  font-family: var(--font-body); font-size: 1.05rem;
  color: var(--text-strong); padding: 14px 0;
}
.th-row input::placeholder { color: var(--muted-2); }
.th-go {
  font-family: var(--font-ui); font-size: 1.1rem;
  color: var(--accent); padding: 8px 14px;
  border: 1px solid var(--line-strong); border-radius: 10px;
  transition: all 0.3s var(--ease);
}
.th-go:hover { border-color: var(--accent); background: rgba(0,201,180,0.08); }

/* ============================================================
   WHAT WE HEAR — chat threads
   ============================================================ */
.convs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.conv {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-soft) 100%);
  padding: 24px 22px 26px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color 0.4s, transform 0.45s var(--ease), box-shadow 0.5s;
}
.conv:hover { border-color: var(--line-strong); transform: translateY(-4px); box-shadow: 0 24px 70px -34px rgba(0,201,180,0.3); }
.conv-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.conv-av {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-family: var(--font-ui); font-weight: 600; font-size: 0.95rem;
  color: var(--accent); background: rgba(0,201,180,0.1);
  border: 1px solid rgba(0,201,180,0.3);
}
.conv-meta b { display: block; font-family: var(--font-ui); font-weight: 500; font-size: 0.92rem; color: var(--text-strong); line-height: 1.3; }
.conv-meta small { font-family: var(--font-ui); font-size: 0.74rem; color: var(--muted-2); letter-spacing: 0.04em; }
.msg {
  position: relative;
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: 14px; border-start-start-radius: 4px;
  padding: 13px 16px;
  font-size: 0.95rem; line-height: 1.55; color: var(--text);
  max-width: 95%;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  min-height: 24px;
}
.msg.show { opacity: 1; transform: none; }
.msg .tdots { display: inline-flex; gap: 4px; align-items: center; height: 1em; }
.msg .tdots i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted-2); animation: tdot 1s infinite; }
.msg .tdots i:nth-child(2) { animation-delay: 0.15s; }
.msg .tdots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes tdot { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.convs-foot { margin-top: 34px; font-family: var(--font-ui); color: var(--muted); }
.convs-foot a { color: var(--accent); border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.convs-foot a:hover { border-color: var(--accent); }

/* ============================================================
   THE LENS — drag to resolve noise into signal
   ============================================================ */
.lens-stage { position: relative; height: clamp(260px, 36vw, 360px); border-radius: var(--radius); overflow: hidden; background: rgba(2,10,8,0.45); border: 1px solid var(--line); touch-action: none; }
#lensCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.lens-handle {
  position: absolute; top: 0; bottom: 0; width: 44px; margin-left: -22px;
  cursor: ew-resize; z-index: 3; outline: none;
}
.lens-handle::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1.5px; transform: translateX(-50%); background: linear-gradient(to bottom, transparent, var(--accent) 18%, var(--accent) 82%, transparent); box-shadow: 0 0 18px var(--accent-glow); }
.lh-grip {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg); border: 1px solid var(--accent);
  color: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
  transition: transform 0.3s var(--ease);
}
.lens-handle:hover .lh-grip, .lens-handle:focus-visible .lh-grip { transform: translate(-50%, -50%) scale(1.12); }
.lens-tag {
  position: absolute; top: 14px; z-index: 2;
  font-family: var(--font-ui); font-size: 0.68rem; letter-spacing: 0.26em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(3,15,12,0.7); backdrop-filter: blur(4px);
}
.lens-tag-l { left: 14px; color: var(--accent); border-color: rgba(0,201,180,0.35); }
.lens-tag-r { right: 14px; color: var(--muted-2); }
.lens-hint {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); z-index: 2;
  font-family: var(--font-ui); font-size: 0.78rem; letter-spacing: 0.12em; color: var(--muted);
  padding: 5px 14px; border-radius: 999px; background: rgba(3,15,12,0.7); border: 1px solid var(--line);
  transition: opacity 0.6s; pointer-events: none;
}
.lens-hint.hide { opacity: 0; }

/* ============================================================
   THE ONE QUESTION
   ============================================================ */
.oneq { max-width: 860px; margin-inline: auto; text-align: center; }
.oneq-q {
  font-family: var(--font-display); font-style: italic; font-weight: 420;
  font-size: clamp(2rem, 5.4vw, 3.8rem); line-height: 1.25;
  color: var(--text-strong);
  margin: clamp(24px, 4vw, 44px) 0;
  position: relative;
}
.oneq-q em { font-style: inherit; color: var(--accent); text-shadow: 0 0 60px var(--accent-glow); }
.oneq-after { font-family: var(--font-ui); color: var(--muted); }
.oneq-after::before { content: ""; display: block; width: 54px; height: 1px; background: var(--accent); opacity: 0.5; margin: 0 auto 22px; }
/* compact variant — lives at the top of the refusals section */
.oneq-sm { margin-bottom: clamp(30px, 4vw, 48px); }
.oneq-sm .oneq-q { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin: clamp(16px, 2.4vw, 26px) 0; }
.oneq-sm .oneq-after { font-size: 0.95rem; line-height: 1.7; }
.oneq-sm .oneq-after::before { margin-bottom: 16px; }

/* ============================================================
   FIVE REFUSALS
   ============================================================ */
.refusals { max-width: 860px; margin-inline: auto; }
.ref-item { position: relative; }
.ref-item + .ref-item::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, rgba(180,220,212,0.09), transparent 75%);
}
.ref-q {
  display: flex; align-items: baseline; gap: clamp(14px, 2.4vw, 26px);
  width: 100%; text-align: start; padding: clamp(13px, 1.8vw, 18px) 4px;
  position: relative;
}
.ref-n {
  font-family: var(--font-ui); font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--muted-2); flex: none; min-width: 4em;
  transition: color 0.4s;
}
/* the statement: hollow type that fills with light */
.ref-t {
  flex: 1;
  font-family: var(--font-ui); font-weight: 600; letter-spacing: -0.01em;
  font-size: clamp(1.1rem, 2.2vw, 1.65rem); line-height: 1.25;
  color: transparent;
  -webkit-text-stroke: 0.8px rgba(233, 243, 240, 0.45);
  transition: color 0.5s var(--ease), -webkit-text-stroke-color 0.5s var(--ease), text-shadow 0.5s;
}
@supports not (-webkit-text-stroke: 1px black) { .ref-t { color: var(--muted); } }
.ref-q:hover .ref-t { color: var(--text-strong); -webkit-text-stroke-color: transparent; }
.ref-item.open .ref-t { color: var(--accent); -webkit-text-stroke-color: transparent; text-shadow: 0 0 50px var(--accent-glow); }
.ref-item.open .ref-n, .ref-q:hover .ref-n { color: var(--accent); }
.ref-q .faq-ic { align-self: center; flex: none; }
.ref-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
.ref-a-inner { overflow: hidden; }
.ref-a-inner p {
  color: var(--muted); max-width: 60ch;
  padding: 0 4px 20px; margin-inline-start: calc(4em + clamp(14px, 2.4vw, 26px));
  font-size: 0.95rem;
  border-inline-start: 1px solid rgba(0,201,180,0.35);
  padding-inline-start: 18px;
}
.ref-item.open .ref-a { grid-template-rows: 1fr; }
@media (max-width: 680px) {
  .ref-q { flex-direction: column; gap: 6px; }
  .ref-a-inner p { margin-inline-start: 0; }
}

/* the creed — the line everything above was building to */
.ref-creed { margin: clamp(44px, 5vw, 64px) auto 0; max-width: 820px; text-align: center; }
.ref-creed::before {
  content: ""; display: block; width: 1px; height: clamp(36px, 5vw, 60px);
  margin: 0 auto clamp(24px, 3vw, 36px);
  background: linear-gradient(to bottom, transparent, var(--accent));
  box-shadow: 0 0 12px var(--accent-glow);
}
.ref-creed p {
  font-family: var(--font-display); font-style: italic; font-weight: 420;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem); line-height: 1.35;
  color: var(--text-strong);
}
.ref-creed em { font-style: inherit; color: var(--accent); text-shadow: 0 0 50px var(--accent-glow); }
.ref-creed footer {
  margin-top: 18px;
  font-family: var(--font-ui); font-size: 0.95rem; letter-spacing: 0.02em;
  color: var(--muted);
}

/* ============================================================
   FOUNDER LETTER — desk card
   ============================================================ */
.letter-card {
  max-width: 640px; margin-inline: auto;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(165deg, var(--surface-2) 0%, var(--bg-soft) 70%);
  padding: clamp(24px, 3.2vw, 40px);
  position: relative; overflow: hidden;
}
.letter-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
}
.letter-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding-bottom: 16px; margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-ui); font-size: 0.8rem; color: var(--muted);
  letter-spacing: 0.02em;
}
.letter-head b { color: var(--text-strong); font-weight: 600; }
.lh-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); flex: none; }
.lh-place { margin-inline-start: auto; color: var(--muted-2); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.letter-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.letter-actions .btn { font-size: 0.82rem; padding: 8px 16px; }
/* ============================================================
   FOUNDER LETTER
   ============================================================ */
.letter-sec { background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(0,201,180,0.05), transparent 70%); }
.letter { max-width: 760px; margin-inline: auto; }
.letter-body p {
  font-family: var(--font-display); font-weight: 390;
  font-size: clamp(1rem, 1.6vw, 1.16rem); line-height: 1.65;
  color: var(--text); margin-bottom: 16px;
}
.letter-body p:last-child { color: var(--text-strong); margin-bottom: 0; }
.letter-sign { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sig {
  font-family: var(--font-display); font-style: italic; font-weight: 450;
  font-size: clamp(1.6rem, 2.8vw, 2.1rem); color: var(--accent);
  text-shadow: 0 0 40px var(--accent-glow);
}
.sig-meta { font-family: var(--font-ui); font-size: 0.88rem; color: var(--muted-2); }
.sig-meta a { color: var(--muted); border-bottom: 1px solid var(--line-strong); transition: color 0.3s, border-color 0.3s; }
.sig-meta a:hover { color: var(--accent); border-color: var(--accent); }

/* ============================================================
   THE CONVERSATION — final CTA
   ============================================================ */
.convo { background: linear-gradient(180deg, transparent, rgba(0,201,180,0.05) 70%); }
.convo .container { width: min(100% - 48px, 760px); }
.convo-dialogue { display: flex; flex-direction: column; gap: 12px; margin-bottom: 34px; min-height: 96px; }
.convo-ask { opacity: 0; transform: translateY(12px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); pointer-events: none; }
.convo-ask.on { opacity: 1; transform: none; pointer-events: auto; }
.convo-hint { font-family: var(--font-ui); font-size: 0.82rem; color: var(--muted-2); margin-top: 14px; letter-spacing: 0.04em; }
.convo-reply {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem); color: var(--text-strong);
  margin-top: 26px;
}

/* ============================================================
   LINE RAIL — the line you walk while scrolling
   ============================================================ */
.line-rail {
  position: fixed; z-index: 90;
  inset-inline-start: clamp(12px, 2vw, 30px);
  top: 0; bottom: 0; width: 1px;
  background: var(--line);
  opacity: 0; transition: opacity 1s var(--ease) 0.4s;
}
body.entered .line-rail { opacity: 1; }
.lr-fill { position: absolute; top: 0; left: 0; width: 100%; height: 0%; background: linear-gradient(to bottom, transparent, var(--accent)); }
.lr-dot {
  position: absolute; top: 0; left: 50%;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 14px var(--accent-glow), 0 0 4px var(--accent);
}
@media (max-width: 760px) { .line-rail { display: none; } }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0;
  transition: background 0.5s, padding 0.5s, box-shadow 0.5s, transform 0.7s var(--ease), opacity 0.7s var(--ease);
  transform: translateY(-14px); opacity: 0;
}
body.entered .nav { transform: none; opacity: 1; }
.nav.scrolled { background: rgba(3, 15, 12, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: 12px 0; box-shadow: 0 1px 0 var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand img { height: 36px; width: auto; }
.nav-links { display: flex; gap: clamp(16px, 2.4vw, 34px); }
.nav-links a { font-family: var(--font-ui); font-size: 0.92rem; color: var(--muted); transition: color 0.3s; position: relative; }
.nav-links a::after { content: ""; position: absolute; bottom: -5px; inset-inline-start: 0; width: 0; height: 1px; background: var(--accent); transition: width 0.35s var(--ease); }
.nav-links a:hover { color: var(--text-strong); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 14px; }

.lang-toggle { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-ui); font-size: 0.85rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; transition: all 0.3s; }
.lang-toggle:hover { color: var(--accent); border-color: var(--accent); }
.lt-sep { opacity: 0.4; }
.lt-ar { font-family: "Tajawal", sans-serif; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-scrim { position: fixed; inset: 0; z-index: 98; background: rgba(2,8,6,0.6); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity 0.4s; }
.nav-scrim.open { opacity: 1; pointer-events: auto; }
.nav-mobile {
  position: fixed; top: 0; inset-inline-end: 0; bottom: 0; z-index: 99;
  width: min(82vw, 360px);
  background: var(--bg-soft);
  border-inline-start: 1px solid var(--line);
  padding: 110px 34px 34px;
  display: flex; flex-direction: column; gap: 22px;
  transform: translateX(100%);
  transition: transform 0.55s var(--ease);
}
[dir="rtl"] .nav-mobile { transform: translateX(-100%); }
.nav-mobile.open { transform: none !important; }
.nav-mobile a { font-family: var(--font-ui); font-size: 1.05rem; color: var(--text); }
.lang-toggle-m { align-self: flex-start; }
@media (max-width: 920px) {
  .nav-links, .nav-cta .btn, .nav-cta .lang-toggle { display: none; }
  .nav-toggle { display: flex; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
#field { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 90% 70% at 50% 45%, transparent 40%, var(--bg) 100%); pointer-events: none; }
.hero-inner { position: relative; z-index: 2; padding: 140px 0 110px; max-width: 920px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-ui); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 18px; margin-bottom: 30px;
  background: rgba(255,255,255,0.02);
}
.pip { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.hero h1 .accent { display: inline-block; }
.lede { font-size: clamp(1.05rem, 1.7vw, 1.25rem); color: var(--muted); max-width: 58ch; margin-top: 26px; }
.lede b { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-ui); font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted-2);
}
.scroll-cue .rail { width: 1px; height: 46px; background: var(--line-strong); position: relative; overflow: hidden; }
.scroll-cue .rail::after { content: ""; position: absolute; top: -40%; left: 0; width: 100%; height: 40%; background: var(--accent); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { to { top: 120%; } }

/* ============================================================
   THE SHIFT
   ============================================================ */
.rightdots { border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(180deg, var(--surface) 0%, var(--bg-soft) 100%); padding: clamp(28px, 4vw, 52px); overflow: hidden; }
.rd-head { max-width: 640px; margin-bottom: 8px; }
.rd-head h3 { margin-bottom: 12px; }
.rd-head p { color: var(--muted); font-size: 0.98rem; }

/* ============================================================
   MOVES
   ============================================================ */
/* one continuous line, literally: a rail threads through the three moves */
.moves-list { position: relative; }
.moves-list::before {
  content: ""; position: absolute; top: 12px; bottom: 12px;
  inset-inline-start: clamp(8px, 1vw, 14px); width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(0,201,180,0.35) 12%, rgba(0,201,180,0.35) 88%, transparent);
}
.move {
  display: grid; grid-template-columns: minmax(200px, 320px) 1fr;
  gap: clamp(20px, 4vw, 70px);
  padding: clamp(34px, 4.5vw, 56px) 0 clamp(34px, 4.5vw, 56px) clamp(34px, 3.5vw, 54px);
  position: relative;
  align-items: start;
  transition: background 0.5s, transform 0.5s var(--ease);
  border-radius: var(--radius);
}
[dir="rtl"] .move { padding: clamp(34px, 4.5vw, 56px) clamp(34px, 3.5vw, 54px) clamp(34px, 4.5vw, 56px) 0; }
.move + .move::before {
  content: ""; position: absolute; top: 0; inset-inline-start: clamp(34px, 3.5vw, 54px); right: 0;
  width: calc(100% - clamp(34px, 3.5vw, 54px)); height: 1px;
  background: linear-gradient(90deg, rgba(180,220,212,0.1), transparent 80%);
}
.move::after { /* the dot on the rail */
  content: ""; position: absolute; top: clamp(48px, 5.5vw, 76px);
  inset-inline-start: calc(clamp(8px, 1vw, 14px) - 4px);
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--accent);
  transition: background 0.4s, box-shadow 0.4s, transform 0.4s var(--ease);
}
.move:hover { background: linear-gradient(90deg, rgba(0,201,180,0.04), transparent 60%); transform: translateX(4px); }
[dir="rtl"] .move:hover { transform: translateX(-4px); }
.move:hover::after { background: var(--accent); box-shadow: 0 0 16px var(--accent-glow); transform: scale(1.25); }
.move-id { display: flex; align-items: baseline; gap: 18px; }
.move-id .n { font-family: var(--font-display); font-weight: 320; font-size: clamp(1.4rem, 2.4vw, 2rem); color: var(--accent); font-style: italic; opacity: 0.75; }
.move-id h3 { font-size: clamp(1.9rem, 4vw, 3rem); }
.dot-mark { color: var(--accent); }
.move-body p { color: var(--muted); max-width: 56ch; }
.move-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.move-tags span { font-family: var(--font-ui); font-size: 0.8rem; color: var(--muted); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; transition: all 0.3s; }
.move:hover .move-tags span { border-color: rgba(0,201,180,0.4); color: var(--text); }
@media (max-width: 760px) { .move { grid-template-columns: 1fr; gap: 14px; } }

/* ============================================================
   JOURNEY
   ============================================================ */
.journey-grid { display: grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: clamp(40px, 6vw, 100px); }
.journey-intro { position: sticky; top: 120px; align-self: start; }
.journey-intro p { color: var(--muted); margin-top: 16px; }
.spine { position: relative; padding-inline-start: 42px; }
.spine .track { position: absolute; inset-inline-start: 8px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.spine .fill { position: absolute; inset-inline-start: 8px; top: 8px; width: 1px; height: 0; background: linear-gradient(to bottom, var(--accent), var(--accent-2)); box-shadow: 0 0 10px var(--accent-glow); transition: height 0.2s linear; }
.knot { position: relative; padding: 26px 0; }
.knot::before {
  content: ""; position: absolute; inset-inline-start: -38px; top: 36px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line-strong);
  transition: background 0.5s, border-color 0.5s, box-shadow 0.5s;
}
.knot.lit::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 14px var(--accent-glow); }
.step-k { font-family: var(--font-display); font-style: italic; font-weight: 350; font-size: 0.95rem; color: var(--accent); margin-bottom: 8px; }
.knot h4 { font-size: clamp(1.15rem, 2vw, 1.45rem); margin-bottom: 8px; }
.knot p { color: var(--muted); max-width: 54ch; }
@media (max-width: 860px) { .journey-grid { grid-template-columns: 1fr; } .journey-intro { position: static; } }

/* ============================================================
   FIELD NOTES (cards)
   ============================================================ */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.post-card {
  display: flex; flex-direction: column; gap: 12px;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; background: rgba(255,255,255,0.015);
  transition: border-color 0.4s, transform 0.45s var(--ease), background 0.4s;
}
.post-card:hover { border-color: var(--accent); transform: translateY(-5px); background: var(--surface); }
.post-cat { font-family: var(--font-ui); font-size: 0.7rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--accent); }
.post-card h2, .post-card h3 { font-size: 1.25rem; line-height: 1.3; }
.post-card p { color: var(--muted); font-size: 0.95rem; flex: 1; }
.post-more { font-family: var(--font-ui); font-size: 0.85rem; color: var(--accent); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 860px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; text-align: start; padding: 24px 4px; font-family: var(--font-ui); font-size: 1.06rem; font-weight: 500; color: var(--text-strong); transition: color 0.3s; }
.faq-q:hover { color: var(--accent); }
.faq-ic { position: relative; width: 14px; height: 14px; flex: none; }
.faq-ic::before, .faq-ic::after { content: ""; position: absolute; background: var(--accent); transition: transform 0.4s var(--ease); }
.faq-ic::before { top: 50%; left: 0; width: 100%; height: 1.6px; transform: translateY(-50%); }
.faq-ic::after { left: 50%; top: 0; height: 100%; width: 1.6px; transform: translateX(-50%); }
.faq-q[aria-expanded="true"] .faq-ic::after { transform: translateX(-50%) scaleY(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
.faq-a-inner { overflow: hidden; }
.faq-a-inner p { color: var(--muted); padding: 0 4px 26px; max-width: 70ch; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: minmax(300px, 440px) 1fr; gap: clamp(40px, 6vw, 90px); }
.contact-info p { color: var(--muted); margin-top: 14px; }
.contact-channels { display: flex; flex-direction: column; gap: 14px; margin-top: 34px; }
.channel { display: flex; align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; transition: border-color 0.35s, transform 0.35s var(--ease); }
.channel:hover { border-color: var(--accent); transform: translateX(4px); }
[dir="rtl"] .channel:hover { transform: translateX(-4px); }
.ci { width: 40px; height: 40px; border-radius: 10px; background: rgba(0,201,180,0.09); display: grid; place-items: center; flex: none; }
.ci svg { width: 19px; height: 19px; fill: none; stroke: var(--accent); stroke-width: 1.7; }
.channel .meta small { display: block; font-family: var(--font-ui); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-2); }
.channel .meta b { color: var(--text-strong); font-weight: 500; font-size: 0.97rem; }

.contact-form { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px, 3.5vw, 44px); background: var(--surface); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-ui); font-size: 0.82rem; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--text-strong); font-family: var(--font-body); font-size: 0.97rem;
  padding: 13px 16px; outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,201,180,0.12); }
.form-note { font-size: 0.8rem; color: var(--muted-2); margin-top: 16px; text-align: center; }
.form-success { display: none; border: 1px solid var(--accent); background: rgba(0,201,180,0.08); color: var(--text-strong); border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 20px; font-size: 0.95rem; }
.form-success.show { display: block; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } .field-row { grid-template-columns: 1fr; gap: 0; } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding: clamp(50px, 6vw, 80px) 0 30px; background: var(--bg-soft); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: clamp(28px, 4vw, 60px); padding-bottom: 44px; border-bottom: 1px solid var(--line); }
.footer-brand img { height: 34px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: var(--muted); font-size: 0.93rem; max-width: 40ch; }
.footer-addr { font-style: normal; color: var(--muted-2); font-size: 0.85rem; margin-top: 16px; line-height: 1.6; }
.footer-col h5 { font-family: var(--font-ui); font-size: 0.74rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--muted); font-size: 0.93rem; padding: 5px 0; transition: color 0.3s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 26px; flex-wrap: wrap; }
.footer-bottom p { color: var(--muted-2); font-size: 0.85rem; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; display: grid; place-items: center; transition: border-color 0.3s; }
.footer-social a:hover { border-color: var(--accent); }
.footer-social svg { width: 17px; height: 17px; fill: var(--muted); transition: fill 0.3s; }
.footer-social a:hover svg { fill: var(--accent); }
@media (max-width: 880px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* ============================================================
   ARTICLE / BLOG PAGES
   ============================================================ */
.page-hero { padding-top: clamp(140px, 16vw, 190px); }
.article { max-width: 800px; }
.breadcrumb { font-family: var(--font-ui); font-size: 0.82rem; color: var(--muted-2); margin-bottom: 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb a { color: var(--muted); transition: color 0.3s; }
.breadcrumb a:hover { color: var(--accent); }
.article-head h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin: 14px 0 18px; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted-2); font-size: 0.9rem; font-family: var(--font-ui); }
.byline b { color: var(--text); font-weight: 500; }
.dotsep { width: 4px; height: 4px; border-radius: 50%; background: var(--muted-2); display: inline-block; }

.prose { margin-top: clamp(34px, 5vw, 54px); }
.prose p { color: var(--muted); margin-bottom: 22px; font-size: 1.05rem; }
.prose .lead-p { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.25rem, 2.4vw, 1.55rem); line-height: 1.5; color: var(--text); }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 44px 0 16px; }
.prose strong { color: var(--text-strong); }
.prose em { color: var(--text); }
.prose ul { color: var(--muted); padding-inline-start: 22px; margin-bottom: 22px; }
.prose li { margin-bottom: 12px; }
.prose blockquote {
  border-inline-start: 2px solid var(--accent);
  padding: 6px 0 6px 26px;
  margin: 34px 0;
  font-family: var(--font-display); font-style: italic; font-weight: 420;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.45;
  color: var(--text-strong);
}
[dir="rtl"] .prose blockquote { padding: 6px 26px 6px 0; }
.article-cta { margin-top: clamp(44px, 6vw, 64px); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); text-align: center; background: linear-gradient(180deg, rgba(0,201,180,0.05), transparent); }
.article-cta h3 { margin-bottom: 10px; }
.article-cta p { color: var(--muted); margin-bottom: 24px; }
.more-reading { margin-top: clamp(44px, 6vw, 64px); }
.more-reading h4 { font-family: var(--font-ui); font-size: 0.78rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 20px; }

/* blog index */
.blog-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.blog-head p { color: var(--muted); margin-top: 14px; }
.page-hero .container > p { color: var(--muted); margin-top: 16px; max-width: 60ch; }
.post-meta { display: flex; align-items: center; gap: 10px; font-family: var(--font-ui); font-size: 0.82rem; color: var(--muted-2); }

/* ============================================================
   404
   ============================================================ */
.lost { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 40px 24px; }
.lost h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 14px; }
.lost p { color: var(--muted); margin-bottom: 30px; }

/* ============================================================
   RTL refinements
   ============================================================ */
[dir="rtl"] body, [dir="rtl"] { --font-body: "Tajawal", "Inter", sans-serif; --font-ui: "Tajawal", "Space Grotesk", sans-serif; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { font-family: "Tajawal", sans-serif; letter-spacing: 0; line-height: 1.35; }
[dir="rtl"] .accent { font-family: "Tajawal", sans-serif; font-style: normal; font-weight: 700; }
[dir="rtl"] .eyebrow { letter-spacing: 0.1em; }
[dir="rtl"] .th-line, [dir="rtl"] .th-q, [dir="rtl"] .step-k, [dir="rtl"] .sig,
[dir="rtl"] .letter-body p, [dir="rtl"] .convo-reply, [dir="rtl"] .oneq-q, [dir="rtl"] .ref-creed p,
[dir="rtl"] .move-id .n, [dir="rtl"] .prose .lead-p, [dir="rtl"] .prose blockquote { font-family: "Tajawal", sans-serif; font-style: normal; }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::after { animation: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .wr .w { opacity: 1; filter: none; transform: none; }
  .th-line { opacity: 1; transform: none; }
  .convo-ask { opacity: 1; transform: none; pointer-events: auto; }
  #trail { display: none; }
}
