/* =============================================================================
   WILFREDO VALLE — PORTRAIT PHOTOGRAPHY
   styles.css
   ============================================================================= */


/* -----------------------------------------------------------------------------
   1. DESIGN TOKENS
   ----------------------------------------------------------------------------- */

:root {
  /* Color palette — warm near-white on deep black */
  --c-text:         #f0eee9;
  --c-text-muted:   rgba(240, 238, 233, 0.60);
  --c-text-dim:     rgba(240, 238, 233, 0.35);
  --c-border:       rgba(240, 238, 233, 0.18);
  --c-border-hover: rgba(240, 238, 233, 0.45);
  --c-glass:        rgba(0, 0, 0, 0.28);
  --c-glass-hover:  rgba(240, 238, 233, 0.09);
  --c-bg:           #0d0d0d;
  --c-accent:       #d4af37;
  --c-accent-hover: rgba(212, 175, 55, 0.8);

  /* Typography */
  --f-display: 'Syne', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --f-ui:      'DM Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Easing curve */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="light"] {
  --c-text:         #141414;
  --c-text-muted:   rgba(20, 20, 20, 0.60);
  --c-text-dim:     rgba(20, 20, 20, 0.35);
  --c-border:       rgba(0, 0, 0, 0.12);
  --c-border-hover: rgba(0, 0, 0, 0.35);
  --c-glass:        rgba(255, 255, 255, 0.55);
  --c-glass-hover:  rgba(0, 0, 0, 0.06);
  --c-bg:           #f5f4f0;
  --c-accent:       #b8960c;
  --c-accent-hover: rgba(184, 150, 12, 0.8);
}

html {
  scroll-behavior: smooth;
}


/* -----------------------------------------------------------------------------
   2. RESET
   ----------------------------------------------------------------------------- */

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

html,
body {
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--f-ui);
  color: var(--c-text);
  background-color: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
}

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

button {
  cursor: pointer;
  background: none;
  border: none;
  font: inherit;
}


/* -----------------------------------------------------------------------------
   3. BACKGROUND
   ----------------------------------------------------------------------------- */

/*
  ┌───────────────────────────────────────────────────────────────────────────┐
  │  BACKGROUND IMAGE                                                         │
  │  Replace YOUR_BACKGROUND_IMAGE_HERE with your hosted image URL.           │
  │  Example:                                                                 │
  │    background-image: url('/assets/images/background.jpg');                │
  │  Tip: adjust background-position to frame a specific area of the photo.  │
  └───────────────────────────────────────────────────────────────────────────┘
*/
.bg-image {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url('YOUR_BACKGROUND_IMAGE_HERE');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #111; /* Solid fallback while image loads */
}

/*
  Dark scrim overlay.
  Increase the alpha (currently 0.65) to darken; decrease to lighten.
*/
.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.65);
}


/* -----------------------------------------------------------------------------
   4. SHARED: MONOGRAM CIRCLE
   ----------------------------------------------------------------------------- */

/*
  Default: displays "WA" text monogram.
  To use your portrait photo instead:
    1. Add the class "monogram--photo" alongside "monogram"
    2. Replace the URL in .monogram--photo below
    3. Remove the inner <span class="monogram__text"> from the HTML
*/
.monogram {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 1px solid var(--c-border);
  background-color: var(--c-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  user-select: none;
  transition: border-color 400ms var(--ease);
}

.monogram:hover {
  border-color: var(--c-border-hover);
}

.monogram__text {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 2rem;
  letter-spacing: 0.12em;
  color: var(--c-text);
  line-height: 1;
}

/* Landing page: larger size, no border (ring wrapper handles it) */
.monogram--landing {
  position: relative;
  width: 152px;
  height: 152px;
  border: none;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.monogram--landing video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform: scale(2.6);
  transition: opacity 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.logo-static {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

/*
  Shiny silver ring wrapping the landing logo.
  Uses a conic-gradient to simulate a polished metallic surface —
  highlights at top-right, shadows at bottom-left.
*/
.logo-ring {
  padding: 3px;
  border-radius: 50%;
  background: conic-gradient(
    from 125deg,
    #7a6520   0deg,
    #c9a430  50deg,
    #f5e08a  85deg,
    #fffbe6 110deg,
    #f0d96c 135deg,
    #d4af37 165deg,
    #a8872a 210deg,
    #7a6520 250deg,
    #c9a430 295deg,
    #7a6520 360deg
  );
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.15),
    0 0 28px rgba(212, 175, 55, 0.2),
    0 4px 20px rgba(0, 0, 0, 0.55);
  transition: box-shadow 400ms var(--ease);
}

.logo-ring:hover {
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.3),
    0 0 40px rgba(212, 175, 55, 0.35),
    0 4px 24px rgba(0, 0, 0, 0.55);
}

/* Small variant used inside the nav bar */
.monogram--sm {
  width: 42px;
  height: 42px;
  border-color: rgba(212, 175, 55, 0.45);
}

.monogram--sm:hover {
  border-color: rgba(212, 175, 55, 0.8);
}

.monogram--sm .monogram__text {
  font-size: 1.1rem;
  letter-spacing: 0.06em;
}

/*
  ┌───────────────────────────────────────────────────────────────────────────┐
  │  PORTRAIT PHOTO VARIANT                                                   │
  │  Replace YOUR_HEADSHOT_HERE with your circular portrait image URL.        │
  │  Example: url('/assets/images/wilfredo-headshot.jpg')                    │
  └───────────────────────────────────────────────────────────────────────────┘
*/
.monogram--photo {
  background-image: url('YOUR_HEADSHOT_HERE');
  background-size: cover;
  background-position: center;
}


/* -----------------------------------------------------------------------------
   5. SHARED: SOCIAL LINKS ROW
   ----------------------------------------------------------------------------- */

.socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--c-text-muted);
  font-family: var(--f-ui);
  font-size: 0.78rem;
  font-weight: 400;
  transition:
    color 360ms var(--ease),
    border-color 360ms var(--ease),
    background-color 360ms var(--ease);
}

