/* ==========================================================================
   OFFCUT — Thread Theme · About page
   ========================================================================== */

/* ==========================================================================
   01 · HERO
   ========================================================================== */
.ahero { position: relative; height: 100vh; height: 100svh; min-height: 640px; max-height: 1100px; color: #fff; background: #121211; overflow: hidden; }
.ahero__media { position: absolute; inset: 0; }
.ahero__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) contrast(1.05); transform: scale(1.12); transition: transform 2.4s var(--ease); }
.is-ready .ahero__media img { transform: scale(1.02); }
.ahero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10,10,9,.7), rgba(10,10,9,0) 34%), linear-gradient(to top, rgba(10,10,9,.75), rgba(10,10,9,0) 60%); }
.ahero__in { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-bottom: clamp(32px, 6vh, 64px); }
.ahero__copy .eyebrow { color: rgba(255, 255, 255, .8); margin-bottom: 22px; }
.ahero .line > span { transition-delay: .2s; }
.is-ready.ahero .line > span { transform: none; }
.is-ready.ahero .line:nth-child(2) > span { transition-delay: .3s; }
.ahero__card {
  width: 300px; flex: none;
  display: grid; gap: 14px;
  padding: 18px;
  border-radius: var(--r-m);
  background: rgba(24, 24, 22, .28);
  border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  opacity: 0; transform: translateY(16px);
  transition: opacity 1s var(--ease) .6s, transform 1.2s var(--ease) .6s;
}
.is-ready .ahero__card { opacity: 1; transform: none; }
.ahero__card > .mono { font-size: 10px; color: rgba(255, 255, 255, .7); }
.ahero__card ul { display: grid; gap: 10px; }
.ahero__card li { display: grid; grid-template-columns: 74px 1fr; gap: 10px; align-items: baseline; font-size: 13px; color: rgba(255, 255, 255, .75); padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.ahero__card li b { font-size: 24px; font-weight: 400; letter-spacing: -.04em; color: #fff; }
.ahero__scroll { display: inline-flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 500; }
.ahero__scroll .i { transform: rotate(90deg); transition: transform .4s var(--ease); }
.ahero__scroll:hover .i { transform: rotate(90deg) translateX(4px); }

/* ==========================================================================
   02 · MANIFESTO — scroll-scrubbed words
   ========================================================================== */
.manifesto { padding-block: clamp(96px, 14vw, 200px); position: relative; overflow: hidden; }
.manifesto__in { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; position: relative; }
.manifesto__label { color: var(--mute); padding-top: .9em; }
.manifesto__text { font-size: clamp(1.9rem, 4.2vw, 4.4rem); line-height: 1.08; letter-spacing: -.045em; font-weight: 400; max-width: 22ch; position: relative; z-index: 1; }
.manifesto__text .w { opacity: .14; transition: opacity .35s linear; }
.manifesto__text .w.is-on { opacity: 1; }
.manifesto__text .w--em { font-family: var(--f-serif); font-style: italic; font-size: 1.06em; letter-spacing: -.02em; }
.manifesto__art { position: absolute; right: -2%; bottom: -14%; width: min(34vw, 460px); aspect-ratio: 3 / 4; background: var(--sw-sand); border-radius: var(--r-s); isolation: isolate; z-index: 0; }
.manifesto__art img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; filter: contrast(1.1) brightness(1.06) grayscale(.4); }

/* ==========================================================================
   03 · FACTS
   ========================================================================== */
.facts { border-block: 1px solid var(--line); }
.facts__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fact { display: grid; gap: 12px; align-content: start; padding: clamp(28px, 3.5vw, 48px) 24px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact b { font-weight: 400; font-size: clamp(2.8rem, 5vw, 5.2rem); line-height: .9; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.fact span { color: var(--ink-3); font-size: 14px; max-width: 26ch; }

/* ==========================================================================
   04 · JOURNEY — pinned horizontal scroll
   ========================================================================== */
.journey { position: relative; background: var(--ink); color: #fff; height: var(--jh, 400vh); }
.journey__pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(20px, 3vh, 36px); overflow: hidden; padding-top: var(--head-h); }
.journey__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.journey__head .eyebrow { color: rgba(255, 255, 255, .6); margin-bottom: 14px; }
.journey__head .lede { color: rgba(255, 255, 255, .6); max-width: 38ch; }
.journey__view { overflow: visible; }
.journey__track {
  display: flex; gap: clamp(16px, 2vw, 28px);
  padding-inline: max(var(--gutter), calc((100% - 1560px) / 2));
  will-change: transform;
  transform: translate3d(var(--jx, 0px), 0, 0);
}
.stop { flex: 0 0 auto; display: grid; grid-template-columns: auto clamp(220px, 18vw, 280px); gap: 24px; align-items: end; }
.stop__img { aspect-ratio: 4 / 5; border-radius: var(--r-s); overflow: hidden; background: #222; height: min(50vh, 500px); }   /* width follows the height */
.stop__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.25); transition: transform 1.4s var(--ease); }
.stop:hover .stop__img img { transform: scale(1.04); }
.stop__txt { display: grid; gap: 10px; padding-bottom: 6px; }
.stop__n { font-weight: 400; font-size: clamp(4rem, 7vw, 7.5rem); line-height: .8; letter-spacing: -.07em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .5); }
.stop__txt h3 { font-size: clamp(22px, 2vw, 30px); font-weight: 500; letter-spacing: -.04em; }
.stop__txt .mono { font-size: 10px; color: rgba(255, 255, 255, .55); }
.stop__txt p:last-child { color: rgba(255, 255, 255, .72); font-size: 14px; line-height: 1.55; }
.journey__map { display: grid; gap: 12px; }
.journey__line { height: 2px; background: rgba(255, 255, 255, .14); border-radius: 2px; overflow: hidden; }
.journey__line i { display: block; height: 100%; width: 100%; background: #fff; transform-origin: left; transform: scaleX(var(--jp, 0)); }
.journey__stops { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }

/* ==========================================================================
   05 · PEOPLE
   ========================================================================== */
.people__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.person { position: relative; display: grid; grid-template-rows: auto auto; gap: 14px; isolation: isolate; }
.person::before { content: ""; grid-area: 1 / 1; border-radius: var(--r-s); background: var(--sw); transition: filter .6s var(--ease); }
.person:hover::before { filter: brightness(.95); }
.person__name { grid-area: 1 / 1; align-self: start; justify-self: start; margin: .06em 0 0 .06em; font-weight: 500; font-size: clamp(4.4rem, 9vw, 10rem); line-height: .8; letter-spacing: -.08em; color: var(--ink); pointer-events: none; }
.person img { grid-area: 1 / 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; border-radius: var(--r-s); mix-blend-mode: multiply; filter: contrast(1.12) brightness(1.12) grayscale(.6); clip-path: inset(0 round var(--r-s)); }
.person__txt { display: grid; gap: 2px; font-size: 14px; }
.person__txt b { font-weight: 500; font-size: 16px; letter-spacing: -.02em; }
.person__txt span { color: var(--mute); }
.person__q {
  position: absolute; left: 12px; right: 12px; top: 12px; z-index: 1;
  margin: 0; padding: 14px 16px;
  border-radius: var(--r-m);
  font-family: var(--f-serif); font-style: italic; font-size: 19px; line-height: 1.25;
  background: rgba(244, 242, 238, .7);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid rgba(255, 255, 255, .6);
  opacity: 0; transform: translateY(-8px);
  transition: opacity .45s var(--ease), transform .55s var(--ease);
}
.person:hover .person__q, .person:focus-within .person__q { opacity: 1; transform: none; }

/* ==========================================================================
   06 · PRICING
   ========================================================================== */
.pricing { background: var(--white); }
.pricing__in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.pricing__head { display: grid; gap: 20px; justify-items: start; }
.pricing__head .eyebrow { color: var(--mute); }
.cmp { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: var(--paper-2); }
.cmp label { position: relative; z-index: 1; cursor: pointer; }
.cmp input { position: absolute; opacity: 0; pointer-events: none; }
.cmp span { display: grid; place-items: center; height: 42px; padding: 0 18px; font-size: 13.5px; font-weight: 500; color: var(--ink-3); white-space: nowrap; transition: color .4s; }
.cmp input:checked + span { color: var(--paper); }
.cmp input:focus-visible + span { outline: 1.5px solid var(--ink); border-radius: 999px; }
.cmp i { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--ink); transition: transform .55s var(--ease); }
.cmp:has(label:nth-child(2) input:checked) i { transform: translateX(100%); }

.pricing__chart { display: grid; gap: 22px; }
.stack { display: flex; height: 120px; border-radius: var(--r-m); overflow: hidden; gap: 3px; }
.seg { position: relative; flex: 0 0 var(--w); min-width: 0; background: var(--c); transition: flex-basis 1s var(--ease); display: flex; align-items: flex-end; padding: 10px; overflow: hidden; }
.seg span { font-size: 12px; font-weight: 500; white-space: nowrap; color: var(--t, var(--ink)); opacity: var(--o, 1); transition: opacity .4s; }
.legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.legend li { display: grid; grid-template-columns: 12px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.legend li i { width: 12px; height: 12px; border-radius: 3px; background: var(--c); }
.legend li b { font-weight: 500; font-variant-numeric: tabular-nums; }
.legend li small { display: block; color: var(--mute); font-size: 12px; }
.pricing__foot { color: var(--mute); font-size: 10.5px; }

/* ==========================================================================
   07 · HERITAGE
   ========================================================================== */
.heritage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--sw-sand); }
.heritage__img { position: relative; overflow: hidden; min-height: 640px; }
.heritage__img img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; filter: grayscale(.5) contrast(1.05); }
.heritage__copy { display: grid; gap: 22px; align-content: center; padding: clamp(48px, 7vw, 120px) clamp(24px, 6vw, 110px); }
.heritage__copy .eyebrow { color: var(--ink-3); }
.tl { display: grid; gap: 0; margin-top: 10px; border-top: 1px solid rgba(13, 13, 12, .16); }
.tl li { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid rgba(13, 13, 12, .16); font-size: 14.5px; color: var(--ink-3); line-height: 1.5; }
.tl b { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; color: var(--ink); font-weight: 500; padding-top: 2px; }

