/* ============================================================
   Home page — 6-section cinematic scroll experience
   ============================================================ */

/* Shared section base */
.home-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

/* Nav starts invisible on home; GSAP fades it in on load */
body.home .site-nav {
  opacity: 0;
}

/* Disabled social links (no href until real URLs are confirmed) */
a[aria-disabled="true"] {
  cursor: default;
  pointer-events: none;
}

/* ============================================================
   S0 — Parallax hero
   ============================================================ */
.s0 {
  background: transparent;
  /* Vanta injects a canvas child with z-index:-1; isolation creates a stacking
     context so the canvas is contained within this section rather than leaking. */
  isolation: isolate;
}

.s0-tags {
  position: absolute;
  top: 90px;
  left: 32px;
}

.s0-tag {
  display: block;
  font-size: 20px;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-transform: uppercase;
  line-height: 2.6;
}

/* TODO: swap .s0-photo-inner for <img> with object-fit: cover once character
   reference imagery is supplied. Remove fixed width/height on .s0-photo. */
.s0-photo {
  position: absolute;
  top: 72px;
  right: 10%;
  width: 260px;
  height: 420px;
  will-change: transform;
}

.s0-photo-inner {
  width: 100%;
  height: 100%;
  background: #dce8f0;
  border: var(--border);
  position: relative;
  --placeholder-color: rgba(55, 90, 118, 0.45);
}

.s0-name {
  position: absolute;
  bottom: 48px;
  left: 32px;
  font-family: var(--font-serif);
  font-size: clamp(72px, 10vw, 128px);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 0.86;
  letter-spacing: -0.02em;
  pointer-events: none;
}

.s0-name-surname {
  display: block;
  color: var(--pink);
}

.s0-scroll-hint {
  position: absolute;
  bottom: 52px;
  right: calc(10% + 32px);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: #221a1e;
  text-transform: uppercase;
  writing-mode: vertical-lr;
}

/* ============================================================
   S1 — Full-screen statement
   ============================================================ */
.s1 {
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.s1-inner {
  max-width: 760px;
  padding: 0 64px;
}

.s1-quote {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.4vw, 28px);
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  line-height: 1.85;
  letter-spacing: 0.01em;
}

.s1-quote em {
  color: var(--pink);
}

/* ============================================================
   S2 — AI Art: scrolling image strip
   ============================================================ */
.s2 {
  background: var(--bg-s2);
}

/* 3D perspective window — items recede toward horizon as they rotate */
.s2-viewport {
  position: absolute;
  top: 58px;
  bottom: 88px;
  left: 0;
  right: 0;
  overflow: hidden;
  z-index: 1;
  perspective: 1100px;
  perspective-origin: 50% 46%;
}

/* The reel — infinite horizontal strip translated by JS */
.s2-reel {
  display: flex;
  height: 100%;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
  will-change: transform;
}

/* Each artwork card */
.s2-card {
  flex-shrink: 0;
  height: 74%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  position: relative;
  will-change: transform;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

.s2-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.s2-card--ph {
  background: #e4ecf4;
  border: 0.5px solid #b8ccd8;
  --placeholder-color: rgba(55, 90, 120, 0.4);
}

/* Edge vignettes fade the reel smoothly into the section background */
.s2-vignette {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 8%;
  z-index: 3;
  pointer-events: none;
}

.s2-vignette--l {
  left: 0;
  background: linear-gradient(to right, rgba(var(--bg-s2-rgb), 0.38) 0%, transparent 100%);
}

.s2-vignette--r {
  right: 0;
  background: linear-gradient(to left, rgba(var(--bg-s2-rgb), 0.38) 0%, transparent 100%);
}

.s2-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 18px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: var(--border);
  background: var(--bg-s2);
  z-index: 2;
}

.s2-nav-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.s2-nav {
  background: none;
  border: 0.5px solid #2a1a2a;
  color: #5a4a52;
  font-size: 12px;
  padding: 5px 10px;
  cursor: pointer;
  font-family: var(--font-sans);
  line-height: 1;
  transition: color 0.2s, border-color 0.2s;
}

.s2-nav:hover {
  color: var(--pink);
  border-color: var(--pink);
}

