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

:root {
  --pink:      #F9D0DC;
  --blush:     #F4A0B8;
  --hot-pink:  #E8175C;
  --brown:     #2C1A0E;
  --off-white: #FAFAF5;
  --lime:      #C8DE6A;
  --pale-lime: #E8EFA8;
  --sky:       #7BBDD4;
  --stone:     #9C9A92;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  background: var(--off-white);
  color: var(--brown);
  text-transform: lowercase;
  -webkit-font-smoothing: antialiased;
}

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

/* ============ HEADER ============ */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  pointer-events: none;
  transition: background 0.3s, border-color 0.3s;
}

/* Non-hero pages: solid immediately via JS */
header.solid {
  background: var(--off-white);
  border-bottom: 1px solid rgba(44,26,14,0.08);
}

header.solid .logo { color: var(--brown) !important; }
header.solid nav a { color: rgba(44,26,14,0.6) !important; }
header.solid nav a:hover { color: var(--brown) !important; }
header.solid nav a.active { color: var(--hot-pink) !important; }

/* Dark header override — used on hero pages before scroll */
header.dark-header .logo { color: var(--off-white); }
header.dark-header nav a { color: rgba(250,250,245,0.75); }
header.dark-header nav a:hover { color: var(--off-white); }

header * { pointer-events: all; }

.logo {
  font-size: 14px;
  font-weight: 500;
  color: var(--brown);
  letter-spacing: 0.02em;
  transition: color 0.3s;
}

nav { display: flex; gap: 28px; }

nav a {
  font-size: 12px;
  font-weight: 400;
  color: rgba(44,26,14,0.6);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

nav a:hover { color: var(--brown); }
nav a.active { color: var(--hot-pink) !important; }

/* ============ HERO ============ */
.hero {
  display: flex;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-main {
  position: relative;
  flex: 1;
  overflow: hidden;
  background: var(--brown);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transition: opacity 0.5s ease;
}

.hero-text {
  position: absolute;
  bottom: 36px;
  left: 36px;
  right: 36px;
  z-index: 10;
}

.hero-label {
  display: inline-block;
  font-size: 9px;
  font-weight: 400;
  color: var(--brown);
  letter-spacing: 0.14em;
  background: var(--pale-lime);
  padding: 3px 8px;
  margin-bottom: 8px;
}

.hero-title {
  display: inline;
  font-size: 40px;
  font-weight: 500;
  color: var(--brown);
  line-height: 1.15;
  letter-spacing: -0.01em;
  background: var(--pale-lime);
  padding: 2px 10px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero-title-wrap {
  display: block;
  margin-bottom: 8px;
}

.hero-desc {
  display: inline;
  font-size: 11px;
  font-weight: 300;
  color: var(--brown);
  line-height: 1.8;
  background: var(--pale-lime);
  padding: 2px 8px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero-desc-wrap {
  display: block;
  max-width: 360px;
  margin-bottom: 18px;
}

.hero-btn {
  display: inline-block;
  font-size: 11px;
  font-weight: 400;
  color: var(--brown);
  background: var(--pale-lime);
  padding: 8px 18px;
  letter-spacing: 0.06em;
  transition: background 0.2s;
}

.hero-btn:hover { background: var(--lime); }

.hero-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.hero-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(250,250,245,0.3);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background 0.3s;
}

.hero-dot.active { background: var(--pink); }

.hero-scroll {
  position: absolute;
  bottom: 22px;
  right: 20px;
  font-size: 10px;
  font-weight: 300;
  color: rgba(250,250,245,0.3);
  letter-spacing: 0.06em;
  z-index: 10;
}

/* ============ SIDEBAR ============ */
.hero-sidebar {
  width: 60px;
  min-width: 60px;
  background: var(--brown);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 0 20px;
  position: relative;
  z-index: 20;
}

.side-item {
  width: 100%;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  border-left: 2px solid transparent;
  transition: border-color 0.25s;
}

.side-item.active { border-left-color: var(--pink); }

.side-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(250,250,245,0.25);
  transition: background 0.25s;
}

.side-item.active .side-dot { background: var(--pink); }

.side-tooltip {
  position: absolute;
  right: 64px;
  background: var(--brown);
  color: var(--off-white);
  font-size: 10px;
  font-weight: 400;
  white-space: nowrap;
  padding: 5px 12px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  border-left: 2px solid var(--hot-pink);
  z-index: 30;
}

.side-item:hover .side-tooltip { opacity: 1; }

.side-num {
  position: absolute;
  bottom: 20px;
  font-size: 9px;
  color: rgba(250,250,245,0.2);
  font-weight: 300;
  writing-mode: vertical-lr;
  letter-spacing: 0.1em;
}

/* ============ PROJECT GRID ============ */
.projects {
  padding: 80px 40px;
  background: var(--off-white);
}

.projects-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 40px;
}

.projects-header h2 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--stone);
}

