/*
Theme Name: Nicola Capasso Photo
Theme URI: https://www.nicolacapasso.photo
Author: Nicola Capasso
Author URI: https://www.nicolacapasso.photo
Description: Destination wedding photography portfolio — Amalfi Coast & worldwide
Version: 1.3.24
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: Private
Text Domain: nicola-capasso
*/

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=Inter:wght@300;400;500&display=swap");

@font-face {
  font-family: 'Montserrat';
  src: url('fonts/montserrat-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('fonts/montserrat-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* =====================
   DESIGN TOKENS
   ===================== */
:root {
  --c-page:       #FAFAFA;
  --c-page-soft:  #F2F1EE;
  --c-rule:       #E4E2DD;
  --c-muted:      #8A8780;
  --c-ink-soft:   #2A2A28;
  --c-ink:        #161613;
  --c-accent:     #9C9286;
  --c-warm:       #8C6A47;
  --c-overlay:    rgba(15, 14, 12, 0.32);

  --font-display: "Cormorant Garamond", "EB Garamond", Garamond, "Times New Roman", serif;
  --font-sans:    "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-logo:    "Montserrat", "Inter", sans-serif;

  --fs-hero:   clamp(4rem, 12vw, 11rem);
  --fs-h1:     clamp(3rem, 7vw, 6rem);
  --fs-h2:     clamp(2rem, 4.5vw, 3.5rem);
  --fs-kicker: 0.6875rem;

  --lh-display: 1.0;
  --lh-body:    1.6;

  --tracking-display: -0.015em;
  --tracking-kicker:  0.22em;
  --tracking-logo:    0.03em;

  --space-5:  24px;
  --space-6:  32px;
  --space-7:  48px;
  --space-8:  64px;
  --space-9:  96px;
  --space-10: 128px;
  --space-11: 192px;

  --radius:       2px;
  --shadow-image: 0 24px 80px -28px rgba(15, 14, 12, 0.30);

  --ease-soft: cubic-bezier(.2, .7, .2, 1);
  --ease-curtain:   cubic-bezier(.77, 0, .18, 1);
  --dur-fast:    200ms;
  --dur-base:    600ms;
  --dur-slow:    1100ms;
  --dur-curtain: 1400ms;

  --max-page: 1500px;
  --gutter:    24px;
  --gutter-md: 56px;
}

/* =====================
   RESET
   ===================== */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  background: var(--c-page);
  color: var(--c-ink-soft);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: var(--tracking-display);
  line-height: var(--lh-display);
  color: var(--c-ink);
  margin: 0;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }
::selection { background: var(--c-ink); color: var(--c-page); }
img { max-width: 100%; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* WordPress admin bar */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* =====================
   LANGUAGE SYSTEM
   — default: English shown
   ===================== */
.t-it  { display: none; }
.t-en  { display: inline; }
.sec-it { display: none; }
.sec-en { display: block; }

html.lang-it .t-it  { display: inline; }
html.lang-it .t-en  { display: none; }
html.lang-it .sec-it { display: block; }
html.lang-it .sec-en { display: none; }

html.lang-en .t-it  { display: none; }
html.lang-en .t-en  { display: inline; }
html.lang-en .sec-it { display: none; }
html.lang-en .sec-en { display: block; }

/* =====================
   PAGE TRANSITIONS
   ===================== */
@keyframes page-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
main { animation: page-in 500ms var(--ease-soft) both; }
@media (prefers-reduced-motion: reduce) { main { animation: none; } }

/* =====================
   SCROLL ANIMATIONS
   ===================== */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms var(--ease-soft), transform 900ms var(--ease-soft);
}
.fade-up.in-view { opacity: 1; transform: none; }

/* Fallback: if IntersectionObserver fails or JS is blocked, cards appear after 1.2s */
@keyframes fadeUpFallback {
  to { opacity: 1; transform: none; }
}
.portfolio-grid .portfolio-card.fade-up {
  animation: fadeUpFallback 800ms var(--ease-soft) 1.2s forwards;
}
.portfolio-grid .portfolio-card.fade-up.in-view {
  animation: none;
}

/* =====================
   PHOTO HOVER
   ===================== */
.photo-hover {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
}
.photo-hover img {
  transition: transform 900ms var(--ease-soft), filter 900ms var(--ease-soft);
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-hover:hover img {
  transform: scale(1.03);
  filter: brightness(1.05);
}

/* =====================
   HEADER
   ===================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 500ms var(--ease-soft), border-color 500ms;
}
.header-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 48px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo { text-decoration: none; }
.logo-text {
  color: #161613;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  transition: color 500ms var(--ease-soft);
}
.nc-logo-svg {
  display: block;
  width: clamp(280px, 24vw, 360px);
  height: auto;
  overflow: visible;
}
.nc-logo-svg text {
  font-family: var(--font-logo);
  font-size: 11px;
  letter-spacing: var(--tracking-logo);
  text-transform: uppercase;
  fill: currentColor;
}
.nc-logo-svg .nc-logo-name { font-weight: 300; }
.nc-logo-svg .nc-logo-photo { font-weight: 500; }

.burger-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  transition: opacity 300ms;
}
.burger-btn:hover { opacity: 0.6; }
.burger-line {
  display: block;
  width: 24px;
  height: 1px;
  background: #161613;
  transition: background 500ms var(--ease-soft), transform 300ms, opacity 300ms;
}
.burger-line.top-open    { transform: translateY(6px) rotate(45deg); }
.burger-line.mid-open    { opacity: 0; }
.burger-line.bottom-open { transform: translateY(-6px) rotate(-45deg); }

/* Header states */
.site-header.on-hero .logo-text {
  color: #FAFAFA;
}
.site-header.on-hero .burger-line {
  background: #FAFAFA;
}
.site-header.on-hero {
  background: linear-gradient(to bottom, rgba(0,0,0,0.45), rgba(0,0,0,0));
}
.site-header.scrolled {
  background: rgba(250,250,250,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-rule);
}
.site-header.nav-open-header {
  background: transparent;
}
.site-header.nav-open-header .logo-text { color: #161613; }
.site-header.nav-open-header .burger-line { background: #161613; }

/* =====================
   NAV OVERLAY
   ===================== */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 500ms var(--ease-soft);
}
.nav-overlay.overlay-open {
  opacity: 1;
  pointer-events: all;
}
.nav-overlay a {
  font-family: var(--font-logo);
  font-weight: 300;
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  color: var(--c-accent);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  line-height: 1.2;
  text-align: center;
  padding: 18px 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 400ms var(--ease-soft), transform 400ms var(--ease-soft), color 300ms;
}
.nav-overlay.overlay-open a { opacity: 1; transform: none; }
.nav-overlay.overlay-open a:nth-child(1) { transition-delay: 100ms; }
.nav-overlay.overlay-open a:nth-child(2) { transition-delay: 180ms; }
.nav-overlay.overlay-open a:nth-child(3) { transition-delay: 260ms; }
.nav-overlay a:hover { color: #161613; }


/* Header back arrow (all pages except home) */
.header-back-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  width: 56px;
  opacity: 1;
  text-decoration: none;
  color: var(--c-ink);
  flex-shrink: 0;
  transition: opacity 200ms ease;
}
.header-back-arrow svg {
  width: 22px;
  height: 22px;
  transition: transform 200ms ease;
}
.header-back-arrow:hover svg {
  transform: translateX(-3px);
}
/* Logo centered: offset by half the arrow width (only when arrow present) */
.header-back-arrow + .header-logo {
  transition: transform 400ms cubic-bezier(0.22,1,0.36,1);
  transform: translateX(28px);
}
@media (max-width: 760px) {
  .header-back-arrow { width: 44px; }
  .header-back-arrow svg { width: 20px; height: 20px; }
  .header-back-arrow + .header-logo { transform: translateX(22px); }
}

/* =====================
   FOOTER
   ===================== */
.site-footer {
  background: linear-gradient(180deg, var(--c-page) 0%, var(--c-page-soft) 100%);
  padding: 46px 0 30px;
  width: 100%;
}
.footer-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  display: grid;
  gap: 26px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.footer-links a {
  color: var(--c-muted);
  padding-bottom: 6px;
  border-bottom: 1px solid transparent;
  transition: color 220ms var(--ease-soft), border-color 220ms var(--ease-soft);
}
.footer-links a:hover {
  color: var(--c-ink);
  border-bottom-color: currentColor;
}
.footer-social {
  justify-content: center;
  padding: 0;
  border-bottom: 0;
}
.footer-icon {
  display: none;
}
.footer-label {
  display: inline;
}
.footer-legal-links {
  justify-content: flex-start;
}
.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 var(--gutter-md);
}
.footer-copy {
  text-align: right;
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-muted);
}


@media (max-width: 760px) {
  .nc-logo-svg { width: clamp(230px, 62vw, 285px); }
  .site-footer {
    padding: 36px 0 24px;
  }
  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 24px;
    text-align: center;
  }
  .footer-links {
    justify-content: center;
    gap: 8px 20px;
    font-size: 11px;
    letter-spacing: 0.18em;
  }
  .footer-links a {
    padding: 8px 4px;
  }
  /* Social: icone visibili, testo nascosto */
  .footer-social {
    justify-content: center;
    gap: 28px;
    order: 2;
    border-top: 0;
    padding-top: 0;
  }
  .footer-social .footer-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .footer-social .footer-label {
    display: none;
  }
  .footer-social a {
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  /* Legal: testo visibile, sotto i social */
  .footer-legal-links {
    justify-content: center;
    order: 3;
    border-top: 1px solid var(--c-rule);
    padding-top: 16px;
  }
  .footer-copy {
    text-align: center;
    font-size: 10px;
    padding-top: 4px;
    order: 4;
  }
}

/* =====================
   HERO
   ===================== */
.s-hero {
  position: relative;
  height: 65vh;
  min-height: 480px;
  overflow: hidden;
  background: var(--c-page);
}
.hero-parallax {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 120%;
  top: -10%;
  will-change: transform;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.72);
  transform: scale(1.06);
  transition: transform 1800ms var(--ease-soft);
  display: block;
}
.hero-img.revealed { transform: scale(1); }
.hero-overlay-1 {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.18);
}
.hero-overlay-2 {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.30) 100%);
}
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
}
.hero-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px 56px;
  width: 100%;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 300;
  color: #FAFAFA;
  font-size: clamp(2.4rem, 6vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-align: left;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1400ms var(--ease-curtain) 300ms;
}
.hero-title.revealed { clip-path: inset(0 0 0 0); }
.hero-title .t-it,
.hero-title .t-en { display: block; }
html.lang-it .hero-title .t-en { display: none; }
html.lang-it .hero-title .t-it { display: block; }
html.lang-en .hero-title .t-it { display: none; }
html.lang-en .hero-title .t-en { display: block; }

