
/* ========================================
   FONTS
======================================== */

@font-face {
  font-family: 'lemon_milk';
  src: url('./fonts/lemon_milk/LEMONMILK-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'lemon_milk_bold';
  src: url('./fonts/lemon_milk/LEMONMILK-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Amoria';
  src: url('./fonts/amoria/AMORIA.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

/* ========================================
   BASE
======================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navigation-height, 71px);
}

body {
  margin: 0;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  padding-top: 71px;
  font-family: 'lemon_milk', sans-serif;
  background-color: #ffffff;
  color: #110F0F;
}

button {
  font: inherit;
}

[hidden] {
  display: none !important;
}

/* ========================================
   CUSTOM CURSOR
======================================== */

.cursor,
.cursor-glow {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  border-radius: 50%;
  pointer-events: none;
}

.cursor {
  width: 12px;
  height: 12px;
  background: #ebb2b2;
  transform: translate(-50%, -50%);
  z-index: 9999;
  mix-blend-mode: multiply;
  transition: transform 0.12s ease;
}

.cursor-glow {
  width: 60px;
  height: 60px;
  background: radial-gradient(
    circle,
    rgba(255, 107, 107, 0.4) 0%,
    rgba(255, 107, 107, 0) 70%
  );
  transform: translate(-50%, -50%);
  z-index: 9998;
  mix-blend-mode: screen;
  opacity: 0.7;
  transition: transform 0.2s ease, opacity 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
  body,
  a,
  button {
    cursor: none;
  }

  .cursor,
  .cursor-glow {
    display: block;
  }
}

/* ========================================
   NAVIGATION
======================================== */

.horizontal-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 15px 60px;
  border-bottom: 1px solid #ccc;
  font-family: 'lemon_milk', sans-serif;
  font-size: 14px;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #ffffff;
  z-index: 1000;
}

.horizontal-menu .logo {
  font-weight: 600;
  font-size: 14px;
  margin-left: 1px;
}

.horizontal-menu ul {
  display: flex;
  list-style: none;
  gap: 65px;
  padding: 0;
  margin: 0;
}

.horizontal-menu a {
  color: #110F0F;
  text-decoration: none;
  transition: color 0.2s ease;
}

.horizontal-menu a:hover {
  color: #ff6b6b;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #ff6b6b;
  outline-offset: 5px;
}

/* ========================================
   HERO
======================================== */

.hero {
  position: relative;
  min-height: 0;
  isolation: isolate;
}

h1,
h2 {
  margin: 0;
  font-family: 'Amoria', serif;
  font-weight: lighter;
  letter-spacing: 0.16em;
  color: #110F0F;
  text-align: left;
}

h1 {
  font-size: clamp(60px, 10vw, 130px);
  margin: 0 55px;
  padding-top: 30px;
  padding-bottom: 10px;
}

.h2-container {
  margin: 0 55px;
}

.h2-container h2 {
  font-size: clamp(60px, 10vw, 130px);
  padding-top: 0;
  padding-bottom: 20px;
}

#hi-word,
#name-text {
  position: relative;
  text-align: left;
}

#name-text {
  display: block;
}

/* ========================================
   INTERACTIVE LETTER GLOW
======================================== */

.letter {
  display: inline-block;
  position: relative;
  z-index: 1;
  color: #110F0F;
  transition:
    transform 0.28s cubic-bezier(.2, .9, .2, 1),
    color 0.28s cubic-bezier(.2, .9, .2, 1),
    text-shadow 0.28s cubic-bezier(.2, .9, .2, 1);
}

.letter.hovered {
  transform: translateY(-12px);
  color: #ff6b6b;
  text-shadow: 0 0 12px rgba(255, 107, 107, 0.7);
  z-index: 2;
}

.letter.adjacent-1 {
  transform: translateY(-6px);
  color: #ff8d8d;
  text-shadow: 0 0 8px rgba(255, 141, 141, 0.5);
  z-index: 2;
}

.letter.adjacent-2 {
  transform: translateY(-3px);
  color: #ffb3b3;
  text-shadow: 0 0 4px rgba(255, 179, 179, 0.3);
  z-index: 2;
}

/* ========================================
   TREE BRANCHES
======================================== */

.tree-branches {
  position: absolute;
  top: 0;
  right: -350px;
  width: 850px;
  height: 500px;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.tree-branches image {
  pointer-events: none;
}

/* ========================================
   MARQUEE
======================================== */

.marquee {
  position: relative;
  z-index: 1;
  width: 100%;
  overflow: hidden;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  padding: 20px 0;
  margin: 0;
  font-family: 'lemon_milk', sans-serif;
  color: #110F0F;
  background: #ffffff;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}

.marquee-content {
  display: block;
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 14px;
  word-spacing: 2em;
  letter-spacing: 0.2em;
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ========================================
   WORK SECTION
======================================== */

.page-section {
  scroll-margin-top: 0;
}

.my-work {
  display: block;
  width: 100%;
  margin: 0;
  padding: 24px 20px 0;
  text-align: center;
  font-family: 'lemon_milk', sans-serif;
  font-weight: 300;
  font-size: clamp(14px, 2vw, 16px);
  letter-spacing: 0.14em;
  line-height: 1.4;
}

.project-gallery {
  max-width: none;
  margin: 24px 55px 48px;
  padding: 0;
}

.gallery-intro {
  margin-bottom: 50px;
}

.gallery-heading {
  font-family: 'Amoria', serif;
  font-size: clamp(44px, 5.5vw, 80px);
  font-weight: 400;
  letter-spacing: 0.04em;
  margin: 12px 0 20px;
}

.gallery-description {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  max-width: 650px;
  margin: 0;
}

/* ========================================
   PROJECT PANELS
======================================== */

.project-frame {
  position: relative;
  isolation: isolate;
  border: 1px solid #dedede;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  margin-bottom: 32px;
  transition:
    border-color 0.65s ease,
    box-shadow 0.75s cubic-bezier(.22, 1, .36, 1);
}

.project-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid #f1a6b0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  z-index: 5;
  transition:
    opacity 0.7s ease,
    border-color 0.7s ease;
}

.project-frame:hover {
  border-color: #d5c5c5;
  box-shadow: 0 10px 35px rgba(17, 15, 15, 0.045);
}

.project-preview {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 45px;
  min-height: 0;
  padding: 32px 42px;
}

.project-preview-text {
  max-width: 540px;
  min-width: 0;
}

.project-title {
  font-family: 'Amoria', serif;
  font-size: clamp(38px, 4vw, 62px);
  font-weight: 400;
  line-height: 1.12;
  margin: 0 0 18px;
}

.project-summary {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  max-width: 540px;
  margin: 0 0 24px;
}

/* ========================================
   EXPLORE BUTTON
======================================== */

.project-toggle {
  width: 85%;
  max-width: 320px;
  margin-inline: 0;
  min-width: 0;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 20px;
  border: 1px solid #110F0F;
  border-radius: 30px;
  background: transparent;
  color: #110F0F;
  font-family: 'lemon_milk', sans-serif;
  font-size: 12px;
  letter-spacing: 0.03em;
  position: relative;
  overflow: visible;
  transition:
    transform 0.3s ease,
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.project-toggle:hover {
  background-color: #ff6b6b;
  border-color: #ff6b6b;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow:
    0 6px 22px rgba(255, 107, 107, 0.3),
    0 0 15px rgba(255, 107, 107, 0.12);
}

.project-toggle:active {
  transform: translateY(-1px) scale(0.98);
}

.toggle-label {
  position: relative;
  z-index: 1;
}

.toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-size: 24px;
  line-height: 1;
  transform: none;
  transition: color 0.3s ease;
}

/* ========================================
   PROJECT IMAGES
======================================== */

.image-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 220px;
  padding: 25px;
  background: #f3f0ee;
  border: 1px dashed #c9c0bc;
  border-radius: 12px;
  text-align: center;
  color: #807571;
}

.image-placeholder span {
  font-family: 'lemon_milk', sans-serif;
  font-size: 13px;
  letter-spacing: 0.1em;
}

.image-placeholder small {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
}

.project-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0;
}

.project-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.project-image-link {
  display: block;
  width: 100%;
  text-decoration: none;
}

.project-image-link:hover .image-placeholder {
  border-color: #ff6b6b;
  background-color: #fceeee;
}

.project-cover-image {
  overflow: hidden;
  border-radius: 12px;
  background-color: #f3f0ee;
}

.project-cover-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ========================================
   LIVE TIFF WEBSITE THUMBNAIL
======================================== */

.project-live-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-width: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #f3f0ee;
  border: 1px solid #dedede;
  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.project-live-preview iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1440px;
  height: 810px;
  border: 0;
  transform-origin: top left;
  pointer-events: none;
}

