/* NADZ Labs — lab.css
   Self-hosted fonts only (no third-party requests). */
@font-face { font-family: "Geist"; src: url("fonts/Geist.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/InstrumentSerif-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/InstrumentSerif-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --paper: #F5F4EE;
  --paper-2: #F8F7F2;
  --paper-3: #EFECE4;
  --ink: #141512;
  --ink-2: #6C6A63;
  --ink-3: #9E9B93;
  --line: rgba(20, 21, 18, 0.10);
  --line-2: rgba(20, 21, 18, 0.16);
  --lime: #D8FF5A;
  --lime-2: #E1FF6A;
  --charcoal: #1A1B18;
  --live: #52B755;
  --building: #D89B2B;
  --experiment: #4C7BF4;
  --archived: #C4C1B8;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(20px, 4vw, 56px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--lime); color: var(--ink); }

.shell { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.5; }
.serif-it { font-family: var(--serif); font-style: italic; font-weight: 400; }

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

/* ——— Top bar ——— */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(245, 244, 238, 0.86); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; justify-self: start; }
.brand-name { font-weight: 700; font-size: 16px; letter-spacing: -0.02em; }
.mark { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 5px; background: var(--ink); color: var(--lime); font-family: var(--sans); font-weight: 800; font-size: 15px; letter-spacing: -0.02em; line-height: 1; }
.mark-lime { background: var(--lime); color: var(--ink); }
.topnav { display: flex; gap: 36px; }
.topnav a { font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none; transition: color .2s var(--ease); }
.topnav a:hover { color: var(--ink); }
.status-online { justify-self: end; margin: 0; display: inline-flex; align-items: center; gap: 9px; color: var(--ink); }
.pulse { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px rgba(82, 183, 85, 0.18), 0 0 10px rgba(82, 183, 85, 0.7); }
.pulse::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1px solid rgba(82, 183, 85, 0.5); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2.4); opacity: 0; } }

/* ——— Hero ——— */
.hero { position: relative; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(20, 21, 18, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20, 21, 18, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 40%, #000 55%, transparent 100%);
          mask-image: radial-gradient(120% 90% at 50% 40%, #000 55%, transparent 100%);
}
.hero-inner { position: relative; display: flex; flex-direction: column; min-height: min(calc(100svh - 64px), 900px); padding-top: 28px; padding-bottom: 32px; }
.hero-meta { display: flex; justify-content: space-between; align-items: flex-start; color: var(--ink-2); }
.hero-est { text-align: right; }
.hero-body { margin: auto 0; padding: 56px 0 48px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 28px; font-size: 14px; font-weight: 500; color: var(--ink); padding: 6px 14px 6px 10px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(248, 247, 242, 0.7); }
.ring { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--live); }
.display { margin: 0; font-weight: 700; font-size: clamp(48px, 9.4vw, 148px); line-height: 0.92; letter-spacing: -0.045em; }
.display .line { display: block; }
.display em { font-size: 1.1em; letter-spacing: -0.02em; line-height: 0.8; padding-right: 0.04em; }
.hero-sub { margin: 36px 0 0; padding-left: clamp(0px, 8vw, 132px); max-width: calc(560px + clamp(0px, 8vw, 132px)); text-wrap: pretty; font-size: clamp(17px, 1.45vw, 20px); line-height: 1.5; color: var(--ink-2); letter-spacing: -0.005em; }
.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; }
.explore { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; transition: text-underline-offset .2s var(--ease); }
.explore:hover { text-underline-offset: 9px; }
.explore span { display: inline-block; margin-left: 4px; transition: transform .25s var(--ease); }
.explore:hover span { transform: translateY(3px); }
.scroll-rail { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--ink-2); font-size: 10.5px; }
.rail { width: 1px; height: 72px; background: linear-gradient(var(--ink-2), rgba(20,21,18,0.12)); }

/* ——— Sections ——— */
.section { scroll-margin-top: 64px; }
.products { padding: clamp(72px, 9vw, 128px) 0 clamp(56px, 6vw, 88px); }
.section-head { display: grid; grid-template-columns: 1fr 2.3fr 1fr; gap: 32px; align-items: start; margin-bottom: clamp(40px, 5vw, 64px); }
.section-label { margin: 6px 0 0; color: var(--ink); }
.section-title { margin: 0; font-weight: 700; font-size: clamp(34px, 4.1vw, 60px); line-height: 1.0; letter-spacing: -0.04em; }
.section-title span { display: block; white-space: nowrap; }
.section-title .muted { color: var(--ink-3); }
.section-note { margin: 6px 0 0; max-width: 300px; text-wrap: pretty; justify-self: end; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }

