/* ==========================================================================
   home.css — styling used only by the home page (index.html).
   Builds on site.css.
   ========================================================================== */

body { background: var(--white); overflow-x: hidden; }

/* ── NAV (the home page keeps a solid bar that scrolls with the page) ── */
.nav-home {
  position: sticky; top: 0; z-index: 200; background: var(--white);
  border-bottom: 1px solid rgba(200, 184, 154, 0.3);
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.7rem 3.5rem;
}
.nav-home .nav-links { gap: 3rem; }
.nav-home .nav-links a { font-size: 0.82rem; letter-spacing: 0.2em; color: var(--deep); font-weight: 400; }

/* The menu bar stays pinned to the top of the screen, so a section jumped
   to from the menu must stop below it. Without this the section scrolls
   underneath the bar and its top is cropped off.
   Roughly the bar's height: 58px logo + 1.7rem padding top and bottom. */
#hero, #about, #portfolio, #contact { scroll-margin-top: 7.5rem; }

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

/* ── HERO ── */
#hero { position: relative; height: 90vh; min-height: 560px; overflow: hidden; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.1s ease-in-out;
}
.hero-slide::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(44,62,69,0.15) 0%, rgba(44,62,69,0.5) 100%); }

/* One slide is split into three panels side by side, the middle one a little
   wider so it carries the name. They meet edge to edge, with no line
   between them. */
.hero-slide-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
}
.hero-slide-split > div { background-size: cover; background-position: center; }
.hero-slide.active { opacity: 1; }

.hero-centre { position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%); text-align: center; z-index: 2; animation: fadeUp 1.4s ease both; }
.hero-title { font-family: var(--font-body); font-weight: 500; font-size: clamp(1.6rem, 3.5vw, 3.2rem); letter-spacing: 0.18em; text-transform: uppercase; color: var(--white); text-shadow: 0 2px 20px rgba(0,0,0,0.35); }
/* A longer line than the old single word, so the spacing is tightened to
   keep it on one line at phone width. */
.hero-title-sub {
  font-style: normal; font-weight: 300; display: block;
  font-size: 0.32em; letter-spacing: 0.26em;
  margin-top: 0.7rem; color: rgba(255,255,255,0.78);
}
.hero-cta { display: inline-block; margin-top: 2.4rem; padding: 0.85rem 2.2rem; border: 1px solid rgba(255,255,255,0.85); color: var(--white); font-size: 0.62rem; letter-spacing: 0.26em; text-transform: uppercase; text-decoration: none; transition: background 0.3s; }
.hero-cta:hover { background: rgba(255,255,255,0.15); }

.hero-dots {
  position: absolute;
  bottom: 1.6rem; left: 0; right: 0;
  z-index: 3;
  display: none;
  justify-content: center;
  gap: 0.5rem;
}
.hero-dot {
  width: 7px; height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.hero-dot.active { background: rgba(255, 255, 255, 0.95); transform: scale(1.3); }

.hero-content { position: absolute; bottom: 4rem; left: 3rem; z-index: 2; animation: fadeUp 1.4s 0.3s ease both; }
.hero-subtitle { font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 400; color: rgba(255,255,255,0.9); text-shadow: 0 1px 10px rgba(0,0,0,0.4); margin-bottom: 0.3rem; }
.hero-location { font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.scroll-indicator { position: absolute; bottom: 2.5rem; right: 3rem; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; color: rgba(255,255,255,0.5); font-size: 0.55rem; letter-spacing: 0.22em; text-transform: uppercase; }
.scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent); animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

/* ── LABEL / HEADING PRIMITIVES ── */
/* The home page uses a slightly smaller, left-aligned variant. */
.label { font-size: 0.6rem; margin-bottom: 1.2rem; }
.divider { width: 40px; height: 1px; background: var(--sand); margin-bottom: 1.8rem; }
.sig { font-family: var(--font-body); font-size: 0.88rem; font-weight: 200; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ocean); margin-top: 1.5rem; }

