:root {
  --bg: #0d0d0d;
  --bg-soft: #151515;
  --panel: rgba(24, 24, 24, 0.84);
  --panel-strong: rgba(30, 30, 30, 0.94);
  --text: #f0ede8;
  --muted: #c4b4a7;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #e05c2a;
  --accent-deep: #fff4ec;
  --accent-wash: rgba(224, 92, 42, 0.18);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background-color: #0d0d0d;
  background:
    radial-gradient(circle at 12% 10%, rgba(224, 92, 42, 0.18), transparent 24%),
    radial-gradient(circle at 85% 20%, rgba(224, 92, 42, 0.12), transparent 22%),
    linear-gradient(180deg, #121212 0%, var(--bg) 45%, #090909 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 92%);
}

.page-shell {
  position: relative;
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 0 0 3rem;
}

.site-header,
.hero,
.experience-section,
.portfolio-section,
.resume-section,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2.4rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.site-nav a,
.footer-links a,
.text-link {
  color: var(--text);
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
  opacity: 0.72;
}

.site-nav a:hover,
.footer-links a:hover,
.text-link:hover {
  color: var(--accent);
  opacity: 1;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  margin-bottom: 2rem;
  min-height: 78vh;
}

.hero-copy,
.hero-panel,
.experience-card,
.project-card,
.resume-frame,
.site-footer {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 2.8rem 2rem 2rem;
  border-radius: 0;
  overflow: hidden;
  background: rgba(13, 13, 13, 0.96);
  border-width: 0 1px 1px 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.hero-panel {
  position: relative;
  min-height: 620px;
  border-radius: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #201713 0%, #171210 100%);
  border-width: 0 0 1px 0;
}

.eyebrow,
.section-label,
.card-tag,
.timeline-role {
  color: var(--muted);
}

.eyebrow,
.section-label,
.card-tag {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 800;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
  line-height: 0.97;
  margin: 0;
}

h1 {
  max-width: 10ch;
  font-size: clamp(3rem, 6vw, 5.1rem);
  line-height: 1.06;
  margin: 1rem 0 0.55rem;
}

h2 {
  font-size: clamp(2.2rem, 4.4vw, 3.5rem);
  margin-bottom: 0.95rem;
}

h3 {
  font-size: 1.45rem;
  margin-bottom: 0.55rem;
}

p,
li,
a {
  font-size: 1rem;
  line-height: 1.65;
}

.hero-text {
  max-width: 30rem;
  font-size: 1.08rem;
  color: rgba(244, 237, 231, 0.72);
}

.accent-word {
  color: var(--accent);
}

.hero-actions,
.hero-badges,
.chip-row,
.resume-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-actions {
  flex-wrap: nowrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.hero-badges {
  margin-top: 1.8rem;
}

.hero-badges span {
  padding: 0.62rem 0.98rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(240, 237, 232, 0.86);
}

.button,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  text-decoration: none;
  transition:
    transform 220ms ease,
    background 220ms ease,
    color 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.button {
  padding: 0.92rem 1.12rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 28px rgba(40, 29, 25, 0.09);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.button:hover,
.chip:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, #cf5122 0%, #e05c2a 54%, #f17947 100%);
  color: #fff8f4;
  border: 1px solid transparent;
  box-shadow: 0 16px 34px rgba(224, 92, 42, 0.26);
}

.button-secondary,
.chip {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.button-secondary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
}

.button-ghost {
  color: var(--accent-deep);
  border: 1px solid rgba(40, 29, 25, 0.12);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 10px 24px rgba(40, 29, 25, 0.05);
}

.button-primary:hover {
  box-shadow: 0 20px 40px rgba(224, 92, 42, 0.34);
}

.button-secondary:hover,
.button-ghost:hover {
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
  border-color: rgba(224, 92, 42, 0.36);
}

.button-icon {
  width: 1.05rem;
  height: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.button-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.chip {
  min-width: max-content;
  padding: 0.65rem 1rem;
  white-space: nowrap;
}

.hero-photo {
  width: 100%;
  height: 100%;
  min-height: 620px;
  display: block;
  object-fit: cover;
  object-position: center 16%;
  opacity: 0.92;
}

.photo-caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(13, 13, 13, 0.88), rgba(13, 13, 13, 0.62));
  color: #fff8f4;
}

.photo-caption p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.45;
}

.section-heading,
.split-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin: 0 0 1rem;
}

.portfolio-subtext {
  max-width: none;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
  white-space: nowrap;
}

.experience-section,
.portfolio-section,
.resume-section {
  margin-bottom: 2rem;
  padding: 0 2.5rem;
}

.portfolio-section {
  margin-top: 1.6rem;
}

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

.experience-card,
.logo-experience-card {
  padding: 1.5rem;
  border-radius: 28px;
}

.accent-card {
  background:
    linear-gradient(180deg, rgba(255, 215, 203, 0.58), rgba(255, 248, 242, 0.7)),
    var(--panel);
}

.timeline-role {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.88rem;
  font-weight: 700;
}

.logo-experience-card {
  position: relative;
  min-height: 270px;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.logo-mark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
}

.company-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  transition: transform 260ms ease, opacity 260ms ease;
}

.company-logo-maxled {
  object-fit: cover;
  object-position: center center;
}