/* Product cards */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); }
.product { display: flex; flex-direction: column; background: var(--paper-2); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease); }
.product:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 24px 48px -28px rgba(20, 21, 18, 0.35); }
.product-bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.status { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }
.dot-live { background: var(--live); box-shadow: 0 0 0 3px rgba(82, 183, 85, 0.16); }
.dot-building { background: var(--building); box-shadow: 0 0 0 3px rgba(216, 155, 43, 0.16); }
.dot-experiment { background: var(--experiment); box-shadow: 0 0 0 3px rgba(76, 123, 244, 0.14); }
.dot-archived { background: var(--archived); box-shadow: 0 0 0 3px rgba(196, 193, 184, 0.25); }

.stage { position: relative; display: block; aspect-ratio: 16 / 11; margin: 10px 10px 0; border-radius: 12px; overflow: hidden; text-decoration: none; isolation: isolate; }

/* Valutina stage */
.stage-lime { background: var(--lime-2); background-image: radial-gradient(120% 90% at 85% 0%, rgba(255,255,255,0.45), transparent 60%); }
.v-mark { position: absolute; top: 18px; left: 18px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; background: var(--ink); color: var(--lime-2); font-weight: 800; font-size: 16px; letter-spacing: -0.02em; z-index: 3; }
.browser { position: absolute; left: 15%; top: 19%; width: 62%; height: 64%; background: #FFFFFF; border: 1.5px solid var(--ink); border-radius: 10px; box-shadow: 10px 10px 0 var(--ink); transform: rotate(-3.5deg); transition: transform .5s var(--ease); display: flex; flex-direction: column; overflow: hidden; }
.browser-chrome { display: flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-bottom: 1.5px solid var(--ink); background: var(--paper); flex: none; }
.browser-chrome i { width: 7px; height: 7px; border-radius: 50%; border: 1.25px solid var(--ink); }
.browser-chrome .url { margin-left: 10px; height: 10px; flex: 1; max-width: 58%; border-radius: 99px; background: rgba(20,21,18,0.09); }
.browser-body { display: flex; flex-direction: column; gap: 9px; padding: 18px 18px; flex: 1; }
.sk { display: block; height: 8px; border-radius: 99px; background: rgba(20, 21, 18, 0.11); }
.sk-title { height: 13px; width: 52%; background: rgba(20, 21, 18, 0.82); margin-bottom: 4px; }
.sk-w90 { width: 90%; } .sk-w75 { width: 75%; } .sk-w60 { width: 60%; } .sk-w30 { width: 30%; } .sk-w40 { width: 40%; }
.sk-row { display: flex; align-items: center; gap: 8px; }
.price { display: inline-block; padding: 3px 8px; border-radius: 6px; background: var(--ink); color: var(--lime-2); font-family: var(--mono); font-weight: 600; font-size: 12px; letter-spacing: 0; line-height: 1.2; box-shadow: 0 0 0 3px rgba(225,255,106,0.9), 0 0 0 4.5px var(--ink); }
.sk-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.sk-blocks span { height: 34px; border-radius: 6px; background: var(--paper-3); }
.popover { position: absolute; right: 9%; bottom: 13%; width: 40%; min-width: 168px; padding: 14px 16px 12px; background: var(--ink); color: #F5F4EE; border-radius: 12px; transform: rotate(2.5deg); box-shadow: 0 18px 30px -14px rgba(20,21,18,0.55); z-index: 2; transition: transform .5s var(--ease); display: flex; flex-direction: column; gap: 3px; }
.pop-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-family: var(--mono); font-size: 12px; color: rgba(245,244,238,0.62); }
.pop-main { color: #FFFFFF; margin-top: 4px; }
.pop-main .pop-code { color: rgba(245,244,238,0.62); }
.pop-main .pop-val { font-family: var(--sans); font-weight: 700; font-size: 22px; letter-spacing: -0.03em; color: var(--lime-2); }
.pop-code { letter-spacing: 0.08em; }
.pop-eq { font-family: var(--mono); font-size: 11px; color: rgba(245,244,238,0.4); }
.pop-by { display: flex; align-items: center; gap: 6px; margin-top: 8px; padding-top: 9px; border-top: 1px solid rgba(245,244,238,0.12); font-size: 11px; color: rgba(245,244,238,0.6); }
.pop-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime-2); }
.product-valutina:hover .browser { transform: rotate(-2deg) translate(-2px, -3px); }
.product-valutina:hover .popover { transform: rotate(1deg) translate(3px, -4px); }