.social-link:hover {
  color: var(--c-accent);
  border-color: rgba(212, 175, 55, 0.7);
  background-color: rgba(212, 175, 55, 0.1);
}

/* 500px needs smaller text to fit inside the circle */
.social-link--500px {
  font-size: 0.5rem;
  font-weight: 300;
  flex-direction: column;
  line-height: 1.2;
  letter-spacing: 0.01em;
}


/* -----------------------------------------------------------------------------
   6. LANDING SCREEN
   ----------------------------------------------------------------------------- */

.landing {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  /* Fade-out transition applied via JS */
  transition:
    opacity  800ms var(--ease),
    visibility 800ms var(--ease);
}

.landing.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ── Logo intro: ring sweeps in, photo stays upright ── */
.logo-ring {
  animation: ring-sweep 1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

/* Counter-rotate the inner circle so the photo stays face-up */
.logo-ring .monogram--landing {
  animation: ring-counter 1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

@keyframes ring-sweep {
  from { rotate: -300deg; }
  to   { rotate: 0deg; }
}

@keyframes ring-counter {
  from { rotate: 300deg; }
  to   { rotate: 0deg; }
}

/* ── Staggered reveal for subtitle, button, socials ── */
.landing__sub {
  animation: landing-item-in 0.7s var(--ease) 1s both;
}

.btn-enter {
  animation: landing-item-in 0.7s var(--ease) 1.2s both;
}

.landing .socials {
  animation: landing-item-in 0.7s var(--ease) 1.4s both;
}

@keyframes landing-item-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.landing__heading {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.45rem, 4vw, 2.2rem);
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--c-text);
  line-height: 1.25;
  max-width: 500px;
  padding: 0 1.5rem;
}

.landing__sub {
  font-family: var(--f-ui);
  font-weight: 200;
  font-size: 0.67rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--c-accent);
  opacity: 0.7;
}

/* "Enter" pill button */
.btn-enter {
  margin-top: 0.2rem;
  padding: 0.62rem 2rem;
  border-radius: 100px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  background-color: var(--c-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(212, 175, 55, 0.7);
  font-family: var(--f-ui);
  font-weight: 300;
  font-size: 0.67rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  transition:
    background-color 380ms var(--ease),
    border-color     380ms var(--ease),
    color            380ms var(--ease),
    transform         120ms ease;
}

.btn-enter:hover {
  background-color: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.8);
  color: var(--c-accent);
}

.btn-enter:active {
  transform: scale(0.97);
}

.btn-replay {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: none;
  border: none;
  color: rgba(243, 241, 238, 0.28);
  font-family: var(--f-ui);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
  transition: color 200ms;
  animation: replay-in 0.7s var(--ease) 2s both;
}

@keyframes replay-in {
  from { opacity: 0; transform: translateX(-50%) translateY(14px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.btn-replay:hover {
  color: rgba(243, 241, 238, 0.65);
}


/* -----------------------------------------------------------------------------
   7. MAIN CONTENT WRAPPER
   ----------------------------------------------------------------------------- */

.site-main {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* Hidden by default; JS adds .is-revealed */
  opacity: 0;
  pointer-events: none;
  transition: opacity 800ms var(--ease);
}

.site-main.is-revealed {
  opacity: 1;
  pointer-events: auto;
}

/*
  Staggered reveal: sections slide up from 20px and fade in.
  Each .anim-N class carries a distinct transition-delay.
*/
.anim {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity   700ms var(--ease),
    transform 700ms var(--ease);
}

.site-main.is-revealed .anim-1 { opacity: 1; transform: none; transition-delay:  80ms; }
.site-main.is-revealed .anim-2 { opacity: 1; transform: none; transition-delay: 220ms; }
.site-main.is-revealed .anim-3 { opacity: 1; transform: none; transition-delay: 360ms; }
.site-main.is-revealed .anim-4 { opacity: 1; transform: none; transition-delay: 490ms; }


/* -----------------------------------------------------------------------------
   8. NAVIGATION
   ----------------------------------------------------------------------------- */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 2.5rem;
}

.site-nav::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(212, 175, 55, 0.04) 15%,
    rgba(212, 175, 55, 0.12) 35%,
    rgba(212, 175, 55, 0.5) 50%,
    rgba(212, 175, 55, 0.12) 65%,
    rgba(212, 175, 55, 0.04) 85%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: navGleam 8s ease-in-out infinite;
}

@keyframes navGleam {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.site-nav__link {
  font-family: var(--f-ui);
  font-weight: 300;
  font-size: 0.64rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  position: relative;
  transition: color 360ms var(--ease);
}

/* Animated underline on hover */
.site-nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--c-text);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 360ms var(--ease);
}

.site-nav__link:hover {
  color: var(--c-accent);
}

.site-nav__link:hover::after {
  transform: scaleX(1);
  background: var(--c-accent);
}

.site-nav__link:active {
  opacity: 0.6;
  transition: opacity 80ms ease;
}

.site-nav__link--active {
  color: var(--c-accent);
}

.site-nav__link--active::after {
  transform: scaleX(1);
  background: var(--c-accent);
}

/* ── Theme toggle button ────────────────────────────────────────────────────── */

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--c-border);
  background: none;
  color: var(--c-text-muted);
  cursor: pointer;
  margin-left: 0.5rem;
  transition:
    color 360ms var(--ease),
    border-color 360ms var(--ease);
}

.theme-toggle:hover {
  color: var(--c-accent);
  border-color: var(--c-accent);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
}

.theme-toggle__sun  { display: none; }
.theme-toggle__moon { display: block; }

html[data-theme="light"] .theme-toggle__sun  { display: block; }
html[data-theme="light"] .theme-toggle__moon { display: none; }

/* ── Theme wipe transition ─────────────────────────────────────────────────── */

.theme-wipe {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    var(--c-accent) 0%,
    rgba(212, 175, 55, 0.6) 2%,
    transparent 4%
  );
  background-size: 100% 100%;
  opacity: 0;
}

.theme-wipe--active {
  animation: themeWipe 1200ms ease-in-out forwards;
}

@keyframes themeWipe {
  0%   { opacity: 1; transform: translateY(-100%); }
  40%  { opacity: 1; }
  50%  { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(100%); }
}