.s2-count {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #3a2a30;
  min-width: 52px;
  text-align: center;
  font-family: var(--font-sans);
}

.s2-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 22px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: var(--border);
  background: var(--bg-s2);
  z-index: 2;
}

.s2-title {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.6vw, 32px);
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;
  transition: color 0.2s;
}

.s2-title:hover {
  color: var(--pink);
}

.s2-ghost-num {
  font-family: var(--font-serif);
  font-size: clamp(40px, 5vw, 64px);
  color: #180e1a;
  font-weight: 400;
  line-height: 1;
  user-select: none;
}

/* ============================================================
   Shared placeholder labels — PLACEHOLDER text injected via ::after.
   Shared properties live here; per-element tint set via --placeholder-color.
   ============================================================ */
.s0-photo-inner::after,
.s2-card--ph::after,
.s3-image::after,
.s4-image::after {
  content: 'PLACEHOLDER';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--placeholder-color, rgba(55, 90, 118, 0.45));
  text-transform: uppercase;
  font-family: var(--font-sans);
  white-space: nowrap;
}

/* Portrait cards rotate the label 90deg for tall format */
.s2-card--ph::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

/* ============================================================
   S3 — Articles & Essays, staggered text cascade
   ============================================================ */
.s3 {
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
}

.s3-body {
  flex: 1;
  overflow: hidden;
}

.s3-left {
  padding: 64px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 768px) {
  .s3-left {
    border-right: var(--border);
  }
}

.s3-cat-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.s3-rule-line {
  flex: 1;
  height: 0.5px;
  background: #1e1618;
}

.s3-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 64px);
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.02;
  display: flex;
  flex-direction: column;
}

.s3-title-line {
  display: block;
}

.s3-title em {
  color: var(--pink);
  font-style: normal;
}

.s3-excerpt {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.95;
  margin-top: 20px;
  letter-spacing: 0.01em;
  max-width: 380px;
}

.s3-right {
  background: #0d090b;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

/* TODO: replace with <img> when article cover imagery is supplied */
.s3-image {
  width: 72%;
  aspect-ratio: 3 / 4;
  background: #dceae4;
  border: 0.5px solid #aecabc;
  position: relative;
  --placeholder-color: rgba(55, 100, 78, 0.45);
}

.s3-image--photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: none;
  border: none;
}

/* ============================================================
   S4 — Clients & Projects, split-panel entrance
   ============================================================ */
.s4 {
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
}

.s4-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.s4-left {
  width: min(320px, 40vw);
  padding: 64px 32px;
  border-right: var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
}

.s4-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 24px;
  display: block;
}

.s4-client-name {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4.5vw, 60px);
  color: var(--text-secondary);
  line-height: 1.02;
  font-weight: 400;
}

.s4-client-name em {
  display: block;
  font-style: normal;
  color: var(--pink);
}

.s4-scope {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  line-height: 2.1;
  margin-top: 20px;
}

.s4-right {
  flex: 1;
  background: #0c090b;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* TODO: replace with <img> when project imagery is supplied */
.s4-image {
  width: min(340px, 52vw);
  aspect-ratio: 3 / 4;
  background: #ece6da;
  border: 0.5px solid #c8bcaa;
  position: relative;
  --placeholder-color: rgba(105, 85, 60, 0.45);
}

.s4-image--photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: none;
  border: none;
  max-width: none;
  aspect-ratio: unset;
}

/* ============================================================
   S5 — Contact, scramble resolve + line draw
   ============================================================ */
.s5 {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: auto;
}

.s5-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 80px 32px 20px;
}

.s5-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 32px;
  display: block;
}

.s5-email {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4.5vw, 56px);
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.2;
}

.s5-rule {
  height: 0.5px;
  background: var(--pink);
  margin-top: 20px;
  transform: scaleX(0);
  transform-origin: left center;
}

.s5-socials {
  display: flex;
  gap: 36px;
  margin-top: 40px;
}

.s5-soc-link {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
}

.s5-soc-muted {
  color: var(--text-muted);
}

.s5-soc-muted:hover {
  color: var(--text-secondary);
}

.s5-soc-pink {
  color: var(--pink);
}

.s5-soc-pink:hover {
  opacity: 0.7;
}
