/* Nítido · services.html. Builds on tokens.css and site.css (linked after them). */

/* ---------- 1 · the answer ---------- */
.sv-answer { padding-bottom: clamp(72px, 9vw, 140px); }
.sv-answer__h1 { max-width: 17ch; text-wrap: balance; }
.sv-answer__h2 { margin-top: clamp(40px, 5vw, 72px); max-width: 34ch; }
.sv-answer__body {
  margin-top: clamp(24px, 2.6vw, 36px);
  font-size: clamp(21px, 1.95vw, 26px);
}
.sv-answer__cta { margin-top: clamp(32px, 3.4vw, 48px); }
.sv-answer__fig { margin-top: clamp(56px, 7vw, 112px); }
.sv-answer__frame { width: 100%; }
@media (max-width: 959px) {
  .sv-answer__frame { aspect-ratio: 4 / 3; }
}

/* The six chapters as a mono index under the photograph. */
.sv-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--gut);
  border-bottom: 1px solid var(--rule);
}
.sv-index a {
  display: flex; gap: 12px; align-items: baseline;
  min-height: 56px; padding-block: 16px 14px;
  border-top: 1px solid var(--rule);
  text-decoration: none;
  font-size: 17px; line-height: 1.25; font-weight: 500;
}
.sv-index a .mono { color: var(--muted); flex: none; }
.sv-index a span:last-child { transition: transform var(--dur-quick) var(--ease-stop); }
@media (hover: hover) { .sv-index a:hover span:last-child { transform: translateX(6px); color: var(--accent); } }
@media (min-width: 960px) {
  .sv-index { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .sv-index a { flex-direction: column; gap: 10px; min-height: 104px; font-size: 18px; }
}

/* ---------- 2 · six service chapters ---------- */
.sv-chapters { padding-bottom: clamp(48px, 6vw, 96px); }
.svc {
  position: relative;
  padding-block: clamp(36px, 4vw, 56px) clamp(64px, 8vw, 128px);
  row-gap: 28px;
}
/* An absolute grid child is placed in its grid area, which already sits inside the padding. */
.svc__rule { position: absolute; top: 0; left: 0; right: 0; background: var(--rule); }
.svc__n { color: var(--muted); }
.svc__title {
  margin-top: 14px;
  font-size: clamp(48px, 7vw, 116px);
  max-width: 9ch;
}
.svc__side { display: grid; gap: clamp(28px, 3vw, 44px); align-content: start; }
.svc__text { max-width: 46ch; }
.svc__lead { max-width: 20ch; }
.svc__lead + .svc__text { margin-top: calc(-1 * clamp(8px, 1.2vw, 20px)); }
.svc__fig { width: min(100%, 420px); }
.svc__fig .frame { background: #D3CFC9; }
.svc__fig .cap__name { color: var(--ink); }

@media (min-width: 960px) {
  .svc { min-height: 0; padding-block: 10vh; align-items: start; }
  .svc__head { position: sticky; top: 12vh; align-self: start; padding-bottom: 24px; }
  .svc__side { padding-top: clamp(40px, 4vw, 64px); }
  .svc__fig { width: 28vw; justify-self: end; }
  .svc--alt .svc__fig { justify-self: start; }
  .svc--wide .svc__fig { width: 28vw; max-width: 100%; }
  /* Body sits at the head of the column; the picture steps down the other side. */
  .svc--alt .svc__text { justify-self: end; }
}
@media (max-width: 959px) {
  .svc__fig { width: 86%; }
  .svc--alt .svc__fig { justify-self: end; }
  .svc--wide .svc__fig { width: 100%; }
}

/* ---------- 3 · questions owners ask ---------- */
.sv-faq__head { margin-bottom: 40px; }
@media (min-width: 960px) {
  .sv-faq__head { position: sticky; top: calc(var(--header-h) + 48px); align-self: start; margin-bottom: 0; }
}
.sv-faq__q {
  font-size: clamp(21px, 1.8vw, 24px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.012em;
  max-width: 32ch;
}
.sv-faq__a { max-width: 54ch; }
.sv-faq .ledger__n { color: var(--muted); }
.sv-faq__more { margin-top: 24px; }

/* ---------- 4 · the ask ---------- */
.sv-ask__title {
  font-size: clamp(48px, 8vw, 132px);
  max-width: 13ch;
}
.sv-ask { min-height: 100svh; display: flex; align-items: center; padding-block: 10vh; }
.sv-ask > .wrap { width: 100%; }
.sv-ask .ask__body, .sv-ask .ask__cta { margin-top: 28px; }
.svc__lead { font-size: 32px; }
.sv-ask .ask__cta .fan { width: clamp(48px, 5vw, 76px); }

/* ---------- real work beside each service ---------- */
.svc__fig--marks, .svc__fig--ig, .svc__fig--site { width: 100%; }
.svc__cap { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 12px; }
.svc__cap a { color: var(--accent); text-decoration: none; white-space: nowrap; }
.svc-marks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.svc-marks__tile { position: relative; aspect-ratio: 1; background: var(--t); border-radius: 6px; display: grid; place-items: center; overflow: hidden; }
.svc-marks__tile img { width: 52%; height: 52%; object-fit: contain; transition: transform .5s var(--ease-pull); }
.svc-marks__tile:hover img { transform: scale(1.12) rotate(-4deg); }
.svc-marks__tile .mono { position: absolute; left: 8px; bottom: 6px; font-size: 10px; color: #fff; mix-blend-mode: difference; }
.svc-marks__tile--you { background: var(--accent); }
.svc-marks__tile--you a { position: absolute; inset: 0; display: grid; align-content: space-between; padding: 12px; color: var(--accent-ink); text-decoration: none; }
.svc-marks__tile--you .mono { position: static; mix-blend-mode: normal; color: var(--accent-ink); }
.svc-marks__you { font-family: var(--font-display), sans-serif; font-weight: 700; font-size: clamp(20px, 2vw, 30px); line-height: .95; letter-spacing: -.03em; }
.svc-ig { position: relative; aspect-ratio: 5 / 4; }
.svc-ig__poster { position: absolute; width: 46%; height: auto; border-radius: 6px; box-shadow: 0 24px 50px -24px rgba(18,19,23,.45); }
.svc-ig__poster--a { left: 0; top: 4%; transform: rotate(-5deg); }
.svc-ig__poster--b { left: 22%; top: 16%; transform: rotate(3deg); }
.svc-ig__phone { position: absolute; right: 4%; top: 0; height: 100%; aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 7px #0d0e10, 0 30px 60px -24px rgba(0,0,0,.5); }
.svc-ig__phone video { width: 100%; height: 100%; object-fit: cover; }
.svc-browser { border-radius: 10px; overflow: hidden; background: #121317; box-shadow: 0 30px 70px -30px rgba(18,19,23,.55); border: 1px solid #2a2b31; }
.svc-browser__bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #1b1c21; }
.svc-browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a3b42; }
.svc-browser__bar .mono { margin-left: 10px; font-size: 11px; color: #9a949c; text-transform: none; letter-spacing: .02em; }
.svc-browser video { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
@media (min-width: 960px) {
  .svc__fig--marks, .svc__fig--ig, .svc__fig--site { width: 100%; justify-self: stretch; }
  .svc__fig { width: 36vw; }
}

/* ---------- the opener: seven moving covers, fanned like a deck ---------- */
.sv-deck { position: relative; padding-block: clamp(24px, 4vw, 64px) clamp(40px, 6vw, 96px); overflow: visible; }
.sv-covers { display: flex; justify-content: center; align-items: flex-start; }
.sv-covers video {
  width: clamp(130px, 21vw, 340px); aspect-ratio: 4 / 5; height: auto; object-fit: cover; border-radius: 8px; flex: none;
  margin-left: calc(-1 * clamp(70px, 9.5vw, 150px)); box-shadow: 0 30px 60px -28px rgba(18,19,23,.55), 0 0 0 1px rgba(18,19,23,.08);
  transform: translateY(var(--y, 0)) rotate(var(--r, 0deg)); transition: transform .5s var(--ease-pull), z-index 0s;
  position: relative;
}
.sv-covers video:first-child { margin-left: 0; }
.sv-covers video:nth-child(1) { --r: -12deg; --y: 64px; }
.sv-covers video:nth-child(2) { --r: -8deg;  --y: 26px; }
.sv-covers video:nth-child(3) { --r: -4deg;  --y: 6px; }
.sv-covers video:nth-child(4) { --r: 0deg;   --y: 0px; z-index: 2; }
.sv-covers video:nth-child(5) { --r: 4deg;   --y: 6px; }
.sv-covers video:nth-child(6) { --r: 8deg;   --y: 26px; }
.sv-covers video:nth-child(7) { --r: 12deg;  --y: 64px; }
@media (hover: hover) { .sv-covers video:hover { transform: translateY(calc(var(--y) - 36px)) rotate(var(--r)) scale(1.05); z-index: 5; } }
@media (max-width: 959px) { .sv-covers video { margin-left: -16vw; width: 30vw; } .sv-covers { overflow: hidden; padding-inline: 4vw; } }

/* the browser and the other real-work figures take the full column */
@media (min-width: 960px) {
  .svc .svc__fig--site, .svc .svc__fig--marks, .svc .svc__fig--ig { width: min(40vw, 640px); justify-self: end; }
  .svc--alt .svc__fig--site, .svc--alt .svc__fig--ig { justify-self: start; }
}
