:root {
  --bg: #050b16;
  --panel: rgba(7, 15, 27, 0.94);
  --line: rgba(161, 184, 209, 0.14);
  --text: #f3f6fb;
  --muted: #aeb9c8;
  --accent: #ff6a5c;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 106, 92, 0.16), transparent 0, transparent 28%),
    radial-gradient(circle at bottom right, rgba(85, 130, 255, 0.1), transparent 0, transparent 24%),
    var(--bg);
}

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

a {
  color: inherit;
  text-decoration: none;
}

.page-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}

.glow-one {
  top: -120px;
  left: -80px;
  background: var(--accent);
}

.glow-two {
  right: -90px;
  bottom: -120px;
  background: #316cff;
}

.wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 8px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.65fr 0.85fr 0.85fr;
  grid-template-rows: repeat(2, minmax(280px, 1fr));
  gap: 14px;
  min-height: calc(100vh - 16px);
}

.intro-panel,
.nav-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.intro-panel {
  grid-row: 1 / span 2;
  min-height: 620px;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.intro-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 11, 22, 0.06), rgba(5, 11, 22, 0.36) 38%, rgba(3, 8, 16, 0.98) 68%);
}

.intro-photo-wrap,
.intro-copy {
  position: relative;
  z-index: 1;
}

.intro-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}

.intro-copy {
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow,
.card-label {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 0.74rem;
  color: #f2a18f;
}

h1,
h2 {
  margin: 0;
}

h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.6rem, 5vw, 4.1rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

h1 span {
  display: inline-block;
  color: #fff8f6;
}

.lead {
  max-width: 21rem;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.pill-row span {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #e8eef7;
  font-size: 0.92rem;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.btn:hover,
.nav-card:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #ff8b67);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.nav-card {
  min-height: 100%;
  padding: 22px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.nav-card:hover {
  border-color: rgba(255, 255, 255, 0.24);
}

.nav-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}

.nav-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7, 12, 20, 0.2), rgba(5, 10, 18, 0.88));
}

.profile-card::before {
  background-image: linear-gradient(135deg, rgba(255, 106, 92, 0.14), rgba(0, 0, 0, 0.1)), url("https://images.unsplash.com/photo-1517048676732-d65bc937f952?auto=format&fit=crop&w=900&q=80");
}

.journey-card::before {
  background-image: linear-gradient(135deg, rgba(255, 106, 92, 0.08), rgba(0, 0, 0, 0.12)), url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=900&q=80");
}

.portfolio-card::before {
  background-image: linear-gradient(135deg, rgba(255, 106, 92, 0.12), rgba(0, 0, 0, 0.14)), url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=900&q=80");
}

.contact-card::before {
  background-image: linear-gradient(135deg, rgba(255, 106, 92, 0.12), rgba(0, 0, 0, 0.14)), url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=900&q=80");
}

.card-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  font-size: 1.1rem;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(255, 106, 92, 0.28);
}

.nav-card h2 {
  font-size: 1.05rem;
  line-height: 1.4;
  max-width: 12ch;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: auto;
  }

  .intro-panel {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .intro-panel::after {
    background: linear-gradient(180deg, rgba(5, 10, 18, 0.08), rgba(3, 8, 16, 0.92));
  }

  .intro-photo-wrap {
    max-height: 360px;
  }

  .nav-card {
    min-height: 220px;
  }
}

@media (max-width: 640px) {
  .wrapper {
    width: 100%;
    padding: 6px;
  }

  .intro-copy,
  .nav-card {
    padding: 18px;
  }

  .action-row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

/* Profile page */
body.profile-page {
  background: #090f18;
  color: #222a35;
}

body.profile-page .page-glow {
  display: none;
}

.profile-wrapper {
  width: 100%;
  min-height: 100vh;
}

.profile-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 245px;
  overflow: hidden;
}

.hero-split {
  min-height: 245px;
  background-size: cover;
  background-position: center;
}

.hero-split-left {
  background-image: linear-gradient(rgba(8, 13, 24, 0.48), rgba(8, 13, 24, 0.62)), url("https://images.unsplash.com/photo-1517048676732-d65bc937f952?auto=format&fit=crop&w=1200&q=80");
}