/* ── Light theme overrides for hardcoded values ────────────────────────────── */

html[data-theme="light"] body {
  background-color: var(--c-bg);
}

html[data-theme="light"] .site-nav--backdrop {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

html[data-theme="light"] .site-nav::after {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(184, 150, 12, 0.03) 15%,
    rgba(184, 150, 12, 0.08) 35%,
    rgba(184, 150, 12, 0.35) 50%,
    rgba(184, 150, 12, 0.08) 65%,
    rgba(184, 150, 12, 0.03) 85%,
    transparent 100%
  );
  background-size: 200% 100%;
}

html[data-theme="light"] .monogram--sm {
  border-color: rgba(184, 150, 12, 0.35);
}

html[data-theme="light"] .monogram--sm:hover {
  border-color: rgba(184, 150, 12, 0.7);
}

html[data-theme="light"] .portrait-single,
html[data-theme="light"] .portrait-single__photos,
html[data-theme="light"] .portrait-duo,
html[data-theme="light"] .portrait-duo__images {
  background: #e8e7e3;
}

html[data-theme="light"] .portrait-duo__name {
  color: #141414;
  text-shadow: 0 2px 20px rgba(255,255,255,0.4);
}

html[data-theme="light"] .portrait-duo__role {
  color: rgba(20, 20, 20, 0.55);
  text-shadow: none;
}

html[data-theme="light"] .portrait-nav {
  border-color: rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.4);
  color: rgba(0, 0, 0, 0.5);
}

html[data-theme="light"] .portrait-nav:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.3);
  color: #141414;
}

html[data-theme="light"] .post-cover__overlay {
  background: rgba(255, 255, 255, 0.35);
}

html[data-theme="light"] .masthead__overlay {
  background: rgba(255, 255, 255, 0.35);
}

html[data-theme="light"] .video-bg {
  background-color: #e8e7e3;
}

html[data-theme="light"] .bg-overlay {
  background-color: rgba(255, 255, 255, 0.55);
}

html[data-theme="light"] .portrait-card__caption {
  background: linear-gradient(to top, rgba(255, 255, 255, 0.85) 0%, transparent 100%);
}

html[data-theme="light"] .portrait-card__name {
  color: #141414;
}

html[data-theme="light"] .portrait-card__title {
  color: rgba(20, 20, 20, 0.55);
}

html[data-theme="light"] .about-hero__photo-wrap--logo,
html[data-theme="light"] .about-hero__photo-wrap--matrix {
  background: var(--c-bg);
}

html[data-theme="light"] .about-hero__logo {
  filter: none;
}

html[data-theme="light"] .social-link:hover {
  color: var(--c-accent);
  border-color: rgba(184, 150, 12, 0.4);
  background-color: rgba(184, 150, 12, 0.06);
}

html[data-theme="light"] .contact-v2__form-col::before {
  background: rgba(255, 255, 255, 0.88);
}

html[data-theme="light"] .contact-form__field label {
  color: rgba(20, 20, 20, 0.85);
}

html[data-theme="light"] .contact-form__field input,
html[data-theme="light"] .contact-form__field textarea {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(20, 20, 20, 0.2);
  color: #141414;
}

html[data-theme="light"] .contact-form__field input::placeholder,
html[data-theme="light"] .contact-form__field textarea::placeholder {
  color: rgba(20, 20, 20, 0.45);
}

html[data-theme="light"] .contact-form__field input:focus,
html[data-theme="light"] .contact-form__field textarea:focus {
  border-color: rgba(184, 150, 12, 0.6);
  background: rgba(255, 255, 255, 0.85);
}

html[data-theme="light"] .contact-form__submit {
  color: rgba(20, 20, 20, 0.8);
  border-color: rgba(184, 150, 12, 0.5);
  background-color: rgba(255, 255, 255, 0.5);
}

html[data-theme="light"] .word-intro {
  background: #0d0d0d;
}

html[data-theme="light"] .word-intro::before {
  background: rgba(0, 0, 0, 0.55);
}

html[data-theme="light"] .word-intro__display,
html[data-theme="light"] .word-intro__cursor {
  color: #f0eee9;
}

html[data-theme="light"] .word-intro__skip {
  color: rgba(240, 238, 233, 0.35);
}

html[data-theme="light"] .word-intro__skip:hover {
  color: rgba(240, 238, 233, 0.7);
}

html[data-theme="light"] .landing__sub {
  color: rgba(20, 20, 20, 0.65);
  opacity: 1;
}

html[data-theme="light"] .btn-enter {
  color: rgba(20, 20, 20, 0.65);
  border-color: rgba(20, 20, 20, 0.25);
  background-color: rgba(255, 255, 255, 0.5);
}

html[data-theme="light"] .btn-enter:hover {
  color: rgba(20, 20, 20, 0.85);
  border-color: rgba(20, 20, 20, 0.5);
  background-color: rgba(255, 255, 255, 0.7);
}

html[data-theme="light"] .landing .social-link {
  color: rgba(20, 20, 20, 0.5);
  border-color: rgba(20, 20, 20, 0.2);
}

/* ── Hamburger button ────────────────────────────────────────────────────────── */

.site-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--c-text-muted);
}

.nav-burger__bar {
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform 300ms var(--ease), opacity 200ms ease;
  transform-origin: center;
}

.nav-burger.is-open .nav-burger__bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-burger.is-open .nav-burger__bar:nth-child(2) {
  opacity: 0;
}

.nav-burger.is-open .nav-burger__bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ── Mobile fullscreen nav overlay ──────────────────────────────────────────── */

.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  background: var(--c-bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms var(--ease);
}

.nav-mobile.is-open {
  opacity: 1;
  pointer-events: auto;
}

.nav-mobile__link {
  font-family: var(--f-display);
  font-size: clamp(2rem, 9vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  transition: color 260ms var(--ease);
}

.nav-mobile__link--active,
.nav-mobile__link:hover {
  color: var(--c-accent);
}


/* -----------------------------------------------------------------------------
   9. HERO / INTRO
   ----------------------------------------------------------------------------- */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 9rem 2rem 4rem;
  gap: 1.2rem;
}

