/* ============================================
   CARA ARTISAN COLLECTIVE — Stylesheet
   ============================================ */
:root {
  --cream: #F5F0E8;
  --brown: #110802;
  --espresso: #110802;
  --sand: #E8E2D9;
  --light-brown: #C4A882;
  --contact-brown: #1E120F;
  --serif: 'Cormorant Garamond', serif;
  --sans: 'Jost', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--espresso);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
em { font-style: italic; color: var(--light-brown); }

/* ============ NAV ============ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  display: flex; justify-content: flex-end; align-items: center;
  padding: 1.6rem 3.5rem; mix-blend-mode: difference;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}
.site-nav.is-in { opacity: 1; pointer-events: auto; }
.nav-links { display: flex; gap: 2.4rem; list-style: none; }
.nav-links a {
  font-size: 0.7rem; font-weight: 300; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--cream); text-decoration: none;
  opacity: 0.75; transition: opacity 0.25s;
}
.nav-links a:hover { opacity: 1; }

/* ============ HERO — full portrait video, scroll-scrubbed as you move through it ============ */
.hero {
  position: relative;
  width: 100%;
  background: var(--espresso);
}
.hero-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 566 / 1440;   /* reserves correct portrait height immediately, no collapse while loading */
}
.hero-tint {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(15,8,3,0.4) 100%);
}
.hero-stage {
  position: absolute;
  z-index: 2;
  width: 40%;
  padding: 2rem;
  opacity: 0;
  transform: translateY(28px);
  will-change: opacity, transform;
}
.hero-stage--1 { top: 6%;  right: 5%; }

/* stage 1 is repurposed as a centered logo-build moment */
.hero-stage--centered {
  position: fixed;
  width: 100%;
  left: 0;
  right: auto;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}
.hero-stage--centered .eyebrow {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.9s ease, transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.hero-stage--centered .eyebrow.is-in { opacity: 0.85; }

/* the merged What We Do block — fixed bottom-left, fades in as one group */
.whatwedo-block {
  position: absolute;
  z-index: 2;
  left: 5%;
  bottom: 3%;
  width: 38%;
  max-width: 460px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px);
  transition: opacity 1s ease, transform 1s cubic-bezier(0.16,1,0.3,1);
}
.whatwedo-block.is-in { opacity: 1; pointer-events: auto; transform: translateY(0); }
.whatwedo-block .section-label { margin-bottom: 1.4rem; }
.whatwedo-block .hero-pillar { margin-bottom: 1.3rem; }
.whatwedo-block .hero-pillar:last-child { margin-bottom: 0; }
.whatwedo-block .hero-pillar-title { font-size: clamp(1.8rem, 2.5vw, 2.5rem); margin-bottom: 0.35rem; }
.whatwedo-block .hero-pillar-body { font-size: clamp(0.86rem, 1.05vw, 1rem); max-width: 400px; }

@media (max-width: 900px) {
  .whatwedo-block { width: 84%; max-width: none; left: 50%; transform: translateX(-50%) translateY(24px); bottom: 4%; text-align: center; }
  .whatwedo-block.is-in { transform: translateX(-50%) translateY(0); }
}
.hero-headline.hero-headline--centered, .hero-subhead.hero-subhead--centered {
  max-width: 640px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.hero-headline.hero-headline--centered.is-in, .hero-subhead.hero-subhead--centered.is-in {
  opacity: 1;
  transform: translateY(0);
}
.hero-headline--centered { margin-top: 2.2rem; }

/* ============ LOGO-BUILD ANIMATION ============ */
.logo-build {
  position: relative;
  width: clamp(320px, 42vw, 620px);
  aspect-ratio: 792 / 612;
}
.lb-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.lb-layer svg { width: 100%; height: 100%; display: block; }
.lb-layer path, .lb-layer circle { fill: var(--cream); }

.lb-c    { opacity: 0; transform: scale(0.92); will-change: opacity, transform; }
.lb-ara  { opacity: 0; transform: translateY(10px); clip-path: inset(0px 100% 0px 0px); will-change: opacity, transform, clip-path; }

.lb-wordmark {
  position: absolute;
  left: 41.3%;
  top: 56.4%;
  font-family: var(--sans);
  font-size: clamp(0.6rem, 0.95vw, 0.85rem);
  font-weight: 300;
  letter-spacing: 0.32em;
  color: var(--cream);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-14px);
}
@media (max-width: 900px) {
}

