:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #16181d;
  --muted: #5b6474;
  --line: #d8deea;
  --accent: #ef725f;
  --teal: #00b894;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.topbar-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.site-nav a {
  text-decoration: none;
  color: #2c3b5b;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
}

.site-nav a:hover {
  background: #eefaf7;
}

.site-nav a.is-active {
  background: #ef725f;
  color: #ffffff;
}

.resume-page {
  padding: 2.5rem 0 3rem;
}

.resume-header h1 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
}

.resume-title {
  margin: 0.6rem 0 0;
  font-weight: 700;
  color: #2c3b5b;
}

.resume-summary {
  margin: 0.8rem 0 0;
  color: var(--muted);
  max-width: 80ch;
}

.resume-actions {
  margin: 0.8rem 0 0;
}

.resume-section {
  margin-top: 2rem;
}

.resume-section h2 {
  margin: 0 0 0.8rem;
  font-family: "Sora", sans-serif;
  font-size: 1.3rem;
  color: #ef725f;
}

.resume-role {
  background: var(--surface);
  border: 1px solid #d4dce9;
  border-radius: 14px;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
}

.role-head h3,
.resume-role h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1.05rem;
}

.role-meta {
  margin: 0.35rem 0 0;
  color: #4b5b73;
  font-size: 0.92rem;
}

.resume-list {
  margin: 0.7rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  display: grid;
  gap: 0.45rem;
}

.brand-logo img {
  width: clamp(200px, 28vw, 320px);
  height: auto;
  display: block;
}

.tag {
  margin: 0;
  color: #197a67;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero {
  padding: clamp(2.8rem, 7vw, 5.6rem) 0 2.8rem;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.03;
  max-width: 14ch;
}

.lead {
  margin: 1rem 0 0;
  max-width: 64ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}

.sublead {
  margin: 0.8rem 0 0;
  color: #2e3f62;
  font-weight: 600;
}

.hero-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.btn-solid,
.btn-outline,
.btn-minimal {
  text-decoration: none;
  border-radius: 999px;
  padding: 0.6rem 0.95rem;
  font-weight: 700;
  font-size: 0.92rem;
}

.btn-solid {
  background: var(--accent);
  color: #ffffff;
  border: 1px solid var(--accent);
}

.btn-outline {
  border: 1px solid var(--teal);
  color: #197a67;
  background: #ffffff;
}

.btn-minimal {
  border: 1px solid #d4dce9;
  color: #2c3b5b;
  background: #f6f8fc;
}

.hero-photo {
  margin: 0;
  justify-self: start;
  width: clamp(140px, 20vw, 220px);
  aspect-ratio: 1 / 1;
  border: 3px solid #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px #d8deea,
    0 14px 24px rgba(28, 38, 56, 0.14);
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section {
  padding: 0 0 3rem;
}

.section-head {
  margin-bottom: 1.05rem;
}

.section-head h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.35rem, 3vw, 2rem);
  display: inline-block;
  color: #ef725f;
}

.section-head p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.section-link {
  margin: 0.6rem 0 1.1rem;
}

.text-link {
  color: #197a67;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid rgba(25, 122, 103, 0.25);
}

.text-link:hover {
  border-bottom-color: rgba(25, 122, 103, 0.7);
}

.link-sep {
  margin: 0 0.4rem;
  color: #9aa6b2;
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.snapshot-card {
  background: var(--surface);
  border: 1px solid #d4dce9;
  border-top: 3px solid rgba(239, 114, 95, 0.62);
  border-radius: 14px;
  padding: 1rem;
}

.snapshot-card h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1rem;
}

.list-clean {
  margin: 0.7rem 0 0;
  padding-left: 1rem;
  color: var(--muted);
  display: grid;
  gap: 0.45rem;
  font-size: 0.92rem;
}

.skills-title {
  margin: 1.2rem 0 0.55rem;
  font-family: "Sora", sans-serif;
  font-size: 1rem;
  color: #2c3b5b;
}

