/* ==========================================================================
   FRAME OF THE HEART — main.css
   Photo-driven, dark, organic. Built against the palette + type in
   style.css. Nothing beige, nothing ivory, nothing labeled with a small-caps
   eyebrow — headings carry themselves.
   ========================================================================== */

/* ---- grain: a faint, moving texture so dark grounds never read flat/digital ---- */
body{
  position:relative;
}
body::before{
  content:'';
  position:fixed;
  inset:0;
  z-index:9000;
  pointer-events:none;
  opacity:0.05;
  mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.fh-skip-link{
  position:absolute;left:-9999px;top:0;background:var(--gold);color:var(--midnight);
  padding:0.75rem 1.25rem;z-index:10000;font-family:var(--font-body);font-weight:500;
}
.fh-skip-link:focus{left:1rem;top:1rem;}

.fh-wrap{max-width:1220px;margin:0 auto;padding:0 1.75rem;}
@media (max-width:640px){ .fh-wrap{padding:0 1.25rem;} }

img,figure{margin:0;}

/* ---- gold rule, used everywhere an "eyebrow" label might otherwise go ---- */
.fh-rule{
  display:block;width:2.75rem;height:1px;
  background:linear-gradient(90deg,var(--gold),transparent);
  margin-bottom:1.25rem;
}
.fh-rule.fh-rule-center{margin-left:auto;margin-right:auto;background:linear-gradient(90deg,transparent,var(--gold),transparent);}

/* ==========================================================================
   Header / navigation
   ========================================================================== */
.fh-header{
  position:sticky;top:0;z-index:500;
  padding:1.5rem 0;
  background:linear-gradient(to bottom, rgba(26,24,20,0.92), rgba(26,24,20,0));
  transition:background 0.4s ease, padding 0.3s ease;
}
.fh-header.is-scrolled{
  background:rgba(26,24,20,0.94);
  backdrop-filter:blur(6px);
  padding:0.85rem 0;
  box-shadow:0 1px 0 rgba(212,162,55,0.15);
}
.fh-header .fh-wrap{display:flex;align-items:center;justify-content:space-between;gap:2rem;}

.fh-logo{display:flex;align-items:center;gap:0.85rem;}
.fh-logo img{max-height:52px;width:auto;border-radius:50%;}
.fh-logo-text{
  font-family:var(--font-display);font-style:italic;font-weight:300;
  font-size:1.5rem;color:var(--parchment);letter-spacing:0.01em;
}

.fh-nav-toggle{display:none;flex-direction:column;gap:5px;padding:0.5rem;}
.fh-nav-toggle span{width:22px;height:1px;background:var(--parchment);display:block;}

.fh-nav-list{display:flex;gap:2.25rem;align-items:center;flex-wrap:wrap;}
.fh-nav-list a{
  font-size:0.85rem;letter-spacing:0.03em;color:var(--bone);
  padding:0.35rem 0;position:relative;
}
.fh-nav-list a::after{
  content:'';position:absolute;left:0;right:100%;bottom:0;height:1px;background:var(--gold);
  transition:right 0.25s ease;
}
.fh-nav-list a:hover::after,.fh-nav-list a:focus::after,.fh-nav-list .current-menu-item a::after{right:0;}

@media (max-width:800px){
  .fh-nav-toggle{display:flex;}
  .fh-nav-list{
    position:fixed;inset:0 0 0 auto;width:min(320px,80vw);height:100vh;
    background:var(--midnight);flex-direction:column;justify-content:center;
    padding:2rem;gap:1.75rem;
    transform:translateX(100%);transition:transform 0.35s ease;
    border-left:1px solid rgba(212,162,55,0.25);
  }
  .fh-nav-list.is-open{transform:translateX(0);}
  .fh-nav-list a{font-size:1.15rem;}
}

/* ==========================================================================
   Hero
   ========================================================================== */
.fh-hero{
  position:relative;min-height:88vh;display:flex;align-items:center;
  overflow:hidden;
}
.fh-hero::before{
  content:'';position:absolute;inset:0;z-index:-1;
  background:
    radial-gradient(ellipse 60% 55% at 18% 30%, rgba(29,61,42,0.55) 0%, transparent 62%),
    radial-gradient(ellipse 55% 50% at 85% 75%, rgba(28,62,60,0.45) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 60% 10%, rgba(122,46,26,0.25) 0%, transparent 65%),
    var(--midnight);
}
.fh-hero-inner{max-width:52rem;padding:6rem 0;}
.fh-hero-heading{
  font-family:var(--font-display);font-weight:400;font-style:italic;
  font-size:clamp(1.15rem,2vw,1.5rem);line-height:1.2;color:var(--ash);
  letter-spacing:0.03em;
  margin-bottom:1.75rem;
}
.fh-hero-statement{
  font-family:var(--font-script);font-weight:400;font-style:normal;
  font-size:clamp(3.25rem,7.5vw,6.5rem);line-height:1.35;color:var(--gold);
  max-width:46ch;
}
.fh-hero-cta{
  display:inline-block;margin-top:2.5rem;font-size:0.85rem;letter-spacing:0.06em;
  color:var(--gold);border-bottom:1px solid rgba(212,162,55,0.5);padding-bottom:0.2rem;
}
.fh-hero-cta:hover{border-color:var(--gold);}

/* ==========================================================================
   Section heads (title carries the section, no kicker line above it)
   ========================================================================== */
.fh-section{padding:6rem 0;}
.fh-section-head{max-width:40rem;margin-bottom:3.5rem;}
.fh-section-head h2{
  font-family:var(--font-display);font-weight:400;font-size:clamp(2rem,4vw,2.65rem);
  color:var(--parchment);line-height:1.15;
}
.fh-section-head h2 em{font-style:italic;color:var(--gold);}
.fh-section-head p{color:var(--ash);margin-top:1rem;font-size:0.98rem;line-height:1.8;max-width:52ch;}

/* ==========================================================================
   Organic blob image masks — four presets, cycled across a grid so it
   never looks like a stamped template.
   ========================================================================== */
.fh-blob-a{ border-radius:63% 37% 54% 46% / 48% 41% 59% 52%; }
.fh-blob-b{ border-radius:38% 62% 63% 37% / 41% 44% 56% 59%; }
.fh-blob-c{ border-radius:50% 50% 34% 66% / 62% 38% 62% 38%; }
.fh-blob-d{ border-radius:41% 59% 58% 42% / 55% 46% 54% 45%; }

/* ==========================================================================
   Portfolio grid (front page + archive)
   ========================================================================== */
.fh-portfolio-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:3.5rem 2.5rem;
}
.fh-card{display:block;}
.fh-card-media{
  position:relative;aspect-ratio:4/5;overflow:hidden;
  transition:border-radius 0.6s ease;
  background:var(--charcoal);
}
.fh-card-media img{
  width:100%;height:100%;object-fit:cover;
  transition:transform 1.1s cubic-bezier(.22,.61,.36,1), filter 0.6s ease;
  filter:saturate(0.94);
}
.fh-card:hover .fh-card-media img{transform:scale(1.06);filter:saturate(1.05);}
.fh-card:hover .fh-card-media{ border-radius:50% 50% 42% 58% / 58% 42% 58% 42%; }

