/* ============================================================
   LYQWID — Fluid thinking. Solid software.
   ============================================================ */

:root {
  --ink: #05080f;
  --ink-2: #0a101c;
  --ink-3: #0e1626;
  --fog: #eaf2f7;
  --mist: rgba(234, 242, 247, 0.56);
  --faint: rgba(234, 242, 247, 0.30);
  --hair: rgba(234, 242, 247, 0.08);
  --hair-2: rgba(234, 242, 247, 0.14);
  --aqua: #47e8d3;
  --blue: #4f8dff;
  --vio: #a06bff;
  --grad: linear-gradient(100deg, var(--aqua) 0%, var(--blue) 55%, var(--vio) 100%);
  --font-display: "Bricolage Grotesque", sans-serif;
  --font-serif: "Instrument Serif", serif;
  --pad: clamp(1.25rem, 5vw, 5rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--ink-3) var(--ink);
}

body {
  background: var(--ink);
  color: var(--fog);
  font-family: var(--font-display);
  font-weight: 300;
  font-optical-sizing: auto;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(79, 141, 255, 0.35); color: var(--fog); }

em.liquid-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  background: var(--grad);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: liquid-shift 7s ease-in-out infinite alternate;
}

@keyframes liquid-shift {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}

/* ---------- Atmosphere layers ---------- */

#fluid {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -3;
  background:
    radial-gradient(120% 90% at 70% 10%, #0c1a33 0%, transparent 55%),
    radial-gradient(100% 80% at 20% 85%, #071624 0%, transparent 55%),
    var(--ink);
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 40;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-jitter 0.9s steps(4) infinite;
}

@keyframes grain-jitter {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 3%); }
  50% { transform: translate(3%, -2%); }
  75% { transform: translate(-3%, -3%); }
  100% { transform: translate(2%, 2%); }
}

.glow {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(circle, rgba(79, 141, 255, 0.12) 0%, rgba(71, 232, 211, 0.05) 40%, transparent 70%);
  transform: translate(-50%, -50%);
  left: 50vw;
  top: 40vh;
  transition: opacity 0.6s;
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.12s; }
.reveal.d2 { transition-delay: 0.24s; }
.reveal.d3 { transition-delay: 0.36s; }
.reveal.d4 { transition-delay: 0.48s; }
.reveal.d5 { transition-delay: 0.72s; }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem var(--pad);
  transition: background 0.4s, border-color 0.4s, padding 0.4s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(5, 8, 15, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--hair);
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--fog);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.drop { width: 22px; height: 22px; }
.drop.small { width: 17px; height: 17px; }

.wordmark span { transform: translateY(-1px); }

.nav-links {
  display: flex;
  gap: 2.2rem;
  margin-left: auto;
}

.nav-links a {
  color: var(--mist);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 400;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--fog); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--fog);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--hair-2);
  border-radius: 99px;
  transition: border-color 0.3s, background 0.3s;
}
.nav-cta:hover { border-color: rgba(71, 232, 211, 0.5); background: rgba(71, 232, 211, 0.06); }

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 0 0 rgba(71, 232, 211, 0.6);
  animation: pulse 2.2s infinite;
  flex: none;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(71, 232, 211, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(71, 232, 211, 0); }
  100% { box-shadow: 0 0 0 0 rgba(71, 232, 211, 0); }
}

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

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7rem var(--pad) 4rem;
  position: relative;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 2.2rem;
}

.tick {
  width: 34px;
  height: 1px;
  background: var(--grad);
  display: inline-block;
}

.hero-title {
  font-size: clamp(3.4rem, 9.5vw, 8.2rem);
  font-weight: 550;
  line-height: 0.98;
  letter-spacing: -0.035em;
  max-width: 12ch;
}

.hero-title .line { display: block; }
.hero-title em.liquid-text { letter-spacing: -0.01em; padding-right: 0.08em; }

.hero-sub {
  margin-top: 2.4rem;
  max-width: 34rem;
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  color: var(--mist);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.95rem 1.8rem;
  border-radius: 99px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s, background 0.3s, border-color 0.3s;
  will-change: transform;
}

.btn-fill {
  color: #04121a;
  background: var(--grad);
  background-size: 160% 100%;
  box-shadow: 0 8px 32px rgba(71, 232, 211, 0.22);
}
.btn-fill:hover {
  background-position: 100% 0;
  box-shadow: 0 10px 44px rgba(79, 141, 255, 0.36);
}

.btn-ghost {
  color: var(--fog);
  border: 1px solid var(--hair-2);
}
.btn-ghost:hover { border-color: rgba(234, 242, 247, 0.4); }

.btn .arrow { transition: transform 0.3s; display: inline-block; }
.btn-ghost:hover .arrow { transform: translateY(3px); }

.hero-foot {
  position: absolute;
  bottom: 2.2rem;
  left: var(--pad);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.scroll-hint {
  width: 22px;
  height: 34px;
  border: 1px solid var(--hair-2);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-dot {
  width: 3px;
  height: 7px;
  border-radius: 3px;
  background: var(--aqua);
  animation: scroll-dot 1.8s ease-in-out infinite;
}

@keyframes scroll-dot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: 0.2; }
}