.logo-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.45rem;
  padding: 1.4rem;
  background:
    linear-gradient(180deg, rgba(20, 16, 14, 0.12) 0%, rgba(20, 16, 14, 0.34) 42%, rgba(20, 16, 14, 0.86) 100%);
  color: #fff8f4;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.logo-card-overlay h3,
.logo-card-overlay .timeline-role,
.logo-card-overlay p,
.logo-card-overlay a {
  color: #fff8f4;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.logo-card-overlay h3 {
  font-size: 1.2rem;
  margin-bottom: 0.1rem;
}

.logo-card-overlay p {
  margin: 0;
}

.logo-card-overlay .timeline-role {
  font-size: 0.82rem;
  line-height: 1.4;
  margin-bottom: 0.15rem;
}

.logo-card-overlay .chip {
  border-color: rgba(255, 248, 242, 0.34);
  background: rgba(20, 16, 14, 0.28);
  color: #fff8f4;
}

.logo-experience-card:hover .logo-card-overlay,
.logo-experience-card:focus-within .logo-card-overlay {
  opacity: 1;
  transform: translateY(0);
}

.logo-experience-card:hover .company-logo,
.logo-experience-card:focus-within .company-logo {
  transform: scale(1.02);
  opacity: 0.08;
}

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

.project-card {
  padding: 1rem;
  border-radius: 30px;
}

.project-card-large {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 1rem;
  align-items: stretch;
}

.project-copy {
  padding: 0.55rem 0.3rem 0.2rem;
}

.project-preview {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(32, 24, 22, 0.1);
  background: #121212;
  min-height: 340px;
}

.project-card-large .project-preview {
  min-height: 430px;
}

.project-preview object,
.project-preview iframe {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
}

.project-link-preview {
  width: 100%;
  min-height: inherit;
  display: block;
  color: var(--text);
  text-decoration: none;
  background:
    radial-gradient(circle at top right, rgba(255, 106, 61, 0.16), transparent 26%),
    linear-gradient(180deg, #f7efe8 0%, #f1e3d7 100%);
}

.project-link-preview:hover .maxled-preview-frame img {
  transform: scale(1.02);
}

.maxled-preview {
  height: 100%;
  position: relative;
}

.maxled-preview-frame {
  display: grid;
  place-items: center;
  min-height: inherit;
  overflow: hidden;
}

.maxled-preview-frame img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  max-height: none;
  object-fit: cover;
  object-position: center top;
  transition: transform 180ms ease;
}

.project-card-large .maxled-preview-frame img {
  min-height: 430px;
}

.pdf-preview-card {
  position: relative;
  min-height: inherit;
  display: block;
  color: var(--text);
  text-decoration: none;
  background: #121212;
}

.pdf-slide-frame {
  min-height: inherit;
  display: grid;
  place-items: center;
  background: #121212;
}

.pdf-slide-frame img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
  object-fit: cover;
  object-position: center center;
}

.pdf-preview-buildon .pdf-slide-frame img {
  object-position: 24% center;
}

.pdf-preview-netflix .pdf-slide-frame img {
  object-position: 22% center;
}

.project-hover-card {
  position: relative;
}

.project-hover-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.55rem;
  padding: 1.2rem;
  background: linear-gradient(180deg, rgba(20, 16, 14, 0.06), rgba(20, 16, 14, 0.74));
  color: #fff8f4;
  opacity: 0;
  transition: opacity 180ms ease;
}

.project-hover-overlay strong,
.project-hover-overlay p,
.project-hover-tag {
  color: #fff8f4;
}

.project-hover-tag {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.86;
}

.project-hover-overlay strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
  line-height: 1;
}

.project-hover-overlay p {
  margin: 0;
  max-width: 24rem;
  line-height: 1.5;
}

.project-hover-card:hover .project-hover-overlay,
.project-hover-card:focus-within .project-hover-overlay {
  opacity: 1;
}

.resume-frame {
  overflow: hidden;
  border-radius: 30px;
  min-height: 740px;
}

.resume-frame object {
  display: block;
  min-height: 740px;
}

.resume-frame iframe {
  width: 100%;
  min-height: 740px;
  height: 100%;
  display: block;
  border: 0;
  background: #ffffff;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
  padding: 2.5rem;
  border-radius: 30px;
  margin: 0 2.5rem;
}

.footer-links {
  align-content: start;
}

@media (max-width: 980px) {
  .hero,
  .experience-grid,
  .logo-experience-grid,
  .project-grid,
  .project-card-large,
  .site-footer,
  .split-heading {
    grid-template-columns: 1fr;
  }

  .split-heading {
    display: grid;
    align-items: start;
  }

  .project-card-large {
    grid-column: span 1;
  }

  .hero-panel,
  .hero-photo {
    min-height: 440px;
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: 100%;
  }

  .site-nav {
    gap: 0.8rem 1.5rem;
    padding: 0.8rem 1rem;
  }

  .site-header {
    gap: 1rem;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .hero-copy,
  .experience-card,
  .project-card,
  .site-footer {
    padding: 1.25rem;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }

  .experience-section,
  .portfolio-section,
  .resume-section {
    padding: 0 1rem;
  }

  .site-footer {
    margin: 0 1rem;
    padding: 1.5rem;
  }

  .resume-frame,
  .resume-frame object,
  .resume-frame iframe {
    min-height: 560px;
  }
}

@media (hover: none) {
  .logo-card-overlay {
    opacity: 1;
    transform: translateY(0);
  }

  .company-logo {
    opacity: 0.18;
  }
}
