:root {
  --bg: #0a0b0f;
  --bg-soft: #12141b;
  --card: #15171f;
  --border: #23262f;
  --text: #f2f3f5;
  --text-dim: #9aa0ac;
  --text-faint: #5c6270;
  --accent: #7c8cff;
  --accent-soft: rgba(124, 140, 255, 0.12);
  --accent-2: #6ee7c0;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 0%, transparent 75%);
}

.bg-grid::after {
  content: "";
  position: absolute;
  top: -10%;
  left: 50%;
  width: 60vw;
  height: 60vw;
  max-width: 700px;
  max-height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  filter: blur(10px);
}

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  padding: 26px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.mark {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  /* the header is just two nav links now, so claw back most of the
     wrap's 56px gap before the hero */
  margin-bottom: -30px;
}

.mark-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.mark-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s ease;
}

.mark-nav a:hover { color: var(--text); }

.hero {
  display: grid;
  grid-template-columns: 1fr;
  /* start, not center: the art column is taller than the text, and centering
     pushed the "LOOMTECH VENTURES LLC" eyebrow down the page */
  align-items: start;
  gap: 32px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-art {
  display: flex;
  justify-content: center;
  align-items: center;
  order: -1;
}

.hero-art svg {
  width: 100%;
  max-width: 380px;
  height: auto;
}

.art-ring {
  stroke: var(--border);
  stroke-width: 1;
  fill: none;
}

.art-weave path {
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  animation: draw-thread 1.8s ease forwards;
}

.art-weave path:nth-child(1) { animation-delay: 0s; }
.art-weave path:nth-child(2) { animation-delay: 0.1s; }
.art-weave path:nth-child(3) { animation-delay: 0.2s; }
.art-weave path:nth-child(4) { animation-delay: 0.3s; }
.art-weave path:nth-child(5) { animation-delay: 0.4s; }
.art-weave path:nth-child(6) { animation-delay: 0.5s; }

.art-nodes circle {
  opacity: 0;
  animation: fade-in 0.6s ease forwards;
  animation-delay: 1.4s;
  transform-origin: center;
}

@keyframes draw-thread {
  to { stroke-dashoffset: 0; }
}

@keyframes fade-in {
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .art-weave path { animation: none; stroke-dashoffset: 0; }
  .art-nodes circle { animation: none; opacity: 1; }
}

@media (min-width: 720px) {
  .hero {
    /* even split so the art column is wide enough to actually reach its
       380px max-width; at 1.1/0.9 it capped out around 365px */
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .hero-art { order: 0; }
}

.eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.lede {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-dim);
  max-width: 56ch;
}

.lede strong {
  color: var(--text);
  font-weight: 600;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: 8px;
  padding: 12px 20px;
  background: var(--text);
  color: #0a0b0f;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(124, 140, 255, 0.25);
  opacity: 0.92;
}

.cta svg {
  transition: transform 0.15s ease;
}

.cta:hover svg {
  transform: translate(2px, -2px);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-faint);
}

.foot a {
  color: var(--text-faint);
  text-decoration: none;
}

.foot a:hover {
  color: var(--text-dim);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fafafa;
    --bg-soft: #f1f2f6;
    --card: #ffffff;
    --border: #e7e8ec;
    --text: #14161c;
    --text-dim: #565c6b;
    --text-faint: #8a90a0;
    --accent: #5461e8;
    --accent-soft: rgba(84, 97, 232, 0.10);
    --accent-2: #16a37c;
  }
  .bg-grid {
    background-image:
      linear-gradient(to right, rgba(0,0,0,0.045) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(0,0,0,0.045) 1px, transparent 1px);
  }
  .cta { color: #ffffff; }
}

@media (max-width: 480px) {
  .wrap { gap: 40px; padding-top: 18px; }
  .mark { margin-bottom: -22px; }
}

/* ============================================================
   Sections added for the expanded one-pager.
   Declared after the light-mode block on purpose: every colour
   below resolves through a token, so both themes follow along.
   ============================================================ */

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.block {
  display: flex;
  flex-direction: column;
  gap: 24px;
  scroll-margin-top: 32px;
}

.block-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.block h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 27px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
}

.block-sub {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-dim);
  max-width: 60ch;
}

/* --- hero buttons --- */

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.cta { margin-top: 0; }

.cta-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.cta-ghost:hover {
  border-color: var(--accent);
  box-shadow: none;
}

/* --- product --- */

.product {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.product:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.product-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  /* extra breathing room under the wordmark, on top of the card's 14px gap */
  margin-bottom: 12px;
}

.product-id {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}

/* The wordmark is dark blue/teal artwork on a transparent background, so it
   needs a light plate to stay legible on the dark card. Light mode drops the
   plate (override at the end of this file) since the card is already white. */
.product-wordmark {
  margin: 0;
  line-height: 0;
  background: #ffffff;
  padding: 14px 20px;
  border-radius: 12px;
}

.product-wordmark img {
  display: block;
  width: auto;
  height: 100px;
  max-width: 100%;
  /* the wordmark is 4.2:1, so at 100px tall it is ~421px wide; if max-width
     ever clamps that on a narrow card, object-fit keeps it from squashing */
  object-fit: contain;
}


.product-arrow {
  flex: none;
  color: var(--text-faint);
  transition: color 0.18s ease, transform 0.18s ease;
}

.product:hover .product-arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

.product-tagline {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--text);
}

.product-copy {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dim);
}

.product-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.product-points li {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-soft);
  font-size: 12.5px;
  font-weight: 550;
  letter-spacing: 0.005em;
  color: var(--text);
}

.product-foot {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-faint);
}

.product-link {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

/* --- contact --- */

.panel-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background:
    linear-gradient(135deg, var(--accent-soft), transparent 60%),
    var(--card);
}

.contact-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 58ch;
}

.contact-text h2 { font-size: clamp(20px, 2.6vw, 24px); }

.contact-text p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dim);
}

.contact-card .cta { flex: none; }

/* --- footer --- */

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

/* --- small screens (kept last so it overrides the section rules above) --- */

@media (max-width: 480px) {
  .contact-card,
  .product { padding: 22px; }

  .mark { gap: 12px; }
  .mark-nav { gap: 16px; }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .cta {
    justify-content: center;
    align-self: stretch;
  }

  .contact-card .cta {
    justify-content: center;
    align-self: stretch;
    width: 100%;
  }

  .product-tagline { font-size: 16px; }
}

/* --- wordmark in light mode: card is already white, so drop the plate --- */

@media (prefers-color-scheme: light) {
  .product-wordmark {
    background: transparent;
    padding: 0;
    border-radius: 0;
  }
}

@media (max-width: 480px) {
  /* a 375px phone leaves ~283px inside the card, and 283 / 4.2 ≈ 67px */
  .product-wordmark img { height: 64px; }
}
