/* ---------- Tokens ---------- */
:root {
  --bg: #FAF8F3;
  --bg-alt: #F1ECE1;
  --surface: #FFFFFF;
  --text: #1E1B16;
  --text-muted: #6B6459;
  --border: #E6DFD1;
  --accent: #B8863C;
  --accent-dark: #96692A;
  --accent-light: #EFE0C4;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Fraunces', Georgia, serif;

  --container-width: 1100px;
  --radius: 6px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; margin: 0 0 0.5em; line-height: 1.15; }
p { margin: 0 0 1em; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-dark); }
.btn-outline { background: transparent; color: var(--accent-dark); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 248, 243, 0.9);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
}
.logo span { color: var(--accent); }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { font-size: 0.95rem; font-weight: 500; color: var(--text-muted); }
.main-nav a:hover { color: var(--text); }
.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: var(--radius);
}
.nav-cta:hover { background: var(--accent-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
  padding: 150px 0 90px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-dark);
  margin: 0 0 12px;
}
.hero-text h1 {
  font-size: clamp(2.6rem, 5vw, 4rem);
  margin-bottom: 20px;
}
.hero-lede {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 46ch;
}
.hero-actions { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.hero-portrait {
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--surface);
  box-shadow: 0 0 0 1px var(--border), 0 24px 48px -20px rgba(30, 27, 22, 0.25);
  aspect-ratio: 1;
  max-width: 380px;
  margin-left: auto;
}
.hero-portrait::before {
  content: '';
  display: block;
  padding-top: 100%;
}
.hero-portrait img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-heading { max-width: 640px; margin-bottom: 48px; }
.section-heading h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.section-intro { color: var(--text-muted); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 48px; }
.about-content .lede { font-size: 1.1rem; }
.facts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.fact {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.fact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-dark);
  margin-bottom: 6px;
}
.fact p { margin: 0; font-size: 0.95rem; }

.competencies { margin-top: 64px; }
.competency-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 16px;
}
.competency-list li {
  background: var(--surface);
  padding: 20px;
  font-weight: 600;
}
.competency-list li span {
  display: block;
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 4px;
}

/* ---------- Experience / Timeline ---------- */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.timeline-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-when span {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-dark);
  background: var(--accent-light);
  padding: 6px 12px;
  border-radius: 999px;
}
.timeline-content h3 { font-size: 1.3rem; margin-bottom: 4px; }
.timeline-role { font-family: var(--font-sans); font-weight: 500; font-size: 1rem; color: var(--text-muted); }
.timeline-subrole { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 14px; }
.timeline-content ul { display: flex; flex-direction: column; gap: 10px; }
.timeline-content li {
  position: relative;
  padding-left: 20px;
  font-size: 0.95rem;
}
.timeline-content li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.cv-download {
  margin-top: 48px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cv-note { color: var(--text-muted); font-size: 0.9rem; }

/* ---------- Projects ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.project-card:hover { box-shadow: 0 16px 32px -20px rgba(30,27,22,0.2); transform: translateY(-2px); }
.project-media { position: relative; }
.project-media img { aspect-ratio: 3 / 2; object-fit: cover; }
.project-tag {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(30,27,22,0.75);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.project-body { padding: 20px; }
.project-body h3 { font-size: 1.2rem; margin-bottom: 6px; }
.project-body p { color: var(--text-muted); font-size: 0.9rem; }
.project-link { font-weight: 600; color: var(--accent-dark); font-size: 0.9rem; }
.project-link.is-disabled { color: var(--text-muted); pointer-events: none; cursor: default; }

/* ---------- Photography ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.photo-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--border);
}
.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.photo-item:hover img {
  transform: scale(1.04);
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.contact-links { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.contact-links a { font-weight: 600; color: var(--accent-dark); }
.contact-links a:hover { text-decoration: underline; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.form-row input, .form-row textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--text);
  resize: vertical;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.form-status { margin-top: 14px; font-size: 0.9rem; color: var(--text-muted); }

/* ---------- Case Study ---------- */
.cs-hero { padding: 150px 0 56px; }
.cs-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.cs-back:hover { color: var(--accent-dark); }
.cs-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); }
.cs-hero-lede { font-size: 1.15rem; color: var(--text-muted); max-width: 62ch; margin-top: 16px; }

.cs-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 40px;
}
.cs-meta-item { background: var(--surface); padding: 18px 20px; }
.cs-meta-item span {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-dark);
  margin-bottom: 6px;
}
.cs-meta-item p { margin: 0; font-size: 0.95rem; font-weight: 500; }

.cs-cover {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin: 0 0 8px;
  max-height: 560px;
}
.cs-cover img {
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: cover;
}

.cs-body { padding: 24px 0 0; }
.cs-block {
  max-width: 720px;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}
.cs-block:first-child { padding-top: 0; }
.cs-block h2 { font-size: 1.6rem; margin-bottom: 16px; }
.cs-block p { color: var(--text-muted); font-size: 1.02rem; }
.cs-block p + p { margin-top: 14px; }

.cs-image-block { padding: 40px 0; }
.cs-image-block figure { margin: 0; }
.cs-image-block img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 640px;
  margin: 0 auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.cs-image-block figcaption {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.cs-image-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.cs-reflection {
  max-width: 720px;
  padding: 48px 0 64px;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--text);
}

.cs-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 40px 0 80px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.cs-nav-link { font-weight: 600; color: var(--accent-dark); }
.cs-nav-link:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: var(--accent-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-portrait { margin: 0 auto; max-width: 260px; order: -1; }
  .hero-text { text-align: center; }
  .hero-actions { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; }
  .about-grid .section-heading { margin-bottom: 0; }
  .competency-list { grid-template-columns: repeat(2, 1fr); }
  .timeline-item { grid-template-columns: 1fr; gap: 12px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 18px;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .main-nav.is-open { transform: translateY(0); opacity: 1; }
  .nav-toggle { display: flex; }
  .facts-grid { grid-template-columns: 1fr; }
  .competency-list { grid-template-columns: 1fr; }
  .cs-image-row { grid-template-columns: 1fr; }
  .cs-nav { flex-direction: column; align-items: flex-start; }
}
