/* ============================================
   Todd Hunkin — Personal Branding Site
   Aesthetic: Editorial / Magazine
   Palette: Warm slate + amber accent
   ============================================ */

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

/* --- Variables --- */
:root {
  --color-bg: #FAFAF7;
  --color-bg-alt: #F2F1EC;
  --color-bg-dark: #1A1A1A;
  --color-text: #2C2C2C;
  --color-text-light: #6B6B6B;
  --color-text-inverse: #FAFAF7;
  --color-accent: #C17B2E;
  --color-accent-light: #E8A94A;
  --color-accent-subtle: rgba(193, 123, 46, 0.08);
  --color-border: #E0DFD9;
  --color-border-dark: #3A3A3A;
  --color-card: #FFFFFF;
  --color-tag-bg: #EDECE7;
  --color-tag-text: #555;
  
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --max-width: 1200px;
  --max-width-narrow: 800px;
  --nav-height: 72px;
  --section-gap: 120px;
  --border-radius: 6px;
  
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-accent-light); }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { max-width: 68ch; }
p + p { margin-top: 1.2em; }

.label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.subtitle {
  font-size: 1.15rem;
  color: var(--color-text-light);
  line-height: 1.6;
  max-width: 58ch;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.section {
  padding: var(--section-gap) 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section--dark {
  background: var(--color-bg-dark);
  color: var(--color-text-inverse);
}

.section--dark .label { color: var(--color-accent-light); }
.section--dark .subtitle { color: rgba(250, 250, 247, 0.65); }
.section--dark a { color: var(--color-accent-light); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .grid-4 { grid-template-columns: 1fr; }
  :root { --section-gap: 72px; }
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.nav__logo span { color: var(--color-accent); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-light);
  transition: color 0.2s;
  letter-spacing: 0.01em;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--color-text);
}

.nav__cta {
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  color: var(--color-bg) !important;
  background: var(--color-text);
  padding: 8px 20px;
  border-radius: 100px;
  transition: background 0.2s, transform 0.15s !important;
}

.nav__cta:hover {
  background: var(--color-accent) !important;
  color: white !important;
  transform: translateY(-1px);
}

/* Mobile nav */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
  z-index: 1001;
}

.nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  transition: all 0.3s var(--ease-out);
  position: absolute;
  left: 0;
}

.nav__toggle span:nth-child(1) { top: 0; }
.nav__toggle span:nth-child(2) { top: 9px; }
.nav__toggle span:nth-child(3) { bottom: 0; }

.nav__toggle.active span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { bottom: 9px; transform: rotate(-45deg); }

@media (max-width: 768px) {
  .nav__toggle { display: block; }
  
  .nav__links {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--color-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 40px 40px;
    gap: 24px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
    border-left: 1px solid var(--color-border);
    box-shadow: -10px 0 40px rgba(0,0,0,0.08);
  }
  
  .nav__links.open { transform: translateX(0); }
  
  .nav__links a { font-size: 1.05rem; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  text-decoration: none;
}

.btn--primary {
  background: var(--color-text);
  color: var(--color-bg);
}

.btn--primary:hover {
  background: var(--color-accent);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(193, 123, 46, 0.25);
}

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

.btn--secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-1px);
}

.btn--small {
  font-size: 0.82rem;
  padding: 8px 20px;
}

.btn--icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* --- Cards --- */
.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 32px;
  transition: all 0.3s var(--ease-out);
}

.card:hover {
  border-color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}

.card__icon {
  width: 44px;
  height: 44px;
  background: var(--color-accent-subtle);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-accent);
}

.card__icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.card__text {
  font-size: 0.92rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* --- Tags --- */
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--color-tag-bg);
  color: var(--color-tag-text);
}

.tag--accent {
  background: var(--color-accent-subtle);
  color: var(--color-accent);
}

/* --- Hero --- */
.hero {
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 80px;
  position: relative;
}

.hero__content {
  max-width: 720px;
}

