:root {
  --bg: #f4efe9;
  --panel: #f9f3f0;
  --panel-strong: #e6dcd3;
  --panel-soft: #f5f0eb;
  --ink: #1d1a1a;
  --muted: #4b4747;
  --accent: #dd8a72;
  --accent-dark: #c36d5c;
  --line: rgba(29, 26, 26, 0.15);
  --shadow: 0 18px 40px rgba(71, 50, 44, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

p,
ul,
h1,
h2,
h3,
h4 {
  margin: 0;
}

.page-shell {
  width: min(1350px, calc(100% - 18px));
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.18);
}

.masthead {
  position: relative;
  padding: 10px 50px 0;
  background: transparent;
}

.art-strip {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  min-height: 250px;
  position: relative;
}

.mini-art {
  width: 180px;
  height: 220px;
  object-fit: cover;
  border-radius: 50% 50% 30% 30%;
  filter: drop-shadow(0 12px 18px rgba(79, 42, 31, 0.12));
}

.mini-art-left {
  transform: translateY(18px) rotate(-8deg);
}

.mini-art-center {
  width: 220px;
  height: 230px;
}

.mini-art-right {
  transform: translateY(20px) rotate(8deg);
}

.portfolio-title-wrap {
  text-align: center;
  margin-top: -30px;
  position: relative;
  z-index: 2;
}

.portfolio-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(4.5rem, 10vw, 12rem);
  line-height: 0.78;
  letter-spacing: -0.06em;
  font-weight: 600;
  color: #f5d6c6;
  text-shadow: 0 2px 0 rgba(110, 72, 62, 0.15);
}

.portfolio-title span {
  display: block;
  font-style: italic;
  color: #f0d0c2;
}

.portfolio-subtitle {
  margin-top: 10px;
  font-family: "Georgia", serif;
  color: var(--ink);
  font-size: clamp(0.9rem, 1.8vw, 1.5rem);
  font-style: italic;
  letter-spacing: 0.03em;
}

.portfolio-main {
  background: rgba(255, 255, 255, 0.12);
  padding: 8px 24px 0;
}

.intro-section {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 10px;
  align-items: center;
  padding-top: 6px;
}

.intro-copy {
  padding-left: 30px;
  padding-right: 10px;
}

.intro-copy h2 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(3.8rem, 5vw, 5rem);
  line-height: 1;
  letter-spacing: -0.06em;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: 700;
}

.intro-copy p {
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.7;
  margin-bottom: 18px;
}

.intro-copy strong {
  font-weight: 700;
  color: var(--ink);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 1.05rem;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--ink);
  font-size: 0.9rem;
}

.portrait-panel {
  position: relative;
  padding: 0 10px 0 0;
}

.portrait-panel::before {
  content: "";
  position: absolute;
  inset: 10% -2% 8% 18%;
  background: rgba(196, 167, 156, 0.15);
  border-radius: 50% 50% 45% 45%;
  z-index: 0;
}

.portrait-panel img {
  position: relative;
  z-index: 1;
  width: min(90%, 620px);
  margin-left: auto;
  margin-right: 0;
  filter: drop-shadow(0 22px 26px rgba(35, 23, 19, 0.08));
}

.details-section {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 18px;
  align-items: start;
  padding: 30px 18px 0;
}

.profile-card {
  display: flex;
  align-items: end;
  justify-content: center;
  background: rgba(166, 182, 182, 0.18);
  border-radius: 45% 45% 0 0;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.profile-card img {
  width: 100%;
  max-width: 420px;
  object-fit: cover;
  margin-top: auto;
}

.info-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 34px;
  background: rgba(255, 255, 255, 0.12);
  padding: 18px 8px 0 12px;
}

.info-group {
  min-width: 0;
}

.info-group h3 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(2.1rem, 3vw, 3rem);
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.05em;
}

.info-row {
  margin-bottom: 14px;
}

.label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 2px;
}

.meta {
  font-size: 1rem;
  color: var(--ink);
  font-weight: 600;
}

.meta.secondary {
  font-weight: 400;
  color: var(--muted);
}

.skill-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 500;
}

.software-section {
  padding: 18px 30px 0;
}

.software-section h3 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(2.2rem, 3vw, 3rem);
  margin-bottom: 18px;
  letter-spacing: -0.05em;
}

.software-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 22px;
  align-items: center;
  padding-bottom: 10px;
}

.software-icons span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.26);
  border: 1px solid rgba(29, 26, 26, 0.1);
  font-size: 0.9rem;
  font-weight: 700;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 40px;
  padding: 24px 30px 6px;
}

.project-item {
  padding: 0 10px 0 0;
  border-top: 2px solid rgba(29, 26, 26, 0.4);
  padding-top: 6px;
}

.project-number {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3.3rem, 7vw, 6rem);
  line-height: 0.9;
  color: var(--ink);
  letter-spacing: -0.05em;
  margin-bottom: 8px;
}

.project-item h4 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.3rem, 2vw, 2.3rem);
  letter-spacing: -0.04em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.project-item p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 4px;
}

.site-footer {
  border-top: 1px solid rgba(29, 26, 26, 0.15);
  padding: 18px 0 28px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 980px) {
  .intro-section,
  .details-section,
  .info-columns,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .intro-copy {
    padding-left: 16px;
  }

  .profile-card {
    min-height: 260px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 10px, 1350px);
  }

  .masthead {
    padding: 10px 18px 0;
  }

  .art-strip {
    min-height: 180px;
  }

  .mini-art {
    width: 110px;
    height: 140px;
  }

  .mini-art-center {
    width: 130px;
    height: 150px;
  }

  .portfolio-title-wrap {
    margin-top: -10px;
  }

  .intro-section,
  .details-section,
  .project-grid {
    padding-left: 8px;
    padding-right: 8px;
  }

  .intro-copy {
    padding: 0 8px;
  }

  .intro-copy h2 {
    margin-bottom: 12px;
  }

  .software-section {
    padding: 18px 18px 0;
  }
}
