/* ============================================================
   JOSH RANDALL PHOTOGRAPHY — Design System v3
   Apple-smooth × Photography-first × Cinematic
   Fonts: Cormorant Garamond (display) + Inter (body)
   Palette: Apple monochrome — let the photos speak
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Inter:wght@300;400;500&display=swap');

:root {
  /* Apple-inspired monochrome */
  --white:        #ffffff;
  --bg:           #f5f5f7;   /* Apple's signature off-white */
  --surface:      #fafafa;
  --black:        #1d1d1f;   /* Apple's near-black */
  --dark:         #000000;
  --mid:          #3d3d3f;
  --secondary:    #6e6e73;   /* Apple's secondary label */
  --tertiary:     #aeaeb2;   /* Apple's tertiary label */
  --border:       #d2d2d7;   /* Apple's separator */
  --border-dark:  rgba(255,255,255,0.1);

  /* Typography */
  --display: 'Cormorant Garamond', Georgia, serif;
  --sans:    'Inter', system-ui, -apple-system, sans-serif;

  /* Layout */
  --nav-h:      56px;
  --max-w:      1200px;
  --section-py: 140px;

  /* Motion — Apple uses precise, intentional curves */
  --spring:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:    cubic-bezier(0.4, 0, 1, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--sans); font-weight: 400; color: var(--black); background: var(--dark); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ── Scroll-reveal system ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.45s; }

.reveal-scale {
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* ============================================================
   NAVIGATION — Apple: ultra-thin, always-frosted
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(29, 29, 31, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid rgba(255,255,255,0.08);
  transition: background 0.5s var(--spring);
}
.nav.light {
  background: rgba(245,245,247,0.82);
  border-bottom-color: rgba(0,0,0,0.08);
}

.nav-logo {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.9);
  transition: color 0.4s;
}
.nav.light .nav-logo { color: var(--black); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}
.nav-links a:hover { color: rgba(255,255,255,1); }
.nav.light .nav-links a { color: var(--secondary); }
.nav.light .nav-links a:hover { color: var(--black); }

.nav-client-btn {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 7px 18px;
  border-radius: 980px; /* Apple pill */
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  border: 0.5px solid rgba(255,255,255,0.2);
  transition: all 0.25s var(--spring);
  cursor: pointer;
  display: inline-block;
}
.nav-client-btn:hover {
  background: rgba(255,255,255,0.2);
  color: var(--white);
}
.nav.light .nav-client-btn {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.nav.light .nav-client-btn:hover { opacity: 0.8; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: rgba(255,255,255,0.8);
  transition: background 0.3s;
}
.nav.light .nav-hamburger span { background: var(--black); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 850;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(40px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--display);
  font-size: 2.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  letter-spacing: -0.01em;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--white); }
.mobile-menu-close {
  position: absolute;
  top: 18px; right: 24px;
  font-size: 1.8rem;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
}

/* ============================================================
   HERO — Full viewport, cinematic, Apple-smooth
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--dark);
}

.hero-bg {
  position: absolute;
  inset: -5%;           /* slight oversize for parallax room */
  background-size: cover;
  background-position: center 30%;
  will-change: transform;
  transform: scale(1.06);
  transition: transform 1.4s var(--ease-out), opacity 1s;
  opacity: 0;
}
.hero-bg.loaded {
  opacity: 1;
  transform: scale(1.02);
}

/* Cinematic gradient — heavier at bottom for text legibility */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.08) 0%,
    rgba(0,0,0,0.06) 40%,
    rgba(0,0,0,0.55) 70%,
    rgba(0,0,0,0.88) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 80px 88px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
  animation: heroFadeUp 1s var(--ease-out) 0.3s both;
}