.skills-row {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem 1.2rem;
}

.skills-row span {
  color: #2d4668;
  font-size: 0.93rem;
  font-weight: 500;
  padding: 0.1rem 0;
  border-bottom: 1px solid #e4ebf5;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.work-card,
.slot-card,
.about-card {
  background: var(--surface);
  border: 1px solid #d4dce9;
  border-radius: 14px;
}

.work-card {
  padding: 0.9rem;
  border-top: 3px solid rgba(0, 184, 148, 0.6);
}

.media-placeholder {
  border: 1px dashed #bcc6d8;
  border-radius: 10px;
  background: #f6f8fc;
  color: #6d7686;
  min-height: 170px;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
}

.work-card h3 {
  margin: 0.8rem 0 0;
  font-family: "Sora", sans-serif;
  font-size: 1.03rem;
}

.meta {
  margin: 0.3rem 0 0;
  color: #2e3f62;
  font-size: 0.88rem;
}

.summary {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.capability-card {
  background: var(--surface);
  border: 1px solid #d4dce9;
  border-top: 3px solid rgba(239, 114, 95, 0.62);
  border-radius: 14px;
  padding: 1rem;
}

.capability-card h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1rem;
}

.slot-grid {
  display: grid;
  gap: 0.95rem;
}

.slot-card {
  padding: 1rem;
  border-left: 4px solid rgba(239, 114, 95, 0.52);
}

.slot-card h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1.06rem;
}

.story-grid {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.story-grid div {
  background: #f9fbff;
  border: 1px solid #dfe7f2;
  border-radius: 10px;
  padding: 0.7rem;
}

.story-grid h4 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 0.83rem;
  color: #2d3c5d;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.story-grid p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.case-media {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.featured-media {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

.logo-hero-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 12px;
  border: 1px solid #dfe7f2;
  background: #f9fbff;
}

.logo-hero-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e4ebf5;
  background: #ffffff;
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.logo-hero-grid img:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(24, 34, 56, 0.12);
}

.featured-hero {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #dfe7f2;
  background: #f9fbff;
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.featured-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(24, 34, 56, 0.12);
}

.case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #dfe7f2;
  background: #f9fbff;
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.featured-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #dfe7f2;
  background: #f9fbff;
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.case-media img:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(24, 34, 56, 0.12);
}

.featured-media img:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(24, 34, 56, 0.12);
}

.case-inline {
  margin-top: 0.7rem;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid #dfe7f2;
  background: #f9fbff;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 18, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 1000;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-image {
  max-width: min(92vw, 1100px);
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  background: #ffffff;
}

.lightbox-video {
  max-width: min(92vw, 1100px);
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  background: #000000;
  display: none;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: #ffffff;
  border: 1px solid #d4dce9;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #ffffff;
  border: 1px solid #d4dce9;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.lightbox-prev {
  left: 1.5rem;
}

.lightbox-next {
  right: 1.5rem;
}
}

.about-card {
  padding: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-left: 4px solid rgba(0, 184, 148, 0.65);
}

.contact-card {
  padding: 2rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 1.5rem;
}

.about-card h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1.22rem;
}

.about-card p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  max-width: 62ch;
}

.contact-photo {
  margin: 0;
  width: 120px;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  flex: 0 0 auto;
  border: 2px solid #ffffff;
  box-shadow: 0 8px 16px rgba(24, 34, 56, 0.12);
}

.contact-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cta {
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
  border-radius: 999px;
  padding: 0.6rem 1rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--accent);
}

@media (max-width: 980px) {
  .hero-layout,
  .snapshot-grid,
  .work-grid,
  .capabilities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

@media (max-width: 720px) {
  .hero-layout,
  .snapshot-grid,
  .work-grid,
  .story-grid,
  .capabilities-grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    display: none;
  }

  .skills-row {
    grid-template-columns: 1fr;
  }

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

  .contact-card {
    grid-template-columns: 1fr;
    align-items: flex-start;
    row-gap: 1rem;
  }

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