@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

/* ── Variables ───────────────────────────────── */
:root {
  --navy: #07004D;
  --black: #111;
  --white: #fff;
  --gray-100: #f7f7f5;
  --gray-200: #e8e8e6;
  --gray-400: #999;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --nav-h: 76px;
}

/* ── Reset ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--black); background: var(--white); min-height: 100vh; display: flex; flex-direction: column; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; padding: 0; }
ul { list-style: none; }
main { flex: 1; }

/* ── Page fade-in ────────────────────────────── */
body { animation: pageIn 0.4s var(--ease); }
@keyframes pageIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Nav ─────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  height: var(--nav-h);
}

nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 60px;
  width: auto;
  transition: transform 0.35s var(--ease);
}

.nav-logo:hover img {
  transform: scale(1.07);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  white-space: nowrap;
  display: inline-block;
}

.nav-links a:hover { opacity: 0.6; transform: scale(1.1); }
.nav-links a.active { opacity: 0.45; }

.nav-icon svg {
  width: 19px;
  height: 19px;
  fill: var(--navy);
  display: block;
  transition: opacity 0.2s var(--ease);
}

.nav-icon:hover svg { opacity: 0.45; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--navy);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Footer ─────────────────────────────────── */
footer {
  border-top: 1px solid var(--gray-200);
  padding: 24px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  font-size: 11px;
  color: var(--gray-400);
  letter-spacing: 0.06em;
}

footer a {
  color: var(--gray-400);
  transition: color 0.2s var(--ease);
}

footer a:hover { color: var(--navy); }

/* ── Landing ─────────────────────────────────── */
.landing-hero {
  width: 100%;
  line-height: 0; /* remove inline-block gap */
}

.landing-hero img {
  width: 100%;
  height: calc(100vh - var(--nav-h));
  object-fit: cover;
  object-position: center center;
  animation: heroIn 0.8s var(--ease) both;
}

@keyframes heroIn {
  from { opacity: 0; transform: scale(1.02); }
  to   { opacity: 1; transform: scale(1); }
}

.hero-link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-link img {
  transition: filter 0.5s var(--ease);
}

.hero-link:hover img {
  filter: grayscale(100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.18);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.hero-link:hover .hero-overlay { opacity: 1; }

.hero-label {
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ── Murals page: floating transparent nav ────── */
.page-murals header {
  position: fixed;
  width: 100%;
  background: transparent;
  border-bottom: none;
}

/* Gradient behind nav so links stay legible over images */
.page-murals .nav-gradient {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 100%);
  z-index: 99;
  pointer-events: none;
}

/* White logo on dark images — works now that it's a transparent PNG */
.page-murals .nav-logo img {
  filter: brightness(0) invert(1);
}

/* White nav links */
.page-murals .nav-links a {
  color: var(--white);
}

.page-murals .nav-links a:hover { opacity: 0.65; }
.page-murals .nav-links a.active { opacity: 0.4; }

/* White instagram icon */
.page-murals .nav-icon svg {
  fill: var(--white);
}

/* White hamburger bars on mobile */
.page-murals .nav-toggle span {
  background: var(--white);
}

/* Mobile nav background on murals page */
@media (max-width: 768px) {
  .page-murals .nav-links {
    background: rgba(0,0,0,0.92);
  }
}

/* ── Mural full-bleed scroll ─────────────────── */
.mural-scroll {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mural-scroll-item {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  cursor: pointer;
}

.mural-scroll-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  will-change: transform;
  /* hover-out: instant reset */
  transition: transform 0.6s var(--ease);
}

.mural-scroll-item:hover img {
  transform: scale(1.025);
  /* hover-in: 80ms delay so scroll passes don't trigger it */
  transition: transform 0.8s var(--ease) 0.08s;
}

.mural-scroll-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  will-change: opacity;
  transition: background 0.4s var(--ease);
  pointer-events: none;
}

.mural-scroll-item:hover .mural-scroll-overlay {
  background: rgba(0, 0, 0, 0.28);
  transition: background 0.5s var(--ease) 0.08s;
}

.mural-scroll-title {
  color: var(--white);
  font-size: clamp(1rem, 2.2vw, 1.9rem);
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  will-change: opacity, transform;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  text-align: center;
  padding: 0 24px;
}

.mural-scroll-item:hover .mural-scroll-title {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.45s var(--ease) 0.08s, transform 0.45s var(--ease) 0.08s;
}

