/* ================================================================
   style.css — Buddy Alcock Portfolio
================================================================ */
 
 
/* ────────────────────────────────────────────────────────────────
   1. CSS VARIABLES
──────────────────────────────────────────────────────────────── */
:root {
  --cream:      #f7f4ef;
  --cream2:     #ede9e1;
  --parchment:  #e8e1d4;
  --ink:        #1a1814;
  --ink2:       #2e2b26;
  --mid:        #6b6560;
  --light:      #b0aa9f;
  --rule:       #d0c9bc;
  --accent:     #8b3a2a;
  --accent2:    #c4531f;
  --gold:       #b8943a;
}
 
 
/* ────────────────────────────────────────────────────────────────
   2. RESET & BASE
──────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
 
html { scroll-behavior: smooth; }
 
body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 18px;
  line-height: 1.75;
  overflow-x: hidden;
}
 
img {
  max-width: 100%;
  display: block;
}
 
a { color: inherit; }
 
 
/* ────────────────────────────────────────────────────────────────
   3. GRAIN OVERLAY
──────────────────────────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}
 
 
/* ────────────────────────────────────────────────────────────────
   4. SCROLL REVEAL ANIMATIONS
──────────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
 
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
 
 
/* ────────────────────────────────────────────────────────────────
   5. CUSTOM CURSOR
──────────────────────────────────────────────────────────────── */
.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transition: transform 0.15s ease;
  mix-blend-mode: multiply;
}
 
 
/* ────────────────────────────────────────────────────────────────
   6. NAVIGATION
──────────────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(247, 244, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
 
nav.scrolled { border-bottom-color: var(--rule); }
 
.nav-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: none;
}
 
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
 
.nav-links a {
  font-family: 'Karla', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.2s;
}
 
.nav-links a:hover { color: var(--accent); }
 
 
/* ────────────────────────────────────────────────────────────────
   7. HERO
──────────────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 120px 48px 80px;
  max-width: 1280px;
  margin: 0 auto;
  gap: 80px;
}
 
.hero-label {
  font-family: 'Karla', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
 
.hero-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}
 
h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(44px, 6vw, 86px);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 28px;
}
 
h1 em {
  font-style: italic;
  color: var(--accent);
}
 
.hero-bio {
  font-size: 15px;
  line-height: 1.8;
  color: var(--mid);
  max-width: 420px;
  margin-bottom: 40px;
  font-family: 'Karla', sans-serif;
  font-weight: 300;
}
 
.hero-ctas {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
 
.btn-primary {
  font-family: 'Karla', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--ink);
  padding: 13px 28px;
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: background 0.25s, border-color 0.25s;
}
 
.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
}
 
.btn-secondary {
  font-family: 'Karla', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
 
.btn-secondary:hover {
  color: var(--accent);
  border-color: var(--accent);
}
 
.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--rule);
}
 
.stat {
  padding: 28px 32px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
 
.stat:nth-child(2n) { border-right: none; }
.stat:nth-child(3), .stat:nth-child(4) { border-bottom: none; }
 
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 300;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 6px;
}
 
.stat-num sup {
  font-size: 18px;
  vertical-align: super;
}
 
.stat-label {
  font-family: 'Karla', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light);
}
 
 
/* ────────────────────────────────────────────────────────────────
   8. SECTION BASE
──────────────────────────────────────────────────────────────── */
.section-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 100px 48px;
}
 
.section-header {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 48px;
  align-items: baseline;
  border-top: 1px solid var(--rule);
  padding-top: 32px;
  margin-bottom: 64px;
}
 
.section-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--light);
}
 
h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 300;
  line-height: 1.15;
  color: var(--ink);
}
 