/* Pocket stage */
.stage-dark { background-color: var(--charcoal);
  background-image:
    linear-gradient(to right, rgba(245,244,238,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(245,244,238,0.035) 1px, transparent 1px);
  background-size: 32px 32px; background-position: center; }
.radar { position: absolute; left: 50%; top: 50%; width: 150%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: repeating-radial-gradient(circle at center, transparent 0 46px, rgba(245,244,238,0.07) 46px 47px);
  -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 62%); mask-image: radial-gradient(circle, #000 30%, transparent 62%); }
.radar::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: var(--building); box-shadow: 0 0 0 6px rgba(216,155,43,0.14), 0 0 24px rgba(216,155,43,0.5); transform: translate(150px, -110px); }
.phone { position: absolute; left: 50%; top: 50%; width: 31%; max-width: 206px; aspect-ratio: 9 / 17; transform: translate(-50%, -50%) rotate(6deg); background: var(--paper); border-radius: 30px; border: 5px solid #2A2B27; box-shadow: 0 0 0 1px rgba(245,244,238,0.08), 0 30px 60px -20px rgba(0,0,0,0.7); padding: 30px 16px 16px; display: flex; flex-direction: column; color: var(--ink); transition: transform .5s var(--ease); }
.product-pocket:hover .phone { transform: translate(-50%, calc(-50% - 6px)) rotate(4deg); }
.phone-notch { position: absolute; top: 9px; left: 50%; width: 30%; height: 9px; transform: translateX(-50%); border-radius: 99px; background: #2A2B27; }
.phone-head { display: flex; justify-content: space-between; align-items: center; }
.phone-head .mono { font-size: 9px; font-weight: 600; letter-spacing: 0.14em; }
.phone-avatar { width: 16px; height: 16px; border-radius: 50%; background: var(--paper-3); border: 1px solid var(--line-2); }
.phone-day { margin-top: 18px; font-size: 11px; font-weight: 600; color: var(--ink-2); }
.phone-q { margin-top: 4px; font-family: var(--serif); font-size: clamp(18px, 1.7vw, 25px); line-height: 1.05; letter-spacing: -0.01em; }
.bars { display: flex; flex-direction: column; gap: 7px; margin-top: 18px; }
.bar { display: block; height: 6px; border-radius: 99px; background: var(--paper-3); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: inherit; background: var(--live); }
.bar-stone span { background: var(--archived); }
.phone-input { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding: 5px 5px 5px 12px; border-radius: 99px; background: #FFFFFF; border: 1px solid var(--line-2); font-size: 10px; white-space: nowrap; color: var(--ink-2); }
.send { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: var(--lime); font-size: 11px; font-weight: 700; }
.forming { position: absolute; right: 18px; bottom: 16px; color: rgba(245,244,238,0.45); font-size: 10.5px; }

/* Card footer */
.product-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 24px 24px 24px; }
.product-name { margin: 0 0 6px; font-weight: 700; font-size: 28px; letter-spacing: -0.035em; line-height: 1.1; }
.product-copy p { margin: 0; max-width: 400px; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.product-copy .product-links { margin-top: 16px; display: flex; gap: 10px; align-items: center; font-size: 10.5px; color: var(--ink-3); }
.product-links a { color: var(--ink-2); text-decoration: underline; text-decoration-color: rgba(20,21,18,0.25); text-underline-offset: 4px; transition: color .2s, text-decoration-color .2s; }
.product-links a:hover { color: var(--ink); text-decoration-color: var(--ink); }
.product-links .quiet { color: var(--ink-3); }
.round-cta { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--ink); color: var(--ink); font-size: 20px; text-decoration: none; transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease); }
.product-valutina:hover .round-cta, .round-cta:not(.round-cta-idle):focus-visible { background: var(--ink); color: var(--lime); transform: rotate(45deg); }
.product-valutina:hover .round-cta span { transform: rotate(-45deg); }
.round-cta span { transition: transform .3s var(--ease); }
.round-cta-idle { border-color: var(--line-2); border-style: dashed; cursor: default; }
.idle-dots { display: flex; gap: 4px; }
.idle-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-3); animation: idle 1.6s var(--ease) infinite; }
.idle-dots i:nth-child(2) { animation-delay: .2s; } .idle-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes idle { 0%, 60%, 100% { opacity: .35; } 30% { opacity: 1; } }

/* Status key */
.status-key { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-2); }
.status-key ul { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; padding: 0; list-style: none; }
.status-key li { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }

