/* ════════════════════════════════════════════════════════════
   STYLE.CSS — Parallax Site
   ════════════════════════════════════════════════════════════ */

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

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --bg:            #f6f3ee;
  --text:          #1a1714;
  --text-muted:    #6b6158;
  --accent:        #8b6f47;
  --accent-light:  #b59470;
  --img-fill:      #d8d2c8;
  --dark-bg:       #16140f;
  --dark-text:     #ede9e1;
  --dark-muted:    rgba(237,233,225,0.45);

  --font-display:  'Cormorant Garant', Georgia, serif;
  --font-body:     'DM Sans', system-ui, sans-serif;

  --nav-h:         64px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Base ──────────────────────────────────────────────────── */
html { font-size: 16px; scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ════════════════════════════════════════════════════════════
   NAVIGATION
   Starts hidden above viewport. JS adds .nav--visible to reveal.
   ════════════════════════════════════════════════════════════ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 4rem);

  /* ── Hidden by default ── */
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.6s var(--ease-out-expo),
    opacity   0.5s ease,
    background 0.4s ease,
    box-shadow 0.4s ease;
}

/* Revealed on scroll past S1 */
.site-nav.nav--visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
  background: rgba(246,243,238,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(26,23,20,0.07);
}

/* Dark variant when S5 is active */
.site-nav.nav--dark {
  background: rgba(22,20,15,0.88) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: none;
}

/* ── Nav logo ────────────────────────────────────────────── */
.nav-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

/*
  LOGO PLACEHOLDER — visible until you drop in logo.svg.
  Once you add <img src="logo.svg" class="nav-logo-img" />,
  remove the .nav-logo-placeholder rule and this comment.
*/
.nav-logo-placeholder {
  width: 100px;
  height: 32px;
  background: var(--text);
  border-radius: 2px;
  opacity: 0.15;
  display: block;
}

.site-nav.nav--dark .nav-logo-placeholder {
  background: var(--dark-text);
}

/* Real SVG logo in nav — constrain to a comfortable height */
.nav-logo-img {
  height: 32px;
  width: auto;
  display: block;
}

/* ── Nav links ───────────────────────────────────────────── */
.nav-links { display: flex; gap: 2.5rem; align-items: center; }

.nav-link {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active { color: var(--text); }

.site-nav.nav--dark .nav-link       { color: var(--dark-muted); }
.site-nav.nav--dark .nav-link:hover,
.site-nav.nav--dark .nav-link.is-active { color: var(--dark-text); }

/* ── Burger (mobile) ─────────────────────────────────────── */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

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

.site-nav.nav--dark .nav-burger span { background: var(--dark-text); }

.nav-burger.is-open span:first-child { transform: translateY(6px) rotate(45deg); }
.nav-burger.is-open span:last-child  { transform: translateY(-6px) rotate(-45deg); }

/* ── Mobile drawer ───────────────────────────────────────── */
.nav-drawer {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  z-index: 99;
  background: rgba(246,243,238,0.97);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  padding: 2rem clamp(1.5rem, 5vw, 4rem);
  gap: 1.5rem;
  transform: translateY(-110%);
  transition: transform 0.45s var(--ease-out-expo);
  pointer-events: none;
}

.nav-drawer.is-open { transform: translateY(0); pointer-events: all; }

.drawer-link {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.drawer-link:hover { color: var(--accent); }

/* ════════════════════════════════════════════════════════════
   SECTIONS — shared
   ════════════════════════════════════════════════════════════ */
.section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.section-inner {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0 clamp(2rem, 6vw, 7rem);
}

/* ════════════════════════════════════════════════════════════
   SECTION 1 — HERO LOGO
   Logo fills the viewport width. Fades out as nav slides in.
   ════════════════════════════════════════════════════════════ */
.s1-inner {
  display: flex;
  flex-direction: column;
  align-items: center;        /* centre horizontally */
  justify-content: center;
  text-align: center;
  gap: 2.5rem;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
  height: 100%;
}

/*
  HERO LOGO PLACEHOLDER
  ─────────────────────
  A full-width bar that mimics where logo.svg will sit.
  Replace the <div id="heroLogo" class="hero-logo-placeholder"> in the HTML with:
    <img src="logo.svg" alt="Studio Name" class="hero-logo" id="heroLogo" />
  and delete the .hero-logo-placeholder rule below.
*/
.hero-logo-placeholder {
  width: 90vw;
  max-width: 1200px;
  height: clamp(60px, 12vw, 160px);   /* adjust to match your SVG's natural proportions */
  background: var(--text);
  border-radius: 3px;
  opacity: 0.15;
  transition: opacity 0.7s ease, transform 0.7s var(--ease-out-expo);
}

/* Real SVG logo — spans almost the full viewport width */
.hero-logo {
  width: 90vw;
  max-width: 1200px;
  height: auto;
  display: block;
  transition: opacity 0.7s ease, transform 0.7s var(--ease-out-expo);
}

/* Both shrink-fade out when the nav slides in */
.hero-logo-placeholder.hero--faded,
.hero-logo.hero--faded {
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
}

.site-sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ════════════════════════════════════════════════════════════
   SECTION 2 — PAYOFF
   ════════════════════════════════════════════════════════════ */
.s2-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
  padding-left:  clamp(2rem, 8vw, 10rem);
  padding-right: clamp(2rem, 8vw, 10rem);
  padding-top: var(--nav-h);
}
 
/* ── Left: about block ─────────────────────────────────────── */
.s2-about {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  border-left: 1px solid rgba(26,23,20,0.12);
  padding-left: 1.25rem;
}
 
.s2-about-label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}
 