.hero__headline {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.8rem, 8vw, 5.6rem);
  letter-spacing: 0em;
  line-height: 1;
  color: var(--c-text);
  margin-top: 0.4rem;
}

.hero__sub {
  font-family: var(--f-ui);
  font-weight: 200;
  font-size: 0.64rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--c-text-muted);
}

.hero__location {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  letter-spacing: 0.02em;
  color: var(--c-text);
  line-height: 1.1;
}

/* Gently bouncing scroll indicator */
.scroll-arrow {
  margin-top: 0.9rem;
  font-size: 1rem;
  color: var(--c-text-dim);
  animation: float-down 2.8s ease-in-out infinite;
  user-select: none;
}

@keyframes float-down {
  0%, 100% { transform: translateY(0);   opacity: 0.40; }
  50%       { transform: translateY(7px); opacity: 0.75; }
}


/* -----------------------------------------------------------------------------
   10. PORTRAIT GRID
   ----------------------------------------------------------------------------- */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 0;
}

.portrait-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  cursor: pointer;
  /* Entrance: hidden state — revealed by IntersectionObserver */
  opacity: 0;
  transform: translateY(48px) scale(0.97);
  filter: blur(6px);
  will-change: opacity, transform, filter;
  transition:
    opacity   720ms var(--ease),
    transform 720ms var(--ease),
    filter    480ms ease-out;
}

.portrait-card.is-visible {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* Image wrapper */
.portrait-card__image-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background-color: rgba(240, 238, 233, 0.04);
}

/* Hover: warm shimmer overlay (image scale removed — parallax owns transform) */
.portrait-card__image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(240, 238, 233, 0);
  transition: background 500ms var(--ease);
  pointer-events: none;
  z-index: 1;
}


.portrait-card:hover .portrait-card__image-wrap::after {
  background: rgba(212, 175, 55, 0.12);
}

.portrait-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.1);
  transition: transform 80ms linear;
  will-change: transform;
}

/* Placeholder shown before real image is inserted */
.portrait-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portrait-card__num {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1.4rem;
  color: rgba(240, 238, 233, 0.10);
  letter-spacing: 0.06em;
}

/* Name + title overlaid on image */
.portrait-card__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem 1.25rem 1.25rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  z-index: 2;
}

.portrait-card__name {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1.2;
}

.portrait-card__title {
  font-family: var(--f-ui);
  font-weight: 200;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.4;
}


/* -----------------------------------------------------------------------------
   11. FOOTER
   ----------------------------------------------------------------------------- */

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  padding: 2rem 2rem 3rem;
}

.site-footer__copy {
  font-family: var(--f-ui);
  font-weight: 200;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-text-dim);
}


/* -----------------------------------------------------------------------------
   12. RESPONSIVE
   ----------------------------------------------------------------------------- */

/* Tablet: 2-column grid */
@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    padding: 0;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .site-nav {
    padding: 1.1rem 1.25rem;
  }

  .site-nav__links {
    display: none;
  }

  .nav-burger {
    display: flex;
  }

  .site-nav__link {
    font-size: 0.58rem;
    letter-spacing: 0.22em;
  }

  .monogram {
    width: 80px;
    height: 80px;
  }

  .monogram__text {
    font-size: 1.9rem;
  }

  .hero {
    padding: 7rem 1.5rem 3rem;
    gap: 1rem;
  }

  /* Single-column portrait grid on mobile */
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
  }

  .portrait-card__image-wrap {
    aspect-ratio: 3 / 4;
  }

  .site-footer {
    padding: 1.5rem 1.5rem 2.5rem;
    gap: 1rem;
  }

  .socials {
    gap: 0.9rem;
  }
}


/* =============================================================================
   13. VIDEO BACKGROUND (landing page — Vimeo embed)
   ============================================================================= */

/*
  The .video-bg div wraps the Vimeo iframe.
  The iframe is scaled to always cover the viewport (16:9 source).
  A dark .bg-overlay (defined earlier) sits on top for readability.
*/
.video-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background-color: #080808; /* Shows while video loads */
}

.video-bg video {
  position: absolute;
  top: 50%;
  left: 50%;
  /* Scale to cover the viewport regardless of window aspect ratio */
  width: 177.78vh;  /* 100vh × (16/9) */
  height: 100vh;
  min-width: 100vw;
  min-height: 56.25vw; /* 100vw × (9/16) */
  transform: translate(-50%, -50%);
  pointer-events: none;
  object-fit: cover;
}


/* =============================================================================
   14. PAGE ENTRANCE ANIMATION (all pages except landing)
   ============================================================================= */

.page-enter {
  animation: page-fade-in 0.55s var(--ease) both;
}

@keyframes page-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}


/* =============================================================================
   15. WORK PAGE WRAPPER
   ============================================================================= */

.work-page {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}


/* =============================================================================
   15a. MASTHEAD (work page — video covering top third)
   ============================================================================= */

/*
  The masthead sits at the top of the work page and fills ~1/3 of the viewport.
  The nav is fixed above it; the portrait grid sits below it.
*/
.masthead {
  position: relative;
  height: 50vh;
  min-height: 340px;
  overflow: hidden;
  flex-shrink: 0;
}

/* Full-bleed video, always covers the masthead area */
.masthead__video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: 177.78vh;
  height: 56.25vw;
  object-fit: cover;
  pointer-events: none;
}

/* Dark scrim — matches the reference image tone */
.masthead__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
}

/* Hero text sits above the overlay */
.masthead .hero {
  position: relative;
  z-index: 2;
  height: 100%;
  padding-top: 5rem; /* clear the fixed nav */
  padding-bottom: 1.5rem;
}

@media (max-width: 600px) {
  .masthead {
    height: 45vh;
  }
}


/* =============================================================================
   16. PORTRAIT DETAIL PAGE
   ============================================================================= */

.portrait-detail {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Full-screen portrait image */
.portrait-detail__bg {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.portrait-detail__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Gradient: subtle at top, strong at bottom so text is always readable */
.portrait-detail__gradient {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.35) 45%,
    rgba(0, 0, 0, 0.10) 100%
  );
}