.project-live-overlay {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 2;
  text-decoration: none;
  background: transparent;
}

.project-live-preview:hover {
  border-color: #e9a9b1;
  box-shadow: 0 8px 25px rgba(17, 15, 15, 0.08);
}

.project-live-preview:hover iframe {
  filter: brightness(0.97);
}

.project-live-preview:focus-within {
  outline: 2px solid #ff6b6b;
  outline-offset: 3px;
}

/* ========================================
   SEPARATE PROJECT PAGES
======================================== */

.project-details {
  background-color: #fcfaf9;
  border-top: 1px solid #dedede;
}

.project-details-inner {
  padding: 45px 42px 50px;
}

.project-page-main {
  margin: 30px 55px 100px;
}

.back-to-work {
  margin: 0 0 28px;
}

.project-page h1.project-title {
  padding: 0;
  letter-spacing: normal;
}

@media (max-width: 768px) {
  .about-copy {
    min-height: 0;
  }

  .project-page-main {
    margin: 25px 20px 70px;
  }
}

.detail-heading {
  margin-bottom: 35px;
}

.detail-heading h5 {
  font-family: 'Amoria', serif;
  font-size: clamp(38px, 4.5vw, 60px);
  font-weight: 400;
  margin: 12px 0 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin: 35px 0;
}