.s2-about-text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--text-muted);
  max-width: 28ch;
}
 
.payoff-text {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3rem, 7.5vw, 7rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
 
  opacity: 0;
  transform: scale(0.78) translateZ(0);
  filter: blur(10px);
  transform-origin: left center;
  transition:
    opacity   1.4s var(--ease-out-expo),
    transform 1.4s var(--ease-out-expo),
    filter    1.4s ease;
}
 
.payoff-text em { font-style: italic; color: var(--accent); display: block; }
 
.payoff-text.is-visible {
  opacity: 1;
  transform: scale(1) translateZ(0);
  filter: blur(0px);
}

/* ════════════════════════════════════════════════════════════
   SECTION 3 — SERVICES
   Two-column: text left | images right (revealed on hover)
   ════════════════════════════════════════════════════════════ */
.s3-section { height: auto; min-height: 100vh; }

.s3-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: center;
  padding-top: calc(var(--nav-h) + 5vh);
  padding-bottom: 6vh;
}

/* ── Text column ──────────────────────────────────────────── */
.services-col {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5vh, 4rem);
}

/* Scroll-in animation */
.service-item {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity   0.75s ease,
    transform 0.75s var(--ease-out-expo);
}

.service-item.is-visible { opacity: 1; transform: translateY(0); }

.svc-num {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.svc-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  letter-spacing: -0.015em;
  line-height: 1;
  margin-bottom: 0.55rem;
}

/* Portfolio link on the title */
.svc-link {
  color: inherit;
  text-decoration: none;
  display: inline-block;
  position: relative;
  transition: color 0.25s ease;
}

/* Animated underline */
.svc-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s var(--ease-out-expo);
}

.service-item:hover .svc-link { color: var(--accent); }
.service-item:hover .svc-link::after { width: 100%; }

.svc-desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 30ch;
}

/* ── Image column ─────────────────────────────────────────── */
.services-images {
  position: relative;
  /* Fixed height so the column doesn't collapse when all images are hidden */
  height: clamp(220px, 38vh, 400px);
}

.svc-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 2px;
  background-color: var(--img-fill);
  background-size: cover;
  background-position: center;

  /* Hidden by default — revealed on hover via JS */
  opacity: 0;
  transform: scale(0.97);
  transition:
    opacity   0.45s ease,
    transform 0.45s var(--ease-out-expo);

  pointer-events: none;
}

/* Active image (hovered service) */
.svc-img.is-active {
  opacity: 1;
  transform: scale(1);
}

/* Subtle grain on placeholders */
.svc-img::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: repeating-linear-gradient(
    45deg,
    transparent, transparent 10px,
    rgba(0,0,0,0.025) 10px, rgba(0,0,0,0.025) 11px
  );
  pointer-events: none;
}

/* ════════════════════════════════════════════════════════════
   SECTION 4 — CONTACT
   ════════════════════════════════════════════════════════════ */
.s4-inner {
  padding-left:  clamp(2rem, 8vw, 10rem);
  padding-right: clamp(2rem, 8vw, 10rem);
  padding-top: var(--nav-h);
}

.contact-heading {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.8rem, 6.5vw, 6rem);
  line-height: 1.03;
  letter-spacing: -0.025em;
}

.contact-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  color: var(--accent);
  margin-top: 0.35rem;
  margin-bottom: 2.5rem;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 2.1rem;
  border: 1px solid var(--text);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  background: transparent;
  transition: background 0.35s ease, color 0.35s ease;
}

.cta-btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.cta-btn:hover { background: var(--text); color: var(--bg); }
.cta-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ════════════════════════════════════════════════════════════
   SECTION 5 — SOCIALS (dark)
   ════════════════════════════════════════════════════════════ */