/* Text block at bottom */
.portrait-detail__content {
  position: relative;
  z-index: 10;
  margin-top: auto;
  padding: 0 2.5rem 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* ← Back to Work link */
.portrait-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--f-ui);
  font-weight: 300;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  text-decoration: none;
  margin-bottom: 1.6rem;
  transition: color 360ms var(--ease);
}

.portrait-detail__back:hover {
  color: var(--c-text);
}

.portrait-detail__name {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.6rem);
  letter-spacing: 0.03em;
  line-height: 1;
  color: var(--c-text);
}

.portrait-detail__title {
  font-family: var(--f-ui);
  font-weight: 200;
  font-size: 0.68rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-top: 0.65rem;
}

/* Portrait detail — responsive */
@media (max-width: 600px) {
  .portrait-detail__content {
    padding: 0 1.5rem 2.5rem;
  }
}


/* =============================================================================
   17. STUB PAGES (Blog, About Me, Contact)
   ============================================================================= */

.stub-page {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  gap: 1rem;
}

.stub-page__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.04em;
  color: var(--c-text);
}

.stub-page__msg {
  font-family: var(--f-ui);
  font-weight: 200;
  font-size: 0.66rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--c-text-muted);
}


/* =============================================================================
   18a. ABOUT PAGE — EDITORIAL HERO LAYOUT
   ============================================================================= */

/* Nav with frosted dark backdrop */
.site-nav--backdrop {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* Float layout — photo right, text wraps the silhouette */
.about-hero {
  min-height: 100vh;
  display: flow-root;
}

/* RIGHT: floated photo, text flows around the shape */
.about-hero__photo-wrap {
  float: right;
  width: 52%;
  min-height: 100vh;
  shape-outside: url('assets/wilfredo-about.png');
  shape-image-threshold: 0.05;
  shape-margin: 1.5rem;
}

/* LEFT: text wraps around the float */
.about-hero__content {
  display: flex;
  flex-direction: column;
  padding: 8rem 2rem 4rem 4rem;
  justify-content: center;
  min-height: 100vh;
}

.about-hero__label {
  font-family: var(--f-ui);
  font-weight: 200;
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: 1rem;
}

.about-hero__name {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: var(--c-text);
  margin-bottom: 0.5rem;
}

.about-hero__role {
  font-family: var(--f-ui);
  font-weight: 200;
  font-size: 0.64rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: 2rem;
}

.about-hero__body {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--c-border);
  margin-bottom: 2rem;
}

.about-hero__body p {
  font-family: var(--f-ui);
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--c-text-muted);
}

.about-hero__body p:first-child {
  color: var(--c-text);
}

.about-hero__credits {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--c-border);
  margin-bottom: 2rem;
}

.about-hero__credits span {
  font-family: var(--f-ui);
  font-weight: 200;
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-text-dim);
}

.about-hero__photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left bottom;
  filter: grayscale(100%);
}

.about-hero__photo-wrap--logo {
  display: flex;
  align-items: center;
  justify-content: center;
  shape-outside: none;
  background: #0d0d0d;
}

.about-hero__photo-wrap--matrix {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  shape-outside: none;
  overflow: hidden;
}

.about-matrix {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.about-matrix__typewriter {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  font-family: var(--f-heading);
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  font-weight: 600;
  color: var(--c-accent);
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
  pointer-events: none;
}

.about-matrix__cursor {
  animation: cursorBlink 600ms steps(1) infinite;
  margin-left: 2px;
  font-weight: 300;
  opacity: 0.8;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 0; }
}

.about-hero__photo-wrap--matrix .about-hero__resume-link {
  position: relative;
  z-index: 1;
  margin-bottom: 3rem;
}

.about-hero__resume-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  transition: transform 360ms var(--ease);
}

.about-hero__resume-link:hover {
  transform: scale(1.03);
}

.about-hero__resume-label {
  font-family: var(--f-body);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent);
  opacity: 0.7;
  transition: opacity 360ms var(--ease);
}

.about-hero__resume-link:hover .about-hero__resume-label {
  opacity: 1;
}

.about-hero__photo-wrap--logo .about-hero__logo {
  width: 90px;
  max-width: none;
  border: none;
  border-radius: 0;
  padding: 0;
}

.about-hero__logo {
  width: 40%;
  max-width: 200px;
  opacity: 0.85;
  filter: invert(1);
}

@media (max-width: 768px) {
  .about-hero__photo-wrap {
    float: none;
    width: 100%;
    height: 32vh;
    min-height: 0;
    shape-outside: none;
  }

  .about-hero__photo-wrap--matrix .about-hero__resume-link {
    align-self: center;
  }

  .about-hero__content {
    padding: 2rem 1.5rem 3rem;
    min-height: 0;
  }
}


/* About page — light theme overrides */
body.about-page {
  background-color: #ffffff;
}

body.about-page .site-nav--backdrop {
  background: rgba(255, 255, 255, 0.85);
}

body.about-page .site-nav::after {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.02) 15%,
    rgba(0, 0, 0, 0.06) 35%,
    rgba(0, 0, 0, 0.18) 50%,
    rgba(0, 0, 0, 0.06) 65%,
    rgba(0, 0, 0, 0.02) 85%,
    transparent 100%
  );
  background-size: 200% 100%;
}

body.about-page .monogram {
  border-color: rgba(0, 0, 0, 0.12);
  background-color: rgba(0, 0, 0, 0.04);
}

body.about-page .site-nav__link {
  color: rgba(20, 20, 20, 0.50);
}

body.about-page .site-nav__link:hover {
  color: #b8960c;
}

body.about-page .site-nav__link::after {
  background: #b8960c;
}

body.about-page .site-nav__link--active {
  color: #b8960c;
}

body.about-page .about-hero__label {
  color: rgba(20, 20, 20, 0.45);
}

body.about-page .about-hero__name {
  color: #141414;
}

body.about-page .about-hero__role {
  color: rgba(20, 20, 20, 0.45);
}