.detail-text h6 {
  font-family: 'lemon_milk_bold', sans-serif;
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 18px;
}

.detail-text p {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.9;
  margin: 0;
}

.detail-image {
  width: 100%;
  min-height: 350px;
  margin: 35px 0;
}

.project-external-link {
  display: inline-block;
  margin-top: 15px;
  font-family: 'lemon_milk', sans-serif;
  font-size: 13px;
  color: #110F0F;
  text-underline-offset: 5px;
}

.project-external-link:hover {
  color: #ff6b6b;
}

/* ========================================
   PRESENTATION SLIDESHOW
======================================== */

.project-3-cover {
  overflow: hidden;
  border-radius: 12px;
  background: #f5f2ef;
}

.project-3-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.project-slideshow {
  max-width: 1050px;
  margin: 24px auto 0;
  outline-offset: 6px;
}

.project-slide {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-image: url('assets/ai-issue-slides.jpg');
  background-repeat: no-repeat;
  background-size: 100% 1200%;
  background-position: center 0%;
  background-color: #f7f5f3;
  border: 1px solid #dedede;
  border-radius: 12px;
}

.project-slide-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.project-slide-controls button {
  background: white;
  border: 1px solid #110f0f;
  border-radius: 30px;
  padding: 12px 18px;
  color: #110f0f;
  cursor: pointer;
  font-family: 'lemon_milk', sans-serif;
  font-size: 11px;
}

.project-slide-controls button:hover:not(:disabled) {
  background: #ff6b6b;
  border-color: #ff6b6b;
  color: white;
}

