/* =========================================================
   ObjectZen — style.css
   Modern minimalist, dark-first, builder personality
   ========================================================= */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #0a0a0b;
  --bg-2:       #111114;
  --bg-3:       #18181c;
  --border:     #222228;
  --text:       #e8e8ec;
  --text-muted: #666672;
  --text-dim:   #44444e;
  --accent:     #6ee7b7;   /* emerald — the "zen" green */
  --accent-2:   #34d399;
  --accent-dim: rgba(110,231,183,.12);
  --mono-font:  'JetBrains Mono', 'Fira Mono', monospace;
  --sans-font:  'Inter', system-ui, sans-serif;
  --radius:     10px;
  --max-w:      1100px;
  --nav-h:      64px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans-font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* --- Utility --- */
.container {
  width: min(var(--max-w), 100% - 3rem);
  margin-inline: auto;
}
.mono { font-family: var(--mono-font); }
.accent { color: var(--accent); }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 2rem;
  backdrop-filter: blur(12px);
  background: rgba(10,10,11,.8);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
  text-decoration: none;
}
.nav-logo::after { content: '.'; color: var(--accent); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--accent) !important;
  color: var(--bg) !important;
  padding: .45rem 1rem;
  border-radius: var(--radius);
  font-weight: 600 !important;
  transition: opacity .2s !important;
}
.nav-cta:hover { opacity: .85; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: center center;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 100%);
  opacity: .35;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-block: 6rem 4rem;
}

.hero-eyebrow {
  color: var(--accent);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-eyebrow .mono { color: var(--text-dim); }

.hero-headline {
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -.04em;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--text-muted);
  max-width: 46ch;
  margin-bottom: 2.5rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .2s, background .2s;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover { opacity: .85; }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }

.hero-stat-bar {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.stat { display: flex; flex-direction: column; gap: .15rem; }
.stat-num {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -.04em;
  color: var(--text);
}
.stat-label {
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.stat-fine { font-size: .7rem; color: var(--text-dim); }
.stat-divider {
  width: 1px;
  height: 2.5rem;
  background: var(--border);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: var(--text-dim);
  font-size: .7rem;
  letter-spacing: .12em;
}
.scroll-line {
  width: 1px;
  height: 2.5rem;
  background: linear-gradient(to bottom, var(--text-dim), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: .4; }
  50% { opacity: 1; }
}

/* =========================================================
   MANIFESTO STRIP
   ========================================================= */
.manifesto-strip {
  background: var(--bg-2);
  border-block: 1px solid var(--border);
  padding-block: .85rem;
  overflow: hidden;
}

.marquee-track { display: flex; overflow: hidden; }

.marquee-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  white-space: nowrap;
  animation: marquee 35s linear infinite;
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: .06em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.marquee-content .dot { color: var(--accent); font-size: .6rem; }

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

/* =========================================================
   SECTIONS — shared
   ========================================================= */
section { padding-block: 7rem; }

.section-label {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.section-label .mono { color: var(--accent); }

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.section-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 60ch;
  margin-bottom: 3.5rem;
  line-height: 1.65;
}

/* =========================================================
   WORK / CARDS
   ========================================================= */
.work { background: var(--bg); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  transition: border-color .2s, transform .2s;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.card-featured {
  border-color: rgba(110,231,183,.3);
  background: linear-gradient(135deg, var(--bg-2), rgba(110,231,183,.04));
  position: relative;
}
.card-featured::before {
  content: 'High impact';
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: .2rem .6rem;
  border-radius: 20px;
}

.card-icon {
  font-size: 1.75rem;
  line-height: 1;
  color: var(--accent);
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

.card p {
  color: var(--text-muted);
  font-size: .92rem;
  line-height: 1.65;
}

.card-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: auto;
}
.card-tags li {
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .04em;
  padding: .25rem .65rem;
  border-radius: 6px;
}

/* =========================================================
   HOW I WORK
   ========================================================= */
.how { background: var(--bg-2); }

.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.how-copy p {
  color: var(--text-muted);
  margin-bottom: 1.1rem;
  line-height: 1.75;
}
.how-copy .how-lead {
  font-size: 1.15rem;
  color: var(--text);
}
.how-copy em { color: var(--text); font-style: normal; font-weight: 600; }

.how-principles {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.principle {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 1.25rem;
  align-items: start;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}
.principle:last-child { border-bottom: none; padding-bottom: 0; }

.principle-num {
  color: var(--accent);
  font-size: .75rem;
  font-weight: 500;
  padding-top: .25rem;
}

.principle h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .35rem;
  letter-spacing: -.02em;
}
.principle p {
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.6;
}

/* =========================================================
   TERMINAL
   ========================================================= */
.terminal-section {
  background: var(--bg);
  padding-block: 5rem;
}

.terminal {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  max-width: 680px;
  margin-inline: auto;
  box-shadow: 0 0 0 1px var(--border), 0 40px 80px rgba(0,0,0,.6);
}

.terminal-bar {
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
  padding: .75rem 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.t-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.t-red    { background: #ff5f57; }
.t-yellow { background: #febc2e; }
.t-green  { background: #28c840; }
.t-title {
  flex: 1;
  text-align: center;
  font-size: .75rem;
  color: var(--text-dim);
  margin-left: -.9rem; /* optical center */
}

.terminal-body {
  padding: 1.75rem;
  font-family: var(--mono-font);
  font-size: .88rem;
  line-height: 2;
}

.t-prompt { color: var(--accent); margin-right: .5rem; }
.t-cmd    { color: var(--text-muted); }
.t-output { color: var(--text); padding-left: 0; }
.t-accent { color: var(--accent); }
.t-blank  { line-height: .75; }
.t-cursor { color: var(--accent); animation: blink .9s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* =========================================================
   ABOUT
   ========================================================= */
.about { background: var(--bg-2); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  align-items: start;
}

.about-copy p {
  color: var(--text-muted);
  margin-bottom: 1.1rem;
  line-height: 1.75;
}

.about-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-block {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.sidebar-block h4 {
  font-size: .78rem;
  color: var(--accent);
  margin-bottom: 1rem;
  letter-spacing: .08em;
}

.skills-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.skills-list li {
  font-size: .88rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: .6rem;
}
.skills-list li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  background: var(--bg);
  text-align: center;
  padding-block: 9rem;
}

.contact-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.contact-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 50ch;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  line-height: 1.65;
}

.contact-email {
  display: inline-block;
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -.02em;
  border-bottom: 2px solid transparent;
  transition: border-color .2s;
  margin-bottom: 1.5rem;
}
.contact-email:hover { border-color: var(--accent); }

.contact-note {
  color: var(--text-dim);
  font-size: .8rem;
  letter-spacing: .04em;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding-block: 1.75rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: -.01em;
}
.footer-logo::after { content: '.'; color: var(--accent); }

.footer-copy {
  font-size: .75rem;
  color: var(--text-dim);
  letter-spacing: .04em;
}

.footer-year {
  font-size: .8rem;
  color: var(--text-dim);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .how-grid      { grid-template-columns: 1fr; gap: 3rem; }
  .about-grid    { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    justify-content: flex-start;
    padding: 2rem;
    gap: 1.5rem;
    z-index: 99;
  }
  .nav-links.open a { font-size: 1.2rem; }

  .hero-stat-bar { gap: 1.5rem; }
  .stat-divider { display: none; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  section { padding-block: 4.5rem; }
  .hero-inner { padding-block: 4rem 2rem; }
  .cards { grid-template-columns: 1fr; }
}

/* =========================================================
   SCROLL REVEAL — JS adds .revealed class
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