.section--dark { background-color: var(--dark-bg); color: var(--dark-text); }

.s5-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2.5rem;
  padding-left: 2rem;
  padding-right: 2rem;
  padding-top: var(--nav-h);
}

.socials-eyebrow {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dark-muted);
}

.socials-row { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }

.social-btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  border: 1px solid rgba(237,233,225,0.22);
  color: var(--dark-text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.social-btn:hover { border-color: var(--dark-text); background: rgba(237,233,225,0.07); }
.social-btn:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 3px; }

/* ════════════════════════════════════════════════════════════
   PORTFOLIO PAGES — shared base styles (used by portfolio-*.html)
   ════════════════════════════════════════════════════════════ */
.portfolio-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: calc(var(--nav-h) + 4rem) clamp(2rem, 8vw, 8rem) 4rem;
}

.portfolio-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 4rem;
  transition: color 0.25s ease;
}

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

.portfolio-back svg { width: 14px; height: 14px; }

.portfolio-category {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.portfolio-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 2.5rem;
}

.portfolio-desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-muted);
  max-width: 52ch;
  margin-bottom: 4rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 1.25rem;
}

.portfolio-card {
  aspect-ratio: 3 / 2;
  background-color: var(--img-fill);
  border-radius: 2px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.portfolio-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: repeating-linear-gradient(
    45deg, transparent, transparent 10px,
    rgba(0,0,0,0.025) 10px, rgba(0,0,0,0.025) 11px
  );
}

  /* ── Card hover overlay ── */
  .portfolio-card { overflow: hidden; }

  /* Off-white overlay fades in, image appears to fade out beneath it */
  .portfolio-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(245, 241, 232, 0.94);
    opacity: 0;
    transition: opacity 0.45s ease;
    z-index: 1;
    border-radius: inherit;
  }
  .portfolio-card:hover::before { opacity: 1; }

  /* Text block slides up on hover */
  .card-info {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.2rem, 4%, 2rem);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.45s ease 0.05s, transform 0.45s cubic-bezier(0.16,1,0.3,1) 0.05s;
    pointer-events: none;
  }
  .portfolio-card:hover .card-info { opacity: 1; transform: translateY(0); }

  .card-info__label {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.65rem; font-weight: 400;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: #8b6f47; margin-bottom: 0.55rem;
  }
  .card-info__title {
    font-family: 'Cormorant Garant', Georgia, serif;
    font-weight: 400; font-size: clamp(1.1rem, 2.2vw, 1.55rem);
    line-height: 1.1; letter-spacing: -0.015em;
    color: #1a1714; margin-bottom: 0.7rem;
  }
  .card-info__desc {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-weight: 300; font-size: 0.8rem;
    line-height: 1.7; color: #6b6158; max-width: 28ch;
  }
  /* Thin accent rule at bottom-left */
  .card-info::after {
    content: ''; position: absolute;
    bottom: clamp(1.2rem,4%,2rem); left: clamp(1.2rem,4%,2rem);
    width: 2rem; height: 1px; background: #8b6f47; opacity: 0.5;
  }	

/* ── Card listen button ── */
.card-listen {
  /* Always visible — sits outside the hover overlay */
  position: absolute;
  bottom: clamp(0.85rem, 3%, 1.25rem);
  right: clamp(0.85rem, 3%, 1.25rem);
  z-index: 3;

  display: inline-flex;
  align-items: center;
  gap: 0.45rem;

  padding: 0.55rem 1.1rem 0.55rem 0.9rem;
  border: 1px solid rgba(26, 23, 20, 0.32);
  border-radius: 1px;
  background: rgba(246, 243, 238, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;

  /* Subtle lift on hover */
  transform: translateY(0);
  transition:
    background  0.3s ease,
    border-color 0.3s ease,
    color       0.3s ease,
    transform   0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-listen svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: var(--accent);
  transition: color 0.3s ease;
}

.card-listen:hover {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
  transform: translateY(-2px);
}

.card-listen:hover svg { color: var(--bg); }

.card-listen:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* On mobile, button is always reachable without hover */
@media (hover: none) {
  .card-listen {
    background: rgba(246, 243, 238, 0.95);
  }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .s3-inner { grid-template-columns: 1fr; gap: 3rem; }

  .services-images {
    position: relative;
    height: clamp(180px, 35vw, 280px);
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}

@media (max-width: 480px) {
  .socials-row { flex-direction: column; align-items: stretch; }
  .social-btn  { text-align: center; }
}

/* ── Reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .payoff-text, .service-item, .svc-img, .site-nav {
    transition: opacity 0.4s ease !important;
    transform: none !important;
    filter: none !important;
  }
}