.hero-split-right {
  background-image: linear-gradient(rgba(8, 13, 24, 0.52), rgba(8, 13, 24, 0.68)), url("https://images.unsplash.com/photo-1493225457124-a3eb161ffa5f?auto=format&fit=crop&w=1200&q=80");
}

.profile-hero-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.profile-avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.profile-close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ff6a5c;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(255, 106, 92, 0.32);
}

.download-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid rgba(255, 106, 92, 0.7);
  color: #ff8d82;
  background: rgba(7, 15, 27, 0.7);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.profile-main {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 1fr);
}

.profile-copy {
  padding: 42px 24px 48px;
  background: #f7f7f8;
}

.profile-intro-kicker {
  margin: 0;
  font-size: 1rem;
  color: #2f3642;
}

.profile-title {
  margin: 4px 0 2px;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  line-height: 0.96;
  color: #2b3240;
}

.profile-subtitle {
  margin: 0;
  color: #ff6a5c;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.profile-note {
  max-width: 38rem;
  margin: 18px 0 0;
  color: #4d5663;
  line-height: 1.8;
}

.profile-block {
  margin-top: 26px;
}

.profile-block h2 {
  margin: 0 0 12px;
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  color: #333a47;
}

.profile-block h2::after {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  margin-top: 10px;
  background: #ff6a5c;
}

.profile-block p {
  margin: 0;
  color: #5a6473;
  line-height: 1.85;
}

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

.experience-item {
  display: grid;
  gap: 4px;
}

.experience-item strong {
  color: #2c3340;
  font-size: 0.98rem;
}

.experience-item span {
  color: #5b6472;
  line-height: 1.7;
}

.highlight-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.highlight-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(43, 50, 64, 0.12);
  color: #2e3644;
  font-size: 0.92rem;
}

.profile-visual {
  min-height: 760px;
  background: #ececef;
}

.profile-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.92);
}

.profile-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.profile-link-card {
  position: relative;
  min-height: 190px;
  padding: 24px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}

.profile-link-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}

.profile-link-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(8, 13, 24, 0.25), rgba(8, 13, 24, 0.9));
}

.card-base::before {
  background-image: url("https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=1200&q=80");
}

.card-roots::before {
  background-image: url("https://images.unsplash.com/photo-1512453979798-5ea266f8880c?auto=format&fit=crop&w=1200&q=80");
}

.card-resume::before {
  background-image: url("https://images.unsplash.com/photo-1497366811353-6870744d04b2?auto=format&fit=crop&w=1200&q=80");
}

.card-site::before {
  background-image: url("https://images.unsplash.com/photo-1480714378408-67cf0d13bc1b?auto=format&fit=crop&w=1200&q=80");
}

.info-icon {
  position: absolute;
  top: 22px;
  left: 22px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.84);
  border-radius: 50%;
  font-size: 1rem;
}

.info-text {
  position: relative;
  z-index: 1;
}

.info-text p {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.78);
}

.info-text h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .profile-main,
  .profile-links,
  .profile-hero {
    grid-template-columns: 1fr;
  }

  .profile-visual {
    min-height: 420px;
  }
}

@media (max-width: 640px) {
  .profile-copy {
    padding: 28px 18px 34px;
  }

  .profile-hero {
    min-height: 280px;
  }

  .profile-close {
    top: 14px;
    right: 14px;
  }
}

/* Portfolio page */
body.portfolio-page {
  background: #3f4043;
  color: #ffffff;
}

.portfolio-wrapper {
  width: 100%;
  min-height: 100vh;
}

.portfolio-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 300px;
}

.portfolio-hero-image {
  min-height: 300px;
}

.portfolio-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.portfolio-hero-copy {
  position: relative;
  padding: 54px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, #0b1018, #131923 55%, #090d14);
}

.portfolio-kicker {
  margin: 0;
  font-size: 1rem;
  color: #f1f3f8;
}

.portfolio-name {
  margin: 6px 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 0.95;
  color: #ffffff;
}

.portfolio-role {
  margin: 0;
  color: #ff6a5c;
  font-size: 0.88rem;
}

