:root {
  --cream: #ffffff;
  --folder-tan: #281a0d;
  --folder-shadow: #1a1008;
  --folder-dark: #0f0904;
  --paper-white: #fdf8f0;
  --pink-paper: #f2c4c4;
  --ink: #f8f9ed;
  --ink-soft: #d0d1be;
  --accent: #f8f9ed;
  --clip-silver: #aaa;
  --font-script: 'Dancing Script', cursive;
  --font-display: 'Playfair Display', serif;
  --font-body: 'DM Sans', sans-serif;
}

* {
  cursor: url('customcursor.png'), auto;
}

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

html, body {
  height: 100%;
  background-color: var(--cream);
  font-family: var(--font-body);
  color: var(--ink);
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 20px 36px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #2B190B;
  z-index: 100;
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 60px;
}

.folder-wrap {
  position: relative;
  width: min(1000px, 95vw);
  animation: floatIn 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes floatIn {
  from { opacity: 0; transform: translateY(30px) rotate(-1deg); }
  to   { opacity: 1; transform: translateY(0) rotate(-0.5deg); }
}

.folder-tab {
  position: absolute;
  top: -44px;
  left: 28px;
  width: 180px;
  height: 52px;
  background-color: #F29FB8;
  border-radius: 10px 10px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
  cursor: pointer;
}

.tab-link {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2B190A;
  text-decoration: none;
  white-space: nowrap;
}

.folder-body {
  position: relative;
  background: var(--folder-tan);
  border-radius: 0 12px 12px 12px;
  padding: 36px 36px 40px;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.18),
    0 4px 12px rgba(0,0,0,0.1),
    inset 0 1px 0 rgba(255,255,255,0.3);
  min-height: 480px;
}

.paper-peek { display: none; }
.paper-line { display: none; }
.paper-line.short { display: none; }

/* =============================================
   HOMEPAGE POLAROIDS
   ============================================= */

.polaroids-group {
  position: absolute;
  top: 10px;
  right: 16px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.polaroids-row {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: flex-start;
}

.polaroid-wrap {
  position: relative;
  width: 160px;
}

.polaroids-row .polaroid-wrap:nth-child(2) {
  margin-top: 28px;
}

.polaroid-wrap::before {
  content: '';
  position: absolute;
  top: -18px;
  right: 24px;
  width: 20px;
  height: 36px;
  border: 3px solid var(--clip-silver);
  border-radius: 10px 10px 0 0;
  border-bottom: none;
  z-index: 11;
}

.polaroid {
  background: #fff;
  padding: 6px 6px 28px 6px;
  box-shadow: 2px 3px 16px rgba(0,0,0,0.28);
  transition: transform 0.3s ease;
  cursor: pointer;
  position: relative;
  width: auto;
}

.polaroids-row .polaroid-wrap:nth-child(1) .polaroid { transform: rotate(3deg); }
.polaroids-row .polaroid-wrap:nth-child(2) .polaroid { transform: rotate(-4deg); }
.polaroids-row .polaroid-wrap:nth-child(1):hover .polaroid { transform: rotate(1deg) scale(1.04); }
.polaroids-row .polaroid-wrap:nth-child(2):hover .polaroid { transform: rotate(-1deg) scale(1.04); }

/* Homepage polaroid photo box — uses 100% width so it scales with the frame */
.polaroid .photo-placeholder {
  width: 100%;
  height: 180px;
  background: #4a3520;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: static;
  inset: auto;
}

.polaroid .photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(100%);
  position: static;
  inset: auto;
}

.photo-hint {
  font-size: 9px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
}

.polaroid-bottom { height: 22px; }

.about-me-btn-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  z-index: 30;
}

.about-btn {
  background-color: #FF99B8;
  color: #281a0d;
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 3px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  display: inline-block;
  margin-top: -48px;
  margin-bottom: 25px;
}

/* =============================================
   END HOMEPAGE POLAROIDS
   ============================================= */

.name-title {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(11px, 3vw, 28px);
  font-weight: 500;
  color: #d0d1be;
  margin-top: 12px;
  display: block;
  letter-spacing: 0px;
}

.name-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(11px, 3vw, 28px);
  font-weight: 500;
  letter-spacing: 0.2em;
  color: #d0d1be;
  margin-top: 12px;
  display: block;
}

.cta-wrap {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f8f9ed;
  text-decoration: none;
  border: 1.5px solid #1D1108;
  padding: 13px 32px;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  transition: color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  min-width: 220px;
  text-align: center;
}

.cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #F29FB8;
  transform: translateX(-101%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
}

.cta-btn:hover {
  color: #281a0d !important;
  border-color: #F29FB8 !important;
}

.cta-btn:hover::before { transform: translateX(0); }

.cta-btn span {
  position: relative;
  z-index: 1;
  color: #2A190A;
  width: 100%;
  text-align: center;
  display: block;
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 16px 36px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #2B190A;
  z-index: 100;
}

.page-hero {
  padding: 120px 60px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #2B190B;
  margin-bottom: 12px;
}

.page-title {
  font-family: "ekamai", sans-serif;
  font-size: clamp(36px, 8vw, 72px);
  font-weight: normal;
  line-height: 0.95;
  margin-bottom: 60px;
  color: #F29FB8;
}