.eyebrow {
  font-size: 0.6rem; font-weight: 200; letter-spacing: 0.4em;
  text-transform: uppercase; color: var(--light-brown); opacity: 0.85; margin-bottom: 1.8rem;
}
.hero-logo { width: clamp(200px, 21vw, 320px); margin-bottom: 2rem; display: block; }
.hero-stage--1.is-centered .hero-logo { margin-left: auto; margin-right: 0; }
.hero-headline {
  font-family: var(--serif); font-size: clamp(1.5rem, 2.8vw, 2.7rem);
  font-weight: 300; line-height: 1.25; color: var(--cream); margin-bottom: 0.8rem; max-width: 100%;
}
.hero-subhead {
  font-family: var(--serif); font-style: italic; font-size: clamp(0.9rem, 1.2vw, 1.15rem);
  color: var(--light-brown); opacity: 0.85;
}
.section-label {
  font-size: 0.63rem; font-weight: 300; letter-spacing: 0.36em;
  text-transform: uppercase; color: var(--light-brown); opacity: 0.6; margin-bottom: 1rem;
}
.section-label--dark-bg { color: var(--light-brown); opacity: 0.8; padding: 0 4rem; }

.hero-pillar { margin-bottom: 1.6rem; }
.hero-pillar:last-child { margin-bottom: 0; }
.hero-pillar-title {
  font-family: var(--serif); font-size: clamp(1.6rem, 2.3vw, 2.3rem);
  font-weight: 300; font-style: italic; color: var(--cream); margin-bottom: 0.4rem;
}
.hero-pillar-body {
  font-size: clamp(0.72rem, 0.9vw, 0.85rem); line-height: 1.8;
  color: var(--cream); opacity: 0.7; max-width: 400px;
}
.hero-scroll-cue {
  position: absolute; bottom: 4vh; left: 50%; transform: translateX(-50%); z-index: 3;
  display: flex; align-items: center; gap: 0.6rem;
}
.hero-scroll-cue span { font-size: 0.58rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--cream); opacity: 0.4; }
.hero-scroll-cue::after { content: ''; display: block; width: 22px; height: 0.5px; background: var(--cream); opacity: 0.4; }

/* ============ TEXT ⇄ SLIDER HOVER SWAP (Space / About) ============ */
.text-strip-section {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 7rem 6vw 4rem;
  text-align: center;
  background: var(--espresso);
  overflow: hidden;
}
.text-strip-section .section-label { margin-bottom: 2rem; }

.hover-swap {
  position: relative;
  width: 100%;
  max-width: 760px;
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22'><circle cx='11' cy='11' r='7' fill='none' stroke='%23F5F0E8' stroke-width='1.4'/></svg>") 11 11, pointer;
}
.hs-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* the divider line — resting state is a thin centered rule between
   headline and body; on hover it widens to full-bleed, then opens
   vertically to reveal the filmstrip; reverses in the opposite order.
   The outer "bleed" wrapper breaks out to true viewport width once,
   statically; the inner line just animates its own width/height within
   that, staying centered via flex the whole time — no conflicting
   centering math. */
/* the divider line — resting state is a thin centered rule between
   headline and body; on hover it widens to full-bleed, then opens
   vertically to reveal the filmstrip; reverses in the opposite order.
   align-self:flex-start opts this element OUT of the parent's own
   align-items:center, so its static position starts flush-left —
   otherwise the flex-centering and the left/transform centering below
   would stack and push it off-center. */
.hs-slider {
  align-self: flex-start;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 1px;
  margin: 1.6rem 0;
  overflow: hidden;
  background: rgba(245, 240, 232, 0.3);
  transition: width 0.55s cubic-bezier(0.65,0,0.35,1),
              height 0.55s cubic-bezier(0.65,0,0.35,1),
              background 0.4s ease;
}
.hs-slider.is-w-open {
  width: 100vw;
}
.hs-slider.is-h-open {
  height: 36vh;
  background: transparent;
}