.project-slide-controls button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.slide-counter {
  font-family: 'lemon_milk', sans-serif;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.slide-instructions {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  text-align: center;
  color: #777;
  margin: 12px 0 40px;
}

/* ========================================
   THE AI ISSUE: CONTEXT AND CHALLENGE
======================================== */

.zine-story {
  max-width: 1100px;
  margin: 65px auto 48px;
  border-top: 1px solid #dedede;
}

.zine-story-section {
  display: grid;
  grid-template-columns: minmax(170px, 0.34fr) minmax(0, 1fr);
  column-gap: clamp(24px, 5vw, 80px);
  padding: 48px 0 54px;
  border-bottom: 1px solid #dedede;
}

.zine-story-label {
  align-self: start;
}

.zine-story-label h5 {
  margin: 0;
  font-family: 'Amoria', serif;
  font-size: clamp(36px, 3.5vw, 54px);
  font-weight: 400;
  line-height: 1.2;
  color: #110F0F;
}

.zine-story-copy {
  max-width: 720px;
  min-width: 0;
}

.zine-story-copy p {
  margin: 0 0 24px;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.9;
  color: #110F0F;
  overflow-wrap: break-word;
}

.zine-story-copy p:last-child {
  margin-bottom: 0;
}

.zine-story-copy strong {
  font-weight: 700;
}

/* ========================================
   COMPACT ZINE SLIDESHOW
======================================== */

.zine-image-slideshow {
  width: 100%;
  max-width: 760px;
  margin: 20px auto 55px;
  padding: 0;
}

.zine-image-slideshow .zine-slide-image {
  display: block;
  width: 100%;
  max-width: 760px;
  height: auto;
  max-height: 470px;
  margin: 0 auto;
  object-fit: contain;
  border: none;
  border-radius: 6px;
  background: transparent;
}

.zine-image-slideshow .zine-slide-image.is-single {
  width: auto;
  max-width: 380px;
  max-height: 470px;
}

.zine-image-slideshow .zine-slide-image.is-spread {
  width: 100%;
  max-width: 760px;
  max-height: 470px;
}

.zine-image-slideshow .project-slide-controls {
  width: 100%;
  max-width: 600px;
  margin: 24px auto 0;
}

/* ========================================
   AI ISSUE PRESENTATION AT BOTTOM
======================================== */

.ai-presentation-section {
  max-width: 1100px;
  margin: 65px auto 0;
  padding: 45px clamp(16px, 4vw, 48px) 40px;
  background: #f6f3f2;
  border: 1px solid #e6dedb;
  border-radius: 16px;
}

.ai-presentation-section .project-slideshow {
  margin: 0 auto;
}

.ai-presentation-section .project-slide {
  background-color: #ffffff;
  border-color: #ddd5d2;
  border-radius: 10px;
}

.ai-presentation-section .project-slide-controls {
  margin-top: 18px;
}

/* PDF button visually belongs to the presentation */

.presentation-pdf-action {
  display: flex;
  justify-content: center;
  margin-top: 28px;
  padding-top: 25px;
  border-top: 1px solid #e0d8d5;
}

.presentation-pdf-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 13px;
  min-height: 52px;
  padding: 15px 23px;
  border: 1px solid #110F0F;
  border-radius: 40px;
  background: #110F0F;
  color: #ffffff;
  text-decoration: none;
  font-family: 'lemon_milk', sans-serif;
  font-size: 12px;
  letter-spacing: 0.025em;
  line-height: 1.4;
  text-align: center;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.presentation-pdf-button:hover {
  background: #ff6b6b;
  border-color: #ff6b6b;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 7px 22px rgba(255, 107, 107, 0.22);
}

.presentation-pdf-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.presentation-pdf-arrow {
  font-size: 18px;
  line-height: 1;
  margin-left: 6px;
}

/* ========================================
   ABOUT / CONTACT
======================================== */

.contact-section {
  padding: 36px 55px;
  border-top: 1px solid #ccc;
}

.about-section {
  --about-bio-width: 360px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, var(--about-bio-width)) minmax(0, 1fr);
  align-items: start;
  column-gap: clamp(24px, 3vw, 40px);
  row-gap: 20px;
  margin: 0 55px;
  padding: 24px clamp(16px, 2vw, 32px);
}

.about-copy {
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-height: var(--headshot-height, 0px);
  width: 100%;
  justify-self: center;
  min-width: 0;
  max-width: 650px;
}

.about-section .section-heading {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, var(--about-bio-width));
  text-align: left;
  margin: 0;
  font-size: clamp(30px, 3.5vw, 44px);
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.about-section .section-content {
  font-size: 13px;
  line-height: 1.9;
}

.about-section .section-content p:last-child {
  margin-bottom: 0;
}


.about-resume {
  width: 100%;
  max-width: 320px;
  min-height: 52px;
  margin: auto auto 0;
  text-align: center;
}

