/* Hallmark · macrostructure: Portfolio Grid · tone: neo-brutal tech
 * theme: custom (vibe: "electric lime, hip tech, hard edges")
 * paper: oklch(0.13 0.02 145) · accent: oklch(0.9 0.24 128) lime
 * display: Syne · body: IBM Plex Sans · mono: IBM Plex Mono
 * axes: dark / grotesk-sans / chromatic-lime · nav: N7 Brutal slab · footer: Ft5 Statement
 * enrichment: product photography + brand marks · studied: no
 */

:root {
  --color-paper: oklch(0.13 0.02 145);
  --color-paper-2: oklch(0.17 0.022 148);
  --color-paper-3: oklch(0.21 0.025 148);
  --color-ink: oklch(0.96 0.012 130);
  --color-ink-2: oklch(0.78 0.03 145);
  --color-ink-3: oklch(0.58 0.03 145);
  --color-rule: oklch(0.32 0.03 145);
  --color-accent: oklch(0.9 0.24 128);
  --color-accent-deep: oklch(0.78 0.22 132);
  --color-accent-ink: oklch(0.16 0.04 145);
  --color-focus: oklch(0.9 0.24 128);

  --color-root-paper: oklch(0.96 0.02 95);
  --color-root-ink: oklch(0.28 0.04 150);
  --color-root-leaf: oklch(0.48 0.1 152);
  --color-root-clay: oklch(0.62 0.13 46);

  --color-burn-paper: oklch(0.12 0.015 160);
  --color-burn-lime: oklch(0.9 0.28 135);
  --color-burn-panel: oklch(0.16 0.02 160);

  --font-display: "Syne", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: clamp(1.75rem, 3vw, 2.25rem);
  --text-3xl: clamp(2.25rem, 5vw, 3.25rem);
  --text-display: clamp(3.5rem, 14vw, 7.5rem);

  --radius-none: 0;
  --radius-sm: 2px;
  --radius-md: 4px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 150ms;
  --dur-med: 280ms;

  --header-height: 64px;
  --shadow-hard: 4px 4px 0 var(--color-accent);
  --shadow-ink: 4px 4px 0 oklch(0.08 0.02 145);
  --measure: 1120px;
}

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

html.lenis,
html.lenis body {
  scroll-behavior: auto;
}

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--color-ink);
  background: var(--color-paper);
  -webkit-font-smoothing: antialiased;
}

/* Scroll progress — lime stamp rail */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--color-accent);
  pointer-events: none;
  will-change: transform;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  padding: var(--space-2xs) var(--space-sm);
  background: var(--color-accent);
  color: var(--color-accent-ink);
  font-weight: 600;
  z-index: 1000;
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-sm);
}

a {
  color: var(--color-accent);
  text-underline-offset: 3px;
}

a:focus-visible,
.btn:focus-visible,
.nav-cta:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

/* Header — N7 Brutal slab */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--color-paper);
  border-bottom: 2px solid var(--color-accent);
}

.header-inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--space-md);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  color: var(--color-ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 18px;
  height: 18px;
  background: var(--color-accent);
  box-shadow: 2px 2px 0 oklch(0.55 0.18 132);
  transform-origin: center;
  will-change: transform, opacity;
}

.logo-text {
  line-height: 1;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.site-header nav a {
  color: var(--color-ink-2);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-header nav a:hover {
  color: var(--color-accent);
}

.nav-cta {
  padding: 0.45rem 0.9rem;
  background: var(--color-accent);
  color: var(--color-accent-ink) !important;
  border: 2px solid var(--color-accent);
}

.nav-cta:hover {
  background: transparent;
  color: var(--color-accent) !important;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-height));
  display: flex;
  align-items: flex-end;
  padding: var(--space-2xl) var(--space-md) var(--space-xl);
  border-bottom: 2px solid var(--color-rule);
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 59px, oklch(0.22 0.03 145 / 0.45) 60px),
    linear-gradient(0deg, transparent 59px, oklch(0.22 0.03 145 / 0.45) 60px),
    radial-gradient(ellipse 80% 60% at 85% 20%, oklch(0.55 0.2 128 / 0.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 90%, oklch(0.4 0.12 145 / 0.25), transparent 55%);
  background-size: 60px 60px, 60px 60px, auto, auto;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--measure);
  width: 100%;
  margin: 0 auto;
}

