/* =============================================================
   styles.css — Layout, typography, components
   Daryl Hurwitz Portfolio
   ============================================================= */

/* ── TOKENS ──────────────────────────────────────────────────── */
:root {
  --bg:      #0a0a08;
  --surface: #111110;
  --border:  #222220;
  --accent:  #c8a96e;
  --accent2: #7eb8b0;
  --text:    #e8e6e0;
  --muted:   #6b6960;
  --dim:     #2a2a27;
}

/* ── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
  opacity: 0.4;
}

/* ── NAV ─────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 3rem;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 8, 0.85);
  backdrop-filter: blur(12px);
}

.nav-logo {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav-links { display: flex; gap: 2.5rem; list-style: none; }

.nav-links a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--accent); }

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

.hero--no-border { border-top: none; padding: 0; }

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 3rem 4rem 4rem;
  position: relative;
  z-index: 2;
}

.hero-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s ease both;
}

.hero-name {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(3.5rem, 5vw, 5.5rem);
  line-height: 1;
  color: var(--text);
  margin-bottom: 0.5rem;
  animation: fadeUp 0.8s 0.1s ease both;
}

.hero-name em { font-style: italic; color: var(--accent); }

.hero-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  color: var(--muted);
  font-style: italic;
  margin-bottom: 2rem;
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero-summary {
  font-size: 0.95rem;
  color: #a09e98;
  max-width: 440px;
  line-height: 1.8;
  margin-bottom: 3rem;
  animation: fadeUp 0.8s 0.3s ease both;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  animation: fadeUp 0.8s 0.4s ease both;
}

.stat { display: flex; flex-direction: column; gap: 0.2rem; }

.stat-num {
  font-family: 'DM Serif Display', serif;
  font-size: 2.2rem;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.spacer { height: 1.5rem; }

.hero-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ── BUTTONS ─────────────────────────────────────────────────── */
.cta-group {
  display: flex;
  gap: 1rem;
  animation: fadeUp 0.8s 0.5s ease both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: var(--accent);
  color: #0a0a08;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary:hover { background: #d4b880; transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ── SECTIONS ────────────────────────────────────────────────── */
section {
  padding: 6rem 4rem;
  border-top: 1px solid var(--border);
}

.section-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-heading {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 3.5rem;
}

.section-heading em { color: var(--accent); font-style: italic; }

/* ── EXPERTISE ───────────────────────────────────────────────── */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.expertise-card {
  background: var(--surface);
  padding: 2.5rem 2rem;
  transition: background 0.2s;
  position: relative;
  overflow: hidden;
}

.expertise-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s;
}

.expertise-card:hover::before { transform: translateX(0); }
.expertise-card:hover { background: #141412; }

.expertise-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.expertise-desc { font-size: 0.875rem; color: var(--muted); line-height: 1.7; }

.expertise-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.25rem; }

.tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  color: var(--accent2);
  border: 1px solid rgba(126, 184, 176, 0.3);
  padding: 0.2rem 0.6rem;
  letter-spacing: 0.05em;
}

/* ── PROJECTS ────────────────────────────────────────────────── */
.projects-layout {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.project-row {
  display: grid;
  grid-template-columns: 2.5fr 1fr;
  background: var(--surface);
  transition: background 0.2s;
  cursor: pointer;
  overflow: hidden;
}

.project-row:hover { background: #141412; }

.project-main {
  padding: 2.5rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: start;
}

.project-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  color: var(--dim);
  margin-top: 0.4rem;
  letter-spacing: 0.1em;
}

.project-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.project-sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.project-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 1rem;
}

.project-outcomes { display: flex; gap: 2rem; flex-wrap: wrap; }
.outcome          { display: flex; flex-direction: column; gap: 0.1rem; }

.outcome-val {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  color: var(--accent);
}

.outcome-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-meta {
  padding: 2.5rem 2rem;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-year {
  font-family: 'DM Serif Display', serif;
  font-size: 2.5rem;
  color: var(--dim);
  line-height: 1;
}

.project-tools { display: flex; flex-direction: column; gap: 0.4rem; }

.tool-item {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.tool-item::before { content: '— '; color: var(--dim); }

/* ── SKILLS ──────────────────────────────────────────────────── */
.skills-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.skill-group    { margin-bottom: 2.5rem; }

.skill-group-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.skill-bar-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.75rem; }
.skill-name    { font-size: 0.82rem; color: #a09e98; width: 160px; flex-shrink: 0; }
.skill-track   { flex: 1; height: 1px; background: var(--dim); position: relative; }

.skill-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-pct {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  color: var(--muted);
  width: 2.5rem;
  text-align: right;
}

/* ── PUBLICATIONS ────────────────────────────────────────────── */
.pub-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.pub-item {
  background: var(--surface);
  padding: 1.75rem 2rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
  transition: background 0.2s;
}

.pub-item:hover { background: #141412; }

.pub-type {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.pub-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.pub-venue { font-size: 0.8rem; color: var(--muted); font-style: italic; }

.pub-year {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: var(--accent);
}

/* ── TIMELINE ────────────────────────────────────────────────── */
.timeline { position: relative; padding-left: 2rem; }

.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0.5rem; bottom: 0.5rem;
  width: 1px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-left: 2.5rem;
  padding-bottom: 3rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline-item.visible { opacity: 1; transform: translateX(0); }

.timeline-dot {
  position: absolute;
  left: -2rem; top: 0.45rem;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateX(-3.5px);
}

.timeline-year {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}

.timeline-role {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.timeline-company { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.75rem; }
.timeline-desc    { font-size: 0.82rem; color: #706e68; line-height: 1.7; max-width: 520px; }

/* ── CONTACT ─────────────────────────────────────────────────── */
.contact-section-wrap { padding-bottom: 4rem; }

.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.contact-big {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1.05;
  color: var(--text);
}

.contact-big em { color: var(--accent); font-style: italic; }

.contact-links { display: flex; flex-direction: column; gap: 1.5rem; }

.contact-link-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

.contact-link-row:hover .contact-link-label { color: var(--accent); }

.contact-link-type {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  width: 80px;
  flex-shrink: 0;
}

.contact-link-label { font-size: 0.95rem; color: var(--text); transition: color 0.2s; }

/* ── FOOTER ──────────────────────────────────────────────────── */
footer {
  padding: 2rem 4rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.footer-tagline {
  font-family: 'DM Serif Display', serif;
  font-size: 0.9rem;
  color: var(--dim);
  font-style: italic;
}

/* ── KEYFRAMES ───────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── SCROLL REVEAL ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: none; }