@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,600&family=DM+Mono:wght@300;400;500&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --cream: #F5F0E8;
  --sand: #E8DFC8;
  --linen: #EDE5D4;
  --terracotta: #C1622F;
  --terracotta-light: #D4784A;
  --umber: #5C3D2E;
  --clay: #A0714F;
  --ink: #1A1209;
  --mist: #F9F6F0;
  --rule: #D4C9B0;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-mono: 'DM Mono', monospace;
  --font-body: 'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ─────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: 64px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--terracotta); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--ink);
  transition: all 0.3s;
}

/* ── PAGE WRAPPER ────────────────────────────── */
.page { padding-top: 64px; min-height: 100vh; }

/* ── HERO ────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 64px);
  border-bottom: 1px solid var(--rule);
}

.hero-left {
  padding: 5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--rule);
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1.5rem;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.0;
  color: var(--ink);
  margin-bottom: 1rem;
}

.hero-name em {
  font-style: italic;
  color: var(--terracotta);
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 400;
  font-style: italic;
  color: var(--clay);
  line-height: 1.5;
  max-width: 420px;
  margin-bottom: 3rem;
  border-left: 3px solid var(--terracotta);
  padding-left: 1.25rem;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--terracotta);
  color: var(--cream);
}

.btn-primary:hover {
  background: var(--umber);
}

.btn-secondary {
  background: transparent;
  color: var(--terracotta);
  border: 1px solid var(--terracotta);
}

.btn-secondary:hover {
  background: var(--terracotta);
  color: var(--cream);
}

.hero-right {
  background: var(--linen);
  padding: 5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-right::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('../Derek_Flower_Face.png') center top / cover no-repeat;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

.hero-photo-block {
  position: relative;
  z-index: 1;
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}

.hero-photo {
  width: 220px;
  height: 260px;
  object-fit: cover;
  object-position: center top;
  border: 4px solid var(--sand);
  box-shadow: 8px 8px 0 var(--terracotta);
}

.hero-intro-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.hero-intro-text {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.8;
  color: var(--umber);
  position: relative;
  z-index: 1;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 3rem;
  border-top: 1px solid var(--rule);
  position: relative;
  z-index: 1;
}

.hero-stat {
  padding: 1.5rem 0;
  padding-right: 1rem;
  border-right: 1px solid var(--rule);
}

.hero-stat:last-child { border-right: none; padding-right: 0; padding-left: 1rem; }
.hero-stat:nth-child(2) { padding-left: 1rem; }

.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--terracotta);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clay);
  margin-top: 0.3rem;
}

/* ── SECTION COMMONS ─────────────────────────── */
.section {
  padding: 6rem 0;
  border-bottom: 1px solid var(--rule);
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 3rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.section-number {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--terracotta);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
}

.section-rule {
  flex: 1;
  height: 1px;
  background: var(--rule);
}

/* ── ABOUT PAGE ──────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5rem;
  align-items: start;
}

.about-sidebar {
  position: sticky;
  top: 100px;
}

.about-photo {
  width: 100%;
  max-width: 280px;
  height: 340px;
  object-fit: cover;
  object-position: center top;
  border: 4px solid var(--sand);
  box-shadow: 8px 8px 0 var(--terracotta);
  margin-bottom: 2rem;
  display: block;
}

.about-sidebar-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 1rem;
}

.about-sidebar-name {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 2rem;
}

.about-sidebar-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.about-sidebar-links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--terracotta);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}

.about-sidebar-links a:hover { color: var(--umber); }

.about-body p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--umber);
  margin-bottom: 1.5rem;
}

.about-body p:last-child { margin-bottom: 0; }

.interests-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: 4rem;
}

.interest-item {
  background: var(--mist);
  padding: 1.5rem;
}

.interest-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.interest-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clay);
}

/* ── RESUME PAGE ─────────────────────────────── */
.resume-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 5rem;
  align-items: start;
}

.resume-sidebar {
  position: sticky;
  top: 100px;
}

.competency-group {
  margin-bottom: 2.5rem;
}

.competency-group-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
}

.competency-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.3rem 0.6rem;
  background: var(--sand);
  color: var(--umber);
  letter-spacing: 0.05em;
}

.education-block {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

.edu-degree {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.edu-school {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--clay);
  letter-spacing: 0.05em;
}

.timeline {
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--rule);
}

