/* What We Do and Work With Us. Shared parts (nav, pills, headline, wall, form, footer) live in style.css. */
main > section, main > footer { position: relative; }
main > :nth-child(1) { z-index: 1; } main > :nth-child(2) { z-index: 2; } main > :nth-child(3) { z-index: 3; } main > :nth-child(4) { z-index: 4; }
main > :nth-child(5) { z-index: 5; } main > :nth-child(6) { z-index: 6; } main > :nth-child(7) { z-index: 7; } main > :nth-child(8) { z-index: 8; }
main > :nth-child(9) { z-index: 9; } main > :nth-child(10) { z-index: 10; }

.leaving .veil { opacity: 1 !important; transition: opacity .3s cubic-bezier(.45, 0, .2, 1) !important; }

/* ---------- hero ---------- */
.p-hero { height: 175vh; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--ox) var(--oy); transform-origin: var(--ox) var(--oy); will-change: transform; }
.hero-bottom-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 38%, rgb(0 0 0 / 26%) 68%, rgb(0 0 0 / 68%) 100%);
  pointer-events: none;
}
.hero-shade { position: absolute; inset: 0; background: #0b0805; opacity: 0; will-change: opacity; pointer-events: none; }
.hero-copy { position: absolute; z-index: 3; will-change: transform, opacity; }
.hero-copy > * { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.ready .hero-copy > * { opacity: 1; transform: none; }
.ready .hero-copy > :nth-child(2) { transition-delay: .08s; } .ready .hero-copy > :nth-child(3) { transition-delay: .16s; }
.hero-copy h1 { font-weight: 300; text-transform: uppercase; letter-spacing: .1em; line-height: 1.24; }
.hero-copy small { display: block; font-size: clamp(11px, calc(var(--v) * 14), 14px); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.hero-copy .pill { margin-top: calc(var(--v) * 32); }
.hero-copy.center { left: 0; right: 0; top: 62%; text-align: center; }
.hero-copy.center h1 { font-size: calc(var(--v) * 60); }
.hero-copy.left { left: calc(var(--v) * 140); top: 50%; margin-top: calc(var(--v) * -40); }
.hero-copy.left h1 { margin-top: calc(var(--v) * 24); font-size: calc(var(--v) * 60); }

/* ---------- section intro ---------- */
.intro { background: #0b0805; text-align: center; padding: calc(var(--u) * 170) 24px calc(var(--u) * 150); }
.intro small, .stories-head small { display: block; font-size: clamp(10px, calc(var(--u) * 13), 13px); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.intro h2 { margin-top: calc(var(--u) * 22); font-size: clamp(24px, calc(var(--u) * 60), 60px); line-height: 1.2; letter-spacing: .1em; text-transform: uppercase; font-weight: 300; }
.intro p { margin: calc(var(--u) * 28) auto 0; max-width: calc(var(--u) * 1040); font-size: clamp(15px, calc(var(--u) * 21), 21px); line-height: 1.8; font-weight: 300; color: rgba(255, 255, 255, .86); }

/* ---------- crystal index ---------- */
.crystal { height: 330vh; }
.crystal-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 50%; transform-origin: 42% 56%; will-change: transform; }
.ring { position: absolute; left: 52.6%; top: calc(50% - var(--v) * 830); width: calc(var(--v) * 1000); height: calc(var(--v) * 1000); overflow: visible; will-change: transform; }
.svc-index { position: absolute; z-index: 3; left: calc(var(--v) * 200); top: 50%; transform: translateY(-50%); display: grid; gap: calc(var(--v) * 118); }
.svc-index a { position: relative; font-size: calc(var(--v) * 26); font-weight: 300; text-transform: uppercase; white-space: nowrap; opacity: .58; transition: opacity 1.1s var(--ease); }
.svc-index a.on { opacity: 1; }
.svc-index a:hover { opacity: .85; } .svc-index a.on:hover { opacity: 1; }
.rail { position: absolute; left: calc(var(--v) * -31); top: 6px; bottom: 6px; width: 1px; background: rgba(255, 255, 255, .16); }
.rail b { position: absolute; inset: 0; background: rgba(255, 255, 255, .78); transform: scaleY(0); transform-origin: top; will-change: transform; }
.star { position: absolute; left: calc(var(--v) * -49.500); top: 0; width: calc(var(--v) * 37); height: calc(var(--v) * 37); max-width: none; will-change: transform; }
.count { position: absolute; z-index: 3; right: calc(var(--v) * 124); top: 50%; transform: translateY(-50%); display: grid; justify-items: center; gap: calc(var(--v) * 10); font-size: calc(var(--v) * 16); letter-spacing: .08em; color: rgba(255, 255, 255, .78); }
.count .roll { display: grid; height: 1.2em; line-height: 1.2; overflow: hidden; }
.count .roll b { display: block; font-weight: 400; height: 1.2em; transition: transform 1.1s var(--ease); transform: translateY(calc(var(--i, 0) * -100%)); }
.count i { display: block; width: 1px; height: calc(var(--v) * 54); background: rgba(255, 255, 255, .4); }
.corner { position: absolute; right: calc(var(--v) * 78); bottom: calc(var(--v) * 50); width: calc(var(--v) * 22); height: calc(var(--v) * 22); border-right: 1px solid #fff; border-bottom: 1px solid #fff; }

/* ---------- services ---------- */
.sub-purpose { padding-bottom: calc(var(--u) * 170); overflow: clip; }
.svc-list { margin-top: calc(var(--u) * 230); display: grid; gap: calc(var(--u) * 180); }
.svc { display: grid; grid-template-columns: 800fr 1120fr; align-items: start; scroll-margin-top: 6vh; }
.svc.flip { grid-template-columns: 1120fr 800fr; }
.svc-text { position: sticky; top: max(calc(var(--u) * 170), 96px); padding: calc(var(--u) * 150) calc(var(--u) * 90) calc(var(--u) * 80) calc(var(--u) * 160); }
.svc.flip .svc-text { padding-left: calc(var(--u) * 170); padding-right: calc(var(--u) * 90); }
.svc-text small { display: block; font-size: clamp(11px, calc(var(--u) * 14), 14px); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.svc-text h2 { margin-top: calc(var(--u) * 20); font-size: clamp(25px, calc(var(--u) * 58), 58px); line-height: 1.24; letter-spacing: .1em; text-transform: uppercase; font-weight: 300; }
.svc-text p { margin-top: calc(var(--u) * 110); max-width: calc(var(--u) * 470); font-size: clamp(15px, calc(var(--u) * 20), 20px); line-height: 1.9; }
.svc-text ul { margin-top: calc(var(--u) * 34); font-size: clamp(14px, calc(var(--u) * 19), 19px); line-height: 2; }
.svc-text li { position: relative; padding-left: calc(var(--u) * 32); }
.svc-text li::before { content: ""; position: absolute; left: calc(var(--u) * 10); top: .92em; width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.svc-photo { position: relative; overflow: hidden; aspect-ratio: var(--r); background: #d8cabb; }
.svc-photo img, .social-photo img, .social-cam img { position: absolute; left: -2%; top: -2%; width: 104%; height: 116%; max-width: none; object-fit: cover; will-change: transform; }

/* ---------- R scene ---------- */
.rscene { height: 320vh; }
.r-bg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transform-origin: 52% 52%; will-change: transform; }
.r-stage { position: absolute; left: 50%; top: 50%; width: calc(var(--v) * 1920); height: calc(var(--v) * 1200); margin: calc(var(--v) * -600) 0 0 calc(var(--v) * -960); }
.r-letter { position: absolute; left: 36.93%; top: 28.83%; width: 21.72%; height: auto; max-width: none; opacity: 0; transform-origin: 50% 50%; will-change: transform, opacity; }
.r-word { position: absolute; font-size: calc(var(--v) * 46); line-height: 1; font-weight: 300; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; opacity: 0; will-change: transform, opacity; }
.w1 { left: 28.4%; top: 13.2%; } .w2 { left: 62.2%; top: 39.6%; } .w3 { left: 50.7%; top: 82.3%; }
.r-copy { position: absolute; left: 7.3%; top: 60.5%; width: calc(var(--v) * 360); font-size: calc(var(--v) * 20); line-height: 1.9; font-weight: 400; opacity: 0; will-change: transform, opacity; }

/* ---------- work with us: reach ---------- */
.reach { background: #f1efed; color: #161311; display: grid; grid-template-columns: repeat(3, 1fr); padding: calc(var(--u) * 190) calc(var(--u) * 70) calc(var(--u) * 170); text-align: center; }
.reach > div { position: relative; padding: 0 20px; }
.reach > div + div::before { content: ""; position: absolute; left: 0; top: 2%; bottom: 8%; width: 1px; background: rgba(20, 16, 14, .34); }
.reach h2 { font-size: clamp(22px, calc(var(--u) * 40), 40px); font-weight: 300; text-transform: uppercase; }
.reach p { margin-top: calc(var(--u) * 18); font-size: clamp(15px, calc(var(--u) * 24), 24px); font-weight: 500; }
.reach .caps { text-transform: uppercase; }
.under { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.pill.brown { margin-top: calc(var(--u) * 28); background: linear-gradient(95deg, #9a5c32, #6b4531); border-color: rgba(255, 255, 255, .22); height: clamp(42px, calc(var(--u) * 72), 72px); }
.pill.brown:hover { background: linear-gradient(95deg, #ac6a3c, #7c5039); }

/* ---------- socials ---------- */
.socials { display: grid; grid-template-columns: 1032fr 888fr; background: #ebe2d8; color: #1e1e1e; }
.social-photo { position: relative; overflow: hidden; aspect-ratio: 1032 / 1200; }
.social-side { position: relative; display: flex; flex-direction: column; justify-content: space-between; }
.social-text { padding: calc(var(--u) * 150) calc(var(--u) * 150) calc(var(--u) * 40); }
.social-text h2 { font-size: clamp(26px, calc(var(--u) * 60), 60px); line-height: 1.2; letter-spacing: .1em; text-transform: uppercase; font-weight: 300; }
.social-text p { margin-top: calc(var(--u) * 30); max-width: calc(var(--u) * 540); font-size: clamp(15px, calc(var(--u) * 20), 20px); line-height: 1.9; }
.icons { display: flex; gap: calc(var(--u) * 34); margin-top: calc(var(--u) * 42); }
.icons svg { width: clamp(22px, calc(var(--u) * 30), 30px); height: auto; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linejoin: round; stroke-linecap: round; opacity: .72; }
.social-cam { position: relative; align-self: flex-end; width: calc(507 / 888 * 100%); aspect-ratio: 507 / 400; overflow: hidden; }

/* ---------- stories ---------- */
.stories { background: #f1efed; color: #141211; padding: calc(var(--u) * 170) calc(var(--u) * 133) calc(var(--u) * 200); overflow: hidden; }
.stories-head { text-align: center; }
.stories-head h2 { margin-top: calc(var(--u) * 22); font-size: clamp(26px, calc(var(--u) * 60), 60px); line-height: 1.2; letter-spacing: .08em; font-weight: 300; }
.stories-head p { margin: calc(var(--u) * 44) auto 0; max-width: calc(var(--u) * 800); font-size: clamp(15px, calc(var(--u) * 21), 21px); line-height: 1.8; }
.carousel { margin-top: calc(var(--u) * 100); --gap: calc(var(--u) * 27); --per: 4; }
.track { display: flex; gap: var(--gap); will-change: transform; }
.quote { flex: 0 0 calc((100% - var(--gap) * (var(--per) - 1)) / var(--per)); display: flex; flex-direction: column; gap: 8px; min-height: calc(var(--u) * 427); padding: calc(var(--u) * 38) calc(var(--u) * 32); background: #ebe2d8; border-radius: calc(var(--u) * 16); }
.quote p { font-size: clamp(14px, calc(var(--u) * 17), 17px); line-height: 1.56; color: #66615c; }
.quote footer { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.quote img { width: clamp(36px, calc(var(--u) * 43), 43px); height: clamp(36px, calc(var(--u) * 43), 43px); border-radius: 50%; object-fit: cover; }
.quote .quote-mark { font: 700 clamp(48px, calc(var(--u) * 64), 64px)/.75 Georgia, serif; color: #8a683f; }
.quote b { display: block; font-size: clamp(14px, calc(var(--u) * 17), 17px); font-weight: 600; color: #1a1a1a; }
.arrows { display: none; gap: 14px; margin-top: calc(var(--u) * 56); }
.arrows button { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(20, 16, 14, .16); border-radius: 50%; background: transparent; color: #1b1817; cursor: pointer; transition: background .8s var(--ease), color .8s var(--ease); }
.arrows button:hover { background: #1b1817; color: #fff; }
.arrows svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- logo into focus ---------- */
.focus { height: 270vh; }
.f-layer { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 60% 50%; will-change: opacity; }
.f-sharp { transform-origin: 62% 56%; will-change: transform; }
.f-logo { position: absolute; z-index: 3; left: 50%; top: 50%; width: min(47.8vw, 88vh); height: auto; max-width: none; margin-left: calc(min(47.8vw, 88vh) / -2); margin-top: calc(min(47.8vw, 88vh) * -.32); transform-origin: 46% 34%; will-change: transform, opacity; opacity: 0; }
.f-stage { position: absolute; z-index: 4; left: 50%; top: 50%; width: max(100vw, 150vh); height: calc(max(100vw, 150vh) / 1.5); transform: translate(-50%, -50%); }
.f-note { position: absolute; font-size: max(17px, calc(var(--v) * 40)); line-height: 1.3; font-weight: 300; text-transform: uppercase; opacity: 0; will-change: transform, opacity; }
.n1 { left: 10.2%; top: 25%; } .n2 { left: 48.3%; top: 43%; } .n3 { left: 27%; top: 74%; }

/* ---------- laptops and tablets ---------- */
@media (max-width: 1180px) { .carousel { --per: 2; } .quote { min-height: 330px; } .arrows { display: flex; } }

/* ---------- phones ---------- */
@media (max-width: 820px) {
  .p-hero { height: 165vh; height: 165svh; }
  .hero-copy.center { top: 58%; padding: 0 20px; }
  .p-hero .pin::after { content: ""; position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 62%; background: linear-gradient(to top, rgba(10, 6, 3, .78) 30%, rgba(10, 6, 3, 0)); pointer-events: none; }
  .hero-bottom-gradient { display: none; }
  .hero-copy.center h1 { font-size: 30px; }
  .hero-copy.left h1 { font-size: min(6.5vw, 28px); }
  .hero-copy.left { left: 20px; right: 20px; top: auto; bottom: 19svh; margin: 0; }
  .hero-copy .pill { margin-top: 18px; }
  .intro { padding: 72px 20px 64px; }
  .intro h2 { margin-top: 12px; }
  .intro p { max-width: none; margin-top: 14px; }

  .crystal { height: 310vh; height: 310svh; }
  .crystal-img { object-position: 31% 50%; transform-origin: 34% 50%; }
  .crystal .pin::after { content: ""; position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 48%; background: linear-gradient(to top, rgba(10, 6, 3, .8) 42%, rgba(10, 6, 3, 0)); pointer-events: none; }
  .ring { left: 34%; top: -8svh; width: 92vw; height: 92vw; }
  .svc-index { left: 48px; top: auto; bottom: 34px; transform: none; gap: 22px; }
  .svc-index a { font-size: 16px; }
  .rail { left: -23px; }
  .star { left: -33px; top: -1px; width: 21px; height: 21px; }
  .count { right: 20px; top: 92px; transform: none; font-size: 13px; }
  .count i { height: 30px; }
  .corner { display: none; }

  .svc-list { margin-top: 56px; gap: 64px; }
  .svc, .svc.flip { display: flex; flex-direction: column; }
  .svc-photo { width: 100%; order: -1; aspect-ratio: 1 / 1; }
  .svc-text, .svc.flip .svc-text { position: static; padding: 28px 20px 0; }
  .svc-text h2 { margin-top: 8px; }
  .svc-text p { max-width: none; margin-top: 18px; line-height: 1.6; }
  .svc-text ul { margin-top: 14px; line-height: 1.9; }
  .svc-text li { padding-left: 16px; }
  .svc-text li::before { left: 4px; }
  .sub-purpose { padding-bottom: 64px; }

  .rscene { height: 300vh; height: 300svh; }
  .r-stage { inset: 0; left: 0; top: 0; width: 100%; height: 100%; margin: 0; }
  .r-letter { left: 50%; top: 13svh; width: 46vw; margin-left: -23vw; }
  .r-word { left: 20px; font-size: 25px; }
  .w1 { top: 52%; } .w2 { top: 59%; } .w3 { top: 66%; }
  .r-copy { left: 20px; right: 20px; top: auto; bottom: 7svh; width: auto; font-size: 16px; line-height: 1.6; }

  .reach { grid-template-columns: 1fr; gap: 38px; padding: 54px 20px; }
  .reach > div + div::before { left: 15%; right: 15%; top: -19px; bottom: auto; width: auto; height: 1px; }
  .reach p { margin-top: 6px; }
  .pill.brown { margin-top: 14px; }

  .socials { display: block; overflow: clip; }
  .social-photo { aspect-ratio: 1 / 1; }
  .social-text { padding: 40px 20px 28px; }
  .social-text p { max-width: none; margin-top: 14px; line-height: 1.6; }
  .icons { margin-top: 18px; gap: 22px; }
  .social-cam { width: 62%; }

  .stories { padding: 60px 20px; }
  .stories-head p { max-width: none; margin-top: 14px; }
  .carousel { --per: 1; --gap: 14px; margin-top: 32px; }
  .quote { min-height: 330px; padding: 24px 22px; border-radius: 14px; }

  .focus { height: 250vh; height: 250svh; }
  .f-logo { width: 74vw; margin-left: -37vw; margin-top: -24vw; }
  .f-layer { object-position: 68% 50%; }
  .f-stage { left: 0; top: 0; width: 100%; height: 100%; transform: none; }
  .f-note { left: 20px; font-size: 18px; }
  .n1 { top: 11svh; } .n2 { top: 21svh; } .n3 { top: 31svh; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy > * { opacity: 1; transform: none; transition: none; }
  .track { transition: none !important; }
}

@media (max-width: 820px) { .stories .arrows { justify-content: center; } }