body.about-page .about-hero__body {
  border-top-color: rgba(0, 0, 0, 0.09);
}

body.about-page .about-hero__body p {
  color: rgba(20, 20, 20, 0.60);
}

body.about-page .about-hero__body p:first-child {
  color: #141414;
}

body.about-page .about-hero__credits {
  border-top-color: rgba(0, 0, 0, 0.09);
}

body.about-page .about-hero__credits span {
  color: rgba(20, 20, 20, 0.35);
}

body.about-page .portrait-single__back {
  color: rgba(20, 20, 20, 0.45);
}

body.about-page .portrait-single__back:hover {
  color: #141414;
}


/* =============================================================================
   18. PORTRAIT SINGLE PAGE (two-panel editorial layout)
   ============================================================================= */

/*
  Two-column grid: photo panel (left, 62%) + info panel (right, 38%).
  On mobile it stacks vertically.
*/
.portrait-single {
  display: grid;
  grid-template-columns: 62fr 38fr;
  min-height: 100vh;
  background: #0d0d0d;
}

/* ── LEFT: Photo panel ───────────────────────────────────────────────────────── */

.portrait-single__photo {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.portrait-single__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ── RIGHT: Info panel ───────────────────────────────────────────────────────── */

.portrait-single__info {
  display: flex;
  flex-direction: column;
  padding: 5.5rem 2.5rem 2.5rem;
  border-left: 1px solid var(--c-border);
  min-height: 100vh;
}

/* Top: logo + nav links (stacked right-aligned) */
.portrait-single__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.portrait-single__nav-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.7rem;
}

/* Middle: name + title — fills remaining space, centers content vertically */
.portrait-single__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.65rem;
}

.portrait-single__name {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 2.8vw, 3rem);
  letter-spacing: 0.03em;
  line-height: 1.05;
  color: var(--c-text);
}

.portrait-single__role {
  font-family: var(--f-ui);
  font-weight: 200;
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--c-text-muted);
}

/* Bottom: back link */
.portrait-single__back {
  font-family: var(--f-ui);
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-text);
  text-decoration: none;
  margin-top: 1.5rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--c-border);
  transition: color 360ms var(--ease);
}

.portrait-single__back:hover {
  color: var(--c-text);
}

/* ── Duo layout: two images side by side ─────────────────────────────────────── */

.portrait-single__photos {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 100vh;
  overflow: hidden;
  background: #000;
}

.portrait-single__img {
  flex: 1 1 30%;
  min-width: 0;
  height: 100vh;
  overflow: hidden;
}