.fh-card-media::after{
  content:'';position:absolute;inset:0;
  background:linear-gradient(200deg, rgba(26,24,20,0) 55%, rgba(26,24,20,0.55) 100%);
  pointer-events:none;
}
.fh-card-title{
  font-family:var(--font-display);font-style:italic;font-weight:400;
  font-size:1.4rem;color:var(--parchment);margin-top:1.25rem;line-height:1.3;
}
.fh-card:hover .fh-card-title{color:var(--gold);}
.fh-meta-line{
  font-size:0.78rem;color:var(--ash);letter-spacing:0.03em;margin-top:0.4rem;
}

/* ==========================================================================
   Single portfolio
   ========================================================================== */
.fh-cover{position:relative;min-height:70vh;display:flex;align-items:flex-end;overflow:hidden;}
.fh-cover-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:saturate(0.95) brightness(0.92);}
.fh-cover::after{
  content:'';position:absolute;inset:0;
  background:linear-gradient(0deg, rgba(26,24,20,0.92) 5%, rgba(26,24,20,0.15) 55%, rgba(26,24,20,0.35) 100%);
}
.fh-cover-content{position:relative;z-index:1;padding:4rem 0 3.5rem;width:100%;}
.fh-cover-title{
  font-family:var(--font-display);font-weight:300;font-style:italic;
  font-size:clamp(2.5rem,6vw,4.25rem);color:var(--parchment);line-height:1.05;
}

.fh-statement{max-width:60ch;padding:4.5rem 0 1rem;font-size:1.05rem;line-height:2;color:var(--bone);}
.fh-statement em{color:var(--parchment);}