.hero-title {
  font-family: var(--display);
  font-size: clamp(3.6rem, 7.5vw, 7.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 28px;
  animation: heroFadeUp 1s var(--ease-out) 0.45s both;
}

.hero-desc {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 300;
  color: rgba(255,255,255,0.58);
  line-height: 1.7;
  max-width: 440px;
  margin-bottom: 44px;
  animation: heroFadeUp 1s var(--ease-out) 0.6s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  animation: heroFadeUp 1s var(--ease-out) 0.75s both;
}

/* Apple pill buttons */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 12px 28px;
  border-radius: 980px;
  cursor: pointer;
  transition: all 0.25s var(--spring);
  white-space: nowrap;
}
.btn-pill-solid {
  background: var(--white);
  color: var(--dark);
  border: none;
}
.btn-pill-solid:hover { background: rgba(255,255,255,0.88); transform: scale(1.02); }

.btn-pill-ghost {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.9);
  border: 0.5px solid rgba(255,255,255,0.18);
}
.btn-pill-ghost:hover { background: rgba(255,255,255,0.18); transform: scale(1.02); }

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 36px; right: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: heroFadeUp 1s var(--ease-out) 1.1s both;
  z-index: 2;
}
.hero-scroll-dot {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.4));
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}
.hero-scroll-label {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

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

/* ============================================================
   SHARED SECTION STYLES
   ============================================================ */
.section-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 80px;
}

.section-eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 16px;
  display: block;
}

.section-heading {
  font-family: var(--display);
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.section-heading-light { color: var(--white); }
.section-heading-dark  { color: var(--black); }

/* ============================================================
   PORTFOLIO SECTION — White, breathing, Apple Photos-ish
   ============================================================ */
.portfolio-section {
  background: var(--white);
  padding: var(--section-py) 0;
}

.portfolio-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 64px;
}

.portfolio-filters {
  display: flex;
  gap: 4px;
  background: var(--bg);
  padding: 4px;
  border-radius: 980px;
}
.filter-btn {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 7px 20px;
  border-radius: 980px;
  color: var(--secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.25s var(--spring);
}
.filter-btn.active {
  background: var(--white);
  color: var(--black);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08), 0 0 0 0.5px rgba(0,0,0,0.06);
}
.filter-btn:not(.active):hover { color: var(--black); }

/* Gallery grid — tight, breathing */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 52px;
  gap: 6px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg);
  border-radius: 4px;
}

.gallery-item:nth-child(7n+1) { grid-column: span 5; grid-row: span 8; }
.gallery-item:nth-child(7n+2) { grid-column: span 7; grid-row: span 6; }
.gallery-item:nth-child(7n+3) { grid-column: span 4; grid-row: span 7; }
.gallery-item:nth-child(7n+4) { grid-column: span 8; grid-row: span 6; }
.gallery-item:nth-child(7n+5) { grid-column: span 6; grid-row: span 7; }
.gallery-item:nth-child(7n+6) { grid-column: span 6; grid-row: span 5; }
.gallery-item:nth-child(7n+0) { grid-column: span 5; grid-row: span 6; }

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--spring);
}
.gallery-item:hover img { transform: scale(1.06); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.4s;
  border-radius: 4px;
}
.gallery-item:hover .gallery-overlay { background: rgba(0,0,0,0.18); }

.gallery-expand {
  opacity: 0;
  transform: scale(0.85);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  border: 0.5px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: opacity 0.3s, transform 0.3s var(--spring);
}
.gallery-item:hover .gallery-expand { opacity: 1; transform: scale(1); }

/* Skeleton */
.gallery-item.skeleton {
  background: linear-gradient(90deg, #ebebeb 25%, #f5f5f5 50%, #ebebeb 75%);
  background-size: 200% 100%;
  animation: shimmer 1.8s infinite;
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.gallery-load-more {
  text-align: center;
  margin-top: 56px;
}
.btn-text-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--black);
  cursor: pointer;
  transition: gap 0.3s var(--spring);
  background: none;
  border: none;
  letter-spacing: 0.01em;
}
.btn-text-arrow:hover { gap: 14px; }

