/* laurawarjan.com — v2 "Agents in production" */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white: #fafaf8;
  --ink: #0e0e0c;
  --mid: #6b6b67;
  --accent: #c8a96e;
  --accent-dim: #e8dcc8;
  --rule: rgba(14,14,12,0.1);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --mono: 'DM Mono', monospace;
  --sans: 'Outfit', sans-serif;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── CURSOR (pointer devices only) ─── */
.cursor, .cursor-ring { display: none; }
@media (hover: hover) and (pointer: fine) {
  body.fancy-cursor { cursor: none; }
  body.fancy-cursor .cursor {
    display: block;
    width: 8px; height: 8px;
    background: var(--ink);
    border-radius: 50%;
    position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 9999;
    transition: transform 0.12s var(--ease), background 0.2s;
    transform: translate(-50%, -50%);
  }
  body.fancy-cursor .cursor.hover { transform: translate(-50%, -50%) scale(3.5); background: var(--accent); }
  body.fancy-cursor .cursor-ring {
    display: block;
    width: 32px; height: 32px;
    border: 1px solid var(--ink);
    border-radius: 50%;
    position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.35s var(--ease), border-color 0.2s, width 0.3s, height 0.3s;
  }
  body.fancy-cursor .cursor-ring.hover { width: 56px; height: 56px; border-color: var(--accent); }
}

/* ─── TYPOGRAPHY ─── */
h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 1.1; }
h1 { font-size: clamp(3.2rem, 8vw, 7.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
p { max-width: 62ch; }
a { color: inherit; text-decoration: none; }
em { font-family: var(--serif); font-style: italic; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(1.5rem, 5vw, 5rem); }

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.6rem clamp(1.5rem, 5vw, 5rem);
  display: flex; align-items: center; justify-content: space-between;
}
nav::after {
  content: ''; position: absolute; inset: 0;
  background: var(--white); opacity: 0; transition: opacity 0.4s; z-index: -1;
}
nav.scrolled::after { opacity: 0.94; backdrop-filter: blur(12px); }
nav.scrolled { border-bottom: 1px solid var(--rule); }

.nav-logo { font-family: var(--serif); font-size: 1.1rem; letter-spacing: 0.08em; font-weight: 400; }

.nav-links { display: flex; gap: 2.2rem; list-style: none; }
.nav-links a {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--mid); transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--ink); padding: 0.4rem 0;
}

/* ─── HERO ─── */
#hero {
  min-height: 100vh;
  display: grid; grid-template-rows: 1fr auto;
  padding-top: 8rem; padding-bottom: 4rem;
  position: relative; overflow: hidden;
}
.hero-content {
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 clamp(1.5rem, 5vw, 5rem);
  position: relative; z-index: 2;
}
.hero-tag {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--mid); margin-bottom: 2.5rem;
  display: flex; align-items: center; gap: 1rem;
  opacity: 0; animation: fadeUp 0.8s var(--ease) 0.2s forwards;
}
.hero-tag::before { content: ''; width: 40px; height: 1px; background: var(--accent); }

.hero-headline { opacity: 0; animation: fadeUp 1s var(--ease) 0.4s forwards; margin-bottom: 2rem; }
.hero-headline em { color: var(--mid); }

.hero-sub {
  font-size: 1.05rem; color: var(--mid); max-width: 56ch; margin-bottom: 3.5rem;
  opacity: 0; animation: fadeUp 1s var(--ease) 0.6s forwards; line-height: 1.75;
}
.hero-sub strong { color: var(--ink); font-weight: 400; }

.hero-ctas { display: flex; gap: 1.5rem; flex-wrap: wrap; opacity: 0; animation: fadeUp 1s var(--ease) 0.8s forwards; }

.btn {
  padding: 0.9rem 2rem;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--ink);
  transition: background 0.25s, color 0.25s;
  display: inline-block; background: none; cursor: pointer;
}
.btn:hover { background: var(--ink); color: var(--white); }
.btn-ghost { border-color: var(--rule); color: var(--mid); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: transparent; }

