/* ==========================================================================
   JBT — inner pages in the homepage design: About, Services, Work, Contact,
   Privacy and Terms. Each page reuses the homepage's own sections (site.css +
   about/rubiks/services/theater/drums.css); this file only adds what a page
   needs on its own: the standalone About stage, the "next step" bands, the
   case study grid, the inquiry form and the legal text.
   ========================================================================== */

/* ── About: the homepage's About frame (navy stage, Jeremy on the right, one card at a time) ── */
.abx--page { background: radial-gradient(120% 90% at 70% 40%, #1c2b5c 0%, #121b3b 55%, #0b1024 100%); }
@media (min-width: 900px) {
  .abx--page { height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; }
  .abx--page .abx__stage { position: absolute; inset: 0; display: block; padding: 0; min-height: 0; }
  .abx--page .abx__backdrop {
    display: block; position: absolute; inset: 0;
    background:
      radial-gradient(38% 55% at 72% 46%, rgba(120, 150, 230, .28) 0%, rgba(120, 150, 230, 0) 70%),
      radial-gradient(120% 90% at 70% 40%, #1c2b5c 0%, #121b3b 55%, #0b1024 100%);
  }
  .abx--page .abx__avatar {
    position: absolute; z-index: 2; right: 0; bottom: 0; margin: 0;
    height: min(84%, 860px, calc((62vw - var(--gutter) - 24px) * 1193 / 1300)); width: auto;
    transform-origin: 60% 100%;
  }
  .abx--page .abx__card {
    position: absolute; left: var(--gutter); top: calc(50% + var(--header-h, 76px) / 2); translate: 0 -50%; margin: 0;
    width: clamp(340px, 38vw, 560px);
    background: none; border: 0; box-shadow: none; color: #fbfaf6;
  }
  .abx--page .abx__eyebrow, .abx--page .abx__beat { padding-left: 0; }
  .abx--page .abx__beats { display: grid; }
  .abx--page .abx__beat {
    grid-area: 1 / 1; border-top: 0 !important; padding-top: 12px;
    opacity: 0; visibility: hidden; transform: translateY(14px);
    transition: opacity .5s cubic-bezier(.22, 1, .36, 1), transform .5s cubic-bezier(.22, 1, .36, 1), visibility .5s;
  }
  .abx--page .abx__beat.is-on { opacity: 1; visibility: visible; transform: none; }
  .abx--page .abx__beat p { color: rgba(251, 250, 246, .82); }
  .abx--page .abx__beat p b { color: #fbfaf6; }
  .abx--page .abx__sig { color: rgba(251, 250, 246, .6) !important; }
  .abx--page .abx__chips { display: none; } /* as on the homepage: keeps the three cards the same height */
  .abx--page .abx__nav { display: flex; padding-left: 0; }
  .abx--page .abx__arrow { background: transparent; border-color: rgba(251, 250, 246, .6); color: #fbfaf6; }
  .abx--page .abx__arrow:hover { background: #fbfaf6; color: #111; }
  .abx--page .abx__count { color: rgba(251, 250, 246, .7); }
}
@media (min-width: 900px) and (max-height: 760px) {
  .abx--page .abx__card { width: clamp(340px, 36vw, 500px); }
  .abx--page .abx__beat h2, .abx--page .abx__beat h3 { font-size: clamp(32px, 3vw, 46px); }
  .abx--page .abx__beat p { font-size: 15px; margin-top: 10px; }
  .abx--page .abx__beat { padding-bottom: 18px; }
  .abx--page .abx__chips { margin-top: 10px; }
}

/* ── Shared band: eyebrow, big heading, short copy, actions ── */
.pg-band { position: relative; padding: clamp(72px, 12vh, 140px) var(--gutter); }
.pg-band--dark { color: #fbfaf6; background: radial-gradient(60% 120% at 68% 0%, #1b2440 0%, #141a2c 55%, #0b0d14 100%); }
.pg-band--cream { background: var(--cream); color: var(--ink); }
.pg-band__inner { max-width: 1240px; margin: 0 auto; }
.pg-eyebrow { display: flex; align-items: center; gap: 12px; font: 500 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.pg-eyebrow i { width: 28px; height: 1px; background: currentColor; }
.pg-title { margin-top: 18px; font-size: clamp(44px, 6vw, 96px); text-wrap: balance; }
.pg-lede { margin-top: 18px; max-width: 52ch; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; opacity: .82; }
.pg-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.pg-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 24px; border-radius: 999px;
  border: 1.5px solid currentColor; font: 500 15px/1 var(--sans); white-space: nowrap;
  transition: transform .25s, background .25s, color .25s, border-color .25s;
}
.pg-btn:hover { transform: translateY(-2px); }
.pg-band--dark .pg-btn { border-color: rgba(251, 250, 246, .55); }
.pg-band--dark .pg-btn:hover { border-color: #fbfaf6; }
.pg-btn--solid { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.pg-band--dark .pg-btn--solid { background: #fbfaf6; color: #111; border-color: #fbfaf6; }

/* About → "Here's how the pieces fit": the four disciplines, in the cube's colours */
.pg-pieces { margin-top: clamp(36px, 6vh, 56px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pg-piece {
  position: relative; display: block; padding: 26px 24px 24px; border-radius: 16px;
  background: rgba(251, 250, 246, .05); border: 1px solid rgba(251, 250, 246, .14);
  transition: transform .35s var(--ease), background .35s, border-color .35s;
}
.pg-piece:hover { transform: translateY(-4px); background: rgba(251, 250, 246, .09); border-color: var(--c); }
.pg-piece::before { content: ""; display: block; width: 34px; height: 34px; border-radius: 7px; background: var(--c); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .25); }
.pg-piece h3 { margin-top: 22px; font-size: clamp(30px, 2.6vw, 40px); }
.pg-piece p { margin-top: 10px; font-size: 15.5px; line-height: 1.5; color: rgba(251, 250, 246, .76); }

/* Services → the three service pages */
.pg-cards { margin-top: clamp(36px, 6vh, 56px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pg-card { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: #fff; border: 1.5px solid var(--ink); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.pg-card:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -30px rgba(17, 17, 17, .45); }
.pg-card__img { aspect-ratio: 16 / 10; overflow: hidden; background: #111; }
.pg-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pg-card:hover .pg-card__img img { transform: scale(1.04); }
.pg-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; border-top: 1.5px solid var(--ink); }
.pg-card__meta { font: 500 11px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pg-card h3 { margin-top: 10px; font-size: clamp(32px, 2.8vw, 44px); }
.pg-card p { margin-top: 10px; font-size: 15.5px; line-height: 1.55; color: #3a3a38; }
.pg-card__go { margin-top: auto; padding-top: 18px; font: 600 14px/1 var(--sans); letter-spacing: .04em; }

/* Work: the theater is the h1's section; the case grid follows */
.pg-work-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── Contact: the inquiry form (launches the visitor's email app) ── */
.pg-form { scroll-margin-top: var(--header-h, 76px); padding-top: calc(var(--header-h, 76px) + clamp(36px, 7vh, 72px)); } /* the "Send a project inquiry ↓" glide lands with the heading clear of the header */
.pg-form__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.pg-form__aside .pg-title { font-size: clamp(44px, 5vw, 80px); }
.pg-reach { margin-top: 32px; display: grid; gap: 14px; }
.pg-reach div { display: grid; gap: 4px; }
.pg-reach dt { font: 500 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: rgba(251, 250, 246, .6); }
.pg-reach dd { font-size: 18px; }
.pg-reach a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.pg-reach a:hover { background-size: 100% 1px; }

.inq {
  background: #fbfaf6; color: #111; border: 1.5px solid #111; border-radius: 18px;
  padding: clamp(22px, 3vw, 40px); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7);
}
.inq__head { font: 500 11px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.inq__head i { width: 26px; height: 1px; background: currentColor; }
.inq__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.inq__field { display: grid; gap: 8px; margin-top: 18px; }
.inq__field label, .inq__legend { font: 600 13px/1.2 var(--sans); letter-spacing: .02em; }
.inq__field label span, .inq__legend span { font-weight: 400; color: var(--muted); }
.inq input, .inq textarea {
  width: 100%; font: 400 16px/1.4 var(--sans); color: #111; background: #fff;
  border: 1.5px solid rgba(17, 17, 17, .28); border-radius: 12px; padding: 13px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.inq textarea { min-height: 150px; resize: vertical; }
.inq input:focus, .inq textarea:focus { outline: none; border-color: #111; box-shadow: 0 0 0 3px rgba(17, 17, 17, .12); }
.inq input[aria-invalid="true"], .inq textarea[aria-invalid="true"] { border-color: #c8102e; box-shadow: 0 0 0 3px rgba(200, 16, 46, .12); }
.inq__set { border: 0; margin: 18px 0 0; padding: 0; min-width: 0; }
.inq__legend { padding: 0; margin-bottom: 10px; }
.inq__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.inq__chip { position: relative; }
.inq__chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.inq__chip span {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid rgba(17, 17, 17, .22); background: #fff; font: 500 14px/1 var(--sans); transition: background .2s, color .2s, border-color .2s;
}
.inq__chip span::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--c, #111); }
.inq__chip input:checked + span { background: #111; color: #fbfaf6; border-color: #111; }
.inq__chip input:focus-visible + span { outline: 2px solid #111; outline-offset: 3px; }
.inq__submit {
  margin-top: 26px; display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 28px; border-radius: 999px;
  border: 1.5px solid #111; background: #111; color: #fbfaf6; font: 600 15px/1 var(--sans); cursor: pointer;
  transition: transform .25s, background .25s;
}
.inq__submit:hover { transform: translateY(-2px); background: #2a2a2a; }
.inq__submit:focus-visible { outline: 2px solid #111; outline-offset: 3px; }
.inq__note { margin-top: 14px; font-size: 13.5px; line-height: 1.5; color: var(--muted); max-width: 60ch; }
.inq__status { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: #eef3ea; border: 1px solid rgba(0, 155, 72, .3); font-size: 14.5px; line-height: 1.5; }
.inq__status[hidden] { display: none; }
.inq__copy { margin-top: 10px; display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; border: 1.5px solid #111; background: #fff; font: 600 13px/1 var(--sans); cursor: pointer; }
.inq__copy:hover { background: #111; color: #fbfaf6; }

/* Contact hero: one extra link down to the form */
.drm__btn--down { border-style: dashed; }

/* ── Legal pages ── */
.pg-legal { padding: calc(var(--header-h, 76px) + clamp(48px, 9vh, 96px)) var(--gutter) clamp(72px, 12vh, 140px); background: var(--cream); }
.pg-legal__inner { max-width: 760px; margin: 0 auto; }
.pg-legal .pg-title { font-size: clamp(52px, 7vw, 104px); }
.pg-legal__body { margin-top: 36px; border-top: 1.5px dashed var(--ink); }
.pg-legal__body h2 { margin-top: 40px; font-size: clamp(28px, 2.6vw, 38px); }
.pg-legal__body p { margin-top: 14px; font-size: 17px; line-height: 1.7; color: #2e2e2c; }
.pg-legal__body p:first-child { margin-top: 32px; font-size: 19px; color: #111; }
.pg-legal__body a { text-decoration: underline; text-underline-offset: 3px; }

/* ── Header: the current page ── */
.site-nav a[aria-current="page"] { background-size: 100% 1px; }
.mobile-menu > a[aria-current="page"] { opacity: .55; }

/* ── Responsive ── */
@media (max-width: 1100px) { .pg-pieces { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 899px) {
  .pg-cards { grid-template-columns: 1fr; }
  .pg-form__grid { grid-template-columns: 1fr; }
  .pg-band, .pg-legal { scroll-snap-align: start; }
}
@media (max-width: 560px) {
  .pg-pieces { grid-template-columns: 1fr; gap: 12px; }
  .pg-piece { padding: 20px 18px; display: grid; grid-template-columns: 34px 1fr; column-gap: 16px; align-items: start; }
  .pg-piece h3 { margin-top: 0; font-size: 30px; }
  .pg-piece p { grid-column: 2; margin-top: 4px; }
  .inq__row { grid-template-columns: 1fr; gap: 0; }
  .pg-btn { width: 100%; justify-content: center; }
}
/* Pages with long reading/forms scroll freely on phones (the homepage's one-section-per-swipe stays on the story pages) */
@media (max-width: 899px) { html.pg-free { scroll-snap-type: y proximity; } }