/* ============================================================
   FULL-BLEED QUOTE — Apple-style break section
   ============================================================ */
.quote-section {
  background: var(--dark);
  padding: 100px 80px;
  text-align: center;
}
.quote-text {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 760px;
  margin: 0 auto;
}
.quote-text em {
  font-style: italic;
  font-weight: 400;
  color: rgba(255,255,255,0.45);
}

/* ============================================================
   ABOUT — Dark, side-by-side, Apple-editorial
   ============================================================ */
.about-section {
  background: var(--dark);
  padding: var(--section-py) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 80px;
}

.about-image-wrap {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 8px;
  background: #111;
}
.about-image-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(15%);
  transition: transform 1.2s var(--ease-out), filter 0.6s;
}
.about-image-wrap:hover img { transform: scale(1.03); filter: grayscale(0%); }

.about-text-col {}

.about-body {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(255,255,255,0.55);
  margin-bottom: 20px;
}

.about-sig {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  letter-spacing: -0.02em;
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.about-sig::before {
  content: '';
  display: block;
  width: 28px;
  height: 1.5px;
  background: rgba(255,255,255,0.25);
}

/* ============================================================
   CONTACT — White section, clean Apple form
   ============================================================ */
.contact-section {
  background: var(--bg);
  padding: var(--section-py) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 80px;
}

.contact-info-col {}

.contact-detail { margin-bottom: 32px; }
.contact-detail-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tertiary);
  margin-bottom: 6px;
}
.contact-detail-value {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.01em;
}

.contact-social {
  display: flex;
  gap: 12px;
  margin-top: 48px;
}
.social-link {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  transition: all 0.25s var(--spring);
  background: var(--white);
}
.social-link:hover {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
  transform: scale(1.08);
}

/* Form — Apple clean */
.contact-form-col {}
.form-group { margin-bottom: 24px; }
.form-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 10px;
}
.form-input, .form-textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--black);
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 13px 18px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--tertiary); }
.form-input:focus, .form-textarea:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}
.form-textarea { resize: none; height: 120px; }

.btn-submit-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 13px 30px;
  border-radius: 980px;
  background: var(--black);
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: all 0.25s var(--spring);
}
.btn-submit-pill:hover { opacity: 0.8; transform: scale(1.02); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--dark);
  padding: 44px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 0.5px solid rgba(255,255,255,0.08);
}
.footer-logo {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.35);
}
.footer-copy {
  font-size: 0.72rem;
  font-weight: 400;
  color: rgba(255,255,255,0.2);
}
.footer-client-link {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.footer-client-link:hover { color: rgba(255,255,255,0.7); }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,0.96);
  backdrop-filter: blur(40px);
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  animation: lbIn 0.4s var(--ease-out);
}
@keyframes lbIn {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 28px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); color: var(--white); }
.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 1.4rem;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(255,255,255,0.2);
  color: var(--white);
}
.lightbox-counter {
  position: absolute;
  bottom: 20px; left: 50%; transform: translateX(-50%);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.3);
}

/* ============================================================
   CLIENT PORTAL
   ============================================================ */
.client-page {
  background: var(--dark);
  min-height: 100vh;
  font-family: var(--sans);
}

.client-login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.client-login-photo {
  position: relative;
  overflow: hidden;
  background: #111;
}
.client-login-photo-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.7;
  transition: opacity 1s;
}
.client-login-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, rgba(0,0,0,0.8));
}
.client-login-photo-brand {
  position: absolute;
  bottom: 48px; left: 48px;
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: -0.01em;
}
.client-login-photo-brand span {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 8px;
}

.client-login-form-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 56px;
  background: #0a0a0a;
}

.client-login-box { width: 100%; max-width: 340px; }

.client-heading {
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1;
}
.client-sub {
  font-size: 0.84rem;
  font-weight: 300;
  color: rgba(255,255,255,0.38);
  margin-bottom: 40px;
  line-height: 1.65;
}

