:root {
  --ink: #000000;
  --paper: #ffffff;
  --form-lime: #a6c22e;
  --form-charcoal: #1c1c1c;
  --signal-red: #e10600;
  --muted: #62625e;
  --shadow: 5px 5px 0 var(--ink);
  --shadow-soft: 5px 5px 0 #b5b5b0;
  --border: 2px solid var(--ink);
  --seam: 2px;
  --iridescent: linear-gradient(
    90deg,
    #0a0a0a 0%,
    #e10600 22%,
    #ff4d4d 38%,
    #a84818 55%,
    #e10600 72%,
    #8b0000 88%,
    #0a0a0a 100%
  );
  --iridescent-v: linear-gradient(
    180deg,
    #0a0a0a 0%,
    #e10600 22%,
    #ff4d4d 38%,
    #a84818 55%,
    #e10600 72%,
    #8b0000 88%,
    #0a0a0a 100%
  );
  --font-sans: "Space Grotesk", system-ui, sans-serif;
  --font-display: "Archivo Black", "Space Grotesk", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Buttons */

.button {
  position: relative;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: var(--border);
  border-radius: 999px;
  padding: 12px 28px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.button-solid {
  background: var(--ink);
  box-shadow: var(--shadow-soft);
  color: var(--paper);
}

.button-outline,
.button-pill {
  background: var(--paper);
  box-shadow: var(--shadow);
  color: var(--ink);
}

.button-pill {
  min-width: min(100%, 280px);
  min-height: 62px;
  padding: 14px 36px;
  font-size: 1.05rem;
}

.button:hover,
.button:focus-visible {
  transform: translate(-2px, -2px);
}

.button-solid:hover,
.button-solid:focus-visible {
  box-shadow: 7px 7px 0 #b5b5b0;
}

.button-outline:hover,
.button-outline:focus-visible,
.button-pill:hover,
.button-pill:focus-visible {
  box-shadow: 7px 7px 0 var(--ink);
}

.button:focus-visible,
.contact-email:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 5px;
}

.button-disabled {
  cursor: not-allowed;
  opacity: 0.72;
  box-shadow: var(--shadow);
  transform: none !important;
  pointer-events: none;
}

.button-disabled:hover,
.button-disabled:focus-visible {
  box-shadow: var(--shadow);
  transform: none;
}

.button-note {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--muted);
  transform: translateX(-50%);
  white-space: nowrap;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Author display rules (e.g. .button) override UA [hidden]; force hide */
[hidden] {
  display: none !important;
}

.button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none !important;
}

/* Expandable newsletter CTA */

.updates {
  display: flex;
  align-items: stretch;
  min-width: 0;
  flex: 1 1 auto;
}

.updates-panel {
  min-width: 0;
  flex: 1 1 auto;
}

.updates-form {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 10px;
}

.updates-input {
  min-width: 0;
  flex: 1 1 auto;
  width: min(100%, 240px);
  min-height: 48px;
  border: var(--border);
  border-radius: 999px;
  padding: 12px 20px;
  background: var(--paper);
  box-shadow: var(--shadow);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.2;
}

.updates-input::placeholder {
  color: var(--muted);
}

.updates-input:focus-visible {
  outline: none;
}

.updates-submit {
  flex-shrink: 0;
}

.updates-status {
  max-width: 280px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}

.updates-status.is-error {
  color: var(--signal-red);
}

/* Bento seams — iridescent dividers */

@keyframes iridescence {
  to {
    background-position: 200% 0;
  }
}

.seam-h,
.seam-v {
  position: relative;
}

.seam-h::after,
.seam-v::after {
  content: "";
  position: absolute;
  z-index: 2;
  pointer-events: none;
  background-image: var(--iridescent);
  background-size: 200% 100%;
  animation: iridescence 18s linear infinite;
}

.seam-h::after {
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--seam);
}

.seam-v::after {
  top: 0;
  bottom: 0;
  right: 0;
  width: var(--seam);
  background-image: var(--iridescent-v);
  background-size: 100% 200%;
  animation-name: iridescence-v;
}

.seam-v-start::after {
  right: auto;
  left: 0;
}

@keyframes iridescence-v {
  to {
    background-position: 0 200%;
  }
}

@media (min-width: 961px) {
  .seam-mobile-only::after {
    display: none;
  }
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  min-height: min(100vh, 900px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(18px, 2.5vw, 28px);
  padding: clamp(40px, 7vw, 72px) clamp(24px, 5vw, 56px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--signal-red);
  content: "";
}

.brand-lockup {
  width: min(100%, 560px);
  margin: 0;
}

.brand-logo {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
}

.hero-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 16px 18px;
  padding-top: 8px;
  padding-bottom: 18px;
}