.hero-cta {
  display: inline-block;
  background: transparent;
  color: #FAFAFA;
  border: 1px solid rgba(250,250,250,0.75);
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 800ms var(--ease-soft) 1200ms, background 500ms, color 500ms;
  margin-top: 32px;
}
.hero-cta.revealed { opacity: 1; }
.hero-cta:hover { background: #FAFAFA; color: #161613; }

/* =====================
   HOMEPAGE SECTIONS
   ===================== */
.s-tagline {
  background: var(--c-page);
  padding: 72px 24px 80px;
  text-align: center;
}
.s-tagline h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--c-ink);
  max-width: 920px;
  margin: 0 auto 32px;
}
.s-tagline p {
  max-width: 680px;
  margin: 0 auto;
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--c-ink-soft);
  line-height: 1.8;
}

/* Photo gallery grid */
.photo-gallery-section {
  background: var(--c-page);
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  max-width: 1400px;
  margin: 0 auto;
}
.photo-gallery-row {
  display: flex;
  gap: 24px;
}
.photo-gallery-row .photo-hover {
  flex: 1;
  overflow: hidden;
  border-radius: 0;
  aspect-ratio: 2 / 3;
  display: block;
}

.s-portfolio-cta {
  background: var(--c-page);
  padding: 64px 0;
  text-align: center;
}
.s-portfolio-cta a {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-ink);
  border-bottom: 1px solid var(--c-ink);
  padding-bottom: 3px;
  transition: opacity 400ms;
}
.s-portfolio-cta a:hover { opacity: 0.45; }