.projects-header a {
  font-size: 11px;
  font-weight: 400;
  color: var(--hot-pink);
  letter-spacing: 0.04em;
  transition: opacity 0.2s;
}

.projects-header a:hover { opacity: 0.7; }

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

.grid-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
  background: var(--brown);
  display: block;
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.grid-item:hover img {
  transform: scale(1.04);
  opacity: 0.7;
}

.grid-item-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 10;
}

.grid-item:hover .grid-item-info { opacity: 1; }

.grid-item-title {
  display: inline;
  font-size: 14px;
  font-weight: 500;
  color: var(--brown);
  background: var(--pale-lime);
  padding: 2px 6px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  line-height: 1.6;
}

.grid-item-label {
  display: block;
  margin-top: 6px;
}

.grid-item-cat {
  display: inline;
  font-size: 9px;
  font-weight: 400;
  color: var(--brown);
  background: var(--pale-lime);
  padding: 2px 6px;
  letter-spacing: 0.08em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.gria-pill {
  display: inline-block;
  font-size: 9px;
  font-weight: 500;
  color: var(--off-white);
  background: var(--hot-pink);
  padding: 3px 9px;
  letter-spacing: 0.08em;
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 10;
}

/* ============ ABOUT BLURB ============ */
.about-blurb {
  padding: 80px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  border-top: 1px solid rgba(44,26,14,0.1);
}

.about-blurb-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--stone);
  margin-bottom: 20px;
}

.about-blurb p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--brown);
  margin-bottom: 24px;
}

.about-blurb a.text-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--hot-pink);
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--hot-pink);
  padding-bottom: 2px;
  transition: opacity 0.2s;
}

.about-blurb a.text-link:hover { opacity: 0.7; }

.skill-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 400;
  color: var(--brown);
  background: var(--pink);
  padding: 6px 12px;
  margin: 2px;
  letter-spacing: 0.04em;
}

/* ============ SKILLS STRIP ============ */
.skills-strip {
  background: var(--brown);
  padding: 24px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.skills-strip-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(250,250,245,0.4);
  margin-right: 8px;
}

.skills-strip span {
  font-size: 10px;
  font-weight: 300;
  color: rgba(250,250,245,0.6);
  letter-spacing: 0.04em;
}

.skills-strip span::after {
  content: '·';
  margin-left: 12px;
  color: rgba(250,250,245,0.2);
}

.skills-strip span:last-child::after { content: ''; }

/* ============ PAGE HEADER (non-hero pages) ============ */
.page-header {
  padding: 140px 40px 60px;
  border-bottom: 1px solid rgba(44,26,14,0.1);
}

.page-header-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--stone);
  margin-bottom: 16px;
}

.page-header h1 {
  font-size: 48px;
  font-weight: 500;
  color: var(--brown);
  letter-spacing: -0.02em;
  line-height: 1.05;
}

/* ============ FOOTER ============ */
footer {
  background: var(--brown);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(250,250,245,0.08);
}

.footer-logo {
  font-size: 14px;
  font-weight: 500;
  color: var(--off-white);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 11px;
  font-weight: 400;
  color: rgba(250,250,245,0.5);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--off-white); }