.portrait-single__img--left  {
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateX(-40px);
  animation: duoReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.portrait-single__img--right {
  z-index: 1;
  opacity: 0;
  transform: translateX(-80%);
  animation: duoSlideFromBehind 1.1s 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes duoSlideFromBehind {
  0%   { opacity: 1; transform: translateX(-80%); }
  100% { opacity: 1; transform: translateX(0); }
}

.portrait-single__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Landscape image: cover, no bars — takes 70% */
.portrait-single__img--landscape {
  flex: 1 1 70%;
}
.portrait-single__img--landscape img {
  object-fit: contain;
  object-position: center center;
  background: #000;
}

/* ── Duo: full-bleed two-image layout with overlay text ─────────────────────── */

.portrait-duo {
  position: relative;
  min-height: 100vh;
  background: #000;
}

.portrait-duo__images {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 100vh;
}

/* Overlay: name, role, back link — bottom-left over the images */
.portrait-duo__overlay {
  position: absolute;
  bottom: 2.5rem;
  left: 2.5rem;
  z-index: 2;
  opacity: 0;
  transform: translateY(16px);
  animation: overlayUp 0.8s 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.portrait-duo__name {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  letter-spacing: 0.03em;
  line-height: 1.05;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}

.portrait-duo__role {
  font-family: var(--f-ui);
  font-weight: 200;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-top: 0.5rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

.portrait-duo__back {
  display: inline-block;
  margin-top: 1.2rem;
  font-family: var(--f-ui);
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
  transition: color 360ms var(--ease);
}

.portrait-duo__back:hover {
  color: #fff;
}

@keyframes overlayUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes duoReveal {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ── Portrait prev/next navigation ──────────────────────────────────────────── */

.portrait-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  cursor: pointer;
  transition:
    background 300ms cubic-bezier(0.4, 0, 0.2, 1),
    border-color 300ms cubic-bezier(0.4, 0, 0.2, 1),
    color 300ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  animation: navFadeIn 0.6s 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes navFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.portrait-nav svg {
  width: 20px;
  height: 20px;
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.portrait-nav:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}

.portrait-nav--prev:hover svg { transform: translateX(-2px); }
.portrait-nav--next:hover svg { transform: translateX(2px); }

.portrait-nav:active {
  transform: translateY(-50%) scale(0.95);
  transition: transform 80ms ease;
}

.portrait-nav--prev {
  left: 1.5rem;
}

.portrait-nav--next {
  right: 1.5rem;
}

/* Page exit transition */
body.page-exit {
  opacity: 0;
  transition: opacity 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

body.page-exit--left .portrait-duo,
body.page-exit--left .portrait-single {
  transform: translateX(-3%);
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

body.page-exit--right .portrait-duo,
body.page-exit--right .portrait-single {
  transform: translateX(3%);
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 600px) {
  .portrait-nav {
    width: 40px;
    height: 40px;
  }

  .portrait-nav svg {
    width: 18px;
    height: 18px;
  }

  .portrait-nav--prev {
    left: 0.75rem;
  }

  .portrait-nav--next {
    right: 0.75rem;
  }
}

/* ── Responsive ──────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .portrait-single {
    grid-template-columns: 1fr;
  }

  .portrait-single__photo {
    height: 65vh;
    min-height: 0;
  }

  .portrait-single__photos {
    flex-direction: column;
    min-height: 0;
    gap: 2px;
  }

  .portrait-single__img {
    height: 45vh;
    flex: none;
    width: 100%;
  }

  .portrait-single__img--left  { transform: translateY(-30px); }
  .portrait-single__img--right {
    transform: translateY(30px);
    animation-name: duoReveal;
    animation-duration: 0.9s;
    animation-delay: 0.2s;
  }

  @keyframes duoReveal {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .portrait-single__info {
    border-left: none;
    border-top: 1px solid var(--c-border);
    min-height: 0;
    padding: 1.75rem 1.5rem 2rem;
  }

  .portrait-single__nav-links {
    flex-direction: row;
    gap: 1.25rem;
  }
}


/* =============================================================================
   19. CONTACT PAGE — two-column editorial layout
   ============================================================================= */

.contact-v2 {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* ── LEFT: info panel ─────────────────────────────────────────────────────── */

.contact-v2__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 4rem 5rem 4rem;
  min-height: 100vh;
  border-right: 1px solid rgba(212, 175, 55, 0.15);
}

.contact-v2__label {
  font-family: var(--f-ui);
  font-weight: 200;
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: 1.5rem;
}

.contact-v2__heading {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.7rem, 2.6vw, 2.5rem);
  letter-spacing: 0.01em;
  line-height: 1.15;
  color: var(--c-text);
  margin-bottom: 2.5rem;
}

.contact-v2__email {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  letter-spacing: 0.03em;
  color: var(--c-text-muted);
  text-decoration: none;
  align-self: flex-start;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  padding-bottom: 0.35rem;
  margin-bottom: 3rem;
  transition: color 300ms var(--ease), border-color 300ms var(--ease);
}

.contact-v2__email:hover {
  color: var(--c-accent);
  border-color: var(--c-accent);
}

.contact-v2__socials {
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.contact-v2__social-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  font-family: var(--f-ui);
  font-weight: 200;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--c-text-muted);
  text-decoration: none;
  transition: color 300ms var(--ease), border-color 300ms var(--ease);
}

.contact-v2__social-row:hover {
  color: var(--c-accent);
  border-color: rgba(212, 175, 55, 0.5);
}

/* ── RIGHT: form panel ────────────────────────────────────────────────────── */

.contact-v2__form-col {
  position: relative;
  display: flex;
  align-items: center;
  padding: 8rem 4rem 5rem 4rem;
  min-height: 100vh;
  /* Background image */
  background-image: url('assets/sf-bridge.jpg');
  background-size: cover;
  background-position: center;
  /* Dark overlay via pseudo-element */
  isolation: isolate;
}

.contact-v2__form-col::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 0;
}

.contact-v2__form-col .contact-form {
  position: relative;
  z-index: 1;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.contact-form__field label {
  font-family: var(--f-ui);
  font-weight: 200;
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-text-muted);
}

.contact-form__field input,
.contact-form__field textarea {
  font-family: var(--f-ui);
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--c-text);
  background: rgba(240, 238, 233, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 3px;
  padding: 0.9rem 1.1rem;
  outline: none;
  width: 100%;
  resize: none;
  transition: border-color 300ms var(--ease), background 300ms var(--ease);
  -webkit-appearance: none;
}

.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder {
  color: var(--c-text-dim);
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
  border-color: rgba(212, 175, 55, 0.5);
  background: rgba(240, 238, 233, 0.08);
}

.contact-form__submit {
  align-self: flex-start;
  margin-top: 0.5rem;
  padding: 0.75rem 2.4rem;
  border-radius: 100px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  background-color: var(--c-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--c-text-muted);
  font-family: var(--f-ui);
  font-weight: 300;
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 380ms var(--ease),
    border-color     380ms var(--ease),
    color            380ms var(--ease),
    transform         120ms ease;
}

.contact-form__submit:hover {
  background-color: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.8);
  color: var(--c-accent);
}

.contact-form__submit:active {
  transform: scale(0.97);
}

.contact-form__status {
  font-family: var(--f-ui);
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  min-height: 1.2em;
}

.contact-form__status[data-state="ok"]  { color: var(--c-text-muted); }
.contact-form__status[data-state="err"] { color: #c0614a; }

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .contact-v2 {
    grid-template-columns: 1fr;
  }

  .contact-v2__info {
    min-height: 0;
    border-right: none;
    border-bottom: 1px solid var(--c-border);
    padding: 7rem 1.5rem 3rem;
  }

  .contact-v2__form-col {
    min-height: 0;
    padding: 3rem 1.5rem 5rem;
    align-items: flex-start;
  }
}


/* =============================================================================
   20. BLOG — INDEX + POST PAGE
   ============================================================================= */


/* ── Blog index ─────────────────────────────────────────────────────────────── */

.blog-page {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.blog-hero {
  position: relative;
  padding: 8rem 2.5rem 4rem;
  width: 100%;
  overflow: hidden;
}

.blog-hero__rain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.blog-hero__label,
.blog-hero__heading {
  position: relative;
  z-index: 1;
}

.blog-hero__label {
  display: block;
  font-family: var(--f-ui);
  font-weight: 300;
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: 1rem;
}

.blog-hero__heading {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
  color: var(--c-text);
  max-width: 800px;
}

/* Grid */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 1.5rem;
  padding: 0 2.5rem 6rem;
}

@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .blog-grid {
    grid-template-columns: 1fr;
    padding: 0 1.5rem 5rem;
  }
}

.blog-empty {
  grid-column: 1 / -1;
  font-family: var(--f-ui);
  font-weight: 300;
  font-size: 0.8rem;
  color: var(--c-text-dim);
  letter-spacing: 0.1em;
}

/* Card */

@keyframes card-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  animation: card-in 500ms var(--ease) both;
}

.blog-card__cover-link {
  display: block;
  text-decoration: none;
}

.blog-card__cover {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  transition: border-color 400ms var(--ease);
  border: 1px solid transparent;
}

.blog-card__cover:hover {
  border-color: rgba(212, 175, 55, 0.5);
}

.blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms var(--ease);
}

.blog-card:hover .blog-card__img {
  transform: scale(1.04);
}

.blog-card__body {
  padding: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.blog-card__tags {
  font-family: var(--f-ui);
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-text-dim);
  margin-bottom: 0.3rem;
}

.blog-card__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  line-height: 1.2;
  color: var(--c-text);
}