.about-resume:focus-visible {
  background-color: #ff6b6b;
  border-color: #ff6b6b;
  color: #fff;
  box-shadow:
    0 6px 22px rgba(255, 107, 107, 0.3),
    0 0 15px rgba(255, 107, 107, 0.12);
}

.about-placeholder {
  color: #666;
}

.about-headshot {
  margin-top: 0;
  justify-self: center;
  display: block;
  width: min(100%, 310px);
  height: auto;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  object-position: center;
  padding: 7px;
  border: 2px solid #ebb2b2;
  border-radius: 24px 24px 70px 24px;
  box-shadow: 6px 6px 0 #f6e2e2;
  background: #fff8f8;
}

.about-artwork {
  position: relative;
  margin-bottom: calc(-48px - clamp(14px, 2vw, 16px) * 1.4);
  align-self: start;
  height: 75.9vh;
  height: 75.9svh;
  max-height: 657.8px;
  min-width: 0;
}

.about-artwork img {
  /* Extend only the image upward; its original grid footprint stays unchanged. */
  position: absolute;
  bottom: 0;
  left: -5%;
  display: block;
  width: 110%;
  height: calc(100% + clamp(30px, 3.5vw, 44px) * 1.2 + 20px);
  object-fit: contain;
  object-position: center bottom;
}

.contact-section {
  padding-bottom: 48px;
}

.section-heading {
  font-family: 'Amoria', serif;
  font-size: clamp(40px, 6vw, 80px);
  font-weight: lighter;
  letter-spacing: 0.12em;
  margin-bottom: 30px;
}

.section-content {
  max-width: 650px;
  font-family: 'lemon_milk', sans-serif;
  font-size: 14px;
  line-height: 2;
}

.section-content p {
  margin: 0 0 16px;
}

/* ========================================
   TABLET
======================================== */

@media (max-width: 1000px) {
  .about-section {
    --about-bio-width: 300px;
  }


  .project-preview {
    gap: 30px;
    padding: 28px 30px;
  }

  .project-title {
    font-size: clamp(36px, 4vw, 54px);
  }

  .project-details-inner {
    padding: 35px 30px 40px;
  }

  .detail-grid {
    gap: 35px;
  }

  .zine-story-section {
    grid-template-columns: minmax(140px, 0.3fr) minmax(0, 1fr);
    column-gap: 35px;
  }
}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 768px) {
  body {
    padding-top: 101px;
  }

  .horizontal-menu {
    flex-direction: column;
    gap: 15px;
    padding: 15px 20px;
  }

  .horizontal-menu ul {
    gap: 30px;
  }

  h1 {
    margin: 0 20px;
    padding-top: 15px;
    padding-bottom: 5px;
    font-size: clamp(50px, 10vw, 120px);
  }

  .h2-container {
    margin: 0 20px;
  }

  .h2-container h2 {
    padding-top: 0;
    padding-bottom: 15px;
    font-size: clamp(50px, 10vw, 120px);
  }

  .marquee-content {
    font-size: 12px;
  }

  .tree-branches {
    display: none !important;
    pointer-events: none;
  }

  .hero {
    overflow-x: clip;
  }

  .my-work {
    padding: 24px 20px 0;
    text-align: center;
  }

  .project-gallery {
    margin: 20px 20px 32px;
  }

  .gallery-intro {
    margin-bottom: 35px;
  }

  .project-frame {
    margin-bottom: 25px;
  }

  .project-preview {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 24px;
  }

  .project-title {
    font-size: clamp(36px, 8vw, 50px);
  }

  .project-summary {
    font-size: 14px;
    margin-bottom: 22px;
  }

  .project-cover {
    aspect-ratio: 16 / 9;
    min-height: 200px;
  }

  .project-live-preview {
    aspect-ratio: 16 / 9;
  }

  .project-details-inner {
    padding: 30px 24px 35px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .detail-text p {
    font-size: 14px;
  }

  .detail-image {
    min-height: 230px;
  }

  .about-section {
    --about-bio-width: 650px;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin: 0 20px;
    padding: 20px 0;
  }

  .about-artwork img {
    left: 0;
    width: 100%;
    height: 100%;
  }

  .about-artwork {
    grid-row: auto;
    height: 75.9vh;
    height: 75.9svh;
    max-height: 657.8px;
    margin-bottom: calc(-44px - clamp(14px, 2vw, 16px) * 1.4);
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, 360.525px);
  }

  .contact-section {
    padding: 28px 20px;
  }

  .page-section {
    scroll-margin-top: 0;
  }

  .project-slide-controls button {
    padding: 10px 12px;
    font-size: 10px;
  }

  .zine-story {
    margin-top: 45px;
    margin-bottom: 35px;
  }

  .zine-story-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 35px 0 42px;
  }

  .zine-story-label h5 {
    font-size: clamp(34px, 8vw, 44px);
  }

  .zine-story-copy p {
    font-size: 14px;
    line-height: 1.85;
    margin-bottom: 20px;
  }

  .zine-image-slideshow {
    max-width: 100%;
    margin: 20px auto 40px;
  }

  .zine-image-slideshow .zine-slide-image {
    max-width: 100%;
    max-height: 350px;
  }

  .zine-image-slideshow .zine-slide-image.is-single {
    width: auto;
    max-width: 65%;
    max-height: 350px;
  }

  .zine-image-slideshow .zine-slide-image.is-spread {
    width: 100%;
    max-width: 100%;
    max-height: 350px;
  }

  .zine-image-slideshow .project-slide-controls {
    margin-top: 18px;
  }

  .ai-presentation-section {
    margin-top: 40px;
    padding: 20px 14px 24px;
    border-radius: 12px;
  }

  .presentation-pdf-action {
    margin-top: 20px;
    padding-top: 20px;
  }

  .presentation-pdf-button {
    width: 100%;
    max-width: 350px;
    padding: 14px 12px;
    gap: 9px;
    font-size: 10px;
  }

  .presentation-pdf-arrow {
    margin-left: 2px;
  }
}