/* About split (homepage) */
.s-about {
  padding: 60px 24px;
}
.s-about-inner {
  background: var(--c-page-soft);
  padding: 72px 64px;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.s-about-inner h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--c-ink);
  margin-bottom: 40px;
  white-space: nowrap;
}
.s-about-rule {
  width: 1px;
  height: 56px;
  background: var(--c-muted);
  margin: 0 auto 40px;
}
.s-about-inner p {
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.8;
  color: var(--c-ink-soft);
  max-width: 400px;
  margin: 0 auto 48px;
}
.s-about-btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-ink);
  border: 1px solid var(--c-ink);
  padding: 16px 40px;
}
.s-about-photo {
  max-width: 560px;
  margin: 32px auto 0;
}
.s-about-photo img.about-img {
  width: 100%;
  height: 640px;
  object-fit: cover;
  display: block;
  box-shadow: var(--shadow-image);
}

/* =====================
   ABOUT PAGE
   ===================== */
.about-page-kicker {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 40px;
}
.about-page-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  color: var(--c-accent);
}
.about-page-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 56px 120px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: start;
}
.about-page-grid p {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-ink-soft);
  margin-bottom: 28px;
}
.about-page-grid p:last-child { margin-bottom: 0; }
.about-pullquote-section {
  background: var(--c-page-soft);
  padding: 120px 24px;
}
.about-pullquote {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--c-ink);
  border: none;
  padding: 0;
}
.about-cta-section {
  padding: 160px 24px 200px;
  text-align: center;
}
.about-cta-section h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--c-ink);
  max-width: 680px;
  margin: 0 auto 40px;
}
.about-cta-btn {
  display: inline-block;
  background: var(--c-ink);
  color: var(--c-page);
  border: 1px solid var(--c-ink);
  padding: 18px 40px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  transition: all 500ms var(--ease-soft);
}
.about-cta-btn:hover {
  background: transparent;
  color: var(--c-ink);
}

