/* ==========================================================================
   Digital Loom — site styles
   ========================================================================== */

:root {
  /* Thread colors */
  --c1: #F2583E; /* Customer Experience */
  --c2: #F2A900; /* Digital Products */
  --c3: #0FA58F; /* Technology */
  --c4: #2F4BFF; /* Digital Commerce */
  --c5: #8450F0; /* Growth */

  /* Section tints */
  --t1: #FFE6DF;
  --t2: #FFF1CC;
  --t3: #D8F3EC;
  --t4: #E1E7FF;
  --t5: #ECE3FF;

  /* Brand accent (buttons, links, contact band) */
  --a: #2F4BFF;

  --ink: #0B0B0F;
  --paper: #FCFCFB;
  --hl: #E6E6E8;
  --mut: #565662;
  --dotc: rgba(11, 11, 15, 0.09);

  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Geist', system-ui, -apple-system, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;

  --pad: clamp(56px, 6vw, 96px);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Minimal sans headings; italic serif reserved for accent words */
h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.04em;
  margin: 0;
  text-wrap: balance;
}
h3, h4 { letter-spacing: -0.025em; }
h1 em, h2 em, h3 em {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.1em;
  line-height: 0.8;
  letter-spacing: -0.01em;
}
.serif {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
.wordmark { font-family: var(--sans); font-weight: 500; letter-spacing: -0.035em; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-style: italic; }
::selection { background: var(--a); color: var(--paper); }

/* ---------- Layout ---------- */

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: clamp(20px, 5vw, 64px);
  padding-right: clamp(20px, 5vw, 64px);
}

.band { padding-top: var(--pad); padding-bottom: var(--pad); }
.band-sm { padding-top: clamp(40px, 4vw, 64px); padding-bottom: clamp(40px, 4vw, 64px); }

.stack { display: flex; flex-direction: column; }
.gap-12 { gap: 12px; }
.gap-14 { gap: 14px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.gap-28 { gap: 28px; }

.split-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 32px clamp(40px, 6vw, 96px);
  align-items: start;
}

.sec-head {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 48px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.row-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 24px;
}

.mw-480 { max-width: 480px; }

/* Digital dot grid */
.grid-bg {
  background-image: radial-gradient(var(--dotc) 1px, transparent 1.2px);
  background-size: 22px 22px;
}

/* ---------- Type ---------- */

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mut);
  font-weight: 400;
}
.big { font-size: clamp(36px, 4.4vw, 64px); line-height: 1.02; }
.lead { font-size: clamp(17px, 1.3vw, 19px); font-weight: 300; line-height: 1.55; color: var(--mut); max-width: 600px; }
.lead.ink, .contact .lead { font-weight: 400; }
.lead.ink { color: var(--ink); }
.muted { color: var(--mut); }
.statement { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.15; }