/* ==========================================================================
   08 · STUDIO
   ========================================================================== */
.studio__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 110px); align-items: center; }
.studio__imgs { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.studio__imgs figure { border-radius: var(--r-s); overflow: hidden; background: var(--sw-stone); }
.studio__imgs img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.3); }
.studio__a { aspect-ratio: 4 / 5; grid-column: 1 / -1; width: 78%; }
.studio__b { aspect-ratio: 4 / 5; position: absolute !important; right: 0; bottom: -10%; width: 42%; border: 6px solid var(--paper); }
.studio__copy { display: grid; gap: 20px; justify-items: start; }
.studio__copy .eyebrow { color: var(--mute); }
.visit { display: grid; gap: 16px; width: 100%; padding: 22px; border-radius: var(--r-l); background: var(--white); }
.visit__status { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.visit__status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mute-2); }
.visit__status.is-open .dot { background: var(--ok); box-shadow: 0 0 0 0 rgba(47, 125, 79, .5); animation: openPulse 2s infinite; }
@keyframes openPulse { 70% { box-shadow: 0 0 0 7px rgba(47, 125, 79, 0); } }
.visit__status b { font-weight: 500; }
.visit address { font-style: normal; font-size: 18px; letter-spacing: -.02em; line-height: 1.35; }
.hours { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.hours div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.hours dt { color: var(--ink-3); }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; }
.hours div.is-today dt, .hours div.is-today dd { color: var(--ink); font-weight: 600; }
.visit__svc { display: grid; gap: 10px; font-size: 13.5px; color: var(--ink-3); }
.visit__svc li { display: flex; gap: 10px; align-items: center; }
.visit__svc .i { width: 17px; height: 17px; color: var(--ink); }
.visit__ctas { display: flex; flex-wrap: wrap; gap: 8px; }