/* =====================
   PORTFOLIO GRID
   ===================== */
.portfolio-page-header {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 96px;
  text-align: center;
}
.portfolio-page-header h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--c-ink);
  margin-bottom: 32px;
}
.portfolio-page-header p {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--c-ink-soft);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}
.portfolio-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 56px 200px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 56px;
  row-gap: 96px;
}
.portfolio-card { display: block; text-decoration: none; }
.portfolio-card-img {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 2 / 3;
  background: var(--c-page-soft);
}
.portfolio-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  filter: brightness(1);
  transition: transform 900ms var(--ease-soft), filter 600ms var(--ease-soft);
}
.portfolio-card:hover .portfolio-card-img img {
  transform: scale(1.04);
  filter: brightness(0.62);
}
.portfolio-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  opacity: 0;
  transition: opacity 500ms var(--ease-soft);
  color: #FAFAFA;
  text-align: center;
  padding: 0 24px;
  pointer-events: none;
}
.portfolio-card:hover .portfolio-card-overlay { opacity: 1; }
.portfolio-card-overlay-label {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  transform: translateY(8px);
  transition: transform 500ms var(--ease-soft);
}
.portfolio-card:hover .portfolio-card-overlay-label { transform: translateY(0); }
.portfolio-card-overlay-line {
  width: 32px;
  height: 1px;
  background: rgba(250,250,250,0.7);
}
.portfolio-card-meta {
  margin-top: 28px;
  text-align: center;
  color: var(--c-accent);
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 21px;
  line-height: 1.35;
  letter-spacing: -0.005em;
}
.portfolio-card-meta .meta-sub { opacity: 0.85; }