.hero-number {
  position: absolute; right: clamp(1.5rem, 5vw, 5rem); bottom: 5rem;
  font-family: var(--serif); font-size: clamp(7rem, 15vw, 15rem); font-weight: 300;
  color: transparent; -webkit-text-stroke: 1px var(--accent-dim);
  line-height: 1; user-select: none;
  opacity: 0; animation: fadeIn 1.5s var(--ease) 1s forwards;
}

.hero-scroll {
  display: flex; align-items: center; gap: 1rem;
  padding: 0 clamp(1.5rem, 5vw, 5rem);
  opacity: 0; animation: fadeIn 1s var(--ease) 1.4s forwards;
}
.hero-scroll span {
  font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--mid);
}
.scroll-line { width: 48px; height: 1px; background: var(--mid); position: relative; overflow: hidden; }
.scroll-line::after {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: var(--accent); animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0% { left: -100%; } 100% { left: 100%; } }

/* ─── SHARED SECTION BITS ─── */
.section-divider { width: 100%; height: 1px; background: var(--rule); }
.section-number {
  font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.18em;
  color: var(--accent); margin-bottom: 1rem;
}
section { padding: clamp(5rem, 10vw, 10rem) 0; }

.section-header { margin-bottom: 4rem; }
.section-header h2 { margin-bottom: 1.5rem; }
.section-header p { color: var(--mid); font-size: 1.05rem; line-height: 1.8; }

/* ─── WORK ─── */
.case-featured {
  border: 1px solid var(--rule);
  display: grid; grid-template-columns: 1.25fr 1fr;
  margin-bottom: 2rem; overflow: hidden;
}
.case-featured-content { padding: clamp(2rem, 4vw, 4rem); border-right: 1px solid var(--rule); }
.case-tag {
  font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.6rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.case-tag::before { content: '●'; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.case-featured-content h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 1.25rem; line-height: 1.2; }
.case-featured-content p { color: var(--mid); font-size: 0.98rem; line-height: 1.8; margin-bottom: 1.25rem; max-width: 100%; }
.case-featured-content p strong { color: var(--ink); font-weight: 400; }

.case-visual {
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  padding: 3rem; position: relative; overflow: hidden; min-height: 360px;
}
.case-visual::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(200,169,110,0.15) 0%, transparent 70%);
}
.case-visual-inner { text-align: center; position: relative; z-index: 2; }
.case-visual-value {
  font-family: var(--serif); font-size: clamp(3.4rem, 6vw, 5.5rem);
  color: var(--white); font-style: italic; line-height: 1.05; margin-bottom: 1rem;
}
.case-visual-sub {
  font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent);
}
.case-visual-note {
  margin-top: 2.2rem; font-family: var(--mono); font-size: 0.62rem;
  letter-spacing: 0.12em; color: rgba(255,255,255,0.4); text-transform: uppercase;
}

.case-detail { list-style: none; margin: 1.6rem 0 0; border-top: 1px solid var(--rule); }
.case-detail li {
  display: grid; grid-template-columns: 120px 1fr; gap: 1.5rem;
  padding: 0.9rem 0; border-bottom: 1px solid var(--rule);
  font-size: 0.9rem; color: var(--mid); line-height: 1.65;
}
.case-detail li span {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); padding-top: 0.25rem;
}

.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.case-mini { padding: 2.2rem; border: 1px solid var(--rule); transition: border-color 0.3s; display: flex; flex-direction: column; }
.case-mini:hover { border-color: var(--accent); }
.case-mini-badge {
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--mid); margin-bottom: 1.1rem; padding: 0.3rem 0.6rem;
  border: 1px solid var(--rule); display: inline-block; align-self: flex-start;
}
.case-mini h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.case-mini p { color: var(--mid); font-size: 0.9rem; line-height: 1.7; max-width: 100%; }
.case-mini .case-number { font-family: var(--serif); font-size: 2rem; color: var(--accent); margin-bottom: 0.4rem; }

.foundation {
  margin-top: 4rem; padding-top: 2.5rem; border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: auto 1fr; gap: 3rem; align-items: start;
}
.foundation-label {
  font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--mid); padding-top: 0.3rem; white-space: nowrap;
}
.foundation p { color: var(--mid); font-size: 0.95rem; line-height: 1.8; max-width: 75ch; }
.foundation p strong { color: var(--ink); font-weight: 400; }