.client-form .form-input {
  background: rgba(255,255,255,0.06);
  border: 0.5px solid rgba(255,255,255,0.1);
  color: var(--white);
  border-radius: 10px;
  font-size: 1rem;
  letter-spacing: 0.05em;
  padding: 14px 18px;
}
.client-form .form-input::placeholder { color: rgba(255,255,255,0.18); }
.client-form .form-input:focus {
  border-color: rgba(255,255,255,0.3);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.05);
}
.client-form .form-label { color: rgba(255,255,255,0.35); }

.client-submit {
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  border-radius: 980px;
  background: var(--white);
  color: var(--dark);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  transition: all 0.25s var(--spring);
}
.client-submit:hover { opacity: 0.88; transform: scale(1.01); }
.client-submit:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.client-error {
  margin-top: 14px;
  font-size: 0.78rem;
  color: rgba(255,80,80,0.9);
  display: none;
  text-align: center;
}
.client-error.show { display: block; }

/* Client gallery screen */
.client-gallery-screen {
  display: none;
  min-height: 100vh;
  padding-top: var(--nav-h);
}
.client-gallery-screen.show { display: block; }

.client-gallery-header {
  padding: 56px 80px 40px;
  border-bottom: 0.5px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.client-name-greeting {
  font-family: var(--display);
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1;
}
.client-gallery-meta {
  font-size: 0.78rem;
  font-weight: 400;
  color: rgba(255,255,255,0.3);
  margin-top: 8px;
}

.client-actions { display: flex; align-items: center; gap: 14px; }
.btn-download-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: 980px;
  background: var(--white);
  color: var(--dark);
  cursor: pointer;
  transition: all 0.25s var(--spring);
  border: none;
}
.btn-download-all:hover { opacity: 0.85; transform: scale(1.02); }

.btn-logout {
  font-size: 0.75rem;
  font-weight: 400;
  color: rgba(255,255,255,0.25);
  cursor: pointer;
  transition: color 0.2s;
  background: none;
  border: none;
  font-family: var(--sans);
}
.btn-logout:hover { color: rgba(255,255,255,0.6); }

.client-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 3px;
  padding: 3px;
}

.client-photo-item {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
  background: #111;
  cursor: pointer;
}
.client-photo-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--spring), filter 0.4s;
}
.client-photo-item:hover img { transform: scale(1.04); filter: brightness(0.72); }

.client-photo-actions {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.3s;
}
.client-photo-item:hover .client-photo-actions { opacity: 1; }

.photo-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 980px;
  cursor: pointer;
  transition: all 0.2s;
}
.photo-btn-view {
  background: rgba(255,255,255,0.15);
  border: 0.5px solid rgba(255,255,255,0.25);
  color: var(--white);
  backdrop-filter: blur(8px);
}
.photo-btn-view:hover { background: rgba(255,255,255,0.25); }
.photo-btn-dl {
  background: var(--white);
  border: none;
  color: var(--dark);
}
.photo-btn-dl:hover { opacity: 0.88; }

/* ============================================================
   ADMIN PAGES
   ============================================================ */
.admin-page {
  background: var(--bg);
  min-height: 100vh;
  font-family: var(--sans);
}

.admin-login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
}

.admin-login-box { width: 100%; max-width: 360px; padding: 0 24px; }
.admin-logo {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,0.85);
  margin-bottom: 4px;
}
.admin-logo-sub {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 48px;
}
.admin-title {
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 32px;
  line-height: 1;
}
.admin-form .form-input {
  background: rgba(255,255,255,0.06);
  border: 0.5px solid rgba(255,255,255,0.1);
  color: var(--white);
  border-radius: 10px;
}
.admin-form .form-input::placeholder { color: rgba(255,255,255,0.18); }
.admin-form .form-input:focus { border-color: rgba(255,255,255,0.3); box-shadow: 0 0 0 3px rgba(255,255,255,0.05); }
.admin-form .form-label { color: rgba(255,255,255,0.35); }
.admin-submit {
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  border-radius: 980px;
  background: var(--white);
  color: var(--dark);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.25s var(--spring);
}
.admin-submit:hover { opacity: 0.88; }
.admin-error { margin-top: 12px; font-size: 0.78rem; color: rgba(255,80,80,0.9); display: none; }
.admin-error.show { display: block; }