.timeline-item {
  padding-left: 2.5rem;
  padding-bottom: 3.5rem;
  position: relative;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -4px;
  top: 6px;
  width: 9px;
  height: 9px;
  background: var(--terracotta);
  border-radius: 50%;
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--clay);
}

.timeline-company {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--terracotta);
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.timeline-location {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--clay);
  margin-bottom: 1rem;
}

.timeline-body {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--umber);
}

/* ── PROJECTS PAGE ───────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.project-card {
  background: var(--mist);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  transition: background 0.2s;
}

.project-card:hover { background: var(--sand); }

.project-card-type {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1rem;
}

.project-card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.project-card-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--clay);
  flex: 1;
  margin-bottom: 1.5rem;
}

.project-card-link {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s;
}

.project-card-link:hover { color: var(--umber); }

.placeholder-note {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--clay);
  background: var(--sand);
  padding: 0.4rem 0.75rem;
  display: inline-block;
  margin-bottom: 1rem;
}

/* ── MOVIES PAGE ─────────────────────────────── */
.movies-header-block {
  background: var(--umber);
  color: var(--cream);
  padding: 5rem 3rem;
  margin-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

.movies-header-block::before {
  content: '▶';
  position: absolute;
  right: 3rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12rem;
  color: rgba(255,255,255,0.04);
  line-height: 1;
}

.movies-header-block .section-number { color: var(--terracotta-light); }
.movies-header-block .section-title { color: var(--cream); }
.movies-header-block .section-rule { background: rgba(255,255,255,0.15); }

.movies-desc {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: rgba(245,240,232,0.75);
  max-width: 600px;
  line-height: 1.7;
  margin-top: 1.5rem;
}

.movies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.movie-card {
  background: var(--mist);
  padding: 2rem;
  transition: background 0.2s;
}

.movie-card:hover { background: var(--sand); }

.movie-card-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--terracotta);
  margin-bottom: 0.75rem;
}

.movie-card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.movie-card-year {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--clay);
  margin-bottom: 0.75rem;
}

.movie-card-desc {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--umber);
}

.movies-cta {
  margin-top: 3rem;
  padding: 2.5rem;
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.movies-cta-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--umber);
}

/* ── CONTACT PAGE ────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 6rem;
  align-items: start;
}

.contact-intro {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--umber);
  line-height: 1.8;
  margin-bottom: 3rem;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 0.25rem;
}

.contact-item-value {
  font-size: 0.95rem;
  color: var(--umber);
}

.contact-item-value a {
  color: var(--terracotta);
  text-decoration: none;
}

.contact-item-value a:hover { color: var(--umber); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
}

.form-input,
.form-textarea {
  background: var(--mist);
  border: 1px solid var(--rule);
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  border-radius: 0;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--terracotta);
}

.form-textarea {
  resize: vertical;
  min-height: 160px;
}

.form-success {
  display: none;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--terracotta);
  padding: 2rem;
  border: 1px solid var(--rule);
  text-align: center;
}

/* ── FOOTER ──────────────────────────────────── */
footer {
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid var(--rule);
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--clay);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clay);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--terracotta); }

/* ── ANIMATIONS ──────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 900px) {
  nav { padding: 0 1.5rem; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--rule);
    padding: 1.5rem;
    gap: 1.25rem;
  }
  .nav-hamburger { display: flex; }

  .hero { grid-template-columns: 1fr; }
  .hero-left { border-right: none; border-bottom: 1px solid var(--rule); padding: 3rem 1.5rem; }
  .hero-right { padding: 3rem 1.5rem; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }

  .section-inner { padding: 0 1.5rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-sidebar { position: static; }
  .resume-layout { grid-template-columns: 1fr; gap: 2rem; }
  .resume-sidebar { position: static; }
  .projects-grid { grid-template-columns: 1fr; }
  .movies-grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
  .interests-grid { grid-template-columns: repeat(2, 1fr); }
  footer { padding: 2rem 1.5rem; flex-direction: column; align-items: flex-start; }
  .movies-header-block { padding: 3rem 1.5rem; }
}

@media (max-width: 600px) {
  .hero-name { font-size: 2.8rem; }
  .movies-grid { grid-template-columns: 1fr; }
  .interests-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stat { border-right: none; border-bottom: 1px solid var(--rule); padding: 1rem 0; }
  .hero-stat:last-child { border-bottom: none; }
}
