:root {
  color-scheme: light;
  --ink: #17211d;
  --muted: #5f6b66;
  --line: #d8dfdb;
  --paper: #f7f4ec;
  --panel: #ffffff;
  --accent: #2f6f63;
  --accent-dark: #1f4c44;
  --gold: #b88a2e;
  --steel: #426577;
  --soft-green: #e5eee9;
  --soft-gold: #f3ead6;
  --shadow: 0 18px 55px rgba(26, 38, 33, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

.site-header {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: auto;
  background:
    linear-gradient(90deg, rgba(247, 244, 236, 0.98) 0%, rgba(247, 244, 236, 0.92) 48%, rgba(229, 238, 233, 0.72) 100%),
    radial-gradient(circle at 82% 18%, rgba(184, 138, 46, 0.22), transparent 28%),
    var(--paper);
}

.el-paso-outline {
  position: absolute;
  top: clamp(74px, 8vw, 108px);
  left: max(20px, calc(50% - 555px));
  z-index: 0;
  width: min(58vw, 690px);
  opacity: 0.58;
  pointer-events: none;
}

.el-paso-outline img {
  width: 100%;
  height: auto;
}

.nav {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  gap: clamp(14px, 3vw, 32px);
  align-items: center;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 650;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
}

.hero {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(28px, 6vw, 72px) 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.62fr);
  gap: clamp(32px, 6vw, 78px);
  align-items: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(3.6rem, 8vw, 7rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 680px;
  margin-bottom: 30px;
  color: #35413c;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.45;
}

.hero-actions,
.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.1;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  flex: 0 0 auto;
}

.button-primary {
  background: var(--accent-dark);
  color: #fff;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #173933;
}

.button-secondary {
  background: transparent;
  border-color: #aab8b1;
  color: var(--accent-dark);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.48);
}

.hero-visual {
  margin: 0;
}

.hero-visual picture,
.hero-visual img {
  display: block;
}

.hero-visual img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 38px rgba(31, 76, 68, 0.16));
}

.hero-portrait {
  justify-self: end;
  width: min(100%, 430px);
  padding: 14px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(31, 76, 68, 0.12);
  border-radius: 8px;
  box-shadow: 0 22px 58px rgba(31, 76, 68, 0.18);
}

.hero-portrait img {
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 6px;
  filter: none;
}

.proof-strip {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}

.proof-strip article {
  padding: 26px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.proof-strip article:last-child {
  border-right: 0;
}

.proof-strip span {
  display: block;
  margin-bottom: 7px;
  color: #f4d88d;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 900;
  line-height: 1;
}

.proof-strip p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 118px) 0 0;
}

.two-column,
.working-style {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
}

.section-copy p,
.style-list p {
  color: #3d4843;
  font-size: 1.07rem;
}

.section-copy p:last-child,
.style-list p:last-child {
  margin-bottom: 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.experience {
  display: grid;
  grid-template-columns: minmax(210px, 0.36fr) minmax(0, 1fr);
  gap: 34px;
  padding: clamp(24px, 4vw, 42px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(28, 42, 36, 0.07);
}

.experience-meta p {
  margin-bottom: 4px;
  font-weight: 900;
}

.experience-meta span {
  display: block;
  color: var(--muted);
  font-size: 0.94rem;
}

.experience-graphic {
  margin-top: 28px;
  width: min(100%, 236px);
  height: auto;
  padding: 10px;
  border: 1px solid rgba(47, 111, 99, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(229, 238, 233, 0.52)),
    #f7f4ec;
  box-shadow: 0 10px 24px rgba(28, 42, 36, 0.08);
}

.experience-body p {
  color: #3d4843;
}

.check-list {
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: #35413c;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: inset 0 0 0 4px #dbece5;
}

.shows-section .section-heading p:last-child {
  max-width: 680px;
  color: #3d4843;
  font-size: 1.04rem;
}

.showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 22px;
  align-items: stretch;
}

.showcase-card {
  min-height: 100%;
  overflow: hidden;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 14px 32px rgba(28, 42, 36, 0.07);
}

.showcase-media {
  margin: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--soft-green);
  aspect-ratio: 4 / 3;
}