/* ── Page wrapper ────────────────────────────── */
.page-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 48px;
}

/* ── Portfolio grid ──────────────────────────── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.grid-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  background: var(--gray-100);
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
  will-change: transform;
}

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

.grid-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 0, 77, 0.70);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

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

.overlay-title {
  color: var(--white);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  padding: 0 24px;
  line-height: 1.7;
}

/* ── Studio coming soon ──────────────────────── */
.studio-coming-soon {
  display: none;
  justify-content: center;
  align-items: flex-start;
  padding-top: 24px;
}

.studio-coming-soon img {
  max-width: 480px;
  width: 100%;
  height: auto;
}

/* ── Year tabs (Studio) ──────────────────────── */
.year-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 40px;
}

.year-tabs button {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-400);
  padding-bottom: 6px;
  margin-right: 28px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.year-tabs button.active {
  color: var(--navy);
  border-bottom-color: var(--navy);
}

/* ── Detail view ─────────────────────────────── */
.grid-section,
.detail-section { transition: opacity 0.25s var(--ease); }

.detail-section {
  display: none;
}

.detail-section.visible {
  display: block;
  animation: slideUp 0.4s var(--ease);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.detail-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 56px;
}

.detail-nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.detail-nav-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  opacity: 0.45;
  transition: opacity 0.2s var(--ease);
}

.detail-nav-btn:hover { opacity: 1; }
.detail-nav-btn:disabled { opacity: 0.15; cursor: default; }

.detail-nav-center {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gray-400);
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
  align-items: start;
}

.detail-images {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.detail-images img,
.detail-images video {
  width: 100%;
  height: auto;
}

.detail-images video {
  background: #000;
}

.detail-info {
  position: sticky;
  top: calc(var(--nav-h) + 36px);
}

.detail-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin-bottom: 32px;
  line-height: 1.3;
}

.detail-meta {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.meta-item { display: flex; flex-direction: column; gap: 3px; }

.meta-label {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.meta-value {
  font-size: 13.5px;
  color: var(--black);
  line-height: 1.55;
}

.detail-description {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--gray-200);
  font-size: 13px;
  line-height: 1.8;
  color: #555;
}

/* Related projects at bottom of detail */
.detail-related {
  margin-top: 96px;
  padding-top: 40px;
  border-top: 1px solid var(--gray-200);
}

.detail-related-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 20px;
}

.detail-related .portfolio-grid {
  gap: 3px;
}

.detail-related .grid-item {
  aspect-ratio: 1;
}

/* ── About ───────────────────────────────────── */
.about-top {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 72px;
  align-items: start;
  margin-bottom: 80px;
}

.about-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.about-name {
  font-size: 24px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.about-sub {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 28px;
}

.about-bio {
  font-size: 15px;
  line-height: 1.8;
  color: #333;
}

.cv-section {
  border-top: 1px solid var(--gray-200);
  padding-top: 64px;
  padding-left: calc(320px + 72px);
}

.cv-section > h2 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 48px;
}

.cv-block { margin-bottom: 52px; }

.cv-block h3 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gray-200);
}

.cv-entry {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 24px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
}

.cv-year {
  font-size: 12px;
  color: var(--gray-400);
  padding-top: 1px;
  font-variant-numeric: tabular-nums;
}

.cv-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: #333;
}

.cv-text em { font-style: italic; }

.cv-text a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.7;
  transition: opacity 0.2s var(--ease);
}

.cv-text a:hover { opacity: 1; }

.cv-clients {
  font-size: 14px;
  line-height: 1.8;
  color: #444;
  padding: 12px 0;
}

