:root {
  --ink: #111111;
  --paper: #f6f3ed;
  --line: #d9d5cd;
  --muted: #64615c;
  --accent: #8d271c;
  --max-width: 1180px;
  --shadow: 0 20px 50px rgba(17, 17, 17, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 0.85rem;
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}
.skip-link:focus { transform: translateY(0); }

.page-shell { width: min(calc(100% - 2.5rem), var(--max-width)); margin-inline: auto; }
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  padding: 1.25rem 0;
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wordmark { text-decoration: none; color: var(--paper); font-size: 1.25rem; font-weight: 760; letter-spacing: -0.04em; white-space: nowrap; }
.wordmark-dot { color: #d79c51; }
.primary-nav { display: flex; gap: 1.25rem; }
.primary-nav a { color: var(--paper); font-size: 0.88rem; font-weight: 650; text-decoration: none; }
.primary-nav a:hover, .primary-nav a:focus-visible { text-decoration: underline; text-underline-offset: 0.32rem; }

.hero { min-height: min(860px, 100svh); background: var(--ink); color: var(--paper); display: grid; align-items: end; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(300px, 1.14fr); align-items: end; gap: clamp(2rem, 6vw, 8rem); padding-top: 8rem; }
.hero-copy { padding-bottom: clamp(3.75rem, 7vw, 7rem); }
.eyebrow { margin: 0 0 0.7rem; color: #d79c51; font-size: 0.74rem; font-weight: 780; letter-spacing: 0.15em; text-transform: uppercase; }
h1, h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 400; line-height: 0.94; letter-spacing: -0.055em; }
h1 { font-size: clamp(4.5rem, 10vw, 8.5rem); }
h2 { font-size: clamp(3.2rem, 6vw, 5.25rem); }
.intro { max-width: 19rem; margin: 1.6rem 0 2rem; color: #dad7d0; font-size: 1.1rem; }
.hero-actions, .resume-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; min-height: 2.9rem; padding: 0.76rem 1.1rem; border: 1px solid transparent; border-radius: 999px; font-size: 0.89rem; font-weight: 730; letter-spacing: 0.01em; text-decoration: none; transition: transform 160ms ease, background 160ms ease, color 160ms ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary { color: var(--paper); background: var(--accent); }
.button-primary:hover, .button-primary:focus-visible { background: #a33425; }
.button-secondary { color: var(--paper); border-color: #5c5a55; }
.button-secondary:hover, .button-secondary:focus-visible { background: #292929; }

.headshot-frame { position: relative; margin: 0; overflow: hidden; min-height: min(650px, 68svh); background: #242424; }
.headshot-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.24)); }
.headshot { width: 100%; height: 100%; min-height: inherit; object-fit: cover; object-position: center top; }

.section { padding: clamp(5rem, 10vw, 8.5rem) 0; }
.section-heading { max-width: 39rem; }
.reel-section { background: var(--paper); }
.reel-section .section-heading { margin-bottom: 2rem; }
.video-shell { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #1b1b1b; box-shadow: var(--shadow); }
.video-shell iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-placeholder { width: 100%; height: 100%; display: grid; place-items: center; padding: 2rem; color: #e2ded6; text-align: center; }
.video-placeholder p { max-width: 28rem; margin: 0; }
.video-placeholder code { padding: 0.14rem 0.32rem; background: #303030; border-radius: 3px; color: #fff; }

.resume-section { border-top: 1px solid var(--line); background: #ebe7de; }
.resume-grid { display: grid; grid-template-columns: 0.78fr 1.22fr; align-items: start; gap: clamp(2rem, 7vw, 8rem); }
.resume-copy { max-width: 21rem; margin: 1.5rem 0; color: var(--muted); }
.text-link { font-size: 0.9rem; font-weight: 700; text-underline-offset: 0.25rem; }
.resume-preview { height: 650px; overflow: hidden; border: 1px solid #c8c3ba; background: #fff; box-shadow: var(--shadow); }
.resume-preview object { display: block; }

.site-footer { padding: 1.35rem 0; color: #d9d5cd; background: var(--ink); font-size: 0.82rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; }
.site-footer a { text-underline-offset: 0.25rem; }

@media (max-width: 800px) {
  .page-shell { width: min(calc(100% - 1.5rem), var(--max-width)); }
  .site-header { padding-top: 1rem; }
  .primary-nav { gap: 0.9rem; }
  .hero { min-height: 100svh; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; padding-top: 6.5rem; }
  .hero-copy { padding-bottom: 2.5rem; }
  .headshot-frame { min-height: 55svh; max-height: 690px; margin-inline: -0.75rem; }
  .section { padding: 4.25rem 0; }
  .resume-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .resume-preview { height: 560px; }
}

@media (max-width: 480px) {
  .primary-nav a { font-size: 0.8rem; }
  .intro { margin: 1.25rem 0 1.6rem; }
  .hero-actions { align-items: stretch; }
  .hero-actions .button { flex: 1 1 100%; }
  .resume-preview { height: 500px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

.reel-player-wrap { width: 100%; }
.reel-open-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 730;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28rem;
}
.reel-open-link:hover, .reel-open-link:focus-visible { text-decoration-thickness: 2px; }


/* Google Drive's embedded preview can be unreliable in mobile browsers.
   On screens up to 800px, script.js swaps it for a clear link to the Drive player. */
.mobile-reel-card {
  min-height: 100%;
  padding: clamp(1.5rem, 7vw, 2.5rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  color: var(--paper);
  background:
    linear-gradient(135deg, rgba(141, 39, 28, 0.9), rgba(17, 17, 17, 0.96)),
    #111111;
  text-decoration: none;
}
.mobile-reel-card:hover,
.mobile-reel-card:focus-visible {
  outline: 3px solid #d79c51;
  outline-offset: -7px;
}
.mobile-reel-eyebrow {
  margin-bottom: 0.7rem;
  color: #f1c990;
  font-size: 0.7rem;
  font-weight: 780;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.mobile-reel-title {
  max-width: 18rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 9vw, 3rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.mobile-reel-description {
  max-width: 21rem;
  margin-top: 1rem;
  color: #ded9d0;
  font-size: 0.95rem;
}
.mobile-reel-button {
  display: inline-flex;
  align-items: center;
  min-height: 2.9rem;
  margin-top: 1.65rem;
  padding: 0.76rem 1.05rem;
  border-radius: 999px;
  color: var(--ink);
  background: var(--paper);
  font-size: 0.88rem;
  font-weight: 750;
}