.hero__label {
  margin-bottom: 20px;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: italic;
  color: var(--color-accent);
}

.hero .subtitle {
  margin-bottom: 36px;
}

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

.hero__decoration {
  position: absolute;
  top: calc(var(--nav-height) + 40px);
  right: clamp(20px, 8vw, 120px);
  width: 320px;
  height: 400px;
  background: var(--color-bg-alt);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.hero__decoration img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 2px dashed var(--color-border);
  border-radius: var(--border-radius);
}

@media (max-width: 1000px) {
  .hero__decoration { display: none; }
  .hero__content { max-width: 100%; }
}

/* --- Credibility Strip --- */
.credibility {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.credibility__item {
  background: var(--color-card);
  padding: 28px 24px;
  text-align: center;
}

.credibility__number {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 8px;
}

.credibility__text {
  font-size: 0.82rem;
  color: var(--color-text-light);
  line-height: 1.4;
}

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

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

/* --- Case Study Tiles --- */
.case-tile {
  display: block;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: all 0.3s var(--ease-out);
  text-decoration: none;
  color: inherit;
}

.case-tile:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.07);
  color: inherit;
}

.case-tile__image {
  height: 200px;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.case-tile__image img { width: 100%; height: 100%; object-fit: cover; }

.case-tile__body {
  padding: 24px;
}

.case-tile__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.case-tile__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 8px;
  line-height: 1.3;
}

.case-tile__excerpt {
  font-size: 0.88rem;
  color: var(--color-text-light);
  line-height: 1.5;
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--color-border);
}

.timeline__item {
  position: relative;
  padding-bottom: 40px;
}

.timeline__item:last-child { padding-bottom: 0; }

.timeline__item::before {
  content: '';
  position: absolute;
  left: -37px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 2px solid var(--color-accent);
}

.timeline__period {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-accent);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.timeline__role {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 2px;
}

.timeline__org {
  font-size: 0.92rem;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.timeline__desc {
  font-size: 0.88rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* --- Service Blocks --- */
.service-block {
  padding: 40px 0;
  border-bottom: 1px solid var(--color-border);
}

.service-block:last-child { border-bottom: none; }

.service-block__header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 16px;
}

.service-block__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--color-accent-subtle);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.service-block__icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.service-block__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
}

.service-block__desc {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-bottom: 16px;
  max-width: 68ch;
}

.service-block__capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.service-block__proof {
  font-size: 0.88rem;
  font-style: italic;
  color: var(--color-text-light);
  border-left: 3px solid var(--color-accent);
  padding-left: 16px;
  margin-top: 16px;
}

/* --- Blog Post Cards --- */
.post-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s var(--ease-out);
}

.post-card:hover {
  transform: translateY(-3px);
  color: inherit;
}

.post-card__image {
  height: 180px;
  background: var(--color-bg-alt);
  border-radius: var(--border-radius);
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.post-card__date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-text-light);
  letter-spacing: 0.04em;
}

.post-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.35;
  margin-bottom: 8px;
}

.post-card__excerpt {
  font-size: 0.88rem;
  color: var(--color-text-light);
  line-height: 1.5;
}

/* --- Contact Form --- */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--color-text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--border-radius);
  background: var(--color-card);
  color: var(--color-text);
  transition: border-color 0.2s;
  outline: none;
}

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

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

/* --- Photo Placeholders --- */
.photo-placeholder {
  background: var(--color-bg-alt);
  border: 2px dashed var(--color-border);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  padding: 20px;
}

/* --- Footer --- */
.footer {
  background: var(--color-bg-dark);
  color: rgba(250, 250, 247, 0.5);
  padding: 64px 0 40px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-text-inverse);
  margin-bottom: 12px;
}

.footer__tagline {
  font-size: 0.88rem;
  max-width: 280px;
  line-height: 1.5;
}

.footer__links {
  list-style: none;
}

.footer__links li { margin-bottom: 8px; }