.portfolio-card-place {
  margin-top: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-muted);
}

/* =====================
   STORY PAGE
   ===================== */
.story-header {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px 96px;
  text-align: center;
}
.story-kicker {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 32px;
}
.story-header h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--c-ink);
  margin-bottom: 24px;
}
.story-place {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--c-accent);
  margin-bottom: 56px;
}
.story-header p {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--c-ink-soft);
  max-width: 560px;
  margin: 0 auto;
}
.story-gallery {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px 200px;
  columns: 2;
  column-gap: 16px;
}
.story-gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  break-inside: avoid;
  margin-bottom: 16px;
  display: block;
}
.story-gallery-item.full-width { column-span: all; }
.story-gallery-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 900ms var(--ease-soft), filter 900ms var(--ease-soft);
}
/* v1.3.6: story images must never inherit the global .photo-hover crop rule */
.story-gallery .photo-hover img,
.story-gallery-item.photo-hover img {
  height: auto;
  object-fit: contain;
  aspect-ratio: auto;
}
.story-gallery-item:hover img {
  transform: scale(1.03);
  filter: brightness(1.05);
}

/* =====================
   CONTACT PAGE
   ===================== */
.contact-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 56px 200px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 120px;
  align-items: start;
}
.contact-kicker {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 32px;
}
.contact-grid h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--c-ink);
  margin-bottom: 40px;
}
.contact-grid > div > p {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-ink-soft);
  margin-bottom: 56px;
  max-width: 460px;
}
.contact-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 22px;
  line-height: 1.4;
  color: var(--c-accent);
  border-left: 1px solid var(--c-accent);
  padding-left: 24px;
  max-width: 380px;
  margin: 0;
}
.contact-form { display: flex; flex-direction: column; gap: 24px; }
.contact-field { display: flex; flex-direction: column; gap: 8px; }
.contact-field label {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.contact-field input,
.contact-field textarea {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--c-ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--c-rule);
  padding: 8px 0;
  outline: none;
  width: 100%;
  resize: vertical;
}
.contact-field input:focus,
.contact-field textarea:focus { border-bottom-color: var(--c-ink); }
.contact-submit {
  margin-top: 16px;
  background: var(--c-ink);
  color: var(--c-page);
  border: 1px solid var(--c-ink);
  padding: 18px 32px;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  transition: all 500ms var(--ease-soft);
  text-align: center;
}
.contact-submit:hover {
  background: transparent;
  color: var(--c-ink);
}
.contact-success {
  background: transparent;
  color: var(--c-ink);
  border: 1px solid var(--c-ink);
  padding: 18px 32px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-align: center;
  margin-top: 16px;
}

/* =====================
   LEGAL PAGES
   ===================== */