.showcase-card:first-child .showcase-media {
  aspect-ratio: 4 / 3;
}

.showcase-media img,
.showcase-media video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.showcase-media img {
  object-position: center 38%;
}

.showcase-media video {
  background: #17211d;
  pointer-events: none;
}

.showcase-copy {
  padding: 22px;
}

.showcase-label {
  margin-bottom: 8px;
  color: var(--accent-dark);
  font-size: 0.77rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.showcase-copy h3 {
  margin-bottom: 8px;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.showcase-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.reveal-card {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-ready .reveal-card {
    opacity: 0;
    transform: translateY(24px);
    transition:
      opacity 620ms ease,
      transform 620ms ease;
  }

  .reveal-ready .reveal-card.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .reveal-ready .reveal-card:nth-child(2) {
    transition-delay: 120ms;
  }
}

.project-grid,
.skill-groups {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.project-card,
.skill-groups article {
  min-height: 100%;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.project-card {
  display: flex;
  flex-direction: column;
}

.project-card-featured {
  padding-top: 16px;
}

.project-thumb {
  display: block;
  margin: 0 0 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft-green);
  aspect-ratio: 16 / 10;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}

.project-card p,
.skill-groups p,
.education-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.project-link {
  max-width: 100%;
  margin-top: auto;
  padding: 14px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.project-link span {
  min-width: 0;
}

.project-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform 160ms ease;
}

.project-link:hover svg,
.project-link:focus-visible svg {
  transform: translateX(3px);
}

.icon-box {
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  background: var(--soft-green);
  color: var(--accent-dark);
  border-radius: 6px;
}

.icon-box svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.skills-section {
  padding-top: 94px;
}

.skill-groups article:nth-child(2) {
  background: var(--soft-green);
}

.skill-groups article:nth-child(3) {
  background: var(--soft-gold);
}

.education-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 72px);
  padding: clamp(30px, 6vw, 56px);
  background: #24332e;
  color: #fff;
  border-radius: 8px;
}

.education-panel .section-kicker {
  color: #f4d88d;
}

.education-logo {
  width: min(272px, 100%);
  height: auto;
  margin-top: 28px;
  padding: 10px 12px;
  border: 1px solid rgba(244, 216, 141, 0.5);
  border-radius: 6px;
  opacity: 0.88;
}

.education-list {
  display: grid;
  gap: 18px;
}

.education-list article {
  padding-left: 20px;
  border-left: 3px solid #f4d88d;
}

.education-list p {
  color: rgba(255, 255, 255, 0.78);
}

.working-style {
  padding-bottom: clamp(76px, 10vw, 120px);
}

.style-list {
  display: grid;
  gap: 14px;
}

.style-list p {
  margin-bottom: 0;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--line);
}

.footer {
  padding: clamp(48px, 8vw, 82px) max(20px, calc((100% - 1120px) / 2));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: end;
  background: var(--ink);
  color: #fff;
}

.footer .section-kicker {
  color: #f4d88d;
}

.footer h2 {
  max-width: 760px;
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
}

.footer .button-secondary {
  border-color: rgba(255, 255, 255, 0.36);
  color: #fff;
}

.footer .button-secondary:hover,
.footer .button-secondary:focus-visible {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.project-modal[hidden] {
  display: none;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  padding: clamp(18px, 4vw, 42px);
  display: grid;
  place-items: center;
  background: rgba(23, 33, 29, 0.74);
  backdrop-filter: blur(10px);
}

.modal-panel {
  position: relative;
  width: min(1120px, 100%);
  max-height: min(88vh, 860px);
  overflow: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr);
  gap: clamp(22px, 4vw, 42px);
  padding: clamp(18px, 3vw, 32px);
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.modal-panel-wide {
  width: min(1180px, 100%);
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.62fr);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  cursor: pointer;
}

.modal-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.modal-media {
  align-self: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111a17;
  box-shadow: 0 14px 38px rgba(31, 76, 68, 0.16);
}