.hero-kicker {
  margin: 0 0 var(--space-md);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.hero-brand {
  font-family: var(--font-display);
  font-style: normal;
  font-size: var(--text-display);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.045em;
  margin: 0 0 var(--space-md);
  color: var(--color-ink);
  overflow-wrap: anywhere;
  min-width: 0;
  max-width: 12ch;
}

.hero-brand::after {
  content: "";
  display: inline-block;
  width: 0.28em;
  height: 0.28em;
  margin-left: 0.08em;
  vertical-align: 0.12em;
  background: var(--color-accent);
  box-shadow: 3px 3px 0 oklch(0.55 0.18 132);
}

.hero-lead {
  font-size: var(--text-lg);
  color: var(--color-ink-2);
  max-width: 36rem;
  margin: 0 0 var(--space-lg);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.25rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-none);
  white-space: nowrap;
  transition:
    transform var(--dur-fast) var(--ease-out),
    background var(--dur-fast),
    color var(--dur-fast),
    box-shadow var(--dur-fast);
  will-change: transform;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-accent-ink);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-ink);
}

.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 oklch(0.08 0.02 145);
  color: var(--color-accent-ink);
}

.btn-primary:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 oklch(0.08 0.02 145);
}

.btn-ghost {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-rule);
}

.btn-ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-large {
  padding: 1rem 1.75rem;
  font-size: var(--text-base);
}

/* Products */
.products {
  padding: var(--space-xl) var(--space-md) var(--space-2xl);
  max-width: var(--measure);
  margin: 0 auto;
}

.section-bar {
  display: grid;
  gap: var(--space-2xs);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--color-rule);
}

.section-bar h2 {
  font-family: var(--font-display);
  font-style: normal;
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
}

.section-bar p {
  margin: 0;
  color: var(--color-ink-2);
  max-width: 36rem;
}

.product-stack {
  display: grid;
  gap: var(--space-lg);
}

.product-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 0;
  border: 2px solid var(--color-rule);
  background: var(--color-paper-2);
  overflow: hidden;
  transition: border-color var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
}

.product-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-3px);
}

.product-media {
  position: relative;
  display: block;
  min-height: 280px;
  overflow: hidden;
  text-decoration: none;
  background: var(--color-paper-3);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
  transition: transform var(--dur-med) var(--ease-out);
}

.product-card:hover .product-media img {
  transform: scale(1.03);
}

.product-media-badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  padding: 0.35rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--color-accent);
  color: var(--color-accent-ink);
  border: 2px solid oklch(0.08 0.02 145);
}

.product-media-badge--soft {
  background: var(--color-paper-2);
  color: var(--color-ink-2);
  border-color: var(--color-rule);
}

.product-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-lg);
  min-width: 0;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.product-glyph {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--color-root-leaf);
}

.product-glyph--round {
  border-radius: 50%;
}

.product-glyph--placeholder {
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  background: var(--color-paper-3);
  color: var(--color-ink-2);
  border: 2px solid var(--color-rule);
}

.product-eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-ink-3);
}

.product-card h3 {
  font-family: var(--font-display);
  font-style: normal;
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1.05;
}

.product-tagline {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-ink);
  line-height: 1.3;
}

.product-copy {
  margin: 0;
  color: var(--color-ink-2);
  font-size: var(--text-sm);
}

.product-feats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-2xs);
}

.product-feats li {
  position: relative;
  padding-left: 1.1rem;
  font-size: var(--text-sm);
  color: var(--color-ink-2);
}