/* ========================================
   REDUCED MOTION
======================================== */

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

  .marquee-track {
    animation: none;
  }

  .letter,
  .horizontal-menu a,
  .project-toggle,
  .toggle-icon,
  .project-frame,
  .project-frame::after,
  .project-details,
  .project-details-inner,
  .project-live-preview,
  .presentation-pdf-button {
    transition: none !important;
  }

  .cursor,
  .cursor-glow {
    display: none;
  }

  body,
  a,
  button {
    cursor: auto;
  }
}

/* Card background link and independent Explore button hover. */
.project-card-link {
  position: absolute;
  inset: 0;
  z-index: 6;
  border-radius: inherit;
}

.project-gallery .project-toggle {
  z-index: 7;
}

.project-gallery .project-frame:focus-within {
  outline: 2px solid #ff6b6b;
  outline-offset: 4px;
}

@media (max-width: 480px) {
  .about-section {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .about-headshot {
    margin-top: 0;
    width: min(100%, 270px);
    justify-self: center;
  }
}


/* APP ICON MARQUEE */
.app-marquee{--app-gap:24px;width:100%;padding:72px 0 20px;overflow:hidden}
.app-marquee__heading{margin:0 24px 24px;text-align:center;font:inherit;font-size:14px;letter-spacing:.16em;text-transform:uppercase}
.app-marquee__window{overflow:hidden;mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent);-webkit-mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent)}
.app-marquee__track{display:flex;width:max-content;animation:app-scroll 64s linear infinite}
.app-marquee__group{display:flex;flex:none;align-items:center;gap:var(--app-gap);padding-right:var(--app-gap)}
.app-marquee svg{display:block;width:90px;height:63px;flex:none;border-radius:13.5px}
@keyframes app-scroll{to{transform:translateX(-50%)}}
@media(prefers-reduced-motion:reduce){.app-marquee__track{animation:none;width:100%}.app-marquee__group{flex-wrap:wrap;justify-content:center;padding:0 24px;width:100%}.app-marquee__group[aria-hidden],.app-marquee__group>:nth-child(n+11){display:none}.app-marquee__window{mask-image:none;-webkit-mask-image:none}}

