/* Base Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-page: #f5f5f5;
  --bg-slide: #ffffff;
  --text-primary: #0a0a0a;
  --text-secondary: #555555;
  --text-muted: #777777;
  --placeholder-bg: #e8e8e8;
  --placeholder-bg-alt: #dcdcdc;
  --font-main: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.4;
}

.portfolio {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px 0;
}

/* Slide Container (16:9 ratio matching Behance presentation) */
.slide {
  background-color: var(--bg-slide);
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
}

/* Shared Placeholders */
.placeholder {
  background-color: var(--placeholder-bg);
  width: 100%;
  height: 100%;
}

.caption {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ===========================
   Slide 01: Cover
   =========================== */
.slide--cover {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cover-lockup {
  display: flex;
  flex-direction: column;
  width: fit-content;
}

.cover-title {
  font-size: clamp(3.5rem, 8.2vw, 7.2rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.cover-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 6px;
}

.cover-name {
  font-size: clamp(0.85rem, 1.15vw, 1.05rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.cover-year {
  font-size: clamp(1.1rem, 1.8vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

/* ===========================
   Slide 02: About & Resume
   =========================== */
.slide--about {
  padding: 5.5% 5.8%;
  display: grid;
  grid-template-columns: 1.85fr 1fr;
  gap: 5%;
}

.about-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.statement-top {
  font-size: clamp(1.3rem, 2.35vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.06;
}

.about-bio-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.35fr;
  gap: 4%;
  align-items: start;
}

.placeholder--portrait-square {
  aspect-ratio: 1 / 1.05;
  height: auto;
}

.contact-block {
  margin-top: 18px;
}

.contact-label {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.contact-email {
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.mail-icon {
  font-size: 0.9rem;
}

.about-text-col {
  font-size: clamp(0.72rem, 0.95vw, 0.86rem);
  color: var(--text-secondary);
  line-height: 1.38;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-text-col strong {
  color: var(--text-primary);
  font-weight: 600;
}

.statement-bottom {
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.06;
  align-self: flex-end;
  padding-right: 4%;
}

.about-right {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-top: 12px;
}

.cv-heading {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.cv-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cv-item {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  align-items: start;
}

.cv-date {
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.3;
  text-transform: uppercase;
}

.cv-title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.cv-sub {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* ===========================
   Slides 03, 05, 07, 09, 11: Project Intros
   =========================== */
.slide--split {
  display: grid;
  grid-template-columns: 38% 62%;
}

.slide--split-padded {
  display: grid;
  grid-template-columns: 38% 62%;
  padding-right: 5.5%;
}

.split-left {
  padding: 14% 12% 14% 15%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-number {
  font-size: clamp(3.5rem, 6.2vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.project-title {
  font-size: clamp(1.3rem, 2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}

.project-desc {
  font-size: clamp(0.72rem, 0.92vw, 0.84rem);
  color: var(--text-secondary);
  line-height: 1.38;
}

.project-desc strong {
  color: var(--text-primary);
  font-weight: 600;
}

.split-right {
  width: 100%;
  height: 100%;
}

.split-right-bottles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3%;
  align-items: center;
  padding: 8% 0;
}

.placeholder--bottle {
  aspect-ratio: 1 / 2.6;
  height: auto;
  border-radius: 28px 28px 10px 10px;
}

/* ===========================
   Slide 04: Project 01 Showcase
   =========================== */
.slide--showcase-01 {
  padding: 6% 5.5%;
  display: flex;
  align-items: center;
}

.showcase-01-grid {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1.05fr 1.25fr 0.85fr;
  gap: 2.5%;
  align-items: end;
}

.showcase-col {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: flex-end;
}

.merch-pair {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr;
  gap: 10px;
  align-items: end;
  height: 78%;
}

.placeholder--bag {
  height: 92%;
}

.placeholder--spray {
  height: 62%;
}

.caption-row {
  display: flex;
  justify-content: space-between;
  padding-right: 12%;
}

.print-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 92%;
}

.print-top-row {
  display: grid;
  grid-template-columns: 0.75fr 1fr;
  gap: 12px;
  align-items: center;
  height: 44%;
}

.placeholder--circle-sm {
  aspect-ratio: 1 / 1;
  width: 85%;
  height: auto;
  border-radius: 50%;
  justify-self: center;
}

.placeholder--flyer {
  height: 100%;
}

.placeholder--spread {
  height: 54%;
}

.placeholder--phone-tall {
  height: 92%;
  border-radius: 24px;
}

/* ===========================
   Slide 06: Project 02 Showcase
   =========================== */
.slide--showcase-02 {
  padding: 4.5% 4.5%;
}

.showcase-02-grid {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1.15fr 1.05fr 0.95fr;
  gap: 2.5%;
}

.s02-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.s02-logos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.placeholder--logo {
  aspect-ratio: 1.4 / 1;
  height: auto;
}

.s02-lineup {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  align-items: end;
}

.placeholder--bottle-sm {
  aspect-ratio: 1 / 2.6;
  height: auto;
  border-radius: 14px 14px 4px 4px;
}

.s02-icons-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.placeholder--flower {
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 50%;
}

.s02-tagline {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.s02-center {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.s02-stickers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 0 10%;
}

.placeholder--circle-md {
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 50%;
}

.placeholder--devices {
  height: 70%;
}

.s02-right {
  height: 100%;
}

.placeholder--web-scroll {
  height: 100%;
}

/* ===========================
   Slide 08: Project 03 Showcase
   =========================== */
.slide--showcase-03 {
  padding: 6% 5.5%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7%;
}

.s03-app-icons {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.placeholder--app-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
}

.s03-devices-row {
  display: grid;
  grid-template-columns: 0.65fr 0.65fr 2.4fr 0.65fr 0.65fr;
  gap: 14px;
  align-items: end;
  height: 56%;
}

.s03-phone-item,
.s03-laptop-item {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.placeholder--phone-sm {
  height: 82%;
  border-radius: 12px;
}

.placeholder--laptop {
  height: 100%;
  border-radius: 10px 10px 4px 4px;
}

/* ===========================
   Slide 10: Project 04 Showcase
   =========================== */
.slide--showcase-04 {
  padding: 6% 5.5%;
}

.s04-grid {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 1.35fr 1fr;
  gap: 2%;
}

.s04-col {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.s04-col--stack {
  gap: 12px;
}

.s04-col--stack .placeholder--screen {
  flex: 1;
}

.placeholder--tall-strip,
.placeholder--phone-tall-04 {
  flex: 1;
}

.placeholder--phone-tall-04 {
  border-radius: 20px;
}

/* ===========================
   Slide 11: Project 05 Collage
   =========================== */
.split-right-collage {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 10% 0;
}

.collage-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  height: 36%;
}

.collage-bottom {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr 1.05fr 1fr;
  gap: 12px;
  height: 46%;
}

/* ===========================
   Slide 12: Project 05 Moodboard
   =========================== */
.slide--showcase-05 {
  padding: 6% 5.5%;
}

.s05-grid {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 5%;
  align-items: center;
}

.s05-heading {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.s05-moodboard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.placeholder--mood {
  aspect-ratio: 1 / 1.1;
  height: auto;
}

.s05-right {
  height: 92%;
  display: flex;
  flex-direction: column;
}

.placeholder--magazine {
  flex: 1;
}

/* ===========================
   Slide 13: Project 06 Posters
   =========================== */
.slide--posters {
  padding: 6% 5.8%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.posters-top {
  display: flex;
  justify-content: flex-end;
}

.posters-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2.2%;
  align-items: center;
}

.placeholder--poster {
  aspect-ratio: 1 / 1.41;
  height: auto;
}

.posters-bottom .project-title {
  margin-bottom: 0;
}

/* ===========================
   Slide 14: Outro
   =========================== */
.slide--outro {
  padding: 6% 5.8%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.outro-top {
  display: flex;
  justify-content: flex-end;
}

.outro-brand {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.outro-content {
  display: flex;
  align-items: flex-end;
  gap: 3%;
  height: 78%;
}

.placeholder--outro-photo {
  width: 27%;
  height: 100%;
}

.outro-name {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

/* ===========================
   Responsive fallback
   =========================== */
@media (max-width: 960px) {
  .portfolio {
    padding: 0;
    gap: 12px;
  }

  .slide {
    aspect-ratio: auto;
    min-height: auto;
    padding: 32px 20px;
  }

  .slide--cover {
    min-height: 60vh;
  }

  .slide--about,
  .slide--split,
  .slide--split-padded,
  .showcase-01-grid,
  .showcase-02-grid,
  .s03-devices-row,
  .s04-grid,
  .s05-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .split-left {
    padding: 0;
    gap: 24px;
  }

  .split-right .placeholder--full {
    aspect-ratio: 4 / 3;
  }

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

  .outro-content {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
  }

  .placeholder--outro-photo {
    width: 100%;
    aspect-ratio: 3 / 4;
  }
}
