/* Spider Web AI — landing */
:root {
  --bg: #0a0a0b;
  --bg-2: #111114;
  --bg-3: #16161a;
  --fg: #eceae4;
  --fg-dim: #a4a29b;
  --fg-muted: #6b6a64;
  --line: rgba(236, 234, 228, 0.08);
  --line-strong: rgba(236, 234, 228, 0.18);
  --accent: oklch(0.72 0.19 38);
  --accent-2: oklch(0.65 0.21 25);
  --accent-glow: oklch(0.72 0.19 38 / 0.4);
  --serif: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --maxw: 1320px;
  --pad: clamp(20px, 4vw, 64px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body {
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(168, 232, 98, 0.05), transparent 60%),
    radial-gradient(900px 600px at -10% 40%, rgba(150, 120, 255, 0.04), transparent 60%),
    var(--bg);
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-dim); }
.serif { font-family: var(--serif); font-weight: 400; font-style: normal; letter-spacing: -0.01em; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ============== NAV ============== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 10, 11, 0.55);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}
.brand-mark {
  width: 26px; height: 26px;
  position: relative;
}
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 13px;
  color: var(--fg-dim);
}
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--fg); }
.nav-cta {
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #0a0a0b;
  font-size: 13px;
  font-weight: 500;
  border: none;
  transition: transform .2s, box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px var(--accent-glow); }
@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ============== HERO ============== */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 120px;
  padding-bottom: 80px;
  overflow: hidden;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  width: fit-content;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(52px, 9vw, 128px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 24px 0 0;
  font-weight: 400;
  text-wrap: balance;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero-sub {
  max-width: 560px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--fg-dim);
  margin: 28px 0 0;
  text-wrap: pretty;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all .25s ease;
}
.btn-primary {
  background: var(--accent);
  color: #0a0a0b;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--accent-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--fg);
  background: rgba(255, 255, 255, 0.03);
}
.btn svg { width: 14px; height: 14px; }

.hero-meta {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  z-index: 2;
}
.hero-meta-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-meta-label { color: var(--fg-muted); }
.hero-meta-value { color: var(--fg); font-size: 13px; }
@media (max-width: 720px) {
  .hero-meta { position: static; margin-top: 48px; flex-direction: column; align-items: flex-start; }
}

/* ============== SECTION SHELL ============== */
.section {
  position: relative;
  padding: 120px 0;
  border-top: 1px solid var(--line);
}
.section-head {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  margin-bottom: 64px;
  align-items: start;
}
.section-index {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dim);
  padding-top: 12px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(36px, 5.5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 900px;
  font-weight: 400;
  text-wrap: balance;
}
.section-title em { font-style: italic; color: var(--accent); }
@media (max-width: 720px) {
  .section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 48px; }
  .section { padding: 80px 0; }
}

/* ============== TRUST STRIP ============== */
.trust {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: rgba(255,255,255,0.01);
}
.trust-track {
  display: flex;
  gap: 64px;
  align-items: center;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.trust-item::after {
  content: "";
  display: inline-block;
  width: 4px; height: 4px;
  background: var(--accent);
  border-radius: 50%;
  margin-left: 32px;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============== SERVICES ============== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service {
  background: var(--bg);
  padding: 40px;
  position: relative;
  transition: background .3s;
  overflow: hidden;
}
.service:hover { background: var(--bg-2); }
.service-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.14em;
}
.service-title {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1.1;
  margin: 24px 0 14px;
  letter-spacing: -0.01em;
  font-weight: 400;
}
.service-body {
  color: var(--fg-dim);
  font-size: 15px;
  max-width: 440px;
}
.service-tags {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--fg-dim);
}
.service-web {
  position: absolute;
  top: 40px;
  right: 40px;
  width: 56px; height: 56px;
  opacity: 0.9;
}
@media (max-width: 720px) {
  .services-grid { grid-template-columns: 1fr; }
  .service { padding: 32px 24px; }
  .service-title { font-size: 26px; }
  .service-web { width: 40px; height: 40px; top: 24px; right: 24px; }
}