/* ——— About ——— */
.about { border-top: 1px solid var(--line); padding: clamp(80px, 10vw, 152px) 0 clamp(88px, 11vw, 160px); }
.about-inner { display: grid; grid-template-columns: 1fr 3.25fr; gap: 32px; }
.about-body { max-width: 860px; }
.about-title { margin: 0 0 32px; font-weight: 700; font-size: clamp(42px, 5.6vw, 84px); line-height: 0.95; letter-spacing: -0.045em; }
.about-lede { margin: 0; font-family: var(--serif); font-size: clamp(24px, 2.4vw, 34px); line-height: 1.28; letter-spacing: -0.005em; color: #2A2A26; }
.more { margin-top: 36px; }
.more summary { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; list-style: none; font-size: 15px; font-weight: 600; }
.more summary u { text-decoration-thickness: 1px; text-underline-offset: 6px; }
.more summary::-webkit-details-marker { display: none; }
.more summary span { display: inline-block; transition: transform .25s var(--ease); }
.more summary:hover span { transform: translateX(4px); }
.more[open] summary span { transform: rotate(90deg); }
.more-body { margin-top: 20px; padding: 20px 24px; max-width: 620px; border-left: 2px solid var(--lime); background: var(--paper-2); border-radius: 0 10px 10px 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.more-body p { margin: 0; } .more-body p + p { margin-top: 10px; }

/* ——— Footer ——— */
.footer { background: var(--ink); color: #F5F4EE; padding: clamp(56px, 7vw, 88px) 0 28px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; padding-bottom: clamp(48px, 6vw, 80px); }
.brand-inverse .brand-name { color: #FFFFFF; font-size: 20px; }
.brand-inverse .mark { width: 30px; height: 30px; font-size: 17px; }
.footer-tag { margin: 14px 0 0; font-size: clamp(30px, 3vw, 42px); line-height: 1; color: rgba(245,244,238,0.72); }
.footer-nav { display: flex; gap: 36px; padding-top: 4px; }
.footer-nav a { font-size: 15px; font-weight: 500; color: rgba(245,244,238,0.78); text-decoration: none; transition: color .2s; }
.footer-nav a:hover { color: var(--lime); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 22px; border-top: 1px solid rgba(245,244,238,0.12); color: rgba(245,244,238,0.5); font-size: 10.5px; }

/* ——— Responsive ——— */
@media (max-width: 1080px) {
  .section-head { grid-template-columns: 1fr 2fr; }
  .section-note { grid-column: 2; justify-self: start; margin-top: 0; }
}
@media (max-width: 860px) {
  .product-grid { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; gap: 20px; }
  .section-head { grid-template-columns: 1fr; gap: 18px; }
  .section-note { grid-column: auto; }
}
@media (max-width: 640px) {
  .topnav { display: none; }
  .topbar-inner { grid-template-columns: 1fr auto; height: 56px; }
  .section { scroll-margin-top: 56px; }
  .mono { font-size: 10.5px; }
  .hero-inner { min-height: auto; padding-top: 20px; padding-bottom: 28px; }
  .hero-body { padding: 72px 0 64px; }
  .hero-kicker { margin-bottom: 22px; font-size: 13px; }
  .display { font-size: clamp(44px, 13.4vw, 64px); line-height: 0.95; }
  .hero-sub { padding-left: 0; margin-top: 26px; font-size: 17px; }
  .scroll-rail { display: none; }
  .stage { aspect-ratio: 1 / 0.92; }
  .browser { left: 9%; width: 74%; top: 20%; height: 58%; box-shadow: 7px 7px 0 var(--ink); }
  .browser-body { padding: 14px; gap: 8px; }
  .popover { right: 5%; bottom: 9%; width: auto; min-width: 0; padding: 12px 14px 10px; }
  .pop-main .pop-val { font-size: 19px; }
  .phone { width: 40%; border-radius: 24px; padding: 24px 12px 12px; }
  .phone-q { font-size: 17px; }
  .phone-input { font-size: 9px; padding-left: 9px; }
  .section-title span { white-space: normal; }
  .radar::after { transform: translate(110px, -90px); }
  .product-foot { padding: 20px 18px 20px; }
  .product-name { font-size: 24px; }
  .round-cta { width: 46px; height: 46px; }
  .status-key { flex-direction: column; align-items: flex-start; }
  .status-key ul { gap: 8px 20px; }
  .footer-top { flex-direction: column; gap: 36px; }
  .footer-nav { gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}