/* ── INTRO MOSAIC (asymmetric editorial collage) ── */
/* Shares the space in the same 34:66 proportion, but as fractions rather
   than percentages so the gap is taken off the top. Percentages adding to
   100% leave no room for the gap and push the right column off the page. */
.intro-mosaic { display: grid; grid-template-columns: 34fr 66fr; gap: 4.5rem; padding: 7rem 4rem 11rem; align-items: start; }
.im-left-img { width: 100%; aspect-ratio: 0.82; overflow: hidden; box-shadow: 0 8px 40px rgba(44,62,69,0.12); margin-bottom: 2.2rem; }
.im-left-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.im-left-text { max-width: 340px; }
.im-intro-body { font-family: var(--font-display); font-weight: 300; font-size: 1rem; line-height: 1.85; color: var(--text); max-width: 380px; margin-bottom: 1.2rem; }
.im-intro-body strong { font-weight: 500; color: var(--deep); }
.im-label { font-family: var(--font-display); font-weight: 300; font-size: 0.9rem; letter-spacing: 0.06em; color: var(--ocean); margin: 2.2rem 0 1.2rem; }
.im-cluster { position: relative; margin-top: 3.5rem; }
/* The photograph is portrait, so the frame is too — matching its shape
   means none of it is cropped away. Height follows from the width. */
.im-cluster-top { position: relative; margin-left: auto; width: 46%; aspect-ratio: 2/3; overflow: hidden; box-shadow: 0 8px 40px rgba(44,62,69,0.14); z-index: 1; }
.im-cluster-bw { position: absolute; top: 40%; left: -8%; width: 66%; height: 58%; overflow: hidden; box-shadow: 0 10px 44px rgba(44,62,69,0.18); z-index: 1; filter: grayscale(1) contrast(1.02); }
.im-cluster-accent { position: absolute; bottom: -4%; left: -14%; width: 32%; height: 32%; overflow: hidden; border: 6px solid var(--white); box-shadow: 0 10px 40px rgba(44,62,69,0.22); z-index: 2; }
.im-cluster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.9s ease; }
.im-cluster > div:hover img { transform: scale(1.04); }

/* ── FEATURE BLOCK (alternating full-bleed editorial sections) ── */
.feature-block { display: grid; grid-template-columns: 1fr 1fr; min-height: 92vh; }
.fb-text { padding: 6rem 5rem; display: flex; flex-direction: column; justify-content: center; }
.fb-heading { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 300; line-height: 1.18; color: var(--deep); margin-bottom: 1.6rem; }
.fb-body { font-size: 0.9rem; line-height: 1.9; color: var(--light-text); font-weight: 300; max-width: 420px; margin-bottom: 1.1rem; }
.fb-body strong { font-weight: 400; color: var(--text); }
/* A link inside a paragraph, kept quiet — the default blue underline would
   sit badly against the rest of the writing. */
.fb-body a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--sand);
  transition: color 0.3s, border-color 0.3s;
}
.fb-body a:hover { color: var(--ocean); border-bottom-color: var(--ocean); }
.fb-link { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1rem; font-size: 0.65rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text); text-decoration: none; transition: color 0.3s; width: fit-content; }
.fb-link:hover { color: var(--ocean); }
.fb-link svg { width: 14px; height: 14px; }

.fb-media { position: relative; background: var(--cream); overflow: hidden; }
.fb-media-main { position: absolute; overflow: hidden; box-shadow: 0 8px 40px rgba(44,62,69,0.12); }
.fb-media-main img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.9s ease; }
.fb-media-main:hover img { transform: scale(1.04); }
.fb-media-accent { position: absolute; overflow: hidden; border: 6px solid var(--white); box-shadow: 0 8px 40px rgba(44,62,69,0.16); }
.fb-media-accent img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* The About section shows Jamie, with a smaller photograph tucked over the
   bottom-right corner. Each frame takes the shape of its own photograph, so
   neither is cropped: the main one is 4:5, the smaller one 3:4. */