/* ============== PROCESS ============== */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.process-step {
  padding: 32px 24px 32px 0;
  border-left: 1px solid var(--line);
  padding-left: 28px;
  position: relative;
}
.process-step:first-child { border-left: none; padding-left: 0; }
.process-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 56px;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 20px;
}
.process-title {
  font-family: var(--serif);
  font-size: 22px;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  font-weight: 400;
}
.process-body {
  color: var(--fg-dim);
  font-size: 14px;
  line-height: 1.5;
}
@media (max-width: 880px) {
  .process { grid-template-columns: 1fr 1fr; gap: 32px 0; }
  .process-step:nth-child(3) { border-left: none; padding-left: 0; }
}
@media (max-width: 520px) {
  .process { grid-template-columns: 1fr; }
  .process-step { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 28px; }
  .process-step:first-child { border-top: none; padding-top: 0; }
}

/* ============== WORK / CASE TILES ============== */
.work-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.work-tile {
  grid-column: span 2;
  border: 1px solid var(--line);
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
  transition: transform .4s ease, border-color .3s;
  cursor: pointer;
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  min-height: 260px;
}
/* layout: first row has 2 wide tiles, second row has 3 narrow */
.work-tile:nth-child(1),
.work-tile:nth-child(2) {
  grid-column: span 3;
  min-height: 300px;
}
.work-tile:nth-child(3),
.work-tile:nth-child(4),
.work-tile:nth-child(5) {
  grid-column: span 2;
}
.work-tile:hover { border-color: var(--accent); }
.work-tile-bg {
  position: absolute; inset: 0;
  opacity: 0.55;
  transition: opacity .4s, transform .5s;
}
.work-tile:hover .work-tile-bg { opacity: 0.75; transform: scale(1.02); }
.work-tile-web {
  position: absolute;
  right: -30px; bottom: -30px;
  width: 180px; height: 180px;
  opacity: 0.55;
  pointer-events: none;
  transition: transform .6s ease;
}
.work-tile:hover .work-tile-web { transform: rotate(15deg); }
.work-tile-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: auto;
}
.work-tile-glyph {
  font-family: var(--serif);
  font-style: italic;
  font-size: 32px;
  line-height: 1;
  color: var(--accent);
}
.work-tile-kind {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
  text-align: right;
}
.work-tile-body {
  position: relative;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.work-tile-metric {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.work-tile-metric-value {
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.work-tile-metric-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.work-tile-name {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.work-tile-blurb {
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg-dim);
  margin: 0;
  text-wrap: pretty;
}
.work-tile-arrow {
  position: absolute;
  top: 20px; right: 20px;
  width: 28px; height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: none; /* replaced by inline top */
  place-items: center;
  transition: all .3s;
}
.work-tile:hover .work-tile-arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a0b;
}
.work-note {
  margin-top: 24px;
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 13px;
  color: var(--fg-muted);
}
.work-note .mono {
  padding: 4px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--fg-dim);
}
@media (max-width: 880px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-tile,
  .work-tile:nth-child(1),
  .work-tile:nth-child(2),
  .work-tile:nth-child(3),
  .work-tile:nth-child(4),
  .work-tile:nth-child(5) {
    grid-column: span 1;
    min-height: 240px;
  }
}

/* ============== TESTIMONIALS ============== */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.t-card {
  background: var(--bg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-height: 320px;
}
.t-quote {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.005em;
  text-wrap: pretty;
  flex: 1;
}
.t-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.t-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center;
  font-family: var(--serif);
  color: #0a0a0b;
  font-size: 16px;
}
.t-name { font-size: 14px; }
.t-role { font-size: 12px; color: var(--fg-dim); }
@media (max-width: 880px) {
  .testimonials { grid-template-columns: 1fr; }
}

/* ============== FOUNDER ============== */
.founder {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 64px;
  align-items: start;
}
.founder-portrait {
  aspect-ratio: 4/5;
  border: 1px solid var(--line);
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}
.founder-portrait .ph {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 10px);
}
.founder-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.05);
  transition: filter .4s;
}
.founder-portrait:hover .founder-img { filter: none; }
.founder-portrait .ph-label {
  position: absolute;
  top: 16px; left: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.founder-name {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  font-weight: 400;
}
.founder-name em { font-style: italic; color: var(--accent); }
.founder-body p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg-dim);
  margin: 0 0 18px;
  max-width: 620px;
  text-wrap: pretty;
}
.founder-body p strong { color: var(--fg); font-weight: 500; }
.founder-sig {
  margin-top: 32px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  color: var(--fg);
}
@media (max-width: 880px) {
  .founder { grid-template-columns: 1fr; gap: 32px; }
  .founder-portrait { max-width: 320px; }
}