.modal-media video {
  width: 100%;
  max-height: 68vh;
  display: block;
  background: #111a17;
}

.training-showcase {
  display: grid;
  gap: 18px;
  align-self: start;
}

.training-doc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.training-doc-card {
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.training-doc-card picture,
.training-doc-card img {
  display: block;
}

.training-doc-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
  object-position: top center;
  border-bottom: 1px solid var(--line);
}

.training-doc-card figcaption {
  min-height: 98px;
  padding: 14px;
  display: grid;
  align-content: start;
  gap: 5px;
}

.training-doc-card strong {
  color: var(--ink);
  line-height: 1.2;
}

.training-doc-card span,
.privacy-note {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.privacy-note {
  margin-top: 22px;
  margin-bottom: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.modal-copy {
  align-self: center;
  padding-right: 34px;
}

.modal-copy h2 {
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.modal-copy p {
  color: #3d4843;
}

.modal-points {
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
  list-style: none;
}

.modal-points li {
  position: relative;
  padding-left: 28px;
  color: #35413c;
}

.modal-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.48em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
}

@media (max-width: 920px) {
  .hero,
  .two-column,
  .working-style,
  .experience,
  .showcase-grid,
  .education-panel,
  .footer {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 38px;
  }

  .hero-visual {
    max-width: 620px;
  }

  .hero-portrait {
    justify-self: start;
    max-width: 430px;
  }

  .showcase-card {
    grid-template-rows: auto auto;
  }

  .showcase-media {
    aspect-ratio: 16 / 10;
  }

  .proof-strip,
  .project-grid,
  .skill-groups {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer {
    align-items: start;
  }

  .modal-panel {
    grid-template-columns: 1fr;
  }

  .modal-panel-wide {
    grid-template-columns: 1fr;
  }

  .modal-copy {
    padding-right: 48px;
  }

  .training-doc-grid {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    overflow-x: auto;
    padding-bottom: 4px;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: auto;
  }

  .el-paso-outline {
    top: 82px;
    left: 12px;
    width: min(86vw, 390px);
    opacity: 0.34;
  }

  .nav {
    width: min(100% - 28px, 1120px);
    align-items: flex-start;
  }

  .nav-links {
    max-width: 260px;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px 16px;
    font-size: 0.98rem;
  }

  .hero,
  .section,
  .proof-strip {
    width: min(100% - 28px, 1120px);
  }

  .hero {
    gap: 16px;
    padding-top: 24px;
    padding-bottom: 12px;
  }

  .hero-portrait {
    width: min(58vw, 210px);
    padding: 8px;
  }

  .hero-portrait img {
    max-height: none;
    object-fit: cover;
    object-position: center 18%;
  }

  h1 {
    font-size: clamp(3.1rem, 18vw, 4.4rem);
  }

  .hero-lede {
    font-size: 1.08rem;
  }

  .hero-actions,
  .footer-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .project-link {
    width: 100%;
    justify-content: space-between;
  }

  .proof-strip,
  .project-grid,
  .skill-groups {
    grid-template-columns: 1fr;
  }

  .showcase-grid {
    gap: 16px;
  }

  .showcase-media {
    aspect-ratio: 4 / 3;
  }

  .showcase-copy {
    padding: 18px;
  }

  .proof-strip {
    margin-top: 0;
  }

  .proof-strip article {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .proof-strip article:last-child {
    border-bottom: 0;
  }

  .project-modal {
    padding: 10px;
    place-items: end center;
  }

  .modal-panel {
    max-height: 94vh;
    padding: 14px;
  }

  .modal-close {
    top: 12px;
    right: 12px;
  }

  .modal-copy {
    padding-right: 0;
  }

  .modal-media {
    margin-top: 44px;
  }

  .training-showcase .modal-media {
    margin-top: 44px;
  }

  .training-doc-grid {
    grid-template-columns: 1fr;
    overflow-x: visible;
  }

  .training-doc-card img {
    aspect-ratio: 16 / 10;
  }
}
