:root {
  --paper: #ffffff;
  --ink: #18201f;
  --muted: #56615e;
  --deep: #0f3437;
  --moss: #7f9b80;
  --clay: #a25f3d;
  --cream: #ffffff;
  --line: rgba(15, 52, 55, 0.16);
  --shadow: 0 24px 70px rgba(24, 32, 31, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

a {
  color: inherit;
}

.site-header {
  position: relative;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding: clamp(12px, 2vw, 22px) clamp(16px, 5vw, 64px) 10px;
  background: #fff;
  border-bottom: 3px solid var(--deep);
}

.brand,
nav,
.hero-actions,
.footer-links {
  display: flex;
  align-items: center;
}

.resume-head {
  display: grid;
  gap: 5px;
}

.brand {
  color: var(--deep);
  font-weight: 900;
  text-decoration: none;
  font-size: clamp(38px, 5.4vw, 60px);
  line-height: 0.86;
  letter-spacing: -0.065em;
}

.resume-head p {
  margin: 0;
  color: var(--deep);
  font-size: clamp(14px, 1.65vw, 21px);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.header-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 10px;
  color: var(--muted);
  font-size: clamp(11px, 1.05vw, 14px);
  font-weight: 700;
}

.header-contact a {
  text-decoration: none;
}

nav {
  padding-bottom: 4px;
  gap: clamp(12px, 2.4vw, 22px);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

nav a,
.button,
.project-link,
.range-link,
.footer-links a {
  text-decoration: none;
}

.hero {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(360px, 1.08fr) minmax(260px, 0.72fr);
  align-items: flex-start;
  gap: clamp(26px, 5vw, 72px);
  padding: clamp(22px, 3vw, 34px) clamp(16px, 5vw, 64px) clamp(34px, 5vw, 60px);
  background: #fff;
}

.hero-media {
  position: relative;
  order: 2;
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  max-width: 380px;
  justify-self: end;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 8% -8% -5% 8%;
  border-radius: 999px 999px 44px 44px;
  background: #eef3ef;
  transform: rotate(-4deg);
}

.hero-media-frame {
  position: relative;
  width: min(29vw, 330px);
  aspect-ratio: 9 / 16;
}

.hero-photo,
.hero-video,
.hero-end-frame {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 44%;
  border: 10px solid #fff;
  border-radius: 999px 999px 42px 42px;
  box-shadow: var(--shadow);
}

.hero-photo {
  position: relative;
  z-index: 1;
  transition: opacity 240ms ease;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  transition: opacity 240ms ease;
  pointer-events: none;
}

.hero-end-frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
}

.hero-media.is-video-live .hero-photo {
  opacity: 0;
}

.hero-media.is-video-live .hero-video {
  opacity: 1;
}

.hero-media.is-video-ended .hero-video {
  opacity: 0;
}

.hero-media.is-video-ended .hero-end-frame {
  opacity: 1;
}

.resume-sheet-button {
  position: absolute;
  left: 22%;
  top: 38.6%;
  z-index: 2;
  width: 49%;
  height: 44%;
  padding: 1.6% 1.6% 9%;
  border: 1px solid rgba(24, 32, 31, 0.18);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(24, 32, 31, 0.14);
  opacity: 0;
  transform: rotate(-0.4deg) translateY(-9%) scale(0.97);
  transition: opacity 120ms ease, transform 180ms cubic-bezier(0.22, 0.8, 0.28, 1), box-shadow 180ms ease;
  pointer-events: none;
  cursor: zoom-in;
}

.resume-sheet-overlay {
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(24, 32, 31, 0.16);
  border-radius: 4px;
  background: #fff;
  object-fit: contain;
  object-position: center top;
}

.resume-sheet-hint {
  position: absolute;
  left: 50%;
  bottom: 4%;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(24, 32, 31, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--deep);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transform: translateX(-50%);
  opacity: 1;
  transition: opacity 120ms ease;
}

.hero-media.is-resume-visible .resume-sheet-button {
  opacity: 1;
  transform: rotate(-0.4deg) translateY(0) scale(1);
}

.hero-media.is-video-ended .resume-sheet-button {
  opacity: 1;
  pointer-events: auto;
}

.hero-media.is-resume-visible .resume-sheet-hint {
  opacity: 0;
}

.hero-media.is-video-ended .resume-sheet-hint {
  opacity: 1;
}

.viewer-button {
  position: absolute;
  right: 14px;
  top: 16px;
  z-index: 3;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(15, 52, 55, 0.82);
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.viewer-button:hover,
.viewer-button:focus-visible {
  background: rgba(15, 52, 55, 0.94);
  transform: translateY(-1px);
  outline: none;
}

.resume-sheet-button:hover,
.resume-sheet-button:focus-visible {
  transform: rotate(-0.4deg) translateY(-1px);
  box-shadow: 0 16px 28px rgba(24, 32, 31, 0.16);
  outline: none;
}

.resume-lightbox {
  width: min(92vw, 980px);
  max-height: 90vh;
  padding: 18px;
  border: none;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 30px 100px rgba(24, 32, 31, 0.28);
}

.resume-lightbox::backdrop {
  background: rgba(10, 20, 21, 0.62);
}

.resume-lightbox img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.resume-lightbox-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 12px;
}

.resume-download,
.resume-lightbox-close {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--deep);
  font-family: inherit;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.resume-download {
  background: var(--deep);
  color: #fff;
}

.resume-lightbox-close {
  background: #fff;
}

.hero-copy {
  order: 1;
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  max-width: 690px;
  padding-top: 0;
}

.eyebrow,
.project-meta {
  display: block;
  margin: 0 0 12px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 620px;
  margin-bottom: 14px;
  color: var(--deep);
  font-size: clamp(38px, 4.6vw, 56px);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

h2 {
  margin-bottom: 16px;
  color: var(--deep);
  font-size: clamp(34px, 5vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-text,
.section-heading p,
.agent-copy p,
.pitch p {
  max-width: 600px;
  color: var(--muted);
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.42;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--deep);
  font-weight: 900;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 16px;
}

.hero-links a {
  color: var(--deep);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.hero-links a::after {
  content: " ->";
  color: var(--clay);
}

.button.primary {
  background: var(--deep);
  color: var(--cream);
}

.proof,
.snapshot,
.range,
.agent,
.pitch,
.footer {
  padding: clamp(58px, 8vw, 112px) clamp(16px, 5vw, 64px);
}

.snapshot {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  background: #f8faf8;
  border-block: 1px solid var(--line);
}

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

.snapshot-heading {
  margin-bottom: 0;
}

.snapshot-grid {
  display: grid;
  gap: 12px;
}

.snapshot-card {
  padding: clamp(18px, 2.6vw, 26px);
  border: 1px solid rgba(15, 52, 55, 0.16);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(24, 32, 31, 0.06);
}

.snapshot-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--clay);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.snapshot-card p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.55vw, 18px);
  line-height: 1.42;
}

.snapshot-download {
  display: grid;
  gap: 12px;
}

.snapshot-download a {
  width: fit-content;
  color: var(--deep);
  font-weight: 900;
  text-decoration: none;
}

.snapshot-download a::after {
  content: " ->";
  color: var(--clay);
}

.snapshot-proof {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding-top: 6px;
}

.snapshot-proof span {
  padding: 9px 12px;
  border: 1px solid rgba(15, 52, 55, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--deep);
  font-size: 12px;
  font-weight: 900;
}

.project-list {
  display: grid;
  gap: 12px;
}

.project-link {
  position: relative;
  display: grid;
  grid-template-columns: 0.82fr 1.35fr auto;
  gap: clamp(16px, 4vw, 42px);
  align-items: center;
  min-height: 148px;
  padding: clamp(20px, 4vw, 34px);
  border-top: 1px solid var(--line);
  color: var(--ink);
  transition: background 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.project-link:last-child {
  border-bottom: 1px solid var(--line);
}

.project-link:hover,
.project-link:focus-visible {
  background: #f7faf8;
  border-color: rgba(15, 52, 55, 0.28);
  transform: translateX(6px);
  outline: none;
}

.project-link strong {
  color: var(--deep);
  font-size: clamp(27px, 3.8vw, 48px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.project-link span:not(.project-meta) {
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.42;
}

.project-link em {
  color: var(--clay);
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.project-link em::after {
  content: " ->";
}

.project-link.feature {
  background: #f7faf8;
}

.range {
  background: #fff;
  border-top: 1px solid var(--line);
}

.range-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.range-link {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 250px;
  padding: clamp(18px, 2.4vw, 28px);
  background: #fff;
  color: var(--ink);
  transition: background 180ms ease, transform 180ms ease;
}

.range-link:hover,
.range-link:focus-visible {
  background: #f7faf8;
  transform: translateY(-4px);
  outline: none;
}

.range-link span {
  color: var(--clay);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.range-link strong {
  color: var(--deep);
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.range-link em {
  color: var(--muted);
  font-size: 15px;
  font-style: normal;
  line-height: 1.45;
}

.agent {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(280px, 1fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: center;
  background: #f8faf8;
  border-block: 1px solid var(--line);
}

.agent-widget {
  display: grid;
  align-content: center;
  min-height: 420px;
  padding: clamp(14px, 3vw, 24px);
  border: 1px solid rgba(15, 52, 55, 0.18);
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(24, 32, 31, 0.1);
}

.agent-mount {
  display: grid;
  justify-items: start;
  gap: 18px;
}

.agent-mount p,
.agent-disclaimer {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.agent-mount p {
  max-width: 300px;
  margin: 0;
  color: var(--deep);
  font-size: 20px;
  line-height: 1.22;
}

.agent-mount elevenlabs-convai {
  width: 100%;
}

.pitch {
  max-width: 1120px;
}

.footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  background: var(--deep);
  color: var(--cream);
}

.footer .eyebrow,
.footer h2 {
  color: var(--cream);
}

.footer-links {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 20px;
  color: rgba(255, 250, 240, 0.86);
  font-weight: 850;
}

@media (max-width: 840px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 14px;
    align-content: start;
    padding-top: 14px;
  }

  .hero-media {
    order: -1;
    grid-column: 1;
    grid-row: auto;
    max-width: none;
  }

  .hero-copy {
    grid-column: 1;
    grid-row: auto;
  }

  .hero-media img {
    margin: 0 auto;
  }

  .hero-media-frame {
    width: min(100%, 300px);
    max-height: 36svh;
    margin: 0 auto;
  }

  .snapshot,
  .project-link,
  .agent {
    grid-template-columns: 1fr;
  }

  .range-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-link {
    min-height: auto;
    gap: 10px;
  }

  .project-link:hover,
  .project-link:focus-visible {
    transform: translateY(-2px);
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .site-header {
    gap: 7px;
    padding: 10px 14px 8px;
  }

  .brand {
    font-size: clamp(31px, 10.6vw, 42px);
  }

  .resume-head p {
    font-size: 11px;
    line-height: 1.15;
  }

  .header-contact {
    gap: 2px 7px;
    font-size: 10px;
    line-height: 1.25;
  }

  nav {
    display: flex;
    gap: 12px;
    padding-bottom: 0;
    font-size: 10px;
  }

  nav a {
    min-height: auto;
  }

  .hero,
  .snapshot,
  .proof,
  .range,
  .agent,
  .pitch,
  .footer {
    padding-right: 14px;
    padding-left: 14px;
  }

  .hero-media-frame {
    width: min(100%, 244px);
    max-height: 29svh;
    margin: 0;
  }

  .hero-photo,
  .hero-video,
  .hero-end-frame {
    border-width: 7px;
    border-radius: 999px 999px 32px 32px;
  }

  .resume-sheet-button {
    left: 22.6%;
    top: 38.8%;
    width: 48.8%;
    height: 43.3%;
    padding-bottom: 9.2%;
  }

  .resume-sheet-hint {
    bottom: 3.6%;
    font-size: 8px;
  }

  .hero-media {
    justify-self: start;
  }

  .viewer-button {
    right: 10px;
    top: 10px;
    min-height: 34px;
    padding: 0 12px;
    font-size: 11px;
  }

  h1 {
    font-size: clamp(31px, 9.7vw, 42px);
    margin-bottom: 10px;
  }

  h2 {
    font-size: clamp(32px, 10vw, 46px);
  }

  .hero-text,
  .section-heading p,
  .agent-copy p,
  .pitch p {
    font-size: 15px;
  }

  .button {
    min-height: 42px;
    padding: 0 14px;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .button {
    width: auto;
  }

  .hero-links {
    gap: 8px 12px;
    margin-top: 14px;
  }

  .hero-links a {
    font-size: 12px;
  }

  .project-list {
    gap: 0;
  }

  .project-link {
    padding: 22px 0;
  }

  .project-link strong {
    font-size: 31px;
  }

  .project-link.feature {
    padding-right: 14px;
    padding-left: 14px;
    border-radius: 24px;
  }

  .range-list {
    grid-template-columns: 1fr;
  }

  .range-link {
    min-height: 180px;
  }

  .agent-widget {
    min-height: 380px;
    padding: 12px;
    border-radius: 24px;
  }

  .footer-links {
    display: grid;
    width: 100%;
    gap: 10px;
  }

  .footer-links a {
    min-height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 250, 240, 0.2);
    border-radius: 999px;
  }
}