.legal-kicker {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 32px;
}
.legal-page h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--c-ink);
  margin-bottom: 16px;
}
.legal-updated {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--c-muted);
  margin-bottom: 80px;
}
.legal-sections { display: flex; flex-direction: column; gap: 56px; }
.legal-sections h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  color: var(--c-ink);
  margin-bottom: 16px;
  letter-spacing: -0.005em;
}
.legal-sections p {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-ink-soft);
}
.legal-nav {
  margin-top: 96px;
  padding-top: 32px;
  border-top: 1px solid var(--c-rule);
  display: flex;
  gap: 28px;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.legal-nav a {
  color: var(--c-muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
}
.legal-nav a.active {
  color: var(--c-ink);
  border-bottom-color: var(--c-ink);
}

/* =====================
   LIGHTBOX
   ===================== */
.nc-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(10,9,8,0.97);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 300ms var(--ease-soft);
  cursor: zoom-out;
}
.nc-lightbox.open {
  display: flex;
  opacity: 1;
}
.nc-lightbox-topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  z-index: 100002;
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, transparent 100%);
}
.nc-lightbox-back-story {
  background: none;
  border: none;
  color: rgba(250,250,250,0.8);
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.12em;
  cursor: pointer;
  padding: 10px 14px;
  transition: color 200ms;
  line-height: 1;
  white-space: nowrap;
}
.nc-lightbox-back-story:hover { color: #fff; }
.nc-lightbox-close {
  background: none;
  border: none;
  color: rgba(250,250,250,0.7);
  font-size: 30px;
  cursor: pointer;
  padding: 10px 14px;
  transition: color 200ms;
  line-height: 1;
  font-family: var(--font-display);
  font-weight: 300;
}
.nc-lightbox-close:hover { color: #fff; }
.nc-lightbox-image-wrap {
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nc-lightbox-image-wrap img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  cursor: default;
  box-shadow: 0 32px 120px rgba(0,0,0,0.85);
  user-select: none;
  -webkit-user-drag: none;
}
.nc-lightbox-prev,
.nc-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(250,250,250,0.6);
  font-size: 44px;
  cursor: pointer;
  padding: 20px 14px;
  transition: color 200ms;
  z-index: 100001;
  line-height: 1;
  font-family: var(--font-display);
  font-weight: 300;
}
.nc-lightbox-prev:hover, .nc-lightbox-next:hover { color: #fff; }
.nc-lightbox-prev { left: 10px; }
.nc-lightbox-next { right: 10px; }
.nc-lightbox-counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(250,250,250,0.45);
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  z-index: 100001;
}

@media (max-width: 760px) {
  .nc-lightbox-topbar { padding: 10px 14px; }
  .nc-lightbox-back-story { font-size: 12px; padding: 14px 14px; letter-spacing: 0.08em; min-height: 44px; display: flex; align-items: center; }
  .nc-lightbox-close { font-size: 26px; padding: 14px 14px; min-height: 44px; }
  .nc-lightbox-prev { left: 2px; font-size: 34px; padding: 28px 10px; }
  .nc-lightbox-next { right: 2px; font-size: 34px; padding: 28px 10px; }
  .nc-lightbox-image-wrap { max-width: 96vw; max-height: 74vh; }
  .nc-lightbox-image-wrap img { max-width: 96vw; max-height: 74vh; }
  .nc-lightbox-counter { bottom: 16px; font-size: 11px; }
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    column-gap: 32px !important;
    row-gap: 72px !important;
  }
}

@media (max-width: 860px) {
  .s-hero { height: 100svh !important; min-height: 100svh !important; }
  .s-about { padding: 40px 24px !important; }
  .s-about-inner { padding: 48px 28px !important; }
  .s-about-photo img.about-img { height: 320px !important; }

  .portfolio-grid {
    grid-template-columns: 1fr !important;
    padding: 0 24px 100px !important;
    column-gap: 0 !important;
    row-gap: 64px !important;
  }

  .story-gallery {
    columns: 1 !important;
    padding: 0 20px 100px !important;
  }
  .story-gallery-item img { height: auto !important; }
  .story-gallery-item.full-width { column-span: all; }

  .about-page-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
    padding: 0 24px 80px !important;
  }

  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 56px !important;
    padding: 0 24px 100px !important;
  }

  .header-inner { padding: 0 24px; height: 68px; }
  .hero-inner { padding: 0 24px 40px; }
}

/* =====================
   FOTO PROTECTION
   ===================== */
.photo-hover,
.story-gallery-item,
.portfolio-card-img,
.nc-lightbox-image-wrap {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  position: relative;
}
.photo-hover::after,
.story-gallery-item::after,
.portfolio-card-img::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: transparent;
  z-index: 1;
  pointer-events: auto;
}
img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  pointer-events: none;
}
/* But allow images to be clickable for lightbox trigger */
.nc-lightbox-trigger {
  pointer-events: auto;
}
.nc-lightbox-trigger img {
  pointer-events: none;
}
.nc-lightbox-trigger::after {
  z-index: 2;
  cursor: zoom-in;
}
/* Lightbox image needs pointer events for the image wrap */
.nc-lightbox-image-wrap img {
  pointer-events: none;
}

@media (max-width: 760px) {
  .story-float-back {
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
  }
}