/* ─── LAB (dark) ─── */
#lab { background: var(--ink); color: var(--white); }
#lab .section-header h2 { color: var(--white); }
#lab .section-header p { color: rgba(255,255,255,0.55); }

.lab-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid rgba(255,255,255,0.1); }
.lab-card {
  padding: 2.8rem 2.5rem;
  border-right: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.3s; position: relative; overflow: hidden;
}
.lab-card:nth-child(2n) { border-right: none; }
.lab-card:nth-last-child(-n+2) { border-bottom: none; }
.lab-card::before {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--accent); transition: width 0.4s var(--ease);
}
.lab-card:hover::before { width: 100%; }
.lab-card:hover { background: rgba(255,255,255,0.03); }

.lab-status {
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1.4rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.lab-status.live::before { content: '●'; animation: pulse 2s ease-in-out infinite; }
.lab-status.building::before { content: '◐'; }
.lab-status.built::before { content: '○'; }
.lab-card h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 0.9rem; font-weight: 300; }
.lab-card p { color: rgba(255,255,255,0.5); font-size: 0.9rem; line-height: 1.75; max-width: 100%; }
.lab-card p strong { color: rgba(255,255,255,0.8); font-weight: 400; }
.lab-stack {
  margin-top: 1.4rem; font-family: var(--mono); font-size: 0.62rem;
  letter-spacing: 0.1em; color: rgba(255,255,255,0.35); text-transform: uppercase;
}
.lab-link {
  margin-top: 1rem; display: inline-block;
  font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); border-bottom: 1px solid rgba(200,169,110,0.3); padding-bottom: 2px;
}
.lab-link:hover { border-color: var(--accent); }

/* ─── WRITING ─── */
#writing { background: #f5f4f0; }
.writing-list { border-top: 1px solid var(--rule); }
.writing-item {
  display: grid; grid-template-columns: 160px 1fr auto; gap: 3rem; align-items: start;
  padding: 2.5rem 0; border-bottom: 1px solid var(--rule);
}
.writing-item .writing-meta { display: flex; flex-direction: column; gap: 0.6rem; }
.writing-date { font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.12em; color: var(--mid); }
.writing-category {
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); background: rgba(200,169,110,0.1); padding: 0.2rem 0.5rem; align-self: flex-start;
}
.writing-item h3 { font-size: 1.45rem; margin-bottom: 0.7rem; transition: color 0.2s; }
.writing-item:hover h3 { color: var(--mid); }
.writing-item p { color: var(--mid); font-size: 0.92rem; line-height: 1.7; }
.writing-arrow { font-family: var(--mono); color: var(--accent); font-size: 1rem; padding-top: 0.4rem; }
.writing-soon {
  padding: 2rem 0 0; color: var(--mid); font-size: 0.9rem;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em;
}

/* ─── ABOUT ─── */
.about-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 6rem; align-items: start; }
.about-left h2 { margin-bottom: 2rem; }
.about-left .accent-line { width: 48px; height: 2px; background: var(--accent); margin-bottom: 2.5rem; }
.about-left p { color: var(--mid); font-size: 1.05rem; line-height: 1.8; }
.about-right { padding-top: 1rem; }
.about-right p { font-size: 1.12rem; line-height: 1.9; margin-bottom: 1.5rem; color: var(--ink); max-width: 70ch; }
.about-right p:last-of-type { margin-bottom: 0; }

.stat-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
  margin-top: 4rem; border-top: 1px solid var(--rule); padding-top: 2.5rem;
}
.stat { padding-right: 1.5rem; }
.stat-value { font-family: var(--serif); font-size: 2.6rem; font-weight: 300; line-height: 1; margin-bottom: 0.4rem; }
.stat-value span { color: var(--accent); }
.stat-label {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--mid);
}

