/* ============================================================
   HOME (landing) page layout  ·  home.css
   Depends on base.css for tokens + shared components.
   ============================================================ */

.about__title, .contact__title {
  font-family: var(--ff-display); font-weight: 700;
  font-size: clamp(2.6rem, 9vw, 7rem); line-height: 0.92; letter-spacing: -0.03em;
}
.about__title em { font-family: var(--ff-serif); font-style: italic; font-weight: 400; color: var(--accent); }

/* ---------------- HERO ---------------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 8rem var(--pad) clamp(2rem, 5vw, 3.5rem);
  overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.78rem; letter-spacing: 0.04em; color: var(--cream-dim); margin-bottom: clamp(1.5rem,4vw,2.5rem);
}
.hero__eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(var(--accent-rgb),.5)} 70%{box-shadow:0 0 0 12px rgba(var(--accent-rgb),0)} 100%{box-shadow:0 0 0 0 rgba(var(--accent-rgb),0)} }

.hero__title {
  font-family: var(--ff-display); font-weight: 700;
  font-size: clamp(3.4rem, 13vw, 13rem); line-height: 0.86; letter-spacing: -0.04em;
}

.hero__bottom {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 2rem; margin-top: clamp(2rem, 5vw, 3.5rem);
}
.hero__lede { max-width: 38ch; font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--cream-dim); }
.hero__lede em { font-family: var(--ff-serif); font-style: italic; color: var(--cream); }

.hero__scroll {
  position: absolute; right: var(--pad); bottom: clamp(2rem,5vw,3.5rem); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream-dim);
}
.hero__scroll i { width: 1px; height: 46px; background: linear-gradient(var(--accent), transparent); }
@media (max-width: 720px) { .hero__scroll { display: none; } }

/* ---------------- FEATURED ---------------- */
.featured { padding: clamp(5rem, 12vw, 9rem) 0; }
.featured__list { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.5vw, 2.2rem); padding: 0 var(--pad); }
.feat { display: block; }
.feat:nth-child(odd)  { margin-top: 0; }
.feat:nth-child(even) { margin-top: clamp(0rem, 8vw, 6rem); }
.feat__media {
  position: relative; overflow: hidden; border-radius: 6px;
  aspect-ratio: 4 / 3; background: var(--ink-soft);
}
.feat__media img { transform: scale(1.04); transition: transform 1s var(--ease), filter 1s var(--ease); filter: grayscale(0.25); }
.feat:hover .feat__media img { transform: scale(1.08); filter: grayscale(0); }
.feat__media::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11,11,12,.55));
  opacity: 0; transition: opacity .5s;
}
.feat:hover .feat__media::after { opacity: 1; }
.feat__meta { display: flex; align-items: baseline; gap: 1rem; padding: 1.1rem 0.2rem 0; }
.feat__title { font-family: var(--ff-display); font-weight: 700; font-size: clamp(1.5rem, 3.4vw, 2.6rem); letter-spacing: -0.02em; }
.feat__tags { display: flex; gap: 0.5rem; margin-left: auto; }
.feat__tags span { font-size: 0.7rem; letter-spacing: 0.04em; color: var(--cream-dim); border: 1px solid var(--line); border-radius: 100px; padding: 0.25rem 0.7rem; }
.feat__year { font-family: var(--ff-serif); font-style: italic; color: var(--accent); font-size: 1.1rem; }