/* ==========================================================================
   09 · QUOTES
   ========================================================================== */
.quotes { border-top: 1px solid var(--line); padding-block: clamp(80px, 10vw, 150px); }
.quotes__in { display: grid; justify-items: center; gap: 36px; text-align: center; }
.quotes__stage { display: grid; width: 100%; max-width: 1100px; }
.q { grid-area: 1 / 1; display: grid; gap: 22px; opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform 1s var(--ease); pointer-events: none; }
.q.is-on { opacity: 1; transform: none; pointer-events: auto; }
.q blockquote { margin: 0; font-size: clamp(2rem, 4.4vw, 4.4rem); line-height: 1.04; letter-spacing: -.045em; }
.q blockquote em { font-family: var(--f-serif); font-weight: 400; }
.q figcaption { color: var(--mute); }
.quotes__dots { display: flex; gap: 10px; }
.quotes__dots button { width: 56px; height: 20px; display: grid; align-items: center; }
.quotes__dots i { display: block; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; position: relative; }
.quotes__dots i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.quotes__dots .is-on i::after { animation: qbar 6s linear forwards; }
.quotes.is-paused .quotes__dots .is-on i::after { animation-play-state: paused; }
@keyframes qbar { to { transform: scaleX(1); } }

/* ==========================================================================
   10 · CTA
   ========================================================================== */