.fh-gallery{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:2rem;
  padding-bottom:5rem;
}
.fh-gallery-figure{cursor:zoom-in;overflow:hidden;}
.fh-gallery-figure img{
  width:100%;height:100%;object-fit:cover;aspect-ratio:1/1;
  transition:transform 0.8s cubic-bezier(.22,.61,.36,1);
}
.fh-gallery-figure:nth-child(3n+1){aspect-ratio:4/5;}
.fh-gallery-figure:nth-child(3n+1) img{aspect-ratio:4/5;}
.fh-gallery-figure:hover img{transform:scale(1.045);}

.fh-portfolio-nav{
  display:flex;justify-content:space-between;gap:2rem;padding:3rem 0 5rem;
  border-top:1px solid rgba(244,239,229,0.08);
  font-family:var(--font-display);font-style:italic;font-size:1.1rem;
}
.fh-portfolio-nav a:hover{color:var(--gold);}

/* ==========================================================================
   Lightbox
   ========================================================================== */
.fh-lightbox{
  position:fixed;inset:0;z-index:9500;display:none;align-items:center;justify-content:center;
  background:rgba(12,11,9,0.94);padding:2rem;
}
.fh-lightbox.is-open{display:flex;}
.fh-lightbox img{max-width:92vw;max-height:86vh;object-fit:contain;border-radius:2px;}
.fh-lightbox-close,.fh-lightbox-prev,.fh-lightbox-next{
  position:absolute;color:var(--parchment);font-family:var(--font-display);font-size:1.75rem;
  padding:0.75rem 1.25rem;
}
.fh-lightbox-close{top:1rem;right:1.25rem;font-size:1.5rem;}
.fh-lightbox-prev{left:0.5rem;top:50%;transform:translateY(-50%);font-style:italic;}
.fh-lightbox-next{right:0.5rem;top:50%;transform:translateY(-50%);font-style:italic;}

/* ==========================================================================
   Generic page / blog content
   ========================================================================== */
.fh-page-header{padding:7rem 0 2rem;}
.fh-page-title{font-family:var(--font-display);font-weight:300;font-style:italic;font-size:clamp(2.25rem,5vw,3.25rem);color:var(--parchment);}
.fh-content{max-width:62ch;padding-bottom:6rem;font-size:1.02rem;line-height:1.95;}
.fh-content p + p{margin-top:1.4rem;}
.fh-content a{color:var(--gold);border-bottom:1px solid rgba(212,162,55,0.4);}
.fh-content blockquote{
  margin:2.5rem 0;padding-left:1.5rem;border-left:2px solid var(--gold);
  font-family:var(--font-display);font-style:italic;font-size:1.3rem;color:var(--bone);
}
.fh-content img{border-radius:1px;margin:2rem 0;}
.fh-content h2,.fh-content h3{font-family:var(--font-display);color:var(--parchment);font-weight:400;margin:2.5rem 0 1rem;}

/* ==========================================================================
   404
   ========================================================================== */
.fh-404{min-height:70vh;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;}
.fh-404 h1{font-family:var(--font-display);font-style:italic;font-size:clamp(3rem,8vw,5rem);color:var(--parchment);}
.fh-404 p{color:var(--ash);margin-top:1rem;max-width:40ch;}

/* ==========================================================================
   Footer
   ========================================================================== */
.fh-footer{
  padding:4rem 0 3rem;border-top:1px solid rgba(244,239,229,0.08);
  margin-top:4rem;
}
.fh-footer .fh-wrap{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:2rem;}
.fh-footer-brand{font-family:var(--font-display);font-style:italic;font-size:1.15rem;color:var(--parchment);margin-bottom:0.4rem;}
.fh-footer-note{color:var(--ash);font-size:0.85rem;max-width:34ch;line-height:1.8;}
.fh-social{display:flex;gap:1.5rem;}
.fh-social a{font-size:0.8rem;letter-spacing:0.04em;color:var(--bone);border-bottom:1px solid transparent;}
.fh-social a:hover{color:var(--gold);border-color:var(--gold);}
.fh-copyright{font-size:0.72rem;color:var(--ash);letter-spacing:0.03em;}

/* ==========================================================================
   Empty state
   ========================================================================== */
.fh-empty{padding:4rem 0;color:var(--ash);font-style:italic;font-family:var(--font-display);font-size:1.3rem;}