.cursor { color: var(--a); font-style: normal; margin-left: 2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Lists & chips ---------- */

.lst { border-top: 1px solid var(--hl); }
.lst li { padding: 10px 0; border-bottom: 1px solid var(--hl); }
.lst.strike li { color: var(--mut); text-decoration: line-through; text-decoration-color: rgba(11, 11, 15, 0.3); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font-size: 13px;
  line-height: 1;
  padding: 8px 12px;
  border: 1px solid var(--hl);
  border-radius: 6px;
  background: var(--paper);
}
.mono-chips li { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.06em; font-size: 12px; background: transparent; border-color: rgba(11, 11, 15, 0.2); }

.flow-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; counter-reset: flow; }
.flow-chips li {
  counter-increment: flow;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--paper);
  border: 1px solid var(--thread);
}
.flow-chips li::before { content: "0" counter(flow) " "; color: var(--thread); }
.flow-chips li:not(:last-child)::after { content: " →"; color: var(--mut); }

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--a); border-color: var(--a); }
.btn.sm { min-height: 44px; padding: 0 20px; }
.btn.ghost { background: transparent; color: var(--ink); border-color: #BDBDC4; }
.btn.ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.inv { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn.inv:hover { background: #FFD166; border-color: #FFD166; color: var(--ink); }

.btns { display: flex; flex-wrap: wrap; gap: 12px; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid #BDBDC4;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.icon-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.icon-btn:disabled { opacity: .35; cursor: default; background: transparent; color: var(--ink); border-color: #BDBDC4; }

.tlink {
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--thread, var(--a));
  padding-bottom: 2px;
  transition: color .2s;
}
.tlink:hover { color: var(--a); }

.nl {
  color: var(--mut);
  text-decoration: none;
  font-size: 15px;
  padding: 12px 2px;
  transition: color .2s;
}
.nl:hover { color: var(--ink); }

a:focus-visible, button:focus-visible, .rail:focus-visible { outline: 2px solid var(--a); outline-offset: 3px; }

/* ---------- Section themes ---------- */

.tint { --hl: rgba(11, 11, 15, 0.12); }
.bg-alt { background-color: #F3F2EE; }

.dark { --hl: #26262B; --mut: #A1A1AA; --dotc: rgba(255, 255, 255, 0.06); background-color: #0F0F12; color: #F2F2F3; }
.dark .mono { color: #8B8B95; }
.ink-light { color: #F2F2F3; }

.c1 { color: var(--c1); }
.c3 { color: var(--c3); }
.c4 { color: var(--c4); }
.c5 { color: var(--c5); }

.thread-1 { --thread: var(--c1); }
.thread-2 { --thread: var(--c2); }
.thread-3 { --thread: var(--c3); }
.thread-4 { --thread: var(--c4); }
.thread-5 { --thread: var(--c5); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(252, 252, 251, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hl);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 32px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo span { font-size: 21px; line-height: 1; }
.primary-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 28px; }
.primary-nav .btn { margin-left: 4px; }

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

.hero { padding-top: clamp(48px, 6vw, 88px); overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 48px clamp(40px, 5vw, 80px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(46px, 6.4vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.05em;
}
.tag { display: inline-flex; align-items: center; gap: 10px; }
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c3);
  box-shadow: 0 0 0 0 rgba(15, 165, 143, 0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(15, 165, 143, 0); }
  100% { box-shadow: 0 0 0 0 rgba(15, 165, 143, 0); }
}

/* Terminal card */
.term {
  background: #111114;
  color: #E7E8F2;
  border-radius: 14px;
  border: 1px solid #26262B;
  box-shadow: 0 30px 60px -30px rgba(14, 16, 48, 0.55);
  overflow: hidden;
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid #26262B;
}
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2A2A30; }
.term-bar i:nth-child(1) { background: var(--c1); }
.term-bar i:nth-child(2) { background: var(--c2); }
.term-bar i:nth-child(3) { background: var(--c3); }
.term-bar .mono { margin-left: auto; color: #7E7E88; font-size: 11px; }
.term-body {
  margin: 0;
  padding: 20px 22px 24px;
  font-family: var(--mono);
  font-size: clamp(12px, 1vw, 14px);
  line-height: 1.75;
  white-space: pre;
  overflow-x: auto;
}
.term-body .dim { color: #7E7E88; }
.term-body .ok { color: #34D1B8; }
.term-body .k1 { color: #FF7A5F; }
.term-body .k2 { color: #FFC53D; }
.term-body .k3 { color: #34D1B8; }
.term-body .k4 { color: #9DB0FF; }
.term-body .k5 { color: #C3A6FF; }
.term-body .cursor { color: #E7E8F2; }

/* Animated threads */
.hero-threads { margin-top: clamp(40px, 5vw, 72px); }
.hero-threads svg { display: block; width: 100%; height: clamp(70px, 9vw, 120px); }
.hero-threads path {
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 6 10;
  animation: flow 1.6s linear infinite;
}
.hero-threads path:nth-child(2) { animation-duration: 1.9s; }
.hero-threads path:nth-child(3) { animation-duration: 1.3s; stroke-dasharray: none; }
.hero-threads path:nth-child(4) { animation-duration: 2.1s; }
.hero-threads path:nth-child(5) { animation-duration: 1.7s; }
@keyframes flow { to { stroke-dashoffset: -32; } }

/* ---------- Tickers ---------- */

.ticker {
  overflow: hidden;
  border-top: 1px solid var(--hl);
  border-bottom: 1px solid var(--hl);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.hero .ticker { margin-top: clamp(32px, 4vw, 56px); background: var(--paper); }
.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.ticker-track > * {
  flex: none;
  padding: 14px 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mut);
}
.ticker-track > *::before { content: "◆"; margin-right: 28px; color: var(--a); font-size: 9px; vertical-align: 2px; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.big-ticker { border: none; }
.big-ticker .ticker-track { animation-duration: 55s; }
.big-ticker .ticker-track > * {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.15;
  letter-spacing: -0.04em;
  text-transform: none;
  color: var(--ink);
  padding: 10px 32px;
}
.big-ticker .ticker-track > *::before { font-size: 12px; vertical-align: 10px; margin-right: 32px; color: var(--c4); }
.big-ticker .ticker-track > :nth-child(odd) { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em; font-size: clamp(36px, 4.4vw, 62px); }

#industries .sec-head { margin-bottom: 16px; align-items: baseline; }

/* ---------- Capabilities rail ---------- */

.rail-ctrl { display: flex; align-items: center; gap: 10px; }
.rail-count { margin-right: 6px; }

.rail {
  --gutter: max(clamp(20px, 5vw, 64px), calc((100vw - 1280px) / 2 + 64px));
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(290px, 30vw, 400px);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--gutter);
  padding: 4px var(--gutter) 8px;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }

.card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--hl);
  border-top: 3px solid var(--thread);
  border-radius: 12px;
  background: var(--paper) radial-gradient(var(--dotc) 1px, transparent 1.2px) 0 0 / 18px 18px;
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(11, 11, 15, 0.35); }
.card .dot { color: var(--thread); }
.card h3 { font-size: 26px; line-height: 1.1; }
.card-head { font-weight: 500; font-size: 17px; line-height: 1.35; letter-spacing: -0.015em; }
.card .muted { font-size: 15px; }
.card .chips { margin-top: 4px; }
.card-quote { font-size: 21px; line-height: 1.15; margin-top: auto; padding-top: 8px; }
.card .tlink { align-self: flex-start; }

.rail-progress { height: 2px; background: var(--hl); margin-top: 24px; position: relative; overflow: hidden; }
.rail-progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 20%;
  background: linear-gradient(90deg, var(--c1), var(--c2), var(--c3), var(--c4), var(--c5));
  transition: width .2s;
}

/* ---------- Why ---------- */

.versus { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 32px; }

/* ---------- Approach timeline ---------- */

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 24px;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--c1), var(--c2), var(--c3), var(--c4));
  transform-origin: left center;
  transition: transform 1.4s cubic-bezier(.22, 1, .36, 1);
}
.timeline.draw-ready::before { transform: scaleX(0); }
.timeline.draw-ready.drawn::before { transform: scaleX(1); }
.timeline li { display: flex; flex-direction: column; gap: 10px; position: relative; }
.timeline .node {
  --n: var(--c1);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--paper);
  border: 2px solid var(--n);
  color: var(--n);
  margin-bottom: 10px;
  position: relative;
  transition: background .25s, color .25s, transform .25s;
}
.timeline li:nth-child(2) .node { --n: var(--c2); color: #B07A00; }
.timeline li:nth-child(3) .node { --n: var(--c3); }
.timeline li:nth-child(4) .node { --n: var(--c4); }
.timeline li:hover .node { background: var(--n); color: var(--paper); transform: translateY(-3px); }
.ico { display: block; flex: none; }
.timeline .ico { width: 22px; height: 22px; }
.timeline h3 { font-size: 24px; line-height: 1.1; }

/* ---------- AI section ---------- */

.ai-gold { color: #FFC53D; }
.ai-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border: 1px solid #26262B;
  border-top: 3px solid var(--edge);
  border-radius: 12px;
  background: #141417;
}
.ai-card .mono { color: var(--edge); }
.ai-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ai-ico {
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 10px;
  color: var(--edge);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #26262B;
  transition: transform .3s;
}
.ai-card:hover .ai-ico { transform: rotate(-8deg) scale(1.08); }
.ai-card h3 { font-size: 22px; line-height: 1.15; }
.ai-card p:last-child { color: var(--mut); font-size: 15px; }

/* ---------- Case study steps ---------- */

.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 18px;
  border-top: 3px solid var(--c1);
}
.step:nth-child(2) { border-top-color: var(--c2); }
.step:nth-child(3) { border-top-color: var(--c3); }
.step:nth-child(4) { border-top-color: var(--c4); }
.step p.serif { font-size: 26px; line-height: 1.1; }

/* ---------- Contact ---------- */

.contact { --dotc: rgba(255, 255, 255, 0.12); background-color: var(--a); color: var(--paper); }
.contact-grid {
  padding-top: clamp(64px, 7vw, 112px);
  padding-bottom: clamp(64px, 7vw, 112px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 32px clamp(40px, 6vw, 96px);
  align-items: end;
}
.contact h2 {
  font-size: clamp(44px, 6vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.05em;
}
.contact h2 em { color: #FFD166; }
.contact .lead { color: #EEF0FF; }

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

.site-footer {
  --hl: #26262B;
  --mut: #9C9CA6;
  background-color: #0B0B0D;
  color: #F2F2F3;
}
.site-footer .wrap {
  padding-top: 32px;
  padding-bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  align-items: center;
  justify-content: space-between;
}
.site-footer .wordmark { margin: 0; font-size: 20px; line-height: 1; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.footer-links .nl { color: #D4D4D8; font-size: 14px; }
.footer-links .nl:hover { color: #FFFFFF; }
.footer-copy { margin: 0; color: var(--mut); font-size: 14px; }

/* ---------- Card illustrations ---------- */

.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.ill {
  width: 56px;
  height: 56px;
  flex: none;
  stroke: var(--thread);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* CX: a customer moving along their journey */
.ill-cx .track { stroke-dasharray: 3 5; opacity: .5; }
.ill-cx circle { fill: var(--paper); }
.ill-cx .runner {
  fill: var(--thread);
  stroke: none;
  offset-path: path("M8 50C8 30 24 34 32 26S40 10 56 12");
  animation: journey 3.2s ease-in-out infinite;
}
@keyframes journey {
  0% { offset-distance: 0%; }
  70%, 100% { offset-distance: 100%; }
}

/* DP: interface blocks assembling */
.ill-dp .frame { opacity: .45; }
.ill-dp .blk { fill: var(--thread); stroke: none; transform-box: fill-box; transform-origin: left center; animation: build 3.2s ease-out infinite; }
.ill-dp .b2 { animation-delay: .25s; opacity: .7; }
.ill-dp .b3 { animation-delay: .5s; opacity: .45; }
@keyframes build {
  0% { transform: scaleX(0); }
  30%, 85% { transform: scaleX(1); }
  100% { transform: scaleX(0); }
}

/* TX: a connected system with data flowing to the core */
.ill-tx .link { stroke-dasharray: 3 4; animation: flow 1.2s linear infinite; opacity: .6; }
.ill-tx .node { fill: var(--paper); }
.ill-tx .core { fill: var(--thread); stroke: none; transform-box: fill-box; transform-origin: center; animation: core 2s ease-in-out infinite; }
@keyframes core { 50% { transform: scale(1.3); } }

/* DC: checkout completed */
.ill-dc .bag { opacity: .55; }
.ill-dc .tick { stroke-width: 3; stroke-dasharray: 30; animation: tick 2.8s ease-out infinite; }
@keyframes tick {
  0%, 15% { stroke-dashoffset: 30; }
  45%, 85% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 30; }
}

/* GR: growth chart drawing upward */
.ill-gr .axis { opacity: .4; }
.ill-gr .line { stroke-width: 2.5; stroke-dasharray: 70; animation: chart 3.2s ease-out infinite; }
.ill-gr .tip { fill: var(--thread); stroke: none; transform-box: fill-box; transform-origin: center; animation: tip 3.2s ease-out infinite; }
@keyframes chart {
  0% { stroke-dashoffset: 70; }
  50%, 88% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 70; }
}
@keyframes tip {
  0%, 40% { transform: scale(0); }
  55%, 88% { transform: scale(1); }
  100% { transform: scale(0); }
}

/* ---------- AI search demo ---------- */

.ai-head { margin-bottom: clamp(32px, 4vw, 56px); align-items: center; }

.ai-demo {
  border: 1px solid #26262B;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  padding: 18px;
  box-shadow: 0 30px 80px -40px rgba(132, 80, 240, 0.55);
}
.ai-query {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 999px;
  background: #F4F4F8;
  color: var(--ink);
  font-size: 15px;
  min-height: 52px;
}
.ai-query svg { flex: none; color: #565662; }
.ai-caret { width: 2px; height: 18px; background: var(--a); animation: blink 1s steps(1) infinite; margin-left: -8px; }

.ai-answer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 6px 4px;
  transition: opacity .4s;
}
.ai-answer.is-hidden { opacity: 0; }
.ai-label { display: inline-flex; align-items: center; gap: 8px; }
.ai-label svg { color: #FFC53D; }
.ai-text { font-size: 17px; line-height: 1.5; color: #F4F4F8; min-height: 3em; }
.ai-text .w { opacity: 0; animation: word .35s forwards; }
@keyframes word { to { opacity: 1; } }
.ai-sources { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-src {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  border: 1px solid #26262B;
  border-radius: 999px;
  color: #A1A1AA;
}
.ai-src i { width: 6px; height: 6px; border-radius: 50%; }

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

/* ---------- Scroll progress (driven by Motion) ---------- */

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--c1), var(--c2), var(--c3), var(--c4), var(--c5));
  transform: scaleX(0);
  transform-origin: left center;
}

/* ---------- Arrow nudge ---------- */

.arr { display: inline-flex; transition: transform .2s; }
.arr svg { display: block; }
.btn:hover .arr, .tlink:hover .arr { transform: translateX(4px); }

/* ---------- Loom diagram (philosophy) ---------- */

.loom { margin: 12px 0 0; max-width: 440px; }
.loom svg { display: block; width: 100%; height: auto; }
.loom figcaption { margin-top: 10px; }
.loom-threads path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.loom .loom-pulse { offset-path: path("M18 105H412"); animation: loom-pulse 2.6s ease-in-out infinite; }
@keyframes loom-pulse {
  0% { offset-distance: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}
.loom.draw-ready .loom-threads path { stroke-dashoffset: 1; }
.loom.draw-ready .loom-dots circle, .loom.draw-ready .loom-end { transform: scale(0); }
.loom .loom-dots circle, .loom .loom-end { transform-box: fill-box; transform-origin: center; transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.loom.drawn .loom-threads path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s cubic-bezier(.22, 1, .36, 1); }
.loom.drawn .loom-threads path:nth-child(2) { transition-delay: .08s; }
.loom.drawn .loom-threads path:nth-child(3) { transition-delay: .16s; }
.loom.drawn .loom-threads path:nth-child(4) { transition-delay: .24s; }
.loom.drawn .loom-threads path:nth-child(5) { transition-delay: .32s; }
.loom.drawn .loom-threads .loom-out { transition-delay: 1.1s; transition-duration: .6s; }
.loom.drawn .loom-dots circle { transform: scale(1); }
.loom.drawn .loom-end { transform: scale(1); transition-delay: 1.5s; }

/* ---------- Skip link ---------- */

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: 14px;
}
.skip:focus { top: 12px; }

/* ---------- Hero proof points ---------- */

.proof { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.proof li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--mut);
}
.proof li::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--t3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%230FA58F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7.2l2 2 4-4.4'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- Why: tangled vs woven ---------- */

.vs-col { display: flex; flex-direction: column; gap: 14px; }
.weave {
  width: 100%;
  height: 72px;
  stroke-width: 2;
  stroke-linecap: round;
  margin-bottom: 4px;
}
.weave.tangled { opacity: .55; }
.weave.woven path { stroke-dasharray: 6 8; animation: flow 1.4s linear infinite; }

/* ---------- Work ---------- */

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 24px;
}
.proj { display: flex; flex-direction: column; gap: 12px; }
.proj-art {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 3;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--hl);
  margin-bottom: 6px;
  transition: transform .3s;
}
.proj:hover .proj-art { transform: translateY(-4px); }
.proj h3 { font-size: 22px; line-height: 1.2; }
.proj-result { font-size: 15px; padding-top: 10px; border-top: 2px solid var(--thread); }
.proj-result .ph { font-weight: 600; font-size: 20px; color: var(--ink); }
/* Placeholder text that still needs real content */
.ph { text-decoration: underline dashed rgba(11, 11, 15, 0.35); text-underline-offset: 4px; }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--hl); }
.faq details { border-bottom: 1px solid var(--hl); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 16px 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(11, 11, 15, 0.2);
  font-family: var(--mono);
  font-size: 16px;
  transition: transform .25s, background .2s, color .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--ink); color: var(--paper); }
.faq summary:focus-visible { outline: 2px solid var(--a); outline-offset: 3px; }
.faq details p { padding: 0 48px 20px 0; color: var(--mut); }

/* ---------- Contact: next steps ---------- */

.next { display: flex; flex-direction: column; border-top: 1px solid rgba(255, 255, 255, 0.25); }
.next li {
  display: flex;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}
.next .mono { color: #FFD166; padding-top: 3px; }
.next p:not(.strong) { color: #DDE2FF; font-size: 15px; }
.contact .strong { font-weight: 600; }
.contact-grid { align-items: center; }

/* ---------- Mobile menu ---------- */

.menu-btn {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--hl);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.menu-btn path { transition: transform .25s; transform-origin: center; }
.site-header.open .m-top { transform: translateY(4px) rotate(45deg); }
.site-header.open .m-bot { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .timeline::before { display: none; }
}
@media (max-width: 760px) {
  .menu-btn { display: grid; }
  .primary-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0 16px;
  }
  .site-header.open .primary-nav { display: flex; }
  .primary-nav .nl { padding: 12px 0; border-bottom: 1px solid var(--hl); font-size: 17px; color: var(--ink); }
  .primary-nav .btn { margin: 12px 0 0; }
}
@media (max-width: 520px) {
  .timeline { grid-template-columns: 1fr; }
}

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