/* ── Contact ─────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 680px;
  align-items: start;
}

.contact-head {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 12px;
}

.contact-intro {
  font-size: 14px;
  line-height: 1.75;
  color: #555;
  margin-bottom: 40px;
}

.contact-intro a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group label {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
}

.form-group label .opt {
  color: var(--gray-400);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: none;
  margin-left: 4px;
}

.form-group input,
.form-group textarea,
.form-group select {
  border: none;
  border-bottom: 1px solid var(--gray-200);
  padding: 9px 0;
  font-size: 13.5px;
  font-family: var(--font);
  color: var(--black);
  background: transparent;
  outline: none;
  transition: border-color 0.2s var(--ease);
  width: 100%;
  -webkit-appearance: none;
  border-radius: 0;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-bottom-color: var(--navy);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}

.form-group select {
  cursor: pointer;
}

.budget-label {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 2px;
}

.budget-options {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.budget-option {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 13px;
  color: #333;
  user-select: none;
}

.budget-option input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  border: 1px solid var(--gray-400);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}

.budget-option input[type="checkbox"]:checked {
  background: var(--navy);
  border-color: var(--navy);
}

.budget-option input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 4px;
  width: 3px;
  height: 7px;
  border: 1.5px solid white;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.submit-btn {
  background: var(--navy);
  color: var(--white);
  padding: 14px 36px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: opacity 0.2s var(--ease);
  align-self: flex-start;
  margin-top: 4px;
}

.submit-btn:hover { opacity: 0.75; }
.submit-btn:disabled { opacity: 0.4; cursor: default; }

.contact-photo img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.form-success {
  display: none;
  padding: 48px 0;
}

.form-success.visible { display: block; }

.form-success p {
  font-size: 15px;
  color: var(--navy);
  line-height: 1.7;
}

/* ── Prints Page ────────────────────────────── */
.prints-page-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  padding-top: 48px;
}

.prints-page-images {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.prints-page-images img {
  width: 100%;
  display: block;
}

.prints-page-label {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.prints-page-title {
  font-size: 32px;
  font-weight: 400;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 4px;
}

.prints-page-subtitle {
  font-size: 22px;
  color: var(--gray-400);
  font-weight: 300;
}

.prints-page-meta {
  margin: 28px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 20px 0;
}

.prints-page-description {
  font-size: 14px;
  color: var(--navy);
  line-height: 1.8;
  margin-bottom: 32px;
}

.prints-page-gallery {
  margin-top: 20px;
  font-size: 12px;
  color: var(--gray-400);
}

.prints-page-gallery a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 860px) {
  .prints-page-layout { grid-template-columns: 1fr; gap: 48px; }
}

/* ── Prints Section ─────────────────────────── */
.prints-section {
  padding: 80px 72px;
  border-top: 1px solid var(--gray-200);
}

.prints-heading {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 48px;
}

.prints-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.prints-image img {
  width: 100%;
  display: block;
}

.prints-title {
  font-size: 22px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.3;
}

.prints-byline {
  font-size: 12px;
  color: var(--gray-400);
  letter-spacing: 0.06em;
  margin-bottom: 28px;
}

.prints-description {
  font-size: 14px;
  color: var(--navy);
  line-height: 1.75;
  margin-bottom: 16px;
}

.prints-shop-btn {
  display: inline-block;
  margin-top: 16px;
  background: var(--navy);
  color: var(--white);
  padding: 14px 36px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.2s var(--ease);
}

.prints-shop-btn:hover { opacity: 0.75; }

.detail-shop-btn {
  margin-top: 32px;
}

.overlay-badge {
  display: block;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-top: 5px;
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 1024px) {
  nav, .page-wrap { padding-left: 36px; padding-right: 36px; }
  footer { padding-left: 36px; padding-right: 36px; }
  .detail-layout { grid-template-columns: 1fr 260px; gap: 48px; }
  .contact-layout { grid-template-columns: 1fr 340px; gap: 60px; }
}

@media (max-width: 860px) {
  .about-top { grid-template-columns: 1fr; gap: 40px; }
  .about-photo { max-width: 260px; }
  .cv-section { padding-left: 0; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-photo { display: none; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-info { position: static; margin-top: 40px; }
  .prints-layout { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  nav { padding: 0 24px; }
  .page-wrap { padding: 48px 24px; }
  .prints-section { padding: 48px 24px; }
  footer { padding: 20px 24px; gap: 16px; flex-wrap: wrap; }

  .nav-links {
    display: none;
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 13px; }
  .nav-toggle { display: flex; }

  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-related .portfolio-grid { grid-template-columns: repeat(2, 1fr); }

  /* Mobile mural scroll: show full image, no cropping */
  .mural-scroll-item {
    height: auto;
    overflow: hidden;
    position: relative;
  }
  .mural-scroll-item img {
    height: auto;
    object-fit: unset;
    transform: none !important;
    transition: none !important;
  }
  /* Hide overlay by default on mobile, show on tap */
  .mural-scroll-overlay {
    display: none;
  }
  .mural-scroll-item.tapped .mural-scroll-overlay {
    display: flex !important;
    background: rgba(0, 0, 0, 0.35);
  }
  .mural-scroll-item.tapped .mural-scroll-title {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
  .budget-options { gap: 16px; }
}
