/* =========================
   GLOBAL
========================= */

:root {
  --bg: #f5f1e9;
  --ink: #171717;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, sans-serif;
}

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


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

header,
main {
  max-width: 1440px;
  margin: auto;
  padding: 28px 4vw;
}

header {
  display: flex;
  justify-content: space-between;
}

nav {
  word-spacing: 22px;
  font-size: 12px;
}


/* =========================
   HOMEPAGE VISUAL REEL
========================= */

.reel {
  height: calc(100vh - 90px);
  min-height: 620px;
  position: relative;
  overflow: hidden;
}

.name {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  font-size: 11vw;
  font-weight: 900;
  line-height: 0.77;
  letter-spacing: -0.08em;
  text-align: center;

  z-index: 1;
}


/* Shared styling for all floating homepage images */

.piece {
  position: absolute;
  z-index: 2;
  --r: 0deg;
  transition: transform 0.6s;
  background: transparent;
}

.piece img {
  width: 100%;
  height: auto;
  display: block;
  background: transparent;
}


/* Image-to-category hover and keyboard focus treatment */
.piece-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  background: transparent;
  color: var(--ink);
  font-size: clamp(11px, 1.3vw, 19px);
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.piece video { display: block; width: 100%; height: auto; background: transparent; transition: opacity .2s ease; }
.piece img { transition: opacity .2s ease; }
.piece:hover img, .piece:focus-visible img,
.piece:hover video, .piece:focus-visible video { opacity: 0; }
.piece:hover .piece-label, .piece:focus-visible .piece-label { opacity: 1; }
.piece:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  .piece-label, .piece img, .piece video { transition: none; }
}