h2 em {
  font-style: italic;
  color: var(--accent);
}
 
 
/* ────────────────────────────────────────────────────────────────
   9. ABOUT
──────────────────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  align-items: start;
}
 
.about-text p {
  font-size: 19px;
  line-height: 1.85;
  color: var(--ink2);
  margin-bottom: 24px;
}
 
.about-text p:first-of-type:not(.lead)::first-letter {
  font-family: 'Cormorant Upright', serif;
  font-size: 72px;
  font-weight: 400;
  float: left;
  line-height: 0.8;
  margin-right: 8px;
  margin-top: 8px;
  color: var(--accent);
}
 
.about-text p.lead {
  font-size: 22px;
  font-weight: 400;
  font-style: italic;
  color: var(--mid);
  border-left: 2px solid var(--accent);
  padding-left: 24px;
  margin-bottom: 32px;
}
 
.about-aside {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
 
.aside-block {
  border-top: 1px solid var(--rule);
  padding-top: 20px;
}
 
.aside-label {
  font-family: 'Karla', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 12px;
}
 
.aside-block p {
  font-family: 'Karla', sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: var(--mid);
}
 
.skill-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
 
.skill-list li {
  font-family: 'Karla', sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
  border: 1px solid var(--rule);
  padding: 4px 12px;
}
 
 
/* ────────────────────────────────────────────────────────────────
   10. PROJECTS / WORK
──────────────────────────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--rule);
}
 
.project-card {
  background: var(--cream);
  padding: 44px 48px;
  text-decoration: none;
  color: inherit;
  transition: background 0.25s;
  position: relative;
  overflow: hidden;
}
 
.project-card::after {
  content: '→';
  position: absolute;
  right: 32px;
  top: 44px;
  font-family: 'Karla', sans-serif;
  font-size: 18px;
  color: var(--light);
  transition: color 0.2s, right 0.2s;
}
 
.project-card:hover { background: var(--cream2); }
.project-card:hover::after { color: var(--accent); right: 28px; }
 
.project-tag {
  font-family: 'Karla', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}
 
.project-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 14px;
}
 
.project-card p {
  font-family: 'Karla', sans-serif;
  font-size: 13px;
  line-height: 1.7;
  color: var(--mid);
}
 
.project-card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  background: var(--ink);
  color: var(--cream);
}
 
.project-card.featured:hover { background: var(--ink2); }
.project-card.featured .project-tag { color: var(--gold); }
.project-card.featured h3 { font-size: 34px; color: var(--cream); }
.project-card.featured p { color: var(--light); }
.project-card.featured::after { color: var(--gold); top: auto; bottom: 44px; }
 
.featured-meta {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  padding-left: 48px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
 
.featured-stat {
  margin-bottom: 28px;
}
 
.featured-stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  font-weight: 300;
  line-height: 1;
  color: var(--cream);
}
 
.featured-stat-label {
  font-family: 'Karla', sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247, 244, 239, 0.4);
}
 
 
/* ────────────────────────────────────────────────────────────────
   11. CV / TIMELINE
──────────────────────────────────────────────────────────────── */
.cv-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
 
.cv-column h3 {
  font-family: 'Karla', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
 
.timeline { display: flex; flex-direction: column; }
 
.timeline-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--rule);
}
 
.timeline-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
 
.timeline-year {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--light);
  padding-top: 4px;
  text-align: right;
}
 
.timeline-year.current {
  color: var(--accent);
  font-style: italic;
}
 
.timeline-role {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 4px;
  line-height: 1.3;
}
 
.timeline-place {
  font-family: 'Karla', sans-serif;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 8px;
  text-transform: uppercase;
}
 
.timeline-desc {
  font-family: 'Karla', sans-serif;
  font-size: 13px;
  line-height: 1.7;
  color: var(--mid);
}
 
 
/* ────────────────────────────────────────────────────────────────
   12. NOTES / BLOG
──────────────────────────────────────────────────────────────── */
.notes-intro {
  font-family: 'Karla', sans-serif;
  font-size: 14px;
  color: var(--mid);
  max-width: 500px;
  margin-bottom: 48px;
  line-height: 1.8;
}
 
.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--rule);
}
 
.note-card {
  background: var(--cream);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
  cursor: pointer;
}
 
.note-card:hover { background: var(--cream2); }
 
.note-image {
  object-fit: cover;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--parchment);
  display: flex;
  align-items: center;
  justify-content: center;
}
 
.note-image-placeholder {
  font-family: 'Karla', sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light);
}
 
.note-image-real {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
 
.note-body { padding: 24px 28px 28px; }
 
.note-date {
  font-family: 'Karla', sans-serif;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 8px;
}
 
.note-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 10px;
}
 
.note-card p {
  font-family: 'Karla', sans-serif;
  font-size: 13px;
  color: var(--mid);
  line-height: 1.65;
}
 
.note-tag {
  display: inline-block;
  font-family: 'Karla', sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--rule);
  padding: 3px 10px;
  margin-bottom: 12px;
}
 
 
/* ────────────────────────────────────────────────────────────────
   13. CONTACT
──────────────────────────────────────────────────────────────── */
#contact {
  background: var(--ink);
  color: var(--cream);
}
 
