:root {
  --bg: #f4ecdc;
  --bg-soft: #fff9ef;
  --surface: rgba(255, 251, 243, 0.86);
  --surface-strong: #fffdf8;
  --ink: #132032;
  --muted: #526170;
  --line: rgba(19, 32, 50, 0.12);
  --copper: #bf6336;
  --teal: #0e7c7b;
  --gold: #d29b18;
  --berry: #90455c;
  --green: #3b7b58;
  --shadow: 0 22px 60px rgba(24, 28, 41, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(210, 155, 24, 0.18), transparent 24%),
    radial-gradient(circle at 85% 10%, rgba(14, 124, 123, 0.16), transparent 22%),
    linear-gradient(180deg, #f7f0e2 0%, #f2e7d2 46%, #f9f2e8 100%);
  font-family: "IBM Plex Sans", sans-serif;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.25;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.page-shell {
  position: relative;
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
  padding-bottom: 3rem;
}

.topbar {
  position: sticky;
  top: 1rem;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.8);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 28px rgba(19, 32, 50, 0.08);
}

.brand {
  font-family: "Sora", sans-serif;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.hero,
.section,
.contact-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(255, 247, 234, 0.92)),
    linear-gradient(135deg, rgba(191, 99, 54, 0.12), rgba(14, 124, 123, 0.08));
}

.hero-copy h1,
.section h2,
.contact-card h2,
.profile-copy h2,
.featured-body h3,
.strength-card h3,
.project-list-card h3,
.summary-card h3,
.experience-card h3,
.commercial-card h3,
.not-found h1 {
  font-family: "Sora", sans-serif;
  letter-spacing: -0.03em;
  margin: 0;
}

.hero-copy h1 {
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 0.95;
}

.hero-intro {
  max-width: 44rem;
  margin: 1rem 0 0;
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--muted);
}

.availability-banner {
  margin: 1.25rem 0 0;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(19, 32, 50, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--muted);
  line-height: 1.6;
}

.availability-banner strong {
  color: var(--ink);
}

.hero-kicker {
  margin: 0 0 1rem;
  color: var(--muted);
  font-weight: 600;
}

.eyebrow,
.panel-label,
.project-category {
  margin: 0 0 0.75rem;
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
}

.cta-row,
.contact-actions,
.project-links,
.project-list-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

.cta-row {
  margin-top: 1.5rem;
}

.button,
.filter-chip {
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button {
  padding: 0.92rem 1.3rem;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--copper), #d8854f);
  color: white;
  box-shadow: 0 18px 30px rgba(191, 99, 54, 0.22);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.6);
}

.stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0;
  margin: 1.5rem 0 0;
  list-style: none;
}

.stat-strip li,
.chip,
.filter-chip {
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.hero-panel {
  display: grid;
  gap: 1rem;
}

.panel-card,
.profile-card,
.summary-card,
.strength-card,
.project-list-card,
.contact-card,
.experience-card,
.commercial-card {
  padding: 1.3rem;
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.88);
}

.profile-card,
.summary-card,
.experience-card,
.commercial-card {
  border: 1px solid var(--line);
  box-shadow: 0 18px 38px rgba(19, 32, 50, 0.08);
}

.profile-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1rem;
  margin: 0;
}

.profile-photo-shell {
  aspect-ratio: 1 / 1.15;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(19, 32, 50, 0.1), rgba(210, 155, 24, 0.12));
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-copy h2 {
  margin-bottom: 0.85rem;
  font-size: 1.35rem;
  line-height: 1.15;
}

.profile-links,
.career-points,
.experience-points,
.detail-list {
  display: grid;
  gap: 0.7rem;
  padding-left: 1.2rem;
  margin: 0;
}

.profile-links {
  padding-left: 1rem;
}

.profile-links a,
.commercial-domain a {
  color: var(--teal);
  font-weight: 700;
  text-decoration: none;
  word-break: break-word;
}

.panel-card-accent,
.summary-card-accent {
  background:
    linear-gradient(135deg, rgba(14, 124, 123, 0.11), rgba(210, 155, 24, 0.16)),
    rgba(255, 253, 248, 0.9);
}

.panel-card h2 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.hero-highlights {
  display: grid;
  gap: 0.9rem;
  padding-left: 1.2rem;
  margin: 0;
  color: var(--muted);
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.section {
  margin-top: 1.6rem;
  padding: clamp(1.25rem, 2.6vw, 2rem);
  border-radius: 30px;
  background: rgba(255, 251, 244, 0.82);
}

.section-heading {
  max-width: 48rem;
  margin-bottom: 1.6rem;
}

.section-heading h2,
.contact-card h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.section-heading p:last-child,
.strength-card p,
.project-summary,
.project-impact,
.contact-card p,
.project-meta,
.experience-meta,
.commercial-domain,
.carousel-note,
.commercial-status {
  color: var(--muted);
  line-height: 1.7;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1rem;
}

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

.skill-group {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.62);
}

.skill-group h3 {
  margin-bottom: 0.9rem;
  font-size: 1rem;
}

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

.experience-card h3,
.commercial-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.experience-meta,
.commercial-domain {
  margin: 0 0 0.8rem;
}