/* Dashboard */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }

.admin-sidebar {
  background: var(--dark);
  padding: 28px 0;
  display: flex;
  flex-direction: column;
  border-right: 0.5px solid rgba(255,255,255,0.06);
}
.sidebar-logo { padding: 0 24px 28px; border-bottom: 0.5px solid rgba(255,255,255,0.06); margin-bottom: 20px; }
.sidebar-logo-name {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,0.8);
}
.sidebar-logo-badge {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-top: 4px;
}
.sidebar-nav { flex: 1; padding: 0 12px; }
.sidebar-nav a, .sidebar-nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  font-size: 0.78rem;
  font-weight: 400;
  color: rgba(255,255,255,0.4);
  border-radius: 8px;
  transition: all 0.2s;
  background: none;
  border: none;
  font-family: var(--sans);
  cursor: pointer;
  text-align: left;
  letter-spacing: 0.01em;
}
.sidebar-nav a:hover, .sidebar-nav button:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.sidebar-nav a.active { color: var(--white); background: rgba(255,255,255,0.1); }

.sidebar-footer { padding: 20px 24px 0; border-top: 0.5px solid rgba(255,255,255,0.06); margin-top: auto; }
.sidebar-logout {
  font-size: 0.72rem;
  font-weight: 400;
  color: rgba(255,255,255,0.22);
  cursor: pointer;
  transition: color 0.2s;
  background: none;
  border: none;
  font-family: var(--sans);
  padding: 0;
}
.sidebar-logout:hover { color: rgba(255,255,255,0.55); }

.admin-main { padding: 44px; overflow-y: auto; }
.admin-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 22px;
  border-bottom: 0.5px solid var(--border);
}
.admin-page-title {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--black);
  line-height: 1;
}
.admin-page-sub { font-size: 0.78rem; font-weight: 300; color: var(--secondary); margin-top: 5px; }

.btn-admin {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 980px;
  background: var(--black);
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: all 0.2s var(--spring);
}
.btn-admin:hover { opacity: 0.82; transform: scale(1.02); }
.btn-admin-secondary {
  background: var(--bg);
  color: var(--black);
  border: 0.5px solid var(--border);
}
.btn-admin-secondary:hover { background: var(--border); opacity: 1; transform: scale(1.02); }
.btn-admin-danger {
  background: transparent;
  color: rgba(220,38,38,0.85);
  border: 0.5px solid rgba(220,38,38,0.3);
  font-size: 0.7rem;
  padding: 7px 14px;
}
.btn-admin-danger:hover { background: rgba(220,38,38,0.08); opacity: 1; }

.admin-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 28px; }
.stat-card {
  background: var(--white);
  border: 0.5px solid var(--border);
  padding: 22px 26px;
  border-radius: 12px;
}
.stat-card-label { font-size: 0.65rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--secondary); margin-bottom: 10px; }
.stat-card-value { font-family: var(--display); font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; color: var(--black); line-height: 1; }

.admin-card { background: var(--white); border: 0.5px solid var(--border); border-radius: 12px; margin-bottom: 24px; overflow: hidden; }
.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 0.5px solid var(--border);
}
.admin-card-title { font-family: var(--display); font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; color: var(--black); }

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  padding: 11px 24px;
  text-align: left;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
  background: var(--bg);
  border-bottom: 0.5px solid var(--border);
}
.admin-table td {
  padding: 15px 24px;
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--black);
  border-bottom: 0.5px solid rgba(0,0,0,0.04);
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--bg); }

.client-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  background: rgba(0,0,0,0.05);
  color: var(--secondary);
  border-radius: 980px;
}