.product-feats li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--color-accent);
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
  margin-top: auto;
  padding-top: var(--space-sm);
}

/* Rootline skin */
.product-card--rootline {
  background: linear-gradient(160deg, oklch(0.18 0.025 145) 0%, oklch(0.16 0.03 120) 100%);
}

.product-card--rootline .product-tagline {
  color: oklch(0.88 0.04 95);
}

.product-card--rootline .product-feats li::before {
  background: var(--color-root-leaf);
}

.product-card--rootline:hover {
  border-color: var(--color-root-leaf);
}

/* Burnline skin */
.product-card--burnline {
  background: linear-gradient(160deg, var(--color-burn-paper) 0%, var(--color-burn-panel) 100%);
}

.product-card--burnline .product-feats li::before {
  background: var(--color-burn-lime);
}

.product-card--burnline:hover {
  border-color: var(--color-burn-lime);
}

.product-card--burnline .btn-primary {
  background: var(--color-burn-lime);
  border-color: var(--color-burn-lime);
  color: var(--color-accent-ink);
}

/* Incubating */
.product-card--incubating {
  opacity: 0.92;
}

.product-card--incubating:hover {
  border-color: var(--color-rule);
  transform: none;
}

.product-media--static {
  min-height: 220px;
}

.incubate-panel {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 220px;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 10px,
      oklch(0.22 0.03 145 / 0.5) 10px,
      oklch(0.22 0.03 145 / 0.5) 12px
    ),
    var(--color-paper-3);
}

.incubate-mark {
  position: absolute;
  inset: 28% 30%;
  border: 2px dashed var(--color-rule);
  background: oklch(0.18 0.02 145 / 0.6);
  z-index: 1;
}

.incubate-mark::after {
  content: "?";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-ink-3);
}

.incubate-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(oklch(0.9 0.24 128 / 0.08) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.9 0.24 128 / 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

/* Studio */
.studio {
  padding: var(--space-2xl) var(--space-md);
  background: var(--color-paper-2);
  border-top: 2px solid var(--color-rule);
  border-bottom: 2px solid var(--color-rule);
}

.studio-inner {
  max-width: var(--measure);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  gap: var(--space-xl);
  align-items: start;
}

.studio-kicker {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.studio-copy h2 {
  font-family: var(--font-display);
  font-style: normal;
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 var(--space-md);
  overflow-wrap: anywhere;
  min-width: 0;
}

.studio-copy p {
  margin: 0 0 var(--space-sm);
  color: var(--color-ink-2);
  max-width: 38rem;
}

.studio-principles {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--color-rule);
}

.studio-principles li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: var(--space-sm);
  align-items: baseline;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-rule);
  font-weight: 500;
}

.principle-key {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-accent);
  letter-spacing: 0.06em;
}

/* Contact */
.contact {
  padding: var(--space-3xl) var(--space-md);
  text-align: left;
}

.contact-inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: var(--space-xl);
  border: 2px solid var(--color-accent);
  background:
    linear-gradient(135deg, oklch(0.9 0.24 128 / 0.08), transparent 50%),
    var(--color-paper-2);
  box-shadow: var(--shadow-hard);
}

.contact h2 {
  font-family: var(--font-display);
  font-style: normal;
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 var(--space-sm);
}

.contact p {
  color: var(--color-ink-2);
  margin: 0 0 var(--space-lg);
  max-width: 28rem;
}

/* Footer — Ft5 Statement */
.site-footer {
  padding: var(--space-xl) var(--space-md) var(--space-lg);
  border-top: 2px solid var(--color-rule);
}

.footer-inner {
  max-width: var(--measure);
  margin: 0 auto;
  display: grid;
  gap: var(--space-lg);
}

.footer-statement {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--color-ink);
  max-width: 16ch;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  color: var(--color-ink-3);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-rule);
}

.footer-brand {
  color: var(--color-ink-2);
  font-weight: 500;
}