.footer-copy {
  font-size: 10px;
  font-weight: 300;
  color: rgba(250,250,245,0.25);
  letter-spacing: 0.04em;
}

/* ============ PROJECT PAGE ============ */
.project-hero {
  width: 100%;
  height: 70vh;
  min-height: 480px;
  object-fit: cover;
  display: block;
  background: var(--brown);
}

.project-hero-img {
  width: 100%;
  height: 70vh;
  min-height: 480px;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.project-intro {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 80px;
  padding: 60px 40px;
  border-bottom: 1px solid rgba(44,26,14,0.1);
}

.project-title {
  font-size: 48px;
  font-weight: 500;
  color: var(--brown);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 20px;
}

.project-desc {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--brown);
  max-width: 540px;
}

.project-meta {
  padding-top: 8px;
}

.project-meta-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
}

.project-meta-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--stone);
}

.project-meta-value {
  font-size: 12px;
  font-weight: 400;
  color: var(--brown);
  line-height: 1.6;
}

.project-images {
  padding: 2px;
  display: grid;
  gap: 2px;
}

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

.project-images .full { grid-column: 1 / -1; }

.project-images.two-col {
  grid-template-columns: 1fr 1fr;
}

.project-images.three-col {
  grid-template-columns: 1fr 1fr 1fr;
}

.project-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px;
  border-top: 1px solid rgba(44,26,14,0.1);
}

.project-nav a {
  font-size: 12px;
  font-weight: 500;
  color: var(--hot-pink);
  letter-spacing: 0.04em;
  transition: opacity 0.2s;
}

.project-nav a:hover { opacity: 0.7; }

.project-nav-center {
  font-size: 11px;
  font-weight: 400;
  color: var(--stone);
}

/* ============ WORK PAGE ============ */
.work-filters {
  padding: 0 40px 40px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 400;
  color: var(--brown);
  background: transparent;
  border: 1px solid rgba(44,26,14,0.2);
  padding: 6px 14px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: lowercase;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--brown);
  color: var(--off-white);
  border-color: var(--brown);
}

/* ============ ABOUT PAGE ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 60px 40px;
}

.about-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}

.about-content-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--stone);
  margin-bottom: 20px;
}

.about-content p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--brown);
  margin-bottom: 20px;
}

.about-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.about-link-btn {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: var(--off-white);
  background: var(--brown);
  padding: 10px 20px;
  letter-spacing: 0.06em;
  transition: background 0.2s;
}

.about-link-btn:hover { background: var(--hot-pink); color: var(--off-white); }

.about-link-btn.outline {
  background: transparent;
  color: var(--brown);
  border: 1px solid rgba(44,26,14,0.3);
}

.about-link-btn.outline:hover { background: var(--brown); color: var(--off-white); }

.about-skills {
  padding: 60px 40px;
  border-top: 1px solid rgba(44,26,14,0.1);
}

.about-skills-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--stone);
  margin-bottom: 24px;
}

.about-skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.about-skill-item {
  background: var(--pink);
  padding: 20px;
}

.about-skill-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--brown);
  margin-bottom: 6px;
}

.about-skill-tools {
  font-size: 10px;
  font-weight: 300;
  color: rgba(44,26,14,0.6);
  line-height: 1.6;
}

/* ============ CONTACT PAGE ============ */
.contact-wrap {
  padding: 60px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-intro p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--brown);
  margin-bottom: 32px;
}

.contact-email {
  font-size: 24px;
  font-weight: 500;
  color: var(--hot-pink);
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--hot-pink);
  padding-bottom: 4px;
  display: inline-block;
  transition: opacity 0.2s;
}

.contact-email:hover { opacity: 0.7; }

.contact-social {
  margin-top: 40px;
}

.contact-social-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--stone);
  margin-bottom: 16px;
}