#contact .section-header { border-top-color: rgba(255, 255, 255, 0.1); }
#contact .section-num { color: rgba(247, 244, 239, 0.2); }
#contact h2 { color: var(--cream); }
 
.contact-simple {
  max-width: 640px;
}
 
.contact-intro {
  font-family: 'Karla', sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(247, 244, 239, 0.55);
  margin-bottom: 40px;
}
 
.contact-links-bar {
  display: flex;
  flex-direction: column;
}
 
.contact-link {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  color: var(--cream);
  transition: color 0.2s;
}
 
.contact-link:first-child { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.contact-link:hover { color: var(--gold); }
 
.contact-link-label {
  font-family: 'Karla', sans-serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 244, 239, 0.3);
  min-width: 80px;
}
 
.contact-link-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 300;
  flex: 1;
}
 
.contact-link-arrow {
  font-family: 'Karla', sans-serif;
  color: rgba(247, 244, 239, 0.2);
  font-size: 16px;
  transition: color 0.2s, transform 0.2s;
  margin-left: auto;
}
 
.contact-link:hover .contact-link-arrow {
  color: var(--gold);
  transform: translateX(4px);
}
 
 
/* ────────────────────────────────────────────────────────────────
   14. FOOTER
──────────────────────────────────────────────────────────────── */
footer {
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 28px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
 
footer p {
  font-family: 'Karla', sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(247, 244, 239, 0.2);
}
 
 
/* ────────────────────────────────────────────────────────────────
   15. RESPONSIVE — TABLET (max 900px)
──────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
 
  /* Hero */
  #hero {
    grid-template-columns: 1fr;
    padding: 100px 28px 60px;
    gap: 48px;
    min-height: auto;
  }
 
  .hero-stats { display: none; }
 
  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
 
  /* Projects */
  .projects-grid { grid-template-columns: 1fr; }
 
  .project-card.featured {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }
 
  .featured-meta {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 28px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
  }
 
  .featured-stat {
    margin-bottom: 0;
    flex: 1;
    min-width: 120px;
  }
 
  .featured-stat-num { font-size: 28px; }
 
  /* CV */
  .cv-layout { grid-template-columns: 1fr; gap: 48px; }
 
  /* Notes */
  .notes-grid { grid-template-columns: 1fr 1fr; }
 
  /* Section padding */
  .section-wrap { padding: 80px 28px; }
 
  nav { padding: 18px 28px; }
  .nav-links { gap: 20px; }
}
 
 
/* ────────────────────────────────────────────────────────────────
   16. RESPONSIVE — MOBILE (max 600px)
──────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
 
  /* Nav — show only last two links to save space */
  .nav-links li:not(:nth-last-child(-n+2)) { display: none; }
  .nav-links { gap: 16px; }
  nav { padding: 16px 20px; }
 
  /* Hero */
  #hero { padding: 88px 20px 48px; }
 
  h1 { font-size: clamp(36px, 10vw, 52px); }
 
  .hero-bio { font-size: 14px; }
 
  .hero-ctas { flex-direction: column; align-items: flex-start; gap: 16px; }
 
  /* Section headers — remove side number */
  .section-header {
    grid-template-columns: 1fr;
    gap: 8px;
  }
 
  .section-num { display: none; }
 
  /* Section padding */
  .section-wrap { padding: 60px 20px; }
 
  /* About drop cap — too large on small screens */
  .about-text p:first-of-type:not(.lead)::first-letter {
    font-size: 52px;
  }
 
  /* Projects featured card */
  .project-card { padding: 28px 24px; }
  .project-card.featured { padding: 28px 24px; }
 
  .featured-meta {
    flex-direction: column;
    gap: 16px;
  }
 
  .featured-stat-num { font-size: 24px; }
 
  /* Timeline — tighter layout */
  .timeline-item {
    grid-template-columns: 60px 1fr;
    gap: 16px;
  }
 
  .timeline-year { font-size: 12px; }
 
  /* Notes — single column */
  .notes-grid { grid-template-columns: 1fr; }
 
  /* Contact */
  .contact-link {
    gap: 12px;
  }
 
  .contact-link-val { font-size: 16px; }
 
  /* Footer */
  footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 24px 20px;
  }
}