.acta { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding-block: clamp(80px, 10vw, 140px) clamp(56px, 6vw, 90px); }
.acta__type { overflow: hidden; margin-bottom: clamp(32px, 4vw, 56px); }
.acta__track { display: flex; width: max-content; animation: tick 34s linear infinite; }
.acta__track span { font-weight: 500; font-size: clamp(4rem, 12vw, 13rem); line-height: .9; letter-spacing: -.07em; white-space: nowrap; padding-right: .2em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .35); }
@keyframes tick { to { transform: translateX(-50%); } }
.acta__in { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.acta h2 { max-width: 16ch; }
.acta__ctas { display: flex; gap: 10px; flex-wrap: wrap; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .ahero__card { display: none; }
  .manifesto__in { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .manifesto__label { padding-top: 0; }
  .manifesto__art { width: 44vw; bottom: -10%; opacity: .9; }
  .facts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .people__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing__in, .studio__in { grid-template-columns: minmax(0, 1fr); }
  .heritage { grid-template-columns: minmax(0, 1fr); }
  .heritage__img { min-height: 420px; }
  .studio__imgs { margin-bottom: 40px; }
  /* journey: plain swipe instead of pinned scroll */
  .journey { height: auto !important; padding-block: 80px 56px; }
  .journey__pin { position: static; height: auto; padding-top: 0; gap: 32px; }
  .journey__head { flex-direction: column; align-items: flex-start; }
  .journey__view { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-padding-inline: var(--gutter); }
  .journey__view::-webkit-scrollbar { display: none; }
  .journey__track { transform: none !important; width: max-content; }
  .stop { flex-basis: min(78vw, 440px); grid-template-columns: minmax(0, 1fr); scroll-snap-align: start; }
  .stop__img { height: auto; width: 100%; }
}
@media (max-width: 640px) {
  .ahero__copy .h-display { font-size: clamp(3rem, 15vw, 4.6rem); }
  .manifesto { padding-block: 72px 120px; }
  .manifesto__text { font-size: clamp(1.7rem, 8vw, 2.4rem); }
  .manifesto__art { width: 52vw; right: -6%; }
  .fact { padding: 24px 12px; }
  .fact span { font-size: 12.5px; }
  .people__grid { gap: 24px 10px; }
  .person__name { font-size: 18vw; }
  .person__q { font-size: 16px; padding: 10px 12px; }
  .stack { height: 90px; }
  .legend { grid-template-columns: minmax(0, 1fr); }
  .cmp span { padding: 0 12px; font-size: 12.5px; }
  .tl li { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
  .studio__a { width: 82%; }
  .acta__in { flex-direction: column; align-items: flex-start; }
}
@media (hover: none) {
  .person__q { position: static; opacity: 1; transform: none; background: transparent; border: 0; padding: 0; backdrop-filter: none; -webkit-backdrop-filter: none; font-size: 16px; color: var(--ink-3); }
}
@media (prefers-reduced-motion: reduce) {
  .journey { height: auto !important; }
  .journey__pin { position: static; height: auto; padding-block: 80px; }
  .journey__view { overflow-x: auto; }
  .journey__track { transform: none !important; }
  .manifesto__text .w { opacity: 1; }
}
