/* ═══════════════════════════════════════
   WORK — Page-Specific Styles
   work/index.html
═══════════════════════════════════════ */


/* ═══════════════════════════════════════
   HERO — THE TRIPTYCH
   Three panels hint at the breadth of work
   before the content demands attention.
═══════════════════════════════════════ */
.work-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: var(--deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ── Triptych Background ── */
.work-hero-triptych {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3px;
}

.work-hero-panel {
  position: relative;
  overflow: hidden;
}

.work-hero-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.12);
  animation: panelReveal 2.8s var(--ease-out-expo) forwards;
}

.work-hero-panel:nth-child(1) img { animation-delay: 0.1s; object-position: center 30%; }
.work-hero-panel:nth-child(2) img { animation-delay: 0.3s; object-position: center 40%; }
.work-hero-panel:nth-child(3) img { animation-delay: 0.5s; object-position: center 35%; }

@keyframes panelReveal {
  to { opacity: 0.5; transform: scale(1); }
}

/* Dark overlay on triptych — vignette for copy legibility, softened */
.work-hero-triptych::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 45%, rgba(26,26,26,0.22) 0%, rgba(26,26,26,0.68) 100%),
    linear-gradient(to top, var(--deep) 0%, transparent 32%);
  z-index: 1;
  pointer-events: none;
}

/* Accent bleed in the gaps between panels */
.work-hero-panel::after {
  content: '';
  position: absolute;
  top: 0;
  right: -1.5px;
  width: 3px;
  height: 100%;
  background: rgba(255, 76, 116, 0.08);
  z-index: 2;
}

.work-hero-panel:last-child::after { display: none; }


/* ── Content ── */
.work-hero-content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 2rem;
}

/* ── Eyebrow ── */
.work-hero-eyebrow {
  --eyebrow-line-width: 40px;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.5s forwards;
}

/* ── Title — line-by-line reveal ── */
.work-hero-title {
  font-family: var(--display);
  font-size: var(--h1);
  font-weight: 400;
  line-height: 1.05;
  color: var(--paper);
  margin: 0;
}

.work-hero-title em {
  font-style: italic;
  color: var(--accent);
}

.work-title-line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  animation: titleLineIn 1.2s var(--ease-out-expo) forwards;
}

.work-title-line:nth-child(1) { animation-delay: 0.8s; }
.work-title-line:nth-child(2) { animation-delay: 1.0s; }
.work-title-line:nth-child(3) { animation-delay: 1.2s; }

@keyframes titleLineIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Subtitle ── */
.work-hero-sub {
  font-family: var(--body);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 2rem 0 0;
  opacity: 0;
  animation: fadeUp 0.8s ease 1.8s forwards;
}

/* ── Pillar Quick-Nav ── */
.work-hero-pillars {
  display: flex;
  align-items: center;
  margin-top: 3rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 2.2s forwards;
}

.work-hero-pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  padding: 1rem 2.5rem;
  position: relative;
}

/* Vertical separator between pillar links */
.work-hero-pillar::after {
  content: '';
  position: absolute;
  right: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: rgba(247, 245, 242, 0.15);
}

.work-hero-pillar:last-child::after { display: none; }

.work-pillar-num {
  font-family: var(--body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--accent);
  opacity: 0.6;
  margin-bottom: 0.4rem;
  transition: opacity 0.3s ease;
}

.work-pillar-name {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 400;
  font-style: italic;
  color: var(--paper);
  transition: color 0.3s ease;
}

.work-hero-pillar:hover .work-pillar-num { opacity: 1; }
.work-hero-pillar:hover .work-pillar-name { color: var(--accent); }


/* ── Scroll CTA ── */
.work-hero-scroll {
  position: absolute;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 3s forwards;
  text-decoration: none;
  cursor: pointer;
}

.work-hero-scroll span {
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  position: relative;
  padding-bottom: 3px;
  transition: color 0.4s ease;
}

.work-hero-scroll span::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s var(--ease-out-expo);
}

.work-hero-scroll:hover span { color: var(--paper); }
.work-hero-scroll:hover span::after { width: 100%; }