/* Project details */
.project-intro { max-width: 850px; margin: 4rem 0; }
.project-intro h1 { margin: 0 0 1.5rem; font-size: clamp(44px, 8vw, 110px); }
.project-kicker { text-transform: uppercase; font-size: 12px; letter-spacing: .12em; }
.project-intro p { font-size: clamp(17px, 2vw, 24px); line-height: 1.5; }
.project-video { margin: 4rem 0; max-width: 1100px; }
.project-video h2 { font-size: clamp(25px, 3vw, 42px); margin-bottom: 12px; }
.project-video p { max-width: 700px; line-height: 1.6; }
.project-video video { display: block; width: 100%; height: auto; background: #161616; }
.video-note { font-size: 13px; color: #555; }
.project-cover { display: block; width: min(100%, 900px); height: auto; margin: 2rem 0; }
.project-back { display: inline-block; margin: 2rem 0 5rem; font-size: 13px; font-weight: 700; }

/* =========================
   FLOATING IMAGE POSITIONS

   width  = image size
   left   = distance from left
   right  = distance from right
   top    = distance from top
   bottom = distance from bottom
   --r    = rotation
========================= */

.p1 {
  width: 10%;
  left: 10%;
  top: 20%;
  --r: -7deg;
}

.p2 {
  width: 16%;
  right: 10%;
  top: 13%;
  --r: 5deg;
}

.p3 {
  width: 12%;
  left: 24%;
  bottom: 15%;
  --r: 4deg;
}

.p4 {
  width: 17%;
  right: 27%;
  bottom: 8%;
  --r: -4deg;
}

.p5 {
  width: 10%;
  left: 48%;
  top: 10%;
  --r: 8deg;
}

.p6 {
  width: 14%;
  right: 5%;
  bottom: 27%;
  --r: 3deg;
}


/* =========================
   SCROLL LABEL
========================= */

.scroll {
  position: absolute;
  bottom: 20px;
  left: 50%;

  transform: translateX(-50%);

  font-size: 10px;
  font-weight: bold;
}


/* =========================
   PROJECT GRID
========================= */

.head {
  border-top: 1px solid #bbb;
  padding: 14px 0 30px;
  font-size: 11px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px 18px;

  padding-bottom: 100px;
}

.card img {
  width: 100%;
}

.card h2 {
  font-size: 16px;
  margin: 8px 0;
}


/* =========================
   PAGE HEADINGS
========================= */

h1 {
  margin: 12vh 0 50px;

  font-size: 10vw;
  line-height: 0.85;
  letter-spacing: -0.07em;
}

.copy {
  max-width: 650px;
  font-size: 30px;
}


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

@media (max-width: 700px) {

  .name {
    font-size: 18vw;
  }

  .piece {
    width: 26% !important;
  }

  .p1 {
    left: 1%;
    top: 23%;
  }

  .p2 {
    right: 1%;
    top: 13%;
  }

  .p3 {
    left: 7%;
    bottom: 18%;
  }

  .p4 {
    right: 8%;
    bottom: 18%;
  }

  .p5 {
    left: 45%;
    top: 15%;
    width: 20% !important;
  }

  .p6 {
    right: -1%;
    bottom: 37%;
    width: 22% !important;
  }

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

/* Reusable project templates */
.project-shell { padding-bottom: 6rem; }
.project-intro { max-width: 950px; margin: 6rem 0 3rem; }
.project-intro h1 { margin: 0 0 1.5rem; line-height: .95; }
.project-lede { max-width: 800px; font-size: clamp(20px, 2.5vw, 32px); line-height: 1.4; }
.project-meta { display: flex; gap: 25px; flex-wrap: wrap; padding: 20px 0; border-top: 1px solid #aaa; border-bottom: 1px solid #aaa; font-size: 12px; text-transform: uppercase; }
.project-hero { width: 100%; max-height: 700px; object-fit: contain; display: block; margin: 2rem auto 4rem; }
.project-section { margin: 5rem 0; }
.project-section h2 { font-size: clamp(28px, 4vw, 54px); letter-spacing: -.04em; margin: 0 0 1rem; }
.project-section p { max-width: 750px; font-size: 18px; line-height: 1.6; }
.project-gallery { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.project-gallery img { width: 100%; height: auto; display: block; }
.project-placeholder { border: 1px dashed #999; padding: 40px 24px; min-height: 180px; color: #555; font-size: 15px; line-height: 1.6; }
.project-placeholder strong { display: block; font-size: 20px; color: var(--ink); }
.project-next { border-top: 1px solid #aaa; margin-top: 5rem; padding-top: 24px; }
.project-next a { font-size: clamp(25px,4vw,50px); font-weight: 800; }
@media(max-width:700px){ .project-gallery { grid-template-columns:1fr; } .project-intro { margin-top:3rem; } }

/* =========================================================
   OCTOBER 2026 DESIGN SYSTEM
   Black remains the primary text color; red and blues are accents.
========================================================= */
:root {
  --bg: #f5f1e9;
  --ink: #171717;
  --red: #e12b2b;
  --blue: #247ba0;
  --blue-muted: #57737a;
  --line: rgba(23,23,23,.28);
}
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; width: 100%; }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }
a:hover { color: var(--red); }
.site-header {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 26px 4vw 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
}
.site-header .logo { font-size: 18px; font-weight: 700; line-height: 1.04; letter-spacing: -.035em; }
.site-header nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 42px); word-spacing: normal; font-size: 12px; font-weight: 700; }
.site-header nav a:hover { color: var(--red); }
.reel { height: calc(100vh - 125px); }
.reel > small { color: var(--blue-muted); font-weight: 700; }
.name { color: var(--ink); }
.scroll { color: var(--blue); }
.scroll:hover { color: var(--red); }
.head { border-top-color: var(--line); font-weight: 700; letter-spacing: .08em; }
/* Home collage remains varied, but every media slot is controlled. */
.piece { display: grid; align-items: center; justify-items: stretch; aspect-ratio: 4 / 3; }
.piece img, .piece video { grid-area: 1 / 1; display: block; width: 100%; height: 100%; object-fit: contain; background: transparent; }
.piece-label {
  grid-area: 1 / 1;
  position: static;
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: transparent !important;
  color: var(--red);
  opacity: 0; visibility: hidden;
  pointer-events: none;
  font-size: clamp(11px, 1.3vw, 19px);
  font-weight: 800;
  text-align: center;
  transition: opacity .2s ease, visibility .2s ease;
}
.piece:hover img, .piece:hover video,
.piece:focus-visible img, .piece:focus-visible video { opacity: 0; }
.piece:hover .piece-label, .piece:focus-visible .piece-label { opacity: 1; visibility: visible; }
.piece video.video-unavailable { background: var(--blue-muted); opacity: .15; }
.p3 { width: 18%; }
.p5 { width: 16%; }
.p6 { width: 16%; right: 5%; bottom: 27%; }
/* Identical thumbnail frames for all project cards, regardless of source proportions. */
.grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 36px 20px; }
.card { display: block; min-width: 0; }
.card-media { width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: #e8e3da; display: flex; align-items: center; justify-content: center; }
.card-media img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card h2 { font-size: 17px; margin: 11px 0 0; letter-spacing: -.025em; font-weight: 700; }
.card:hover h2 { color: var(--red); }
.page-lead { padding-top: 5vh; }
.page-lead h1 { margin: 4vh 0 30px; }
.eyebrow { color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.intro-small { color: var(--blue-muted); font-size: 20px; margin: 0 0 50px; }
.about-content { display: grid; grid-template-columns: minmax(0, 2fr) minmax(180px,1fr); gap: 5vw; padding: 0 0 9rem; align-items: end; }
.about-content .copy { font-size: clamp(22px, 3vw, 36px); line-height: 1.25; }
.about-secondary { max-width: 650px; font-size: 19px; line-height: 1.65; color: var(--blue-muted); }
.signature-area { min-height: 170px; display: flex; align-items: center; justify-content: center; }
.signature-area img { max-width: 100%; max-height: 200px; object-fit: contain; }
.signature-placeholder { color: var(--blue-muted); border-bottom: 1px solid var(--blue-muted); padding: 30px; text-align: center; font-size: 14px; }
.contact-lead { min-height: 65vh; }
.contact-note { font-size: clamp(18px,2.2vw,28px); }
.contact-email { display: inline-block; margin: 20px 0 80px; font-size: clamp(20px, 3.6vw, 52px); font-weight: 800; letter-spacing: -.04em; border-bottom: 2px solid var(--red); overflow-wrap: anywhere; }
.contact-email span { color: var(--red); }
.site-footer { width: 100%; max-width: 1440px; margin: 0 auto; padding: 32px 4vw 22px; border-top: 1px solid var(--ink); }
.footer-top { display: flex; justify-content: space-between; gap: 30px; align-items: flex-start; padding-bottom: 50px; }
.footer-name { font-size: clamp(28px, 4vw, 56px); font-weight: 900; letter-spacing: -.065em; line-height: .85; }
.footer-period { color: var(--red); }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px 30px; font-size: 12px; font-weight: 700; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 15px; border-top: 1px solid var(--line); font-size: 10px; color: var(--blue-muted); letter-spacing: .06em; }
.project-shell { width: 100%; }
.project-hero { max-width: 100%; max-height: 650px; object-fit: contain; background: #e8e3da; }
.project-intro h1 { font-size: clamp(45px, 7vw, 110px); }
.project-kicker { color: var(--red); }
.project-next { border-top-color: var(--line); }
.project-next a:hover { color: var(--red); }
.editorial-collage { display: grid; grid-template-columns: repeat(12,1fr); gap: clamp(10px,2vw,26px); margin: 4rem 0 8rem; align-items: start; }
.collage-item, .collage-empty { grid-column: span 4; width: 100%; }
.collage-item:nth-child(5n+2), .collage-empty:nth-child(5n+2) { grid-column: span 5; }
.collage-item:nth-child(5n+3), .collage-empty:nth-child(5n+3) { grid-column: span 3; }
.collage-item:nth-child(5n+4), .collage-empty:nth-child(5n+4) { grid-column: span 6; }
.collage-empty, .photo-empty { min-height: 210px; background: #e8e3da; border: 1px dashed #a1a1a1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--blue-muted); font-size: 13px; font-weight: 700; text-align: center; padding: 15px; }
.collage-empty small, .photo-empty small { font-size: 10px; font-weight: 400; }
.photo-session { margin: 5rem 0 7rem; }
.photo-session h2 { border-top: 1px solid var(--line); padding-top: 20px; font-size: clamp(26px,4vw,52px); letter-spacing: -.05em; }
.photo-collage { display: grid; grid-template-columns: repeat(12,1fr); gap: 14px; align-items: start; }
.photo-collage > * { grid-column: span 4; width: 100%; }
.photo-collage > *:nth-child(3n+2) { grid-column: span 5; }
.photo-collage > *:nth-child(3n+3) { grid-column: span 3; }
@media(max-width:700px) {
  .site-header { padding: 20px 4vw; }
  .site-header .logo { font-size: 14px; }
  .site-header nav { font-size: 10px; gap: 13px; }
  .reel { min-height: 530px; }
  .piece { width: 26% !important; }
  .p3, .p5 { width: 30% !important; }
  .p6 { width: 26% !important; }
  .grid { grid-template-columns: 1fr; }
  .about-content { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
  .footer-bottom { flex-direction: column; }
  .editorial-collage > *, .photo-collage > * { grid-column: span 6 !important; }
}

/* October 26 refinements: retain existing collage layout, nudge only overlapping pieces. */
.site-header { align-items: center; }
.site-header nav { align-self: center; font-size: 14px; }
.p3 { left: 17%; bottom: 13%; } /* Surf film: move left, slightly down, away from name */
.p4 { right: 23%; bottom: 8%; } /* Kiraku: a little farther right */
.p5 { left: 50%; top: 3%; } /* DecoverAI: lift above central name */
.p6 { right: 1%; bottom: 27%; } /* Controls: right edge, less overlap */
.project-hero-frame {
  width: 100%;
  min-height: min(64vw, 650px);
  max-height: 700px;
  aspect-ratio: 16 / 9;
  background: #e8e3da;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 2rem 0 4rem;
}
.project-hero-frame .project-hero {
  width: 100%;
  height: 100%;
  max-height: 700px;
  object-fit: contain;
  margin: 0;
  background: transparent;
}
@media (max-width: 700px) {
  .site-header nav { font-size: 11px; }
  .p3 { left: 1%; bottom: 13%; }
  .p4 { right: 2%; bottom: 15%; }
  .p5 { left: 45%; top: 8%; }
  .p6 { right: -3%; bottom: 35%; }
}

/* Refinements: contact, signature, floating collage and photography slots */
.contact-email { font-size: clamp(16px, 1.7vw, 24px); letter-spacing: 0; }
.signature-area img { width: 160px; max-width: 100%; height: auto; max-height: 100px; object-fit: contain; }
.p3 { left: 20%; bottom: 8%; }
.p4 { bottom: 3%; }
.p5 { --r: 2deg; }
.card-media img { object-fit: cover; }
.card:has(img[src*="sunstainable"]) .card-media img { object-fit: cover; }
.photo-slot { width: 100%; aspect-ratio: 4 / 5; overflow: hidden; background: #e8e3da; }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-slot .photo-empty { width: 100%; height: 100%; min-height: 0; }
@media(max-width:700px) {
  .p3 { left: 4%; bottom: 9%; }
  .p4 { bottom: 11%; }
}

/* Shift Sunstainable right. */
.p3 { left: 25%; }
@media(max-width:700px) { .p3 { left: 9%; } }

/* Lower Sunstainable without shifting its horizontal position. */
.p3 { bottom: 5%; }
@media (max-width:700px) { .p3 { bottom: 6%; } }

/* Preserve original transparent PNG proportions on these two cards. */
.card[href*="recipe-roulette"] .card-media img,
.card[href*="kiraku"] .card-media img { object-fit: contain; }

/* Selected Work cards: image-to-category hover, also available via keyboard. */
.card-media { position: relative; }
.card-media img { transition: opacity .22s ease; }
.card-category {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; padding: 18px; color: var(--red);
  font-size: clamp(18px, 2.2vw, 32px); font-weight: 800;
  line-height: 1.05; text-transform: uppercase; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .22s ease;
}
.card:hover .card-media img, .card:focus-visible .card-media img { opacity: 0; transform: none; }
.card:hover .card-category, .card:focus-visible .card-category { opacity: 1; }
.card:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  .card-media img, .card-category { transition: none; }
}

/* Three medium-sized vertical images for these two sessions. */
.photo-session:has(img[src*="couples-grad-"]) .photo-collage,
.photo-session:has(img[src*="raon-performance-"]) .photo-collage {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
  max-width: 940px;
}
.photo-session:has(img[src*="couples-grad-"]) .photo-collage > *,
.photo-session:has(img[src*="raon-performance-"]) .photo-collage > * {
  grid-column: auto; aspect-ratio: 3 / 4;
}
@media(max-width:700px) {
  .photo-session:has(img[src*="couples-grad-"]) .photo-collage,
  .photo-session:has(img[src*="raon-performance-"]) .photo-collage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Responsive embedded film player */
.project-youtube { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }

/* Temporary portfolio preview: preserve hover visuals without project links. */
.piece, .card { cursor: default; }
.portfolio-progress { max-width: 760px; margin: 0 auto; padding: clamp(65px, 9vw, 125px) 18px; text-align: center; }
.portfolio-progress h2 { font-size: clamp(28px, 4.5vw, 58px); line-height: 1.1; letter-spacing: -.045em; margin: 0 0 22px; }
.portfolio-progress p { font-size: clamp(16px, 1.8vw, 21px); line-height: 1.6; margin: 0; }
.portfolio-progress a { text-decoration: underline; text-underline-offset: 4px; }
.portfolio-progress a:hover { color: var(--red); }