/* Photoshop experience on hover or keyboard focus. */
.app-marquee__window{padding-top:48px;margin-top:-48px}
.app-marquee__item{position:relative;flex:none;width:90px;height:63px;transition:transform .2s ease;outline:none}
.app-marquee__item:hover,.app-marquee__item:focus-visible{transform:translateY(-10px)}
.app-marquee__item:focus-visible svg{outline:2px solid currentColor;outline-offset:4px}
.app-marquee__experience{position:absolute;bottom:calc(100% + 10px);left:50%;transform:translate(-50%,4px);padding:7px 10px;border-radius:8px;background:#001e36;color:#fff;font-family:'Poppins',Arial,sans-serif;font-size:12px;line-height:1.3;text-transform:none;white-space:nowrap;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .2s ease,transform .2s ease}
.app-marquee__item:hover .app-marquee__experience,.app-marquee__item:focus-visible .app-marquee__experience{opacity:1;visibility:visible;transform:translate(-50%,0)}
@media(prefers-reduced-motion:reduce){.app-marquee__item,.app-marquee__experience{transition:none}.app-marquee__group>:nth-child(n+11){display:none}}


/* GALLERY SECTION */
.ml-gallery { margin: 0; padding: 12px 16px 24px; border-top: 1px solid #ccc; color: #110f0f; }
.ml-gallery *, .ml-lightbox * { box-sizing: border-box; }
.ml-gallery__heading { margin: 0 0 20px; text-align: center; font-family: 'Amoria', Georgia, serif; font-weight: 400; font-size: clamp(24px, 2.5vw, 32px); line-height: 1.2; letter-spacing: .04em; }
.ml-gallery__row { width: 100%; margin: 0; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 16px; align-items: center; }
.ml-gallery__track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 8px 0 14px; }
.ml-gallery__track::-webkit-scrollbar { display: none; }
.ml-gallery__tile { aspect-ratio: 1 / 1; align-self: flex-start; flex: 0 0 calc((100% - 60px) / 4); min-width: 0; padding: 0; overflow: hidden; border: 1px solid #dedede; border-radius: 16px; background: #faf7f7; scroll-snap-align: start; cursor: pointer; transition: border-color .25s, box-shadow .25s, transform .25s; }
.ml-gallery__tile:hover { transform: translateY(-4px); border-color: #f1a6b0; box-shadow: 0 10px 25px #110f0f0c; }
.ml-gallery__tile img { display: block; width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.ml-gallery__arrow, .ml-lightbox__close { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #dedede; border-radius: 50%; background: white; color: #110f0f; font: 24px/1 Arial, sans-serif; cursor: pointer; }
.ml-gallery__arrow:hover:not(:disabled), .ml-lightbox__close:hover { background: #fcecee; border-color: #f1a6b0; }
.ml-gallery__arrow:disabled { opacity: .3; cursor: default; }
.ml-gallery button:focus-visible, .ml-gallery__track:focus-visible, .ml-lightbox button:focus-visible { outline: 2px solid #ff6b6b; outline-offset: 3px; }
.ml-lightbox { width: min(1100px, 94vw); max-width: 94vw; max-height: 94dvh; padding: 54px 24px 20px; border: 1px solid #dedede; border-radius: 16px; background: #fff; color: #110f0f; overflow: auto; }
.ml-lightbox::backdrop { background: rgb(17 15 15 / 85%); }
.ml-lightbox__close { position: absolute; right: 10px; top: 8px; }
.ml-lightbox figure { margin: 0; }
.ml-lightbox__image { display: block; width: 100%; height: min(70dvh, 760px); object-fit: contain; }
.ml-lightbox__caption { max-width: 680px; margin: 14px auto 0; text-align: center; font: 13px/1.65 Arial, sans-serif; letter-spacing: normal; }
html.ml-gallery-modal-open { overflow: hidden; }
@media (max-width: 900px) { .ml-gallery { padding-inline: 12px; } .ml-gallery__tile { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 540px) { .ml-gallery { padding-inline: 8px; } .ml-gallery__row { grid-template-columns: 36px minmax(0, 1fr) 36px; gap: 8px; } .ml-gallery__arrow { width: 36px; height: 36px; } .ml-gallery__tile { flex-basis: 100%; } .ml-lightbox { padding: 56px 12px 20px; } }
@media (prefers-reduced-motion: reduce) { .ml-gallery__tile { transition: none; } }