.ts-strip-track {
  display: flex; gap: 0.8rem; height: 100%; align-items: center;
  width: 100vw;
  padding: 0 4vw;
  will-change: transform;
}
.ts-item {
  position: relative;
  flex-shrink: 0; height: 100%; aspect-ratio: 3/2; overflow: hidden; border-radius: 2px; background: #1a1a1a;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.ts-item::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--brown);
  opacity: 0.32;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.ts-item img { width: 100%; height: 100%; object-fit: cover; }
.ts-item--tattoo { aspect-ratio: 3/4; }

/* staggered reveal — each image settles in slightly after the one before it,
   only once the box has finished opening vertically */
.hs-slider.is-h-open .ts-item { opacity: 1; transform: translateY(0); }
.ts-item:nth-child(1) { transition-delay: 0.05s; }
.ts-item:nth-child(2) { transition-delay: 0.11s; }
.ts-item:nth-child(3) { transition-delay: 0.17s; }
.ts-item:nth-child(4) { transition-delay: 0.23s; }
.ts-item:nth-child(5) { transition-delay: 0.29s; }
.ts-item:nth-child(n+6) { transition-delay: 0.34s; }

.reveal-headline {
  font-family: var(--serif); font-weight: 300; line-height: 1.25; color: var(--cream); margin-bottom: 1.2rem;
}
.space-h { font-size: clamp(1.6rem, 2.8vw, 2.4rem); }
.about-h { font-size: clamp(2.2rem, 4vw, 3.2rem); }
.reveal-body {
  font-size: 0.88rem; line-height: 1.9; color: var(--cream); opacity: 0.7; max-width: 620px; margin: 0 auto;
}
.reveal-footnote { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--light-brown); opacity: 0.85; margin-top: 1.2rem; }

.reveal-footer {
  position: relative;
  margin-top: 3rem;
  text-align: center;
  width: 100%;
}
.reveal-address { font-family: var(--serif); font-style: italic; font-size: 0.95rem; color: var(--light-brown); opacity: 0.75; margin-bottom: 1.4rem; }

.btn {
  display: inline-block; width: fit-content; font-size: 0.67rem;
  letter-spacing: 0.28em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; padding: 0.95rem 2.2rem; transition: all 0.3s;
}
.btn--outline { color: var(--cream); border: 0.5px solid rgba(245,240,232,0.28); background: transparent; }
.btn--outline:hover { background: rgba(245,240,232,0.08); }
.btn--dark { color: var(--cream); background: var(--espresso); border: none; }
.btn--dark:hover { opacity: 0.85; }

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 1.5rem; }
.tag {
  font-size: 0.61rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--light-brown); border: 0.5px solid rgba(196,168,130,0.4); padding: 0.4rem 1rem; opacity: 0.8;
}

/* ============ PROJECTS ============ */
.projects { background: var(--espresso); padding: 6rem 0; }
.project-row {
  display: grid; grid-template-columns: 70px 1fr 24px; align-items: center;
  gap: 1.5rem; padding: 2.2rem 4rem; border-top: 0.5px solid rgba(245,240,232,0.08);
  text-decoration: none; transition: opacity 0.25s;
}
.project-row:hover { opacity: 0.7; }
.project-row:last-child { border-bottom: 0.5px solid rgba(245,240,232,0.08); }
.project-row--muted { opacity: 0.3; cursor: default; }
.project-num { font-family: var(--serif); font-size: 0.8rem; color: var(--light-brown); opacity: 0.75; letter-spacing: 0.12em; }
.project-info { display: flex; flex-direction: column; gap: 0.25rem; }
.project-name { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 300; color: var(--cream); }
.project-sub { font-size: 0.63rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--light-brown); opacity: 0.75; }
.project-arrow { color: rgba(245,240,232,0.2); font-size: 1rem; }

/* Through the Lens — a project row that opens into a hover-reveal filmstrip,
   left-aligned like the other project rows, using the same divider-line
   mechanic as The Space / About */
.project-reveal {
  border-top: 0.5px solid rgba(245,240,232,0.08);
  display: flex; flex-direction: column;
  padding-top: 0.5rem;
}
.project-row--reveal { border-top: none; cursor: default; }
.project-row--reveal:hover { opacity: 1; }
a.project-row--reveal { cursor: pointer; }
a.project-row--reveal:hover { opacity: 0.7; }
.project-reveal .hs-slider {
  position: static;
  left: auto;
  transform: none;
  align-self: flex-start;
  margin: 0 0 0 4rem;
  width: 220px;
}
.project-reveal .hs-slider.is-w-open {
  width: calc(100vw - 4rem);
}
.project-reveal .hs-slider.is-h-open { height: 34vh; }

/* natural, uncropped aspect ratio — width follows each image's own ratio
   at a fixed strip height, instead of forcing a uniform crop box */