.hero-icons {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: clamp(28px, 4vw, 42px);
  padding: clamp(36px, 5vw, 56px) clamp(24px, 4vw, 48px);
  background: var(--paper);
}

.hero-icon {
  width: min(100%, 220px);
  margin: 0;
}

.hero-icon img {
  width: 100%;
  height: auto;
  border-radius: 28%;
  box-shadow:
    0 10px 28px rgb(0 0 0 / 14%),
    0 2px 0 rgb(0 0 0 / 6%);
}

.hero-icon-pocket img {
  background: var(--paper);
  object-fit: cover;
}

.hero-icon-form img {
  background: var(--form-charcoal);
}

/* Venture sections */

.venture {
  display: grid;
  grid-template-columns: minmax(240px, 0.32fr) minmax(0, 0.68fr);
  min-height: min(100vh, 900px);
}

.venture-form {
  grid-template-columns: minmax(0, 0.68fr) minmax(240px, 0.32fr);
}

.venture-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(18px, 2.5vw, 28px);
  padding: clamp(40px, 6vw, 72px) clamp(24px, 4.5vw, 48px);
  background: var(--paper);
}

.venture-title {
  display: flex;
  flex-direction: column;
  gap: 1em;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.venture-name {
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  line-height: 1;
}

.venture-tagline {
  font-size: clamp(1.35rem, 2.6vw, 2.1rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--muted);
}

.venture-meta {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
}

.venture-details {
  display: flex;
  flex-direction: column;
  gap: 1.25em;
}

.venture-thesis {
  max-width: 32ch;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink);
}

.venture-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(36px, 6vw, 72px);
  background: var(--paper);
}

.app-icon {
  width: min(100%, 420px);
  height: auto;
  border-radius: 28%;
  box-shadow:
    0 10px 28px rgb(0 0 0 / 14%),
    0 2px 0 rgb(0 0 0 / 6%);
  background: var(--paper);
  object-fit: cover;
}

.app-icon-form {
  width: min(100%, 380px);
  background: var(--form-charcoal);
}

/* Contact */

.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: min(50vh, 420px);
  padding: clamp(64px, 10vw, 120px) clamp(24px, 8vw, 96px);
  background: var(--paper);
  text-align: center;
}

.contact-label {
  font-family: var(--font-sans);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
}

.contact-email {
  font-family: var(--font-sans);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
  word-break: break-word;
}

.contact-email:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* Responsive */

@media (max-width: 960px) {
  .hero,
  .venture,
  .venture-form {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    min-height: auto;
  }

  /* Vertical seam → horizontal under hero copy */
  .hero-copy.seam-v::after {
    top: auto;
    right: 0;
    left: 0;
    bottom: 0;
    width: auto;
    height: var(--seam);
    background-image: var(--iridescent);
    background-size: 200% 100%;
    animation-name: iridescence;
  }

  .hero-icons {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
    padding: 48px 24px;
  }

  .hero-icon {
    width: min(42vw, 180px);
  }

  .venture-pocket .venture-copy.seam-v::after,
  .venture-form .venture-copy.seam-v::after {
    display: none;
  }

  .venture-pocket .venture-visual {
    order: -1;
  }

  .venture-visual {
    min-height: 52vw;
    padding: 48px 28px;
  }

  .app-icon,
  .app-icon-form {
    width: min(72vw, 320px);
  }

  .contact {
    align-items: center;
    text-align: center;
    min-height: auto;
    padding: 72px 28px;
  }
}

@media (max-width: 680px) {
  .hero-copy {
    padding: 42px 22px 50px;
  }

  .brand-lockup {
    width: 100%;
  }

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

  .hero-actions .button,
  .updates,
  .updates-panel,
  .updates-form,
  .updates-input,
  .updates-submit {
    width: 100%;
  }

  .updates-form {
    flex-direction: column;
  }

  .button-note {
    position: static;
    transform: none;
    margin-left: 8px;
  }

  .hero-icons {
    gap: 22px;
    padding: 36px 22px 44px;
  }

  .hero-icon {
    width: min(46vw, 160px);
  }

  .venture-copy {
    padding: 42px 22px 48px;
  }

  .venture-name {
    font-size: clamp(2rem, 10vw, 2.75rem);
  }

  .venture-tagline {
    font-size: clamp(1.15rem, 5.5vw, 1.55rem);
  }

  .venture-visual {
    min-height: 58vw;
    padding: 36px 22px;
  }

  .contact {
    padding: 56px 22px 64px;
  }
}

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

  .button:hover,
  .button:focus-visible {
    transform: none;
  }

  .seam-h::after,
  .seam-v::after {
    animation: none;
    background-image: none;
    background-color: var(--ink);
  }
}