.work-hero > .scroll-line-v {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  z-index: 5;
  opacity: 0;
  animation: fadeUp 0.4s ease 3.4s forwards, scrollPulseDown 2s ease-in-out 3.8s infinite;
}


/* ═══════════════════════════════════════
   PILLARS — GRID & CARDS
═══════════════════════════════════════ */
.about-pillars {
  position: relative;
  background: var(--paper);
  padding: var(--space-lg) var(--space-lg) 4rem;
}

.about-pillars .pillar {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  min-height: 520px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

.about-pillars .pillar:last-child {
  margin-bottom: 0;
}

.about-pillars .pillar:nth-child(even) { direction: rtl; }
.about-pillars .pillar:nth-child(even) > * { direction: ltr; }


/* ── Pillar Visual ── */
.pillar-visual {
  position: relative;
  overflow: hidden;
}

.pillar-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  --parallax-y: 0px;
  transform: scale(1.08) translateY(var(--parallax-y));
  transition: transform 1.2s var(--ease-out-expo);
}

.pillar-project:hover img {
  transform: scale(1.14) translateY(var(--parallax-y));
}

.pillar-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(26,26,26,0.15) 0%, transparent 30%);
  pointer-events: none;
}

.about-pillars .pillar:nth-child(even) .pillar-visual::after {
  background: linear-gradient(to left, rgba(26,26,26,0.15) 0%, transparent 30%);
}


/* ── Featured Project Overlay ── */
.pillar-project {
  display: block;
  text-decoration: none;
  cursor: pointer;
}

.pillar-project-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(10,10,10,0.88) 0%, rgba(10,10,10,0.1) 50%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem;
  transition: background 0.5s ease;
}

.pillar-project:hover .pillar-project-overlay {
  background: linear-gradient(to top, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.2) 60%);
}

.pillar-project-eyebrow {
  font-family: var(--body);
  font-size: var(--eyebrow-size);
  font-weight: var(--eyebrow-weight);
  letter-spacing: var(--eyebrow-spacing);
  text-transform: uppercase;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  align-self: flex-start;
}

.pillar-project-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.pillar-project-client {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.pillar-project-title {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 400;
  font-style: italic;
  color: var(--paper);
  line-height: 1.2;
  margin: 0 0 1rem;
}

.pillar-project-brief {
  font-family: var(--body);
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(245,240,232,0.82);
  line-height: 1.65;
  max-width: 360px;
}

.pillar-project-cta {
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 1.2rem;
  position: relative;
  display: inline-block;
  align-self: flex-start;
}

.pillar-project-cta::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s var(--ease-out-expo);
}

.pillar-project:hover .pillar-project-cta::after {
  width: 100%;
}


/* ── Pillar Content ── */
.pillar-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-xl) var(--space-xl) var(--space-xl) 6rem;
  position: relative;
}

.about-pillars .pillar:nth-child(odd) .pillar-content { background: var(--deep); }
.about-pillars .pillar:nth-child(even) .pillar-content { background: var(--ink); }

.about-pillars .pillar-number {
  font-family: var(--display);
  font-size: 10rem;
  font-weight: 400;
  line-height: 1;
  position: absolute;
  top: 1.5rem;
  right: 2.5rem;
  color: rgba(255,255,255,0.03);
  pointer-events: none;
}

.pillar-label {
  font-family: var(--body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pillar-label::before {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}

.about-pillars .pillar-title {
  font-family: var(--display);
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 400;
  font-style: normal;
  color: var(--paper);
  line-height: 1;
  margin-bottom: 2rem;
}

.about-pillars .pillar-desc {
  font-family: var(--body);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(247,245,242,0.85);
  max-width: 400px;
}


/* ── Pillar Lists ── */
.about-pillars .pillar-content ul {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}

.about-pillars .pillar-content li {
  font-family: var(--body);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(247,245,242,0.85);
  padding-left: 1.2em;
  position: relative;
}

.about-pillars .pillar-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}


/* ── Pillar CTA — Liquid Glass Fill ── */
.pillar-cta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.4rem;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  padding: 0.6rem 0;
  align-self: flex-start;
}