.portfolio-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.portfolio-socials a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

.portfolio-socials a:nth-child(1) {
  background: #5874c8;
}

.portfolio-socials a:nth-child(2) {
  background: #ff5b3d;
}

.portfolio-socials a:nth-child(3) {
  background: #ff7e29;
}

.portfolio-socials a:nth-child(4) {
  background: #ef5ca8;
}

.portfolio-showcase {
  background: #48484b;
  text-align: center;
}

.showcase-banner {
  padding: 34px 20px 14px;
  background: linear-gradient(rgba(8, 13, 24, 0.48), rgba(8, 13, 24, 0.72)), url("https://images.unsplash.com/photo-1497366412874-3415097a27e7?auto=format&fit=crop&w=1400&q=80");
  background-size: cover;
  background-position: center;
}

.showcase-banner h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: 0.03em;
  color: #fff;
}

.showcase-subtitle {
  margin: 0;
  padding: 14px 16px 18px;
  color: #e0e4ea;
  font-size: 0.92rem;
}

.showcase-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 18px 24px;
}

.filter-btn {
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: #f4f5f7;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.filter-btn.is-active,
.filter-btn:hover {
  background: rgba(255, 106, 92, 0.12);
  border-color: rgba(255, 106, 92, 0.85);
}

.portfolio-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: #e7e8ec;
}

.portfolio-item {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  background: #d9dce2;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.portfolio-item:hover img {
  transform: scale(1.04);
}

.portfolio-item.is-hidden {
  display: none;
}

.portfolio-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 16px;
  background: linear-gradient(180deg, rgba(8, 13, 24, 0.06), rgba(8, 13, 24, 0.82));
}

.portfolio-caption p {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.76);
}

.portfolio-caption h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.35;
}

.portfolio-page .profile-links {
  background: #3f4043;
}

@media (max-width: 980px) {
  .portfolio-hero,
  .portfolio-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .portfolio-hero-copy {
    padding: 32px 18px;
  }

  .portfolio-gallery,
  .portfolio-page .profile-links {
    grid-template-columns: 1fr;
  }
}

/* Contact page */
body.contact-page {
  background: #ececed;
  color: #20262f;
}

.contact-wrapper {
  width: 100%;
  min-height: 100vh;
}

.contact-page .portfolio-hero {
  min-height: 270px;
}

.contact-page .portfolio-hero-copy {
  background: linear-gradient(135deg, #0b1018, #121722 60%, #090d14);
}

.contact-form-section {
  padding: 56px 20px 40px;
  background: #f3f3f4;
}

.contact-heading {
  text-align: center;
  margin-bottom: 28px;
}

.contact-heading h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  letter-spacing: 0.03em;
  color: #2b3240;
}

.contact-heading-line {
  display: inline-block;
  width: 34px;
  height: 2px;
  margin: 12px 0 10px;
  background: #ff6a5c;
}

.contact-heading p {
  margin: 0;
  color: #59616d;
}

.contact-form {
  width: min(100%, 820px);
  margin: 0 auto;
}

.contact-grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.contact-form span {
  font-size: 0.85rem;
  color: #5d6571;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #d7dbe1;
  background: #ffffff;
  color: #28303b;
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(255, 106, 92, 0.8);
  box-shadow: 0 0 0 3px rgba(255, 106, 92, 0.12);
}

.contact-form textarea {
  resize: vertical;
  min-height: 170px;
}

.contact-actions {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.contact-submit {
  padding: 12px 28px;
  border: 1px solid rgba(255, 106, 92, 0.9);
  background: #fff;
  color: #ff6a5c;
  font: inherit;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.contact-submit:hover {
  background: #ff6a5c;
  color: #fff;
}

.contact-status {
  min-height: 24px;
  margin: 14px 0 0;
  text-align: center;
  color: #2b3240;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.contact-status.is-visible {
  opacity: 1;
}

.contact-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: repeat(2, minmax(180px, 1fr));
}

.contact-feature-image {
  grid-row: 1 / span 2;
  min-height: 360px;
}

.contact-feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-tile {
  position: relative;
  min-height: 180px;
  padding: 22px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}

.contact-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}