.footer__links a {
  font-size: 0.88rem;
  color: rgba(250, 250, 247, 0.5);
  transition: color 0.2s;
}

.footer__links a:hover { color: var(--color-accent-light); }

.footer__social {
  display: flex;
  gap: 16px;
}

.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(250, 250, 247, 0.5);
  transition: all 0.2s;
}

.footer__social a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-light);
}

.footer__social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer__bottom {
  border-top: 1px solid var(--color-border-dark);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__bottom a { color: rgba(250, 250, 247, 0.4); }
.footer__bottom a:hover { color: var(--color-accent-light); }

/* --- Section Headers --- */
.section-header {
  margin-bottom: 56px;
}

.section-header .label { margin-bottom: 12px; }
.section-header h2 { margin-bottom: 16px; }

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

.section-header--center .subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* --- Divider --- */
.divider {
  width: 48px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
  margin: 24px 0;
}

/* --- Personal Edge Strip --- */
.personal-strip {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 20px 0;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.personal-strip__separator {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-border);
  flex-shrink: 0;
}

/* --- Page Header (for inner pages) --- */
.page-header {
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 60px;
  border-bottom: 1px solid var(--color-border);
}

.page-header .label { margin-bottom: 12px; }
.page-header h1 { margin-bottom: 16px; }

/* --- About Page Specific --- */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 60px;
  align-items: start;
}

.about-intro__photo {
  width: 360px;
  height: 440px;
  border-radius: var(--border-radius);
  overflow: hidden;
  position: sticky;
  top: calc(var(--nav-height) + 32px);
}

@media (max-width: 900px) {
  .about-intro {
    grid-template-columns: 1fr;
  }
  .about-intro__photo {
    width: 100%;
    max-width: 360px;
    position: static;
  }
}

.about-narrative p {
  font-size: 1.05rem;
  margin-bottom: 1.4em;
}

.about-narrative p:first-of-type {
  font-size: 1.2rem;
  color: var(--color-text);
}

/* --- Publications --- */
.publication-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.publication-item:last-child { border-bottom: none; }

.publication-item__title {
  font-style: italic;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.publication-item__date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-text-light);
  letter-spacing: 0.04em;
}

/* --- Memberships --- */
.membership-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* --- Adventures --- */
.adventure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.adventure-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all 0.3s var(--ease-out);
}

.adventure-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}

.adventure-card__image {
  height: 200px;
  overflow: hidden;
}

.adventure-card__body {
  padding: 20px;
}

.adventure-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.adventure-card__text {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* --- Race badge grid --- */
.race-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.race-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
}

.race-badge__icon { font-size: 1.1rem; }

/* --- Coming Soon Banner --- */
.coming-soon {
  background: var(--color-accent-subtle);
  border: 1px solid rgba(193, 123, 46, 0.2);
  border-radius: var(--border-radius);
  padding: 32px;
  text-align: center;
}

.coming-soon h3 { color: var(--color-accent); margin-bottom: 8px; }

/* --- Filter Tabs --- */
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-tab {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 100px;
  border: 1.5px solid var(--color-border);
  background: transparent;
  color: var(--color-text-light);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-tab:hover,
.filter-tab.active {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-subtle);
}

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

.animate-in {
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out) forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* --- Utility --- */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 16px; }
.mt-2 { margin-top: 32px; }
.mt-3 { margin-top: 48px; }
.mt-4 { margin-top: 64px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 16px; }
.mb-2 { margin-bottom: 32px; }
.mb-3 { margin-bottom: 48px; }
.text-center { text-align: center; }
.text-accent { color: var(--color-accent); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* --- Skip to Content --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 2000;
  padding: 12px 24px;
  background: var(--color-text);
  color: var(--color-bg);
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
  color: var(--color-bg);
}

/* --- Scroll to Top Button --- */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-text);
  color: var(--color-bg);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s var(--ease-out);
  z-index: 900;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(193, 123, 46, 0.3);
}

.scroll-top svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