/* Motion — JS-driven reveals (Motion + Lenis). Initial state for animated nodes. */
@media (prefers-reduced-motion: no-preference) {
  html.has-js:not(.motion-fallback) .hero-kicker,
  html.has-js:not(.motion-fallback) .hero-brand,
  html.has-js:not(.motion-fallback) .hero-lead,
  html.has-js:not(.motion-fallback) .hero-actions,
  html.has-js:not(.motion-fallback) .section-bar,
  html.has-js:not(.motion-fallback) .product-card,
  html.has-js:not(.motion-fallback) .product-feats li,
  html.has-js:not(.motion-fallback) .studio-copy,
  html.has-js:not(.motion-fallback) .studio-principles li,
  html.has-js:not(.motion-fallback) .contact-inner,
  html.has-js:not(.motion-fallback) .footer-statement {
    opacity: 0;
  }

  html.has-js:not(.motion-fallback) .hero-kicker.is-visible,
  html.has-js:not(.motion-fallback) .hero-brand.is-visible,
  html.has-js:not(.motion-fallback) .hero-lead.is-visible,
  html.has-js:not(.motion-fallback) .hero-actions.is-visible,
  html.has-js:not(.motion-fallback) .section-bar.is-visible,
  html.has-js:not(.motion-fallback) .product-card.is-visible,
  html.has-js:not(.motion-fallback) .product-feats li.is-visible,
  html.has-js:not(.motion-fallback) .studio-copy.is-visible,
  html.has-js:not(.motion-fallback) .studio-principles li.is-visible,
  html.has-js:not(.motion-fallback) .contact-inner.is-visible,
  html.has-js:not(.motion-fallback) .footer-statement.is-visible {
    opacity: 1;
  }

  .will-animate {
    will-change: transform, opacity;
  }

  .product-card.is-visible:hover {
    transform: translateY(-3px);
  }

  .hero-grid {
    animation: grid-breathe 8s var(--ease-in-out) infinite;
  }

  .hero-brand::after {
    animation: stamp-pulse 2.8s var(--ease-out) 0.8s 1 both;
  }

  .logo-mark {
    animation: stamp-pulse 2.4s var(--ease-out) 0.4s 1 both;
  }
}

@keyframes stamp-pulse {
  0% { box-shadow: 2px 2px 0 oklch(0.55 0.18 132); }
  40% { box-shadow: 5px 5px 0 oklch(0.55 0.18 132); }
  100% { box-shadow: 2px 2px 0 oklch(0.55 0.18 132); }
}

@keyframes grid-breathe {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .product-media img {
      animation: media-parallax linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 40%;
    }
  }

  @keyframes media-parallax {
    from { transform: scale(1.08); }
    to { transform: scale(1); }
  }
}

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

  .scroll-progress {
    display: none;
  }

  .hero-kicker,
  .hero-brand,
  .hero-lead,
  .hero-actions,
  .section-bar,
  .product-card,
  .product-feats li,
  .studio-copy,
  .studio-principles li,
  .contact-inner,
  .footer-statement {
    opacity: 1;
  }

  .btn,
  .product-card,
  .product-media img,
  .logo-mark,
  .hero-brand::after,
  .hero-grid {
    transition: none;
    animation: none;
  }
}

/* Responsive */
@media (max-width: 860px) {
  .product-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-media,
  .product-media img,
  .product-media--static,
  .incubate-panel {
    min-height: 200px;
  }

  .studio-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-lg);
  }
}

@media (max-width: 768px) {
  .site-header nav {
    gap: var(--space-sm);
  }

  .site-header nav a:not(.nav-cta) {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: var(--space-xl);
    align-items: flex-start;
  }

  .contact-inner {
    padding: var(--space-lg);
    box-shadow: 3px 3px 0 var(--color-accent);
  }
}

@media (max-width: 414px) {
  .hero-actions,
  .product-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .studio-principles li {
    white-space: normal;
  }
}