/* ============== CTA ============== */
.cta {
  position: relative;
  padding: 140px 0 120px;
  text-align: center;
  overflow: hidden;
}
.cta-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.6;
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 2; }
.cta h2 {
  font-family: var(--serif);
  font-size: clamp(48px, 8vw, 112px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0;
  font-weight: 400;
  text-wrap: balance;
}
.cta h2 em { font-style: italic; color: var(--accent); }
.cta-sub {
  font-size: 18px;
  color: var(--fg-dim);
  margin: 28px auto 40px;
  max-width: 560px;
}
.cta-methods {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 48px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cta-method {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--fg-dim);
}
.cta-method-value {
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--fg);
}
.cta-method-value:hover { color: var(--accent); }

/* ============== FOOTER ============== */
.footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* ============== SPIDERS ============== */
.dangling-spider {
  position: absolute;
  top: 0;
  left: 18%;
  z-index: 3;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: top center;
}
.dangling-spider .strand {
  width: 1px;
  background: linear-gradient(to bottom, rgba(236,234,228,0.05), rgba(236,234,228,0.4));
  height: 0;
  animation: drop-strand 1.3s cubic-bezier(.2,.7,.2,1) forwards;
}
.dangling-spider .spider-body {
  animation: drop-body 1.3s cubic-bezier(.2,.7,.2,1) forwards;
  transform: translateY(-40px);
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.5));
}
.dangling-spider.bob .spider-body {
  animation: bob 4s ease-in-out infinite;
  transform: none;
}
.dangling-spider.bob .strand {
  animation: strand-sway 4s ease-in-out infinite;
  transform-origin: top center;
}
@keyframes drop-strand {
  0% { height: 0; }
  100% { height: 260px; }
}
@keyframes drop-body {
  0% { transform: translateY(-40px); opacity: 0; }
  10% { opacity: 1; }
  75% { transform: translateY(10px); }
  100% { transform: translateY(0); }
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(8px) rotate(2deg); }
}
@keyframes strand-sway {
  0%, 100% { transform: rotate(-0.4deg); }
  50% { transform: rotate(0.4deg); }
}
@media (max-width: 720px) {
  .dangling-spider { left: 8%; }
  .dangling-spider .strand { animation: drop-strand-sm 1.3s cubic-bezier(.2,.7,.2,1) forwards; }
  @keyframes drop-strand-sm { 0% { height: 0; } 100% { height: 180px; } }
}

/* Scuttling spiders */
.scuttle-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  overflow: hidden;
}
.scuttler {
  position: absolute;
  left: -40px;
  animation: scuttle 8s linear forwards;
}
.scuttler.rtl {
  left: auto;
  right: -40px;
  animation: scuttle-rtl 8s linear forwards;
}
@keyframes scuttle {
  0% { transform: translateX(0) rotate(90deg); }
  100% { transform: translateX(calc(100vw + 80px)) rotate(90deg); }
}
@keyframes scuttle-rtl {
  0% { transform: translateX(0) rotate(-90deg); }
  100% { transform: translateX(calc(-100vw - 80px)) rotate(-90deg); }
}
.reveal {
  opacity: 1;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Section number ticker next to headings */
.strand {
  position: absolute;
  top: 0;
  left: var(--pad);
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  opacity: .5;
}