/* --- Page Transition --- */
body {
  opacity: 0;
  animation: pageIn 0.4s var(--ease-out) 0.05s forwards;
}

@keyframes pageIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --- Form Validation --- */
.form-group .error-message {
  display: none;
  font-size: 0.8rem;
  color: #C0392B;
  margin-top: 6px;
}

.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select {
  border-color: #C0392B;
}

.form-group.has-error .error-message {
  display: block;
}

.form-success {
  display: none;
  padding: 24px;
  background: rgba(39, 174, 96, 0.08);
  border: 1px solid rgba(39, 174, 96, 0.25);
  border-radius: var(--border-radius);
  text-align: center;
}

.form-success h3 {
  color: #27AE60;
  margin-bottom: 8px;
}

.form-success p {
  font-size: 0.92rem;
  color: var(--color-text-light);
}

/* --- Certification Tags --- */
.cert-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cert-item {
  padding: 16px 20px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  transition: border-color 0.2s;
}

.cert-item:hover {
  border-color: var(--color-accent);
}

.cert-item__title {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 4px;
}

.cert-item__org {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-text-light);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* --- Media Appearance Items --- */
.media-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}

.media-item:last-child { border-bottom: none; }

.media-item__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.media-item__title a {
  color: var(--color-text);
  transition: color 0.2s;
}

.media-item__title a:hover {
  color: var(--color-accent);
}

.media-item__meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-text-light);
  letter-spacing: 0.04em;
}

.media-item__desc {
  font-size: 0.88rem;
  color: var(--color-text-light);
  margin-top: 6px;
  line-height: 1.5;
}

/* --- Mobile overlay for nav --- */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  body { animation: none; opacity: 1; }
  .animate-in { opacity: 1; animation: none; }
}

/* --- WCAG Contrast Fix --- */
/* #6B6B6B on #FAFAF7 = 4.32:1 ratio (passes AA for normal text)
   But to be safe, darken slightly for smaller text */
.credibility__text,
.card__text,
.case-tile__excerpt,
.post-card__excerpt,
.adventure-card__text,
.service-block__desc,
.media-item__desc {
  color: #5A5A5A;
}

/* --- Print Stylesheet --- */
@media print {
  /* Hide interactive elements */
  .nav, .footer, .nav-overlay, .scroll-top,
  .btn, .filter-tabs, .hero__actions,
  .coming-soon, .skip-link,
  form, .form-group {
    display: none !important;
  }

  /* Reset layout */
  body {
    font-size: 11pt;
    color: #000;
    background: #fff;
    line-height: 1.5;
    opacity: 1;
    animation: none;
  }

  * {
    box-shadow: none !important;
    text-shadow: none !important;
  }

  .section, .section--alt, .section--dark {
    background: #fff !important;
    color: #000 !important;
    padding: 24pt 0;
  }

  .section--dark * {
    color: #000 !important;
  }

  .section--dark .label {
    color: #666 !important;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  /* Show all content */
  .case-tile, .post-card, [data-category] {
    display: block !important;
    opacity: 1 !important;
  }

  /* Fix images */
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  .photo-placeholder {
    border: 1px solid #ccc;
    min-height: 60px;
  }

  /* Fix grids for print */
  .grid-2, .grid-3, .grid-4 {
    display: block;
  }

  .grid-2 > *, .grid-3 > *, .grid-4 > * {
    margin-bottom: 16pt;
    page-break-inside: avoid;
  }

  .about-intro {
    display: block;
  }

  /* Typography */
  h1 { font-size: 22pt; }
  h2 { font-size: 18pt; }
  h3 { font-size: 14pt; }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }

  a[href^="#"]::after,
  a[href^="mailto"]::after {
    content: "";
  }

  .page-header {
    border-bottom: 2pt solid #000;
    padding-top: 0;
  }

  .hero {
    padding-top: 0;
  }

  .hero__decoration {
    display: none;
  }

  .timeline::before {
    background: #ccc;
  }

  .timeline__item::before {
    border-color: #666;
    background: #fff;
  }
}