.contact-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(8, 13, 24, 0.3), rgba(8, 13, 24, 0.92));
}

.card-consult::before {
  background-image: url("https://images.unsplash.com/photo-1519389950473-47ba0277781c?auto=format&fit=crop&w=1200&q=80");
}

.card-timezone::before {
  background-image: url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1200&q=80");
}

.card-email::before {
  background-image: url("https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?auto=format&fit=crop&w=1200&q=80");
}

.card-links::before {
  background-image: url("https://images.unsplash.com/photo-1480714378408-67cf0d13bc1b?auto=format&fit=crop&w=1200&q=80");
}

@media (max-width: 980px) {
  .contact-grid-two,
  .contact-footer-grid,
  .contact-page .portfolio-hero {
    grid-template-columns: 1fr;
  }

  .contact-feature-image {
    grid-row: auto;
    min-height: 300px;
  }
}

@media (max-width: 640px) {
  .contact-form-section {
    padding: 36px 14px 24px;
  }
}

/* Responsive tuning for desktop, laptop, tablet, and mobile */
@media (min-width: 1400px) {
  .hero-grid {
    grid-template-columns: 1.55fr 0.85fr 0.85fr;
    grid-template-rows: repeat(2, minmax(320px, 1fr));
  }

  .intro-panel {
    min-height: calc(100vh - 24px);
  }

  .intro-copy {
    padding: 44px 38px;
  }

  .profile-copy {
    padding: 54px 38px 60px;
  }

  .portfolio-item {
    min-height: 250px;
  }
}

@media (max-width: 1280px) {
  .hero-grid {
    grid-template-columns: 1.25fr 0.95fr 0.95fr;
    gap: 12px;
  }

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

  .intro-panel::after {
    background: linear-gradient(180deg, rgba(5, 11, 22, 0.12), rgba(3, 8, 16, 0.94));
  }

  .intro-photo-wrap {
    max-height: 440px;
  }

  .lead {
    max-width: none;
  }

  .portfolio-gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-footer-grid {
    grid-template-columns: 1.15fr 1fr 1fr;
  }
}

@media (max-width: 1024px) {
  .wrapper {
    padding: 8px;
  }

  .hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    min-height: auto;
  }

  .intro-panel {
    grid-column: 1 / -1;
    min-height: auto;
  }

  .nav-card {
    min-height: 240px;
  }

  .profile-main {
    grid-template-columns: 1fr;
  }

  .profile-visual {
    min-height: 520px;
  }

  .profile-links,
  .portfolio-page .profile-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-hero,
  .contact-page .portfolio-hero {
    grid-template-columns: 1fr;
  }

  .portfolio-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-footer-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .contact-feature-image {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

@media (max-width: 768px) {
  .wrapper {
    padding: 6px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .intro-panel {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .intro-copy,
  .nav-card {
    padding: 20px;
  }

  .action-row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .profile-hero,
  .portfolio-hero,
  .contact-page .portfolio-hero,
  .profile-main,
  .profile-links,
  .portfolio-gallery,
  .portfolio-page .profile-links,
  .contact-grid-two,
  .contact-footer-grid {
    grid-template-columns: 1fr;
  }

  .profile-hero-content {
    padding: 0 16px;
    text-align: center;
  }

  .profile-copy {
    padding: 30px 18px 36px;
  }

  .profile-visual,
  .contact-feature-image {
    min-height: 320px;
  }

  .portfolio-hero-copy {
    padding: 32px 18px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: clamp(2.2rem, 11vw, 3rem);
  }

  .intro-copy {
    padding: 18px 16px 22px;
  }

  .pill-row span {
    width: 100%;
    text-align: center;
  }

  .card-icon,
  .profile-close,
  .portfolio-socials a {
    width: 44px;
    height: 44px;
  }

  .profile-title,
  .portfolio-name {
    font-size: clamp(2rem, 12vw, 2.6rem);
  }

  .profile-block h2,
  .contact-heading h2,
  .showcase-banner h2 {
    font-size: 1.6rem;
  }

  .contact-form-section {
    padding: 30px 12px 18px;
  }

  .contact-submit {
    width: 100%;
  }
}