/* ---------------- ABOUT ---------------- */
.about { padding: clamp(4rem, 10vw, 8rem) var(--pad); }
.about__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about__body p em { display: inline-block; }
.about__quotes em { color: var(--cream); }
.about__media { border-radius: 6px; overflow: hidden; aspect-ratio: 4/5; position: relative; }
.about__media img { transition: transform .6s var(--ease); }
.about__media:hover img { transform: scale(1.045); }
.about__body { display: flex; flex-direction: column; gap: 1.4rem; }
.about__title { font-size: clamp(1.9rem, 4.2vw, 3.4rem); line-height: 1; margin-bottom: 0.6rem; }
.about__body p { color: var(--cream-dim); max-width: 52ch; font-size: clamp(1rem,1.2vw,1.08rem); }
.about__body p em { font-family: var(--ff-serif); font-style: italic; color: var(--cream); }
.about__stats { display: flex; gap: clamp(1.5rem, 5vw, 3.5rem); margin-top: 1rem; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat b { font-family: var(--ff-display); font-weight: 700; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.03em; line-height: 1; }
.stat > span { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.03em; margin-top: 0.3rem; }
.stat-plus { color: var(--accent); }

/* ---------------- WORKS GRID ---------------- */
.grid-sec { padding: clamp(4rem, 10vw, 8rem) 0; }
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.8rem, 2vw, 1.6rem); padding: 0 var(--pad); }
.work { position: relative; display: block; }
.work__img { position: relative; overflow: hidden; border-radius: 5px; aspect-ratio: 3/4; background: var(--ink-soft); }
.work__img img { transform: scale(1.05); filter: grayscale(0.5) brightness(0.85); transition: transform .9s var(--ease), filter .6s, opacity .6s; }
.work:hover .work__img img { transform: scale(1); filter: grayscale(0) brightness(1); }
.work__img::after { content: ""; position: absolute; inset: 0; background: rgba(11,11,12,.35); opacity: 1; transition: opacity .5s; }
.work:hover .work__img::after { opacity: 0; }
.work__info {
  position: absolute; left: 0; bottom: 0; z-index: 2; padding: 1rem;
  display: flex; flex-direction: column; gap: 0.1rem;
  opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.work:hover .work__info { opacity: 1; transform: translateY(0); }
.work__info h4 { font-family: var(--ff-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; }
.work__info span { font-size: 0.72rem; color: var(--accent); letter-spacing: 0.05em; text-transform: uppercase; }
.grid-sec__cta { display: flex; justify-content: center; margin-top: clamp(2.5rem, 6vw, 4rem); }

/* ---------------- CONTACT ---------------- */
.contact { padding: clamp(5rem, 12vw, 9rem) var(--pad) clamp(3rem,6vw,5rem); }
.contact__head { margin-bottom: clamp(3rem, 7vw, 5rem); }
.contact__title { margin: 1rem 0 1.4rem; }
.contact__sub { color: var(--cream-dim); max-width: 44ch; }

/* ---------------- HOME RESPONSIVE ---------------- */
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 340px; }
}
@media (max-width: 720px) {
  /* Hero: center the content so the title no longer floats at the bottom
     with a tall empty gap above it on phones. */
  .hero { justify-content: center; min-height: 88svh; padding-top: 6.5rem; padding-bottom: 3.5rem; }
  .hero__bottom { margin-top: 2rem; }
  .featured__list { grid-template-columns: 1fr; }
  .feat:nth-child(even) { margin-top: 0; }
  .works { grid-template-columns: repeat(2, 1fr); }
  .feat__media { aspect-ratio: 4/3; }
  .work__img::after { opacity: 0.45; }
  .work__info { opacity: 1; transform: none; }
  .work__info h4 { font-size: 1.05rem; }
}
@media (max-width: 420px) {
  .feat__meta { flex-wrap: wrap; }
  .feat__tags { margin-left: 0; }
  .work__info { padding: 0.7rem; }
  .work__info h4 { font-size: 0.95rem; }
}

/* ============================================================
   SERVICES — scroll-stack card effect
   ============================================================ */

/* scroll-stack (fwss) */
.fwss { position: relative; background: var(--ink); color: var(--cream); z-index: 1; }
.fwss-heading { position: absolute; top: 0; left: 0; width: 100%; pointer-events: none; z-index: 100; }
.fwss-heading-inner { padding: 40px var(--pad); display: flex; align-items: center; gap: 14px; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cream-dim); pointer-events: auto; }
.fwss-heading-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.fwss-track { position: relative; width: 100%; }
.fwss-card {
  position: relative; width: 100%; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: 110px var(--pad) 70px; will-change: transform, opacity, filter;
  transform-origin: center center; background: var(--ink);
  box-shadow: 0 -40px 80px -20px rgba(0,0,0,0.85);
}
.fwss-card:first-child { box-shadow: none; }
.fwss-card-inner { width: 100%; max-width: 1400px; display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem,5vw,5rem); align-items: stretch; }
.fwss-text { display: flex; flex-direction: column; gap: 1.3rem; justify-content: center; }
.fwss-tag { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.fwss-title { font-family: var(--ff-display); font-size: clamp(2rem,4.5vw,4rem); line-height: 1.04; letter-spacing: -0.02em; font-weight: 700; margin: 0; }
.fwss-desc { font-size: clamp(1rem,1.3vw,1.15rem); line-height: 1.6; color: var(--cream-dim); max-width: 46ch; margin: 0; }
.fwss-cta {
  margin-top: 0.4rem; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cream); text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; width: fit-content; border: 1px solid var(--line); border-radius: 100px;
  padding: 0.8rem 1.5rem; transition: all .35s var(--ease);
}
.fwss-cta:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); gap: 12px; }
.fwss-cta-arrow { transition: transform .3s; }
.fwss-cta:hover .fwss-cta-arrow { transform: translateX(4px); }
.fwss-image { display: flex; height: 100%; min-height: 50svh; border-radius: 14px; overflow: hidden; }
.fwss-image img { width: 100%; height: 100%; object-fit: cover; box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.06) inset; }
@media (max-width: 900px) {
  .fwss-heading { position: relative; }
  .fwss-card { padding: 60px var(--pad); box-shadow: none; }
  .fwss-card-inner { grid-template-columns: 1fr; gap: 1.8rem; }
  .fwss-image { min-height: 0; aspect-ratio: 16/10; }
}

