@font-face {
  font-family: "Playfair Display";
  src: url("/fonts/playfair-display-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("/fonts/playfair-display-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Raleway";
  src: url("/fonts/raleway-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Raleway";
  src: url("/fonts/raleway-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Raleway";
  src: url("/fonts/raleway-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #FAFAFA;
  --text-main: #2C2C2C;
  --text-muted: #555555;

  --sage-100: #EBF0EA;
  --sage-200: #D4DCD1;
  --sage-500: #8FA18A;
  --sage-700: #6B7D67;

  --white: #FFFFFF;
  --border: rgba(0, 0, 0, 0.08);

  --radius: 12px;
  --container-width: 1140px;

  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "Raleway", system-ui, sans-serif;

  --fs-h1: clamp(2.5rem, 5vw, 4rem);
  --fs-h2: clamp(1.8rem, 3.5vw, 2.5rem);
  --fs-body: clamp(1rem, 1.1vw, 1.125rem);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--sage-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.btn:focus-visible { border-radius: 50px; }
.nav .nav-pill:focus-visible { border-radius: 20px; }

h1, h2, h3 {
  font-family: var(--font-heading);
  margin: 0 0 0.8em 0;
  line-height: 1.15;
  color: #1a1a1a;
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-h1);
  font-weight: 600;
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--fs-h2);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

.container {
  width: min(var(--container-width), 100% - 40px);
  margin-inline: auto;
}

.mt-20 { margin-top: 20px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }

.text-center { text-align: center; }

.measure-center {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.list-intro {
  margin-top: 24px;
  font-weight: 600;
}

.arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.text-link:hover .arrow,
.btn:hover .arrow,
.icon-link:hover .arrow {
  transform: translateX(4px);
}

.lede-text {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.5;
}

.text-block-muted {
  max-width: 800px;
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.text-block-muted.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.contact-links-inline {
  margin-top: 32px;
  color: var(--sage-700);
  font-weight: 600;
}

.sep-dot {
  display: inline-block;
  margin: 0 10px;
  opacity: 0.5;
}

.section-head { max-width: 900px; margin-bottom: 50px; }
.section-head.tight { margin-bottom: 30px; }

.quote-featured {
  position: relative;
  padding-left: 44px;
  margin: 28px 0;
}

.quote-featured::before {
  content: "“";
  position: absolute;
  left: 0;
  top: -8px;
  font-family: var(--font-heading);
  font-size: 4.8rem;
  line-height: 1;
  color: var(--sage-200);
}

.quote-featured p {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--sage-700);
  margin: 0;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.delay-100 { transition-delay: 0.1s; }

.no-js .fade-in {
  opacity: 1 !important;
  transform: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.1rem;
}

.brand-home {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.brand-link:hover { color: var(--sage-500); }

.brand-mark {
  width: 24px;
  height: 24px;
  background: none;
  display: block;
}

.brand-sep {
  color: var(--sage-500);
  font-weight: 400;
  user-select: none;
}

.nav { display: flex; gap: 24px; align-items: center; }
.nav a { font-size: 0.95rem; font-weight: 500; padding: 6px 0; }
.nav a:hover { color: var(--sage-500); }

.nav .nav-pill {
  position: relative;
  padding: 6px 16px;
  background-color: var(--sage-100);
  border-radius: 20px;
  color: var(--sage-700);
  border: 1px solid transparent;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.nav .nav-pill:hover { background-color: var(--sage-200); }

.nav .nav-pill.nav-pill-dark {
  background-color: var(--sage-500);
  color: #fff;
  border: 1px solid transparent;
}

.nav .nav-pill.nav-pill-dark:hover {
  background-color: var(--sage-700);
  color: #fff;
}

.nav-toggle { display: none; }

.section { padding: clamp(60px, 8vw, 100px) 0; }
section { scroll-margin-top: 80px; }
.section-soft { background: linear-gradient(to bottom, var(--white), var(--sage-100)); }
.section-sage { background-color: var(--sage-100); }

.subhead {
  display: block;
  font-family: "Raleway", sans-serif;
  font-size: 1.25rem;
  line-height: 1.5;
  font-weight: 400;
  color: #666666;
  margin-top: 12px;
}

.hero { padding: clamp(60px, 10vw, 100px) 0; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero-title {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 16px 0 8px;
  color: var(--text);
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sage-500);
  margin-bottom: 16px;
}

.hero-lede {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  background-color: var(--text-main);
  color: var(--white);
  border: 1px solid var(--text-main);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn-sage {
  background-color: var(--sage-500);
  color: #fff;
  border: 1px solid transparent;
}

.btn-sage:hover { background-color: var(--sage-700); }

.btn-outline {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid #ccc;
}

.btn-outline:hover {
  background-color: var(--white);
  border-color: var(--text-main);
}

.btn-outline-dark {
  border-color: var(--text-main);
  color: var(--text-main);
}

.btn-outline-dark:hover {
  background-color: var(--text-main);
  color: var(--white);
}

.btn-white-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  background: white;
  color: var(--sage-700);
  border: 2px solid white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn-white-outline:hover {
  background-color: var(--sage-100);
  border-color: var(--sage-100);
}

.hero-image img {
  border-radius: var(--radius);
  box-shadow: 16px 16px 0 var(--sage-500);
  transition: box-shadow 0.3s ease;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
  grid-template-areas: "copy media";
}

.split-copy { grid-area: copy; min-width: 0; }
.split-media { grid-area: media; min-width: 0; }
.split.split-reverse { grid-template-areas: "media copy"; }
.split-copy p { margin: 0 0 16px 0; }

.profile-quote {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  height: 100%;
}

.quote-text {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--sage-700);
  line-height: 1.4;
  margin: 0 0 16px 0;
}

.quote-author {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 0;
}

.list { margin-top: 24px; padding: 0; list-style: none; }

.list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  font-weight: 400;
  color: var(--text-main);
  line-height: 1.6;
}

.list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.8em;
  transform: translateY(-50%) rotate(45deg);
  width: 5px;
  height: 5px;
  background-color: var(--sage-500);
}

.case-box {
  margin-top: 24px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-left: 4px solid var(--sage-500);
}

.case-label {
  margin: 0 0 8px 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sage-700);
  font-weight: 700;
}

.case-title { font-weight: 700; margin: 0 0 4px 0; }
.case-sub { font-size: 0.95rem; margin: 0 0 16px 0; color: var(--text-muted); }
.case-text { font-size: 0.95rem; margin: 0; }

.corporate-media {
  border-radius: var(--radius);
  box-shadow: 0 20px 40px var(--sage-200);
  width: 100%;
  height: auto;
  object-fit: cover;
}

.corporate-caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
  font-style: italic;
}

.books-intro {
  max-width: 800px;
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.books-note {
  text-align: center;
  max-width: 700px;
  margin: 40px auto 0;
  color: var(--text-muted);
}

.books-note p { font-size: 0.95rem; line-height: 1.6; margin: 0; }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 20px;
}

.portfolio-item { display: flex; flex-direction: column; gap: 16px; }

.portfolio-thumb {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 2/3;
  background-color: var(--sage-100);
}

.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: none;
}

.portfolio-thumb img.book-cover { object-fit: contain; padding: 20px; }

.portfolio-meta h3 { margin: 0 0 4px 0; font-size: 1.25rem; }
.portfolio-meta p { margin: 0 0 8px 0; font-size: 0.95rem; color: var(--text-muted); }

.portfolio-meta .tag {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--sage-700);
  background-color: var(--sage-100);
  padding: 4px 10px;
  border-radius: 4px;
  opacity: 0.9;
}

.portfolio-link { display: block; height: 100%; }
.portfolio-link:hover h3 { color: var(--sage-500); }

.text-link {
  font-weight: 600;
  border-bottom: 1px solid var(--sage-500);
  padding-bottom: 2px;
  display: inline-block;
  transition: opacity 0.2s ease;
}

.text-link:hover { opacity: 0.9; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.feature-card {
  background: white;
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: border-color 0.3s ease;
}

.feature-card:hover { border-color: var(--sage-500); }

.feature-icon {
  width: 40px;
  height: 40px;
  background-color: var(--sage-100);
  color: var(--sage-700);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.feature-card h3 { margin: 0 0 12px 0; font-size: 1.25rem; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

.media-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.media-row {
  display: flex;
  align-items: center;
  gap: 24px;
  background: white;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease;
}

.media-row:hover { border-color: var(--sage-500); }

.media-thumb {
  flex-shrink: 0;
  width: 140px;
  height: 85px;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--sage-100);
}

.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: opacity 0.2s ease, filter 0.2s ease;
  filter: saturate(0.8);
}

.media-row:hover .media-thumb img { opacity: 1; filter: saturate(1); }

.media-content { flex-grow: 1; }
.media-content h3 { margin: 0 0 4px 0; font-size: 1.1rem; }

.media-meta {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sage-700);
  margin-bottom: 8px;
}

.media-content p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.media-credit {
  font-size: 0.7rem !important;
  color: #999 !important;
  margin-top: 6px !important;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  aspect-ratio: 2 / 3;
  transition: filter 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.photo-grid img:hover { filter: brightness(0.95); }

.section-dark { background-color: var(--sage-700); color: white; text-align: center; }
.section-dark .section-head { margin-left: auto; margin-right: auto; text-align: center; max-width: 800px; }
.section-dark h2 { color: white; margin-bottom: 16px; }
.section-dark .subhead { color: var(--sage-200); margin-top: 0; margin-bottom: 40px; }

.contact-box { max-width: 700px; margin: 0 auto; }

.contact-text {
  font-size: 1.2rem;
  margin-bottom: 40px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
}

.contact-links-secondary {
  margin-top: 48px;
  font-size: 1rem;
  color: var(--sage-200);
  font-weight: 500;
}

.contact-links-secondary a {
  color: white;
  opacity: 0.8;
  border-bottom: 1px solid transparent;
  transition: opacity 0.2s ease, border-color 0.2s ease;
  padding-bottom: 2px;
}

.contact-links-secondary a:hover { opacity: 1; border-bottom-color: white; }
.sep { margin: 0 12px; opacity: 0.5; color: var(--sage-200); }

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1rem;
  padding: 32px 0 calc(32px + env(safe-area-inset-bottom));
}

.site-footer .footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.site-footer .footer-links { display: flex; gap: 20px; }
.site-footer .footer-links a:hover { color: var(--text-main); }

@media (hover: hover) and (pointer: fine) {
  .btn, .btn-white-outline {
    transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  }
  .nav .nav-pill {
    transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
  }
  .text-link {
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .hero-image img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .feature-card {
    transition: transform 0.3s ease, border-color 0.3s ease;
  }
  .media-row {
    transition: border-color 0.2s ease, transform 0.2s ease;
  }
  .photo-grid img {
    transition: filter 0.3s ease, transform 0.3s ease;
  }
  .portfolio-thumb img {
    transition: transform 0.4s ease;
  }

  .btn:hover,
  .btn-white-outline:hover,
  .nav .nav-pill:hover,
  .nav .nav-pill.nav-pill-dark:hover {
    will-change: transform;
    transform: translateY(-2px);
  }

  .text-link:hover {
    will-change: transform;
    transform: translateX(2px);
  }

  .hero-image img:hover {
    will-change: transform;
    transform: translate(-4px, -4px);
    box-shadow: 20px 20px 0 var(--sage-500);
  }

  .portfolio-item:hover .portfolio-thumb img {
    will-change: transform;
    transform: scale(1.05);
  }

  .feature-card:hover {
    will-change: transform;
    transform: translateY(-5px);
  }

  .media-row:hover {
    will-change: transform;
    transform: translateX(4px);
  }

  .photo-grid img:hover {
    will-change: transform;
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }

  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }

  .fade-in {
    opacity: 1 !important;
    transform: none !important;
  }

  *:hover {
    transform: none !important;
    filter: none !important;
  }

  .hero-image img,
  .hero-image img:hover {
    box-shadow: 16px 16px 0 var(--sage-500) !important;
  }
}

@media (max-width: 900px) {
  .site-footer .footer-inner { flex-direction: column; text-align: center; }
  .site-footer .footer-links { flex-wrap: wrap; justify-content: center; }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    padding: 0;
  }

  .nav-toggle-bar { width: 24px; height: 2px; background: #1a1a1a; margin: 0 auto; }

  .nav {
    position: fixed;
    top: 70px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    padding: 10px;
    background: #f9f9f9;
    border: 1px solid rgba(26, 26, 26, 0.1);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    z-index: 101;
  }

  .nav[data-open="true"] { display: flex; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-image { max-width: 300px; margin: 0 auto; }

  .split, .split.split-reverse {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "media";
    align-items: start;
  }

  .profile-quote { padding: 24px; margin-top: 24px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .media-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .media-thumb { width: 100%; height: 180px; }
  .contact-links-secondary { display: flex; flex-direction: column; gap: 12px; }
  .sep { display: none; }
}

@media (max-width: 520px) {
  .photo-grid { grid-template-columns: 1fr; }

  .quote-featured {
    padding-left: 44px;
    margin: 40px 0 32px;
  }

  .quote-featured::before {
    font-size: 4.5rem;
    top: -4px;
  }

  .quote-featured p {
    font-size: 1.4rem;
  }
}
.timeline-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 40px;
  border-left: 2px solid var(--sage-200);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0;
  width: 12px;
  height: 12px;
  background: var(--sage-500);
  border-radius: 50%;
  border: 2px solid white;
}

.timeline-date {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 4px;
  display: block;
  font-weight: 600;
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin: 0 0 4px 0;
  color: var(--sage-700);
}

.timeline-company {
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}

.timeline-desc {
  font-size: 0.95rem;
  color: var(--text-main);
  margin: 0;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.skill-tag {
  background: var(--sage-100);
  color: var(--sage-700);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
}
.split.text-cols {
  grid-template-areas: none; 
  align-items: start; 
}

.split.text-cols .split-copy {
  grid-area: auto; 
}