.fb-media-solo {
  position: absolute;
  top: 6%; left: 8%;
  width: 66%;
  aspect-ratio: 4/5;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(44, 62, 69, 0.14);
}
.fb-media-solo-accent {
  position: absolute;
  bottom: 8%; right: 6%;
  width: 26%;
  aspect-ratio: 3/4;
  overflow: hidden;
  border: 6px solid var(--white);
  box-shadow: 0 10px 40px rgba(44, 62, 69, 0.22);
  z-index: 2;
}
.fb-media-solo img,
.fb-media-solo-accent img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s ease;
}
.fb-media-solo:hover img { transform: scale(1.04); }

.feature-block.media-right .fb-media-main { top: 8%; left: 8%; width: 74%; height: 62%; }
.feature-block.media-right .fb-media-accent { bottom: 6%; right: 6%; width: 32%; aspect-ratio: 2/3; }
.feature-block.media-left { grid-template-columns: 1fr 1fr; }
.feature-block.media-left .fb-media { order: -1; }
.feature-block.media-left .fb-media-main { top: 8%; right: 8%; width: 74%; height: 62%; }
.feature-block.media-left .fb-media-accent { bottom: 6%; left: 6%; width: 32%; aspect-ratio: 2/3; }


/* ── FROM THE AIR ──
   Two aerial photographs side by side beneath a short introduction. They
   share one shape so they line up; both are close to it already, so almost
   nothing is cropped. */
.aerial { background: var(--cream); padding: 7rem 4rem; }
.aerial-intro { text-align: center; max-width: 620px; margin: 0 auto 3.5rem; }
.aerial-intro .label { margin-bottom: 1rem; }
.aerial-intro .section-title { font-size: clamp(1.8rem, 3vw, 2.8rem); }
.aerial-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}
/* Every upright photograph shares one shape so they line up exactly. The
   wide one keeps its own and spans the full width beneath them. */
.aerial-shot { aspect-ratio: 2/3; overflow: hidden; box-shadow: 0 8px 40px rgba(44,62,69,0.14); }
.aerial-shot-wide { grid-column: 1 / -1; aspect-ratio: 16/9; }
.aerial-shot img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.9s ease;
}
.aerial-shot:hover img { transform: scale(1.04); }

/* ── PORTFOLIO ── */
#portfolio { background: var(--white); }
.portfolio-header { text-align: center; padding: 6rem 3rem 4rem; }
.section-title { font-size: clamp(1.8rem, 3vw, 2.8rem); }
.section-divider { width: 40px; height: 1px; background: var(--sand); margin: 1.5rem auto; }
.section-sub { font-size: 0.82rem; color: var(--light-text); font-weight: 300; max-width: 440px; margin: 0 auto; line-height: 1.8; }

.portfolio-mosaic {
  display: flex;
  gap: 1.25rem;
  padding: 0 3rem 6rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 3rem;
  -webkit-overflow-scrolling: touch;
}
.p-card {
  overflow: hidden; position: relative; cursor: pointer;
  flex: 0 0 calc((100% - 3.75rem) / 4);
  aspect-ratio: 3/4;
  scroll-snap-align: start;
}
.p-card a { display: block; width: 100%; height: 100%; }
.p-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.8s ease; }
.p-card:hover img { transform: scale(1.04); }
.p-card-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 2.5rem 1.4rem 1.4rem;
  background: linear-gradient(to top, rgba(44,62,69,0.82) 0%, transparent 100%);
}
.p-card-names { font-family: var(--font-display); font-size: 1.4rem; font-weight: 300; color: white; display: block; margin-bottom: 0.2rem; }
.p-card-date { font-size: 0.55rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.6); }