.blog-card__title-link {
  color: inherit;
  text-decoration: none;
  transition: color 300ms var(--ease);
}

.blog-card__title-link:hover {
  color: var(--c-text);
  opacity: 0.8;
}

.blog-card__excerpt {
  font-family: var(--f-ui);
  font-weight: 300;
  font-size: 0.8rem;
  color: var(--c-text-muted);
  line-height: 1.75;
  margin: 0.3rem 0;
}

.blog-card__meta {
  font-family: var(--f-ui);
  font-size: 0.58rem;
  color: var(--c-text-dim);
  letter-spacing: 0.12em;
}


/* ── Post page — cover ───────────────────────────────────────────────────────── */

.post-cover {
  position: relative;
  height: 55vh;
  min-height: 360px;
  overflow: hidden;
}

@keyframes cover-settle {
  from { transform: scale(1.04); }
  to   { transform: scale(1); }
}

.post-cover__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  animation: cover-settle 1.4s ease-out both;
}

.post-cover__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
}

.post-cover__meta {
  position: absolute;
  bottom: 3rem;
  left: 3rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 680px;
}

.post-cover__tags {
  font-family: var(--f-ui);
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(240, 238, 233, 0.55);
}

.post-cover__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: #fff;
  line-height: 1.1;
}

.post-cover__byline {
  font-family: var(--f-ui);
  font-weight: 200;
  font-size: 0.65rem;
  color: rgba(240, 238, 233, 0.45);
  letter-spacing: 0.06em;
}

@media (max-width: 600px) {
  .post-cover__meta {
    bottom: 2rem;
    left: 1.5rem;
    right: 1.5rem;
  }
}


/* ── Post page — article ─────────────────────────────────────────────────────── */

@keyframes article-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.post-article {
  max-width: 660px;
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
  animation: article-in 600ms var(--ease) 300ms both;
  width: 100%;
}

/* Body typography */

.post-body p {
  font-family: var(--f-ui);
  font-weight: 300;
  font-size: 0.92rem;
  line-height: 1.95;
  color: var(--c-text-muted);
  margin-bottom: 1.5rem;
}

.post-body p:first-child {
  color: var(--c-text);
}

.post-body h2 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1.45rem;
  color: var(--c-text);
  margin: 2.5rem 0 0.75rem;
}

.post-body h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--c-text-muted);
  margin: 2rem 0 0.5rem;
}

.post-body blockquote {
  border-left: 2px solid var(--c-border);
  padding-left: 1.5rem;
  font-style: italic;
  color: var(--c-text-dim);
  margin: 1.5rem 0;
}

.post-body hr {
  border: none;
  border-top: 1px solid var(--c-border);
  margin: 2.5rem 0;
}

/* Media */

.post-figure {
  margin: 2.5rem -2rem;
}

.post-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.post-figure figcaption {
  font-family: var(--f-ui);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-text-dim);
  margin-top: 0.65rem;
  padding: 0 2rem;
}

.post-video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 2.5rem -2rem;
}

.post-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 600px) {
  .post-figure,
  .post-video {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
  }

  .post-figure figcaption {
    padding: 0 1.5rem;
  }
}


/* ── Post page — footer + share ─────────────────────────────────────────────── */

.post-footer {
  max-width: 660px;
  margin: 0 auto;
  padding: 2rem 2rem 5rem;
  border-top: 1px solid var(--c-border);
  width: 100%;
}

.post-share {
  padding: 1.5rem 0;
}

.post-share__btn {
  background: none;
  border: none;
  font-family: var(--f-ui);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  cursor: pointer;
  padding: 0;
  transition: color 250ms var(--ease);
}

.post-share__btn:hover {
  color: var(--c-text);
}

.post-share__fallback {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 300ms var(--ease), opacity 300ms var(--ease);
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding-top: 0;
}

.post-share__fallback.is-open {
  max-height: 80px;
  opacity: 1;
  padding-top: 0.75rem;
}

.post-share__link {
  font-family: var(--f-ui);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: color 250ms var(--ease);
}

.post-share__link:hover {
  color: var(--c-text);
}

.post-back {
  display: inline-block;
  font-family: var(--f-ui);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  text-decoration: none;
  margin-top: 0.5rem;
  transition: color 250ms var(--ease);
}

.post-back:hover {
  color: var(--c-text);
}


/* ── Post cover: CSS graphic variants ───────────────────────────────────────── */

.post-cover__graphic {
  position: absolute;
  inset: 0;
}

/* =============================================================================
   WORD INTRO OVERLAY
   ============================================================================= */

.word-intro {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 600ms var(--ease), visibility 600ms var(--ease);
}

.word-intro.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.word-intro__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.word-intro::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(255, 255, 255, 0.55);
}

.word-intro__display,
.word-intro__cursor {
  position: relative;
  z-index: 2;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(3rem, 10vw, 8rem);
  color: #111;
  letter-spacing: -0.02em;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.15), 0 0 40px rgba(0, 0, 0, 0.08);
}

.word-intro__cursor {
  font-weight: 200;
  margin-left: 0.05em;
  animation: cursor-blink 0.7s step-end infinite;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.word-intro__skip {
  position: absolute;
  bottom: 2.5rem;
  right: 2.5rem;
  z-index: 2;
  font-family: var(--f-ui);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.35);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 200ms;
  padding: 0;
}

.word-intro__skip:hover {
  color: rgba(0, 0, 0, 0.7);
}


/* AI / creativity — deep violet bloom, blue accent */
.post-cover__graphic--ai {
  background:
    radial-gradient(ellipse at 25% 55%, rgba(109, 40, 217, 0.55) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 25%, rgba(37, 99, 235, 0.22) 0%, transparent 45%),
    #08080f;
}

/* Portrait / photography — warm amber studio light */
.post-cover__graphic--portrait {
  background:
    radial-gradient(ellipse at 65% 60%, rgba(120, 53, 15, 0.70) 0%, transparent 52%),
    radial-gradient(ellipse at 28% 35%, rgba(146, 64, 14, 0.28) 0%, transparent 45%),
    #0d0908;
}