/* ─── CONTACT (dark) ─── */
#contact { background: var(--ink); color: var(--white); position: relative; overflow: hidden; }
#contact::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 70vw; height: 70vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,169,110,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: start; }
.contact-left h2 { color: var(--white); margin-bottom: 2rem; }
.contact-left p { color: rgba(255,255,255,0.55); font-size: 1.05rem; line-height: 1.8; margin-bottom: 2.5rem; }
.contact-left p strong { color: rgba(255,255,255,0.85); font-weight: 400; }
.contact-links { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-link-item {
  display: flex; align-items: center; gap: 1.5rem;
  padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: padding-left 0.3s var(--ease);
}
.contact-link-item:hover { padding-left: 0.5rem; }
.contact-link-type {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--accent); width: 80px;
}
.contact-link-value { color: var(--white); font-size: 0.95rem; }

.contact-right { display: flex; flex-direction: column; gap: 1rem; }
.contact-form-field label {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255,255,255,0.35); display: block; margin-bottom: 0.5rem;
}
.contact-form-field input,
.contact-form-field textarea {
  width: 100%; background: transparent; border: none;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  color: var(--white); font-family: var(--sans); font-size: 1rem; font-weight: 300;
  padding: 0.75rem 0; outline: none; transition: border-color 0.3s;
}
.contact-form-field input:focus,
.contact-form-field textarea:focus { border-color: var(--accent); }
.contact-form-field textarea { resize: none; height: 96px; }
.contact-form-field input::placeholder,
.contact-form-field textarea::placeholder { color: rgba(255,255,255,0.2); }
.btn-light { border-color: rgba(255,255,255,0.3); color: var(--white); margin-top: 1rem; align-self: flex-start; }
.btn-light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.form-status { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; color: var(--accent); min-height: 1.2em; }

/* ─── FOOTER ─── */
footer {
  padding: 2.5rem clamp(1.5rem, 5vw, 5rem);
  border-top: 1px solid rgba(255,255,255,0.08);
  background: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
footer p {
  font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.3); max-width: none;
}

/* ─── ARTICLE (blog pages) ─── */
.article-wrap { max-width: 720px; margin: 0 auto; padding: 10rem clamp(1.5rem, 5vw, 3rem) 6rem; }
.article-meta { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.article-wrap h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin-bottom: 2.5rem; }
.article-wrap h2 { font-size: 1.7rem; margin: 3rem 0 1.2rem; }
.article-body p { font-size: 1.08rem; line-height: 1.9; color: var(--ink); margin-bottom: 1.6rem; max-width: none; }
.article-body p.lede { font-size: 1.25rem; font-family: var(--serif); color: var(--mid); }
.article-body blockquote {
  border-left: 2px solid var(--accent); padding-left: 1.5rem; margin: 2rem 0;
  font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--mid); line-height: 1.7;
}
.article-body strong { font-weight: 400; }
.article-footer { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--rule); }
.article-footer p { color: var(--mid); font-size: 0.9rem; }
.back-link {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--mid); border-bottom: 1px solid var(--rule); padding-bottom: 2px;
}
.back-link:hover { color: var(--ink); border-color: var(--ink); }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-tag, .hero-headline, .hero-sub, .hero-ctas, .hero-number, .hero-scroll { opacity: 1; }
  .reveal { opacity: 1; transform: none; }
  body.fancy-cursor { cursor: auto; }
  body.fancy-cursor .cursor, body.fancy-cursor .cursor-ring { display: none; }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .about-grid, .case-featured, .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .case-featured-content { border-right: none; border-bottom: 1px solid var(--rule); }
  .case-grid { grid-template-columns: 1fr; }
  .case-visual { min-height: 280px; }
  .foundation { grid-template-columns: 1fr; gap: 1rem; }
  .lab-grid { grid-template-columns: 1fr; }
  .lab-card { border-right: none !important; }
  .lab-card:nth-last-child(2) { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .writing-item { grid-template-columns: 1fr; gap: 1rem; }
  .writing-item .writing-meta { flex-direction: row; align-items: center; }
  .stat-row { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--rule);
    padding: 1rem clamp(1.5rem, 5vw, 5rem) 1.5rem;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 0.7rem 0; border-bottom: 1px solid var(--rule); }
  .nav-links li:last-child { border-bottom: none; }
  nav { background: var(--white); }
  .hero-number { display: none; }
  .case-detail li { grid-template-columns: 1fr; gap: 0.3rem; }
  .stat-row { grid-template-columns: 1fr 1fr; }
}