.foot-label {
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------- Marquee ---------- */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  background: rgba(5, 8, 15, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 2.6rem;
  width: max-content;
  padding: 1.1rem 0;
  animation: marquee 34s linear infinite;
}

.marquee-track span {
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
  white-space: nowrap;
}

.marquee-track i { color: var(--aqua); font-style: normal; opacity: 0.7; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Sections shared ---------- */

section { position: relative; }

.studio, .approach, .ventures {
  padding: clamp(5rem, 11vw, 9rem) var(--pad);
  background: rgba(5, 8, 15, 0.88);
}

.section-head {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: clamp(2.4rem, 5vw, 4rem);
}

.section-head .num {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--aqua);
}

.section-head .rule {
  flex: 0 1 90px;
  height: 1px;
  background: var(--hair-2);
}

.section-head .label {
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mist);
}

.section-title {
  font-size: clamp(2.2rem, 5.5vw, 4.4rem);
  font-weight: 550;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: clamp(2rem, 4vw, 3.4rem);
}

/* ---------- Studio ---------- */

.manifesto {
  font-size: clamp(1.6rem, 3.6vw, 3rem);
  font-weight: 350;
  line-height: 1.34;
  letter-spacing: -0.015em;
  max-width: 22ch;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
  border-radius: 18px;
  overflow: hidden;
  margin-top: clamp(3rem, 6vw, 5rem);
}

.stat {
  background: rgba(10, 16, 28, 0.85);
  padding: clamp(1.4rem, 2.5vw, 2.2rem);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: background 0.3s;
}
.stat:hover { background: rgba(14, 22, 38, 0.95); }

.stat-value {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 550;
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.stat-sup { font-size: 0.45em; vertical-align: super; }

.stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
}

/* ---------- Approach cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.card {
  position: relative;
  border: 1px solid var(--hair);
  border-radius: 20px;
  padding: 2.2rem 1.9rem 2.6rem;
  background: linear-gradient(165deg, rgba(14, 22, 38, 0.6), rgba(8, 12, 22, 0.9));
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(71, 232, 211, 0.55), rgba(79, 141, 255, 0.3) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.45s;
  pointer-events: none;
}

.card:hover { transform: translateY(-6px); }
.card:hover::before { opacity: 1; }

.card-num {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--aqua);
}

.card h3 {
  font-size: 1.5rem;
  font-weight: 550;
  letter-spacing: -0.015em;
  margin: 1.1rem 0 0.8rem;
}

.card p {
  color: var(--mist);
  font-size: 0.97rem;
}

.card-glyph {
  position: absolute;
  right: 1.3rem;
  bottom: 0.6rem;
  font-size: 3.2rem;
  line-height: 1;
  color: rgba(79, 141, 255, 0.18);
  transition: color 0.4s, transform 0.4s;
}
.card:hover .card-glyph { color: rgba(71, 232, 211, 0.4); transform: translateY(-4px); }

/* ---------- Ventures ---------- */

.ventures-sub {
  color: var(--mist);
  max-width: 32rem;
  margin-top: -1.4rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.venture-rows {
  border-top: 1px solid var(--hair);
}

.venture {
  display: grid;
  grid-template-columns: 6rem 1fr auto auto;
  align-items: center;
  gap: 1.6rem;
  padding: 1.6rem 0.4rem;
  border-bottom: 1px solid var(--hair);
  transition: background 0.3s, padding 0.3s;
}
.venture:hover { background: rgba(14, 22, 38, 0.45); padding-left: 1rem; }

.v-index {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--aqua);
}

.redacted {
  display: inline-block;
  height: 1.15em;
  width: calc(var(--w, 9) * 0.72em);
  border-radius: 6px;
  vertical-align: middle;
  background: linear-gradient(100deg, rgba(234, 242, 247, 0.10) 30%, rgba(234, 242, 247, 0.22) 50%, rgba(234, 242, 247, 0.10) 70%);
  background-size: 250% 100%;
  animation: shimmer 2.6s linear infinite;
}
.redacted[data-w="7"] { --w: 7; }
.redacted[data-w="9"] { --w: 9; }
.redacted[data-w="11"] { --w: 11; }

@keyframes shimmer {
  from { background-position: 125% 0; }
  to { background-position: -125% 0; }
}

.v-tag {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}

.v-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--mist);
  white-space: nowrap;
}
.v-status.dim { color: var(--faint); }

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

.contact {
  padding: clamp(6rem, 14vw, 11rem) var(--pad);
  text-align: center;
  background: linear-gradient(180deg, rgba(5, 8, 15, 0.88), rgba(5, 8, 15, 0.55) 60%, rgba(5, 8, 15, 0.2));
}

.contact-kicker {
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 1.6rem;
}

.contact-title {
  font-size: clamp(2.8rem, 8vw, 6.4rem);
  font-weight: 550;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-bottom: 2.6rem;
}

.contact-mail {
  position: relative;
  display: inline-block;
  color: var(--fog);
  text-decoration: none;
  font-size: clamp(1.2rem, 2.6vw, 1.8rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  padding-bottom: 0.35rem;
}

.mail-underline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.contact-mail:hover .mail-underline { transform: scaleX(0.4); }

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

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  flex-wrap: wrap;
  padding: 1.8rem var(--pad);
  border-top: 1px solid var(--hair);
  background: rgba(5, 8, 15, 0.85);
  font-size: 0.85rem;
  color: var(--mist);
}

.foot-left {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  color: var(--fog);
  letter-spacing: -0.01em;
}

.foot-mid {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--faint);
}

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

@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .venture { grid-template-columns: 4.4rem 1fr auto; }
  .venture .v-tag { display: none; }
}

@media (max-width: 540px) {
  .hero-foot { display: none; }
  .venture { grid-template-columns: 3.6rem 1fr auto; gap: 0.9rem; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .marquee-track, .scroll-dot, .pulse, .redacted, em.liquid-text { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
}
