:root {
  color-scheme: light;
  --paper: #f5f3ee;
  --paper-deep: #eae8e1;
  --ink: #1e211f;
  --muted: #656b65;
  --line: #d5d7d0;
  --orange: #d68a57;
  --dark: #222925;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; }
img { display: block; max-width: 100%; }
::selection { background: #e6b493; color: var(--ink); }
:focus-visible { outline: 2px solid #99501f; outline-offset: 4px; }
.site-footer :focus-visible { outline-color: #f0ae79; }
.shell { width: min(100% - 80px, 1280px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; transform: translateY(-150%); padding: 12px 16px; background: #fff; border: 1px solid var(--ink); }
.skip-link:focus { transform: translateY(0); }

/* Header */
.site-header { background: var(--paper); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 88px; border-bottom: 1px solid var(--line); }
.brand { font-size: 20px; font-weight: 750; letter-spacing: -.055em; text-decoration: none; white-space: nowrap; }
.brand span, .hero h1 span { color: var(--orange); }
.primary-nav { display: flex; align-items: center; gap: 33px; }
.primary-nav a { color: #424943; font-size: 13px; font-weight: 600; text-decoration: none; }
.primary-nav a:hover, .footer-inner a:hover { text-decoration: underline; text-underline-offset: 5px; }
.primary-nav .nav-linkedin { margin-left: 14px; color: var(--ink); }
.nav-linkedin span { margin-left: 4px; }
.menu-button { display: none; }

/* Hero */
.hero { padding: 55px 0 95px; }
.hero-layout { display: grid; grid-template-columns: 1.17fr .83fr; gap: clamp(35px, 6vw, 95px); align-items: center; }
.hero-copy { padding: 28px 0; }
.eyebrow, .section-kicker, .work-org, .work-number, .work-area, .strava-panel-top { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 11px; line-height: 1.4; letter-spacing: .085em; text-transform: uppercase; }
.eyebrow { margin: 0 0 25px; color: #60685f; }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { margin-bottom: 27px; font-size: clamp(78px, 10vw, 150px); line-height: 1.02; font-weight: 730; letter-spacing: -.045em; }
.hero-role { margin-bottom: 21px; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.2; font-weight: 650; letter-spacing: -.045em; }
.hero-intro { max-width: 590px; margin-bottom: 0; color: #4e5750; font-size: 17px; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 30px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 26px; min-height: 49px; padding: 13px 18px; border: 1px solid transparent; border-radius: 4px; font-size: 13px; font-weight: 700; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--ink); color: #fff; }
.button-dark:hover { background: #3d463d; }
.button-outline { border-color: var(--ink); }
.button-outline:hover { background: #fff; }
.button span, .underlined-link span { font-size: 17px; font-weight: 400; }
.underlined-link { display: inline-flex; align-items: center; gap: 12px; padding-bottom: 4px; border-bottom: 1px solid currentColor; font-size: 13px; font-weight: 700; text-decoration: none; }
.underlined-link:hover { color: #985c37; }
.hero-photo { min-width: 0; margin: 0; }
.portrait-stage { --reveal: 0%; position: relative; height: min(55vw, 590px); min-height: 440px; overflow: hidden; isolation: isolate; background: #4a4b49; touch-action: pan-y; }
.portrait-image { position: absolute; inset: 0; width: 100%; max-width: none; height: 100%; object-fit: cover; object-position: center; }
.portrait-reveal { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--reveal)) 0 0); pointer-events: none; }
.portrait-woodland { transform: translateY(-4%) scale(1.45); transform-origin: center; }
.portrait-divider { position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--reveal); width: 2px; transform: translateX(-50%); background: rgba(255,255,255,.9); opacity: 0; pointer-events: none; }
.portrait-stage.has-reveal .portrait-divider { opacity: 1; }
.portrait-stage.is-complete .portrait-divider { opacity: 0; }
.portrait-handle { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 40px; height: 40px; transform: translate(-50%,-50%); border: 1px solid rgba(28,35,30,.28); border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 20px; line-height: 1; box-shadow: 0 2px 12px rgba(0,0,0,.12); }
.portrait-prompt { position: absolute; z-index: 2; right: 15px; bottom: 15px; padding: 9px 11px; background: rgba(245,243,238,.93); color: var(--ink); font-size: 11px; font-weight: 700; letter-spacing: .01em; pointer-events: none; transition: opacity .2s ease; }
.portrait-prompt span { margin-left: 10px; font-size: 15px; font-weight: 400; }
.portrait-stage.has-reveal .portrait-prompt { opacity: 0; }
.portrait-range { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.portrait-range:focus-visible { outline: none; }
.portrait-stage:has(.portrait-range:focus-visible) { outline: 2px solid #99501f; outline-offset: 4px; }
.portrait-caption { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 11px; color: #626a61; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 10px; line-height: 1.4; letter-spacing: .075em; text-transform: uppercase; }
.portrait-caption span:nth-child(2) { color: #858d83; text-align: center; }

/* Shared headings */
.section { padding: 100px 0 110px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 50px; }
.section-kicker { margin-bottom: 17px; color: #626a61; }
h2 { margin-bottom: 0; font-size: clamp(43px, 5vw, 67px); line-height: 1.08; letter-spacing: -.045em; font-weight: 700; }
.section-heading > p { max-width: 350px; margin-bottom: 4px; color: var(--muted); font-size: 15px; line-height: 1.62; }

/* Work */
.work-section { border-top: 1px solid var(--line); }
.work-list { border-top: 1px solid #b7bdb5; }
.work-row { display: grid; grid-template-columns: 82px minmax(0,1fr) 210px; gap: 26px; align-items: start; padding: 36px 0 39px; border-bottom: 1px solid #b7bdb5; }
.work-number { padding-top: 7px; color: #626a61; }
.work-org { margin-bottom: 9px; color: #626a61; }
.work-main h3 { margin-bottom: 10px; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; letter-spacing: -.05em; font-weight: 650; }
.work-main > p:last-child { max-width: 740px; margin-bottom: 0; color: #586058; font-size: 15px; line-height: 1.65; }
.work-area { padding-top: 7px; color: #626a61; text-align: right; }

/* Running */
.running-section { padding: 103px 0 112px; background: var(--paper-deep); color: var(--ink); }
.running-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(340px,.8fr); gap: clamp(48px, 9vw, 150px); align-items: center; }
.running-copy .section-kicker { color: #526856; }
.running-copy h2 { margin-bottom: 22px; }
.running-copy > p:not(.section-kicker) { max-width: 500px; margin-bottom: 29px; color: #4e574e; font-size: 17px; line-height: 1.65; }
.light-link { color: var(--ink); }
.light-link:hover { color: #96572f; }
.running-links { display: flex; align-items: center; flex-wrap: wrap; gap: 22px 30px; }
.strava-panel { padding: 24px; border: 1px solid #c9cec5; border-radius: 6px; background: #f8f7f2; }
.strava-panel-top { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 24px; color: #394b3e; }
.live-indicator { display: inline-flex; align-items: center; gap: 8px; color: #526856; white-space: nowrap; }
.live-indicator span { width: 7px; height: 7px; border-radius: 50%; background: #b76d3d; }
.strava-embed-wrap { display: flex; justify-content: center; min-height: 160px; overflow: hidden; }
.strava-embed-wrap iframe { display: block; width: 300px; max-width: 100%; height: 160px; border: 0; background: #fff; }
.strava-panel > p { margin: 18px 0 0; color: #596258; font-size: 11px; line-height: 1.5; }
.strava-panel > p a { color: #394b3e; }

/* Photography */
.photography-section { padding-bottom: 125px; }
.photo-heading a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.photo-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; }
.photo-item { min-width: 0; margin: 0; }
.photo-item:first-child { grid-column: span 2; }
.photo-item a { display: block; overflow: hidden; background: #dddcd4; }
.photo-item img { width: 100%; height: 340px; object-fit: cover; transition: transform .4s ease; }
.photo-item:nth-child(-n+2) img { height: 440px; }
.photo-item:first-child img { object-position: center 50%; }
.photo-item:nth-child(2) img { object-position: center 48%; }
.photo-item:nth-child(3) img { object-position: center 64%; }
.photo-item:nth-child(4) img { object-position: center 42%; }
.photo-item:nth-child(5) img { object-position: center 63%; }
.photo-item a:hover img { transform: scale(1.035); }
.photo-item figcaption { display: flex; justify-content: space-between; gap: 10px; padding: 11px 2px 0; color: #586158; font-size: 12px; }
.all-photos { display: inline-flex; justify-content: space-between; gap: 28px; margin-top: 37px; padding-bottom: 5px; border-bottom: 1px solid var(--ink); font-size: 14px; font-weight: 650; text-decoration: none; }

/* About and footer */
.about-section { padding: 102px 0 113px; background: var(--paper-deep); }
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(50px, 10vw, 160px); }
.about-layout h2 { max-width: 610px; font-size: clamp(38px, 4vw, 57px); }
.about-copy { padding-top: 43px; }
.about-copy p { max-width: 570px; margin-bottom: 20px; color: #4e574e; font-size: 16px; line-height: 1.73; }
.about-copy .button { margin-top: 17px; }
.site-footer { background: var(--ink); color: #e5e8e0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; min-height: 95px; gap: 25px; font-size: 12px; }
.footer-inner div { display: flex; gap: 23px; }
.footer-inner a { text-decoration: none; }

@media (max-width: 1080px) {
  .shell { width: min(100% - 56px, 1280px); }
  .hero { padding-bottom: 75px; }
  .hero-layout { gap: 45px; }
  .hero h1 { font-size: clamp(72px, 9.5vw, 120px); }
  .portrait-stage { height: 530px; min-height: 0; }
  .running-layout { gap: 50px; }
}

@media (max-width: 780px) {
  .shell { width: min(100% - 40px, 650px); }
  .header-inner { min-height: 72px; }
  .menu-button { display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 40px; height: 40px; padding: 10px; border: 1px solid var(--ink); border-radius: 4px; background: transparent; cursor: pointer; }
  .menu-button span { display: block; width: 100%; height: 2px; background: var(--ink); }
  .primary-nav { display: none; position: absolute; z-index: 20; top: 72px; left: 20px; right: 20px; align-items: stretch; flex-direction: column; gap: 0; padding: 8px 20px; border: 1px solid var(--ink); background: var(--paper); box-shadow: 0 12px 24px rgba(0,0,0,.1); }
  .primary-nav.is-open { display: flex; }
  .primary-nav a, .primary-nav .nav-linkedin { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .primary-nav a:last-child { border: 0; }
  .hero { padding: 56px 0 75px; }
  .hero-layout { grid-template-columns: 1fr; gap: 42px; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: clamp(80px, 14vw, 125px); }
  .hero-photo { max-width: 620px; }
  .portrait-stage { height: 500px; }
  .section { padding: 82px 0 90px; }
  .section-heading { display: block; margin-bottom: 34px; }
  .section-heading > p { max-width: 540px; margin-top: 22px; }
  .work-row { grid-template-columns: 48px 1fr; gap: 10px 18px; }
  .work-area { grid-column: 2; padding: 0; text-align: left; }
  .running-section { padding: 83px 0 90px; }
  .running-layout, .about-layout { grid-template-columns: 1fr; gap: 40px; }
  .strava-panel { max-width: 440px; }
  .photo-grid { gap: 13px; }
  .photo-item img { height: 250px; }
  .photo-item:nth-child(-n+2) img { height: 335px; }
  .about-section { padding: 82px 0 90px; }
  .about-copy { padding-top: 0; }
}

@media (max-width: 600px) {
  .shell { width: min(100% - 36px, 440px); }
  .brand { font-size: 19px; }
  .hero { padding: 42px 0 63px; }
  .eyebrow { margin-bottom: 24px; font-size: 10px; }
  .hero h1 { font-size: clamp(70px, 20vw, 106px); }
  .hero-role { font-size: 25px; }
  .hero-intro { font-size: 16px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 21px; }
  .portrait-stage { height: 390px; }
  .portrait-caption span:nth-child(2) { display: none; }
  h2 { font-size: 48px; }
  .section-heading > p { font-size: 14px; }
  .work-row { grid-template-columns: 37px 1fr; padding: 28px 0 31px; }
  .work-main h3 { font-size: 25px; }
  .work-main > p:last-child { font-size: 14px; }
  .work-area { font-size: 10px; }
  .running-copy > p:not(.section-kicker) { font-size: 16px; }
  .strava-panel { padding: 17px; }
  .strava-panel-top { flex-direction: column; gap: 6px; }
  .photo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
  .photo-item:first-child { grid-column: span 2; }
  .photo-item img, .photo-item:nth-child(-n+2) img { height: 220px; }
  .photo-item:first-child img { height: 260px; }
  .photo-item figcaption { font-size: 10px; }
  .about-layout h2 { font-size: 43px; }
  .footer-inner { align-items: start; flex-direction: column; justify-content: center; gap: 18px; padding: 31px 0; }
  .footer-inner div { flex-wrap: wrap; gap: 15px; }
}

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