.portfolio-stage .page-title {
  color: #F29FB8;
  text-align: center;
  margin-bottom: 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px 80px;
}

.project-card {
  background: var(--folder-tan);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: var(--ink);
  display: block;
}

.project-card:hover {
  transform: translateY(-6px) rotate(0.5deg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.project-img {
  width: 100%;
  aspect-ratio: 1/1;
  background: var(--folder-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #888;
  letter-spacing: 0.1em;
  overflow: hidden;
}

.project-img img { width: 100%; height: 100%; object-fit: cover; }

.project-info { padding: 18px 20px 20px; }

.project-category {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.project-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
}

.about-layout {
  max-width: 900px;
  margin: 0 auto;
  padding: 120px 60px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-photo-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transform: scale(1.2);
  transform-origin: top center;
  margin-top: -118px;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(60%);
}

.about-text-col .page-title { margin-bottom: 28px; }

.about-bio {
  font-size: 15px;
  line-height: 1.8;
  color: #1E1309;
  margin-bottom: 32px;
}

.contact-layout {
  max-width: 640px;
  margin: 0 auto;
  padding: 120px 40px 80px;
  text-align: center;
}

.contact-layout .page-title { margin-bottom: 16px; }

.contact-sub {
  font-size: 15px;
  color: #301B0A;
  line-height: 1.7;
  margin-bottom: 48px;
}

.contact-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #281a0d;
  text-decoration: none;
  border: 1.5px solid #281a0d;
  padding: 14px 40px;
  border-radius: 2px;
  width: 280px;
  position: relative;
  overflow: hidden;
  transition: color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}

.contact-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #F29FB8;
  transform: translateX(-101%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
}

.contact-link:hover {
  color: #281a0d !important;
  border-color: #F29FB8 !important;
}

.contact-link:hover::before { transform: translateX(0); }

.contact-link span {
  position: relative;
  z-index: 1;
  color: inherit;
}

.back-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 36px;
  z-index: 100;
}

.back-link {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #2B190B;
  text-decoration: none;
}

.back-link:hover { color: var(--ink); }

/* =============================================
   PHOTOGRAPHY PAGE TILES
   ============================================= */

.photo-tile {
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  background: #3a2510;
}

.photo-tile:hover {
  transform: none;
  box-shadow: none;
}

.photo-tile > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-tile:hover > img {
  transform: none;
}

.photo-tile .photo-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #3a2510;
}

.photo-tile > img ~ .photo-placeholder {
  display: none;
}

.photo-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(40,26,13,0.88), transparent);
  padding: 28px 14px 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.photo-tile:hover .photo-label { opacity: 1; }

.photo-label-cat {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #F29FB8;
  display: block;
  margin-bottom: 3px;
}

.photo-label-name {
  font-family: ekamai, sans-serif;
  font-size: 14px;
  color: #f8f9ed;
  display: block;
}

.ph-num {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 900;
  color: #b89d5e;
  opacity: 0.35;
}

.ph-type {
  font-size: 8px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #b89d5e;
  opacity: 0.55;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 600px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 100px 28px 60px;
  }
  .projects-grid {
    padding: 0 24px 60px;
    grid-template-columns: 1fr;
  }
  .page-hero { padding: 100px 24px 40px; }
  nav, footer { padding: 16px 20px; color: #2B190A; }
}

@media (max-width: 768px) {
  .folder-wrap { width: 95vw; }
  .folder-body { padding: 24px 16px 32px; min-height: 360px; }
  .polaroid-wrap { width: 110px; }
  .polaroid { padding: 4px 4px 18px; }
  .polaroid-bottom { height: 12px; }
  .polaroid .photo-placeholder { height: 130px; }
  .polaroid-wrap::before { width: 18px; height: 30px; right: 14px; top: -15px; }
  .bold-title { font-size: 13vw; }
  .name-subtitle { font-size: 4vw; letter-spacing: 0.15em; }
  .folder-title { margin-top: 150px; }
  .about-layout { grid-template-columns: 1fr; gap: 40px; padding: 100px 24px 60px; }
  .contact-link { width: 100%; max-width: 320px; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .polaroid-wrap { width: 85px; }
  .polaroid { padding: 4px 4px 14px; }
  .polaroid-bottom { height: 10px; }
  .polaroid .photo-placeholder { height: 100px; }
  .polaroid-wrap::before { width: 14px; height: 24px; right: 10px; top: -12px; }
  .bold-title { font-size: 11vw; }
  .name-subtitle { font-size: 3.5vw; letter-spacing: 0.12em; }
  .folder-title { margin-top: 120px; }
  .cta-btn { min-width: 140px; font-size: 9px; padding: 10px 16px; }
  nav { padding: 14px 16px; font-size: 9px; }
  .nav-left { display: none; }
  footer { padding: 12px 16px; font-size: 8px; color: #2C1B0C; }
  .portfolio-stage { padding: 80px 16px 60px; gap: 40px; }
  .project-page { padding: 80px 16px 60px; }
  .project-meta { flex-direction: column; align-items: flex-start; }
  .project-desc { text-align: left; }
  .contact-layout { padding: 90px 16px 60px; }
  .contact-link { width: 100%; max-width: 280px; }
  .back-nav { padding: 14px 16px; }
}