/* ── INVITATION TO GET IN TOUCH (the form itself lives on contact.html) ── */
.contact-invite {
  background-color: #fdfcfa;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='paper'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='5' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeBlend in='SourceGraphic' mode='multiply'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23paper)' opacity='0.12'/%3E%3C/svg%3E");
  text-align: center;
  padding: 7rem 3rem;
}
.contact-invite .divider { margin: 1.8rem auto; }
.contact-invite-body {
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--light-text);
  font-weight: 300;
  max-width: 480px;
  margin: 0 auto;
}
.contact-invite-cta {
  display: inline-block;
  margin-top: 2.4rem;
  padding: 1rem 3rem;
  background: var(--deep);
  color: var(--cream);
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
}
.contact-invite-cta:hover { background: var(--ocean); transform: translateY(-1px); }

/* ── FOOTER (home page sits a little narrower) ── */
footer { padding: 3rem 3rem; }
.footer-copy { font-size: 0.62rem; }
.footer-socials a { font-size: 0.62rem; }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* People who prefer less motion get the content immediately, no animation. */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-centre, .hero-content { animation: none; }
  .scroll-line { animation: none; }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-home { padding: 1.9rem 1.5rem; }
  /* Three narrow strips would crop faces in half on a phone, so each panel
     becomes a full-screen photograph, swiped through with a thumb.
     `display: contents` removes the panel container so its photographs sit
     directly in the hero, which also means they need their own overlay. */
  .hero-slide-split { display: contents; }
  .hero-slide-split > div {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1.1s ease-in-out;
  }
  .hero-slide-split > div.active { opacity: 1; }
  .hero-slide-split > div::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(44,62,69,0.15) 0%, rgba(44,62,69,0.5) 100%);
  }
  .hero-dots { display: flex; }
  /* The bar is shorter on phones, so less room needs reserving. */
  #hero, #about, #portfolio, #contact { scroll-margin-top: 6.5rem; }
  .intro-mosaic { grid-template-columns: 1fr; gap: 3rem; padding: 4.5rem 1.5rem 5rem; }
  .im-left-text { max-width: 100%; }
  /* Phones keep the layered collage rather than stacking it into a plain
     column — the overlap is the style. Only the proportions change, so it
     fits a narrow screen. */
  .im-cluster { margin-top: 3rem; }
  .im-cluster-top { width: 66%; }
  .im-cluster-bw { top: 42%; left: -6%; width: 58%; height: 40%; }
  .im-cluster-accent { bottom: 0; left: 4%; right: auto; width: 34%; height: 24%; border-width: 5px; }
  .feature-block, .feature-block.media-left { grid-template-columns: 1fr; min-height: auto; }
  .feature-block.media-left .fb-media { order: 0; }
  .fb-text { padding: 4rem 2rem 3rem; }
  /* Taller frames so each photograph shows squarely rather than being
     cropped to a letterbox strip, and the smaller image sits layered over
     the larger one — the same arrangement as on a laptop. */
  .fb-media { min-height: 134vw; }
  .feature-block.media-right .fb-media-main,
  .feature-block.media-left .fb-media-main { top: 0; left: 0; right: auto; width: 78%; height: 62%; }
  .feature-block.media-right .fb-media-accent,
  .feature-block.media-left .fb-media-accent { bottom: 3%; right: 3%; left: auto; width: 40%; aspect-ratio: 2/3; }
  /* Jamie's portrait stays square on a phone so his head is never cropped. */
  .fb-media-solo-wrap { min-height: 118vw; }
  .fb-media-solo { top: 5%; left: 6%; width: 78%; }
  .fb-media-solo-accent { bottom: 4%; right: 4%; width: 28%; border-width: 5px; }

  .aerial { padding: 4.5rem 1.5rem; }
  .aerial-pair { gap: 0.9rem; }
  .portfolio-mosaic { padding: 0 1rem 4rem; gap: 0.9rem; scroll-padding-left: 1rem; }
  .p-card { flex: 0 0 78%; }
  .contact-invite { padding: 4.5rem 1.5rem; }
  footer { padding: 2rem; }
  .hero-content { left: 1.5rem; bottom: 3rem; }
  .scroll-indicator { display: none; }
}
