/* ============================================================
   EnzymeBase — style.css
   Structure:
     1. Reset & Variables
     2. Base
     3. Cursor
     4. Nav
     5. Hero
     6. Divider
     7. Platform Section
     8. Get Involved Section
     9. Footer
    10. Animations
    11. Responsive
   ============================================================ */


/* ─── 1. RESET & VARIABLES ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:          #F4F1EB;
  --bg2:         #ECEAE2;
  --ink:         #1C1B17;
  --ink2:        #5A5849;
  --ink3:        #9A9688;
  --green:       #2E5D42;
  --green-mid:   #4A8060;
  --green-pale:  #C8DAD0;
  --accent:      #B85C2A;
  --line:        #D8D4C8;
  --white:       #FAFAF7;
}


/* ─── 2. BASE ─── */
html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Geist', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}


/* ─── 3. CURSOR ─── */
#cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--green);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, opacity 0.2s;
  mix-blend-mode: multiply;
}

#cursor.big {
  width: 40px;
  height: 40px;
  opacity: 0.3;
}


/* ─── 4. NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 52px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s, background 0.4s;
}

nav.stuck {
  background: rgba(244, 241, 235, 0.92);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.wordmark {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.wordmark sup {
  font-size: 0.45em;
  color: var(--green);
  vertical-align: super;
  letter-spacing: 0.1em;
  font-family: 'Geist', sans-serif;
  font-weight: 500;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-right a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink2);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-right a:hover {
  color: var(--ink);
}


/* ─── 5. HERO ─── */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 52px 72px;
  position: relative;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: up 0.8s 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--green);
}

.hero-h1 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(3.2rem, 7vw, 6.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 820px;
  opacity: 0;
  animation: up 0.9s 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-h1 i {
  font-style: italic;
  color: var(--green);
}

.hero-bottom {
  margin-top: 56px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  opacity: 0;
  animation: up 0.8s 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-sub {
  font-size: 1rem;
  line-height: 1.72;
  color: var(--ink2);
  max-width: 400px;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s, gap 0.2s;
}

.btn-line:hover {
  color: var(--green);
  border-color: var(--green);
  gap: 16px;
}

.scroll-hint {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--ink3);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.scroll-hint::after {
  content: '';
  width: 1px;
  height: 40px;
  background: var(--ink3);
  display: block;
  animation: blink 2s infinite;
}


/* ─── 6. DIVIDER ─── */
.divider {
  height: 1px;
  background: var(--line);
  margin: 0 52px;
}


/* ─── 7. PLATFORM SECTION ─── */
.platform {
  padding: 120px 52px;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 96px;
  align-items: end;
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--ink3);
}

.section-title {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(2rem, 3.5vw, 3rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--ink);
}

.section-title i {
  font-style: italic;
  color: var(--green);
}

.section-body {
  font-size: 0.95rem;
  line-height: 1.78;
  color: var(--ink2);
  max-width: 440px;
  align-self: end;
}

.layers {
  display: flex;
  flex-direction: column;
}

.layer-row {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  align-items: start;
  padding: 44px 0;
  border-top: 1px solid var(--line);
  gap: 48px;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.layer-row.vis {
  opacity: 1;
  transform: none;
}

/* Green underline sweep on hover */
.layer-row::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 1px;
  width: 0;
  background: var(--green);
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.layer-row:hover::after {
  width: 100%;
}

.layer-num {
  font-family: 'Fraunces', serif;
  font-size: 0.78rem;
  color: var(--ink3);
  padding-top: 4px;
  letter-spacing: 0.02em;
}

.layer-name {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}

.layer-name span {
  display: block;
  font-style: italic;
  color: var(--green);
  font-size: 1rem;
  font-weight: 300;
  margin-top: 4px;
}

.layer-detail {
  font-size: 0.875rem;
  line-height: 1.72;
  color: var(--ink2);
}

.layer-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.pill {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink3);
  font-weight: 400;
}


/* ─── 8. GET INVOLVED SECTION ─── */
.involve {
  background: var(--green);
  padding: 120px 52px;
  position: relative;
  overflow: hidden;
}

.involve::before {
  content: '';
  position: absolute;
  right: -120px; top: -120px;
  width: 500px; height: 500px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.involve::after {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 340px; height: 340px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.involve-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: center;
  max-width: 1100px;
}

.involve .eyebrow            { color: var(--green-pale); }
.involve .eyebrow::before    { background: var(--green-pale); }
.involve .section-title      { color: #fff; }
.involve .section-title i    { color: var(--green-pale); }

.involve-text {
  font-size: 0.95rem;
  line-height: 1.78;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 48px;
}

.involve-options {
  display: flex;
  flex-direction: column;
}

.involve-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  transition: padding-left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.involve-opt:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.involve-opt:hover {
  padding-left: 12px;
}

.opt-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
}

.opt-sub {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 3px;
}

.opt-arrow {
  color: rgba(255, 255, 255, 0.3);
  font-size: 1rem;
  transition: transform 0.3s, color 0.3s;
}

.involve-opt:hover .opt-arrow {
  transform: translateX(6px);
  color: rgba(255, 255, 255, 0.9);
}


/* ─── 9. FOOTER ─── */
footer {
  padding: 36px 52px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-wordmark {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 1rem;
  color: var(--ink2);
  text-decoration: none;
}

.footer-meta {
  font-size: 0.72rem;
  color: var(--ink3);
  letter-spacing: 0.04em;
}


/* ─── 10. ANIMATIONS ─── */
@keyframes up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}


/* ─── 11. RESPONSIVE ─── */
@media (max-width: 860px) {
  nav                        { padding: 0 24px; }
  .hero                      { padding: 0 24px 56px; }
  .hero-bottom               { flex-direction: column; align-items: flex-start; gap: 36px; }
  .hero-cta                  { align-items: flex-start; }
  .divider                   { margin: 0 24px; }
  .platform                  { padding: 80px 24px; }
  .section-head              { grid-template-columns: 1fr; margin-bottom: 64px; }
  .layer-row                 { grid-template-columns: 48px 1fr; gap: 24px; }
  .layer-detail              { grid-column: 2; }
  .involve                   { padding: 80px 24px; }
  .involve-inner             { grid-template-columns: 1fr; gap: 48px; }
  footer                     { padding: 28px 24px; flex-direction: column; gap: 12px; }
}