.experience-points {
  color: var(--muted);
}

.carousel-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.carousel-note {
  margin: 0;
  max-width: 40rem;
}

.carousel-controls {
  display: flex;
  gap: 0.75rem;
}

.carousel-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  padding: 0.8rem 1rem;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.commercial-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(340px, 36vw);
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(19, 32, 50, 0.28) transparent;
}

.commercial-card {
  display: grid;
  gap: 1rem;
  scroll-snap-align: start;
  min-height: 100%;
}

.commercial-media {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(19, 32, 50, 0.08), rgba(255, 255, 255, 0.4));
  aspect-ratio: 16 / 9;
}

.commercial-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.commercial-body {
  display: grid;
  gap: 0.65rem;
}

.commercial-body .project-category,
.commercial-body h3,
.commercial-body .commercial-domain,
.commercial-body .project-summary,
.commercial-body .commercial-status {
  margin: 0;
}

.commercial-status {
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

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

.featured-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.featured-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, rgba(19, 32, 50, 0.08), rgba(255, 255, 255, 0.4));
}

.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.featured-body {
  padding: 1.35rem;
}

.featured-body h3 {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
}

.project-impact {
  margin-bottom: 1rem;
}

.project-links {
  margin-top: 1.2rem;
}

.project-links a,
.project-list-bottom a {
  font-weight: 700;
  text-decoration: none;
  color: var(--teal);
}

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

.strength-card {
  min-height: 100%;
}

.strength-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.8rem;
}

.project-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: flex-end;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.filter-chip {
  background: rgba(255, 255, 255, 0.56);
}

.filter-chip.active {
  border-color: transparent;
  background: var(--ink);
  color: white;
}

.search-field {
  display: grid;
  gap: 0.45rem;
  min-width: min(100%, 24rem);
  color: var(--muted);
}

.search-field input {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  font: inherit;
}

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

.project-list-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.project-list-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.project-meta {
  margin: 0;
  font-size: 0.95rem;
  text-align: right;
}

.project-list-card-empty {
  grid-column: 1 / -1;
  text-align: center;
}

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

.detail-list {
  padding-left: 0;
  list-style: none;
}

.detail-list li {
  display: grid;
  gap: 0.2rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.58);
}

.detail-list strong {
  font-family: "Sora", sans-serif;
}

.contact-card {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 0;
  background:
    linear-gradient(135deg, rgba(19, 32, 50, 0.95), rgba(34, 54, 77, 0.94)),
    linear-gradient(135deg, rgba(191, 99, 54, 0.3), rgba(14, 124, 123, 0.2));
  color: white;
}

.contact-card .eyebrow {
  color: #f7c17d;
}

.contact-card p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-card .button-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border-color: rgba(255, 255, 255, 0.18);
}

.footer {
  padding: 1.8rem 0 0;
  text-align: center;
  color: var(--muted);
}

.not-found {
  width: min(720px, calc(100% - 2rem));
  margin: 6rem auto;
  padding: 2rem;
  border-radius: 28px;
  background: rgba(255, 251, 244, 0.86);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.accent-copper .project-category {
  color: var(--copper);
}

.accent-ink .project-category {
  color: var(--ink);
}

.accent-teal .project-category {
  color: var(--teal);
}

.accent-gold .project-category {
  color: var(--gold);
}

.accent-berry .project-category {
  color: var(--berry);
}

.accent-green .project-category {
  color: var(--green);
}

.reveal {
  animation: rise-in 720ms cubic-bezier(0.2, 1, 0.3, 1) both;
}

.reveal-delay-1 {
  animation-delay: 0.04s;
}

.reveal-delay-2 {
  animation-delay: 0.12s;
}

.reveal-delay-3 {
  animation-delay: 0.2s;
}

.reveal-delay-4 {
  animation-delay: 0.28s;
}

.reveal-delay-5 {
  animation-delay: 0.36s;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .button,
  .filter-chip {
    animation: none;
    transition: none;
  }
}

@media (max-width: 1100px) {
  .commercial-grid {
    grid-auto-columns: minmax(320px, 58vw);
  }
}

@media (max-width: 980px) {
  .hero,
  .summary-grid,
  .experience-grid,
  .featured-grid,
  .project-grid,
  .strength-grid,
  .credentials-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero {
    display: block;
  }

  .hero-panel {
    margin-top: 1.25rem;
  }

  .summary-grid,
  .experience-grid,
  .featured-grid,
  .project-grid,
  .strength-grid,
  .credentials-grid {
    display: grid;
  }

  .contact-card {
    display: grid;
  }

  .profile-card {
    grid-template-columns: 140px 1fr;
  }

  .skill-groups {
    grid-template-columns: 1fr;
  }

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

  .project-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(var(--max-width), calc(100% - 1rem));
  }

  .topbar {
    border-radius: 28px;
    padding: 1rem;
  }

  .nav {
    justify-content: flex-start;
  }

  .commercial-grid {
    grid-auto-columns: 88%;
  }

  .project-list-top,
  .contact-actions,
  .profile-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-meta {
    text-align: left;
  }

  .profile-card {
    display: flex;
  }

  .profile-photo-shell {
    width: min(100%, 280px);
  }
}