.contact-social-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-social-links a {
  font-size: 13px;
  font-weight: 400;
  color: var(--brown);
  letter-spacing: 0.02em;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-social-links a:hover { color: var(--hot-pink); }

.contact-social-links a::before {
  content: '→';
  font-size: 11px;
  color: var(--hot-pink);
}

.contact-right {
  padding-top: 8px;
}

.contact-availability {
  background: var(--pink);
  padding: 32px;
  margin-bottom: 2px;
}

.contact-availability-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--stone);
  margin-bottom: 12px;
}

.contact-availability p {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--brown);
}

.contact-studio {
  background: var(--brown);
  padding: 32px;
}

.contact-studio-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(250,250,245,0.4);
  margin-bottom: 12px;
}

.contact-studio p {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(250,250,245,0.7);
  margin-bottom: 16px;
}

.contact-studio a {
  font-size: 11px;
  font-weight: 500;
  color: var(--pale-lime);
  letter-spacing: 0.04em;
  transition: opacity 0.2s;
}

.contact-studio a:hover { opacity: 0.7; }

/* ============ GRIA PILL TOOLTIP ============ */
.gria-pill-wrap {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 10;
}
.gria-pill-wrap .gria-pill {
  position: static;
  display: inline-block;
}
.gria-callout {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--brown);
  color: var(--off-white);
  font-size: 10px;
  font-weight: 300;
  line-height: 1.6;
  padding: 10px 14px;
  width: 200px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  border-left: 2px solid var(--hot-pink);
  z-index: 20;
  text-transform: lowercase;
}
.gria-pill-wrap:hover .gria-callout { opacity: 1; }

/* ============ PROJECT GALLERY ============ */
.project-gallery {
  padding: 2px;
}

.gallery-main {
  width: 100%;
  height: 70vh;
  min-height: 480px;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

.gallery-main-wrap {
  position: relative;
  display: block;
  width: 100%;
}

.gallery-main-wrap .gallery-main {
  display: block;
  width: 100%;
}

.gallery-zoom-hint {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(44,26,14,0.6);
  color: var(--off-white);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-main-wrap:hover .gallery-zoom-hint { opacity: 1; }

.gallery-thumbs {
  display: flex;
  gap: 2px;
  margin-top: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.gallery-thumbs::-webkit-scrollbar { display: none; }

.gallery-thumb {
  flex-shrink: 0;
  width: 100px;
  height: 70px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s;
  border: 2px solid transparent;
}
.gallery-thumb:hover { opacity: 0.85; }
.gallery-thumb.active { opacity: 1; border-color: var(--hot-pink); }

/* lightbox */
.gallery-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(44,26,14,0.95);
  z-index: 999;
  align-items: center;
  justify-content: center;
}
.gallery-lightbox.open { display: flex; }
.gallery-lightbox img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  display: block;
  cursor: zoom-out;
}

.gallery-lightbox.maximized img {
  max-width: 100vw;
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
  object-fit: contain;
}

.gallery-maximize-btn {
  position: absolute;
  top: 20px;
  left: 24px;
  font-size: 13px;
  color: var(--off-white);
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  padding: 8px;
  opacity: 0.6;
  transition: opacity 0.2s;
  letter-spacing: 0.04em;
}

.gallery-maximize-btn:hover { opacity: 1; }
.gallery-lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 24px;
  color: var(--off-white);
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  line-height: 1;
}
.gallery-lightbox-prev,
.gallery-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--off-white);
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  padding: 12px;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.gallery-lightbox-prev:hover,
.gallery-lightbox-next:hover { opacity: 1; }
.gallery-lightbox-prev { left: 20px; }
.gallery-lightbox-next { right: 20px; }
.gallery-caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 300;
  color: rgba(250,250,245,0.5);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* Gria studio image padding in grid */
.grid-item.contains-logo img {
  object-fit: contain;
  padding: 20px;
  background: var(--off-white);
}

.grid-item.gria-logo-item img {
  object-fit: contain !important;
  padding: 32px;
}

/* gria studio hero in project page */
.gallery-main.gria-contain {
  object-fit: contain;
  background: var(--off-white);
  padding: 40px;
}