.no-clients-msg { text-align: center; padding: 56px 24px; color: var(--tertiary); font-size: 0.84rem; }

/* Modals */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,0.4);
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(20px);
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white);
  width: 100%;
  max-width: 500px;
  border-radius: 18px;
  overflow: hidden;
  animation: modalIn 0.35s var(--ease-out);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 0.5px solid var(--border);
}
.modal-title { font-family: var(--display); font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; color: var(--black); }
.modal-close {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--secondary);
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1;
}
.modal-close:hover { background: var(--border); color: var(--black); }
.modal-body { padding: 24px; }
.modal-body .form-group { margin-bottom: 20px; }
.modal-hint { font-size: 0.7rem; color: var(--secondary); margin-top: 5px; line-height: 1.5; }
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 24px;
  border-top: 0.5px solid var(--border);
  background: var(--bg);
}

.upload-area {
  border: 1.5px dashed var(--border);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  background: var(--bg);
}
.upload-area:hover { border-color: var(--black); background: rgba(0,0,0,0.02); }
.upload-area-icon { color: var(--tertiary); margin-bottom: 10px; }
.upload-area-text { font-size: 0.82rem; color: var(--mid); margin-bottom: 4px; }
.upload-area-hint { font-size: 0.7rem; color: var(--tertiary); }

.password-strength { margin-top: 8px; display: flex; gap: 4px; }
.strength-bar { height: 2px; flex: 1; background: var(--border); border-radius: 2px; transition: background 0.3s; }
.strength-bar.filled { background: var(--black); }

/* Toasts */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: rgba(29,29,31,0.92);
  backdrop-filter: blur(20px);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 400;
  min-width: 220px;
  border-radius: 12px;
  animation: toastIn 0.35s var(--ease-out);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  border: 0.5px solid rgba(255,255,255,0.08);
}
.toast.success .toast-dot { background: #30d158; }
.toast.error   .toast-dot { background: #ff453a; }
.toast-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(12px) scale(0.96); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .section-wrap { padding: 0 40px; }
  .about-grid { padding: 0 40px; gap: 56px; }
  .contact-grid { padding: 0 40px; gap: 60px; }
  .hero-content { padding: 0 40px 72px; }
  .hero-scroll { right: 40px; }
  footer { padding: 36px 40px; }
  .client-gallery-header { padding: 44px 40px 32px; }
  .admin-main { padding: 32px; }
  .admin-stats { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav { padding: 0 20px; }
  .hero-content { padding: 0 24px 64px; }
  .hero-scroll { display: none; }
  .portfolio-section .section-wrap { padding: 0 20px; }
  .portfolio-header { flex-direction: column; align-items: flex-start; gap: 24px; }
  .gallery-grid { grid-template-columns: repeat(2,1fr); grid-auto-rows: 44px; }
  .gallery-item:nth-child(n) { grid-column: span 1; grid-row: span 5; }
  .gallery-item:nth-child(3n+1) { grid-column: span 2; grid-row: span 6; }
  .about-grid { grid-template-columns: 1fr; padding: 0 24px; }
  .about-image-wrap { aspect-ratio: 16/9; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; padding: 0 24px; }
  .quote-section { padding: 72px 24px; }
  .client-login-screen { grid-template-columns: 1fr; }
  .client-login-photo { display: none; }
  .client-login-form-col { padding: 48px 24px; }
  .client-gallery-header { padding: 36px 20px 24px; flex-direction: column; align-items: flex-start; }
  .client-gallery-grid { grid-template-columns: repeat(2,1fr); }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-main { padding: 20px; }
  .admin-stats { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 12px; text-align: center; padding: 28px 20px; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 48px; }
  .gallery-item:nth-child(n) { grid-column: span 1; grid-row: span 6; }
  .client-gallery-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-scale { transition: none; opacity: 1; transform: none; }
  .hero-bg { transition: none; }
}