.pillar-cta-text {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 400;
  font-style: italic;
  color: var(--paper);
  display: inline-flex;
  overflow: hidden;
  position: relative;
}

.pillar-cta-text .char {
  display: inline-block;
  position: relative;
  color: var(--paper);
  transform-origin: center bottom;
}

.pillar-cta-text .char-clone {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  color: var(--accent);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pillar-cta-text .char-clone .char {
  color: var(--accent);
  transform-origin: center bottom;
}

.pillar-cta:hover .pillar-cta-text .char-clone {
  clip-path: inset(0 0 0 0);
}

.pillar-cta-arrow {
  display: inline-flex;
  align-items: center;
  width: 40px;
  overflow: hidden;
  position: relative;
}

.pillar-cta-arrow svg {
  width: 40px;
  height: 12px;
  flex-shrink: 0;
  transform: translateX(-100%);
  opacity: 0;
  transition: transform 0.4s var(--ease-out-expo), opacity 0.3s ease;
}

.pillar-cta-arrow svg line,
.pillar-cta-arrow svg polyline {
  stroke: var(--accent);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pillar-cta:hover .pillar-cta-arrow svg {
  transform: translateX(0);
  opacity: 1;
}

.pillar-cta::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s var(--ease-out-expo);
}

.pillar-cta:hover::after { width: 100%; }


/* ═══════════════════════════════════════
   THE OVERLAP — POSITIONING STATEMENT
═══════════════════════════════════════ */
.overlap {
  padding: var(--space-3xl) var(--space-xl);
  background: var(--paper);
  position: relative;
  text-align: center;
  overflow: hidden;
}

.overlap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(10,10,10,0.08), transparent);
}

.overlap-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.overlap-mark {
  font-family: var(--display);
  font-size: 14rem;
  color: rgba(255,76,116,0.07);
  position: absolute;
  top: -5rem;
  left: 50%;
  transform: translateX(-50%);
  line-height: 1;
  pointer-events: none;
}

.overlap-text {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink);
  position: relative;
  z-index: 1;
}

.overlap-text em {
  font-style: italic;
  color: var(--accent-on-light);
}

.overlap-sub {
  display: block;
  margin-top: 2rem;
  font-family: var(--body);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--muted);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}


/* How we work — uses the shared .split-section pattern with defaults.
   See shared.css for the base rules. */


/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 900px) {
  /* Hero */
  .work-hero-triptych {
    grid-template-columns: 1fr;
  }

  .work-hero-panel:nth-child(1),
  .work-hero-panel:nth-child(3) {
    display: none;
  }

  .work-hero-panel::after { display: none; }

  .work-hero-pillar {
    padding: 0.75rem 1.5rem;
  }

  /* Pillars */
  .about-pillars {
    padding: 2rem 1.5rem 3rem;
  }

  .about-pillars .pillar {
    grid-template-columns: 1fr;
    min-height: auto;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-md);
  }

  .about-pillars .pillar:nth-child(even) { direction: ltr; }

  .pillar-visual {
    height: 50vh;
    min-height: 300px;
    border-radius: 6px 6px 0 0;
  }

  .pillar-content { padding: 4rem 2rem; }
  .about-pillars .pillar-number { font-size: 6rem; }
  .pillar-cta { margin-top: 2rem; }
  .pillar-cta-text { font-size: 1.3rem; }

  /* Overlap */
  .overlap { padding: var(--space-xl) 2rem; }

  /* HWW uses shared .split-section mobile rules */
}

@media (max-width: 600px) {
  .work-hero-title {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
  }

  .work-hero-sub {
    font-size: 0.95rem;
    padding: 0 0.5rem;
  }

  .work-hero-pillars {
    flex-direction: column;
    gap: 0.25rem;
  }

  .work-hero-pillar::after { display: none; }

  .work-hero-pillar {
    flex-direction: row;
    gap: 0.8rem;
    padding: 0.4rem 1rem;
  }

  .work-pillar-num {
    margin-bottom: 0;
  }

  .pillar-visual { height: 40vh; min-height: 250px; }
}