.ts-item--natural {
  position: relative;
  flex-shrink: 0; height: 100%; overflow: hidden; border-radius: 2px; background: #1a1a1a;
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.ts-item--natural::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--brown);
  opacity: 0.32;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.hs-slider.is-h-open .ts-item--natural { opacity: 1; transform: translateY(0); }
.ts-item--natural img { width: auto; height: 100%; display: block; }


/* ============ CONTACT ============ */
.contact { background: var(--contact-brown); color: var(--cream); padding: 7rem 4rem; }
.contact-dept { margin-bottom: 1.8rem; padding-bottom: 1.8rem; border-bottom: 0.5px solid rgba(245,240,232,0.14); }
.contact-dept:last-of-type { border-bottom: none; }
.contact-dept-title {
  font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 1.15rem;
  color: var(--light-brown); margin-bottom: 0.5rem;
}
.contact-dept-body { font-size: 0.82rem; line-height: 1.8; color: var(--cream); opacity: 0.68; max-width: 420px; }
.contact-dept-body a { color: var(--light-brown); opacity: 1; text-decoration: none; border-bottom: 0.5px solid rgba(196,168,130,0.45); }
.contact-dept-body a:hover { border-bottom-color: var(--light-brown); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; max-width: 1200px; margin: 0 auto; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 3rem; align-items: stretch; } }
.contact-headline { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 300; line-height: 1.25; color: var(--cream); margin-bottom: 3rem; }
.contact-headline em { color: var(--light-brown); }
.contact-item { margin-bottom: 1.7rem; }
.contact-label { font-size: 0.6rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--light-brown); opacity: 0.55; margin-bottom: 0.35rem; }
.contact-value { font-family: var(--serif); font-size: 1.05rem; color: var(--cream); opacity: 0.8; text-decoration: none; display: inline-block; }
.contact-value--italic { font-style: italic; }
a.contact-value:hover { opacity: 1; color: var(--light-brown); }
.contact-form { display: flex; flex-direction: column; padding-top: 0.5rem; }
.contact-right { display: flex; flex-direction: column; margin-top: 152px; }
@media (max-width: 900px) { .contact-right { margin-top: 0; } }
.contact-dept--right { margin-bottom: 2.2rem; padding-bottom: 0; border-bottom: none; }
.form-label { font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream); opacity: 0.5; margin: 1.3rem 0 0.4rem; }
.form-label:first-child { margin-top: 0; }
.form-input {
  width: 100%; background: transparent; border: none; border-bottom: 0.5px solid rgba(245,240,232,0.25);
  padding: 0.6rem 0; font-family: var(--sans); font-size: 0.88rem; font-weight: 300;
  color: var(--cream); outline: none; transition: border-color 0.25s; resize: none;
}
.form-input:focus { border-bottom-color: var(--light-brown); }
.form-input::placeholder { opacity: 0.35; color: var(--cream); }
textarea.form-input { font-family: var(--sans); line-height: 1.6; padding-top: 0.7rem; }
.contact-form .btn { margin-top: 2.4rem; align-self: flex-start; }
.contact-form .btn--dark { background: var(--cream); color: var(--espresso); }
.contact-form .btn--dark:hover { opacity: 0.88; }

/* ============ FOOTER ============ */
.site-footer { background: var(--espresso); padding: 2.5rem 4rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-name {
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.5rem); color: var(--cream); opacity: 0.75;
  letter-spacing: 0.02em;
}
.footer-links { display: flex; gap: 2rem; }
.footer-links a { font-size: 0.63rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(245,240,232,0.35); text-decoration: none; }
.footer-links a:hover { color: var(--cream); }
.footer-copy { font-size: 0.6rem; color: rgba(245,240,232,0.25); letter-spacing: 0.08em; }

/* ============ MOBILE ============ */
@media (max-width: 760px) {
  .site-nav { padding: 1.2rem 1.5rem; }
  .nav-links { gap: 1.2rem; }
  .nav-links a { font-size: 0.61rem; }
  .text-strip-section { padding: 4.5rem 1.8rem 3rem; min-height: auto; }
  .hs-slider.is-h-open { height: 26vh; }
  .project-row { padding: 1.6rem 1.8rem; grid-template-columns: 40px 1fr 20px; }
  .contact { padding: 4.5rem 1.8rem; }
  .site-footer { flex-direction: column; text-align: center; padding: 2rem 1.8rem; }
}
