/* ============================================================
   SERVICES (2026): two halves, one brand, performed

   The studio's name is TwoFold, and its line is "two halves, one brand".
   On this page everything arrives as two halves that become one:
     - the three words of the promise (seen, heard, chosen) come folded
       along a crease, like paper, and open flat; the crease stays,
       faintly, across the letters;
     - every piece of work arrives as two strips, its top half from one
       side and its bottom half from the other, that meet and lock into
       one picture;
     - how a project runs is a crease drawn down the page as you read,
       and each stage's dot fills with colour the moment the line lands
       on it.
   No icons in circles, no marks drawn over the words: the type, the work
   and one quiet line do it all.

   The folds and the strips are played once as each piece comes into view
   (main.js, initFolds), so nothing in them follows the finger frame by
   frame; only the crease line and its dots are tied to the scroll.
   Everything is shown finished, and still, for anyone who asks for less
   motion, and when the script cannot run.

   Standing rules for the whole site, kept here:
     - No gradients anywhere. Every surface is one flat colour.
     - Mobile first. The base rules ARE the phone layout; every media query
       below is min-width and only adds room as the screen grows.
   ============================================================ */

body.theme-dark .sv {
  --sv-bg:      #06192B;   /* the page ground                        */
  --sv-brand:   #104068;   /* brand navy                             */
  --sv-card:    #0E3152;   /* raised surfaces                        */
  --sv-teal:    #73BEC6;
  --sv-teal-hi: #62BEC2;
  --sv-teal-lt: #8DD1D8;
  --sv-ink:     #071E33;   /* text on teal                           */
  --sv-text:    #EAF2F6;
  --sv-text-2:  rgba(234, 242, 246, .74);
  --sv-tint:    rgba(115, 190, 198, .07);   /* tiles and questions    */
  --sv-r:       clamp(16px, .9rem + .8vw, 26px);

  --sv-corner:     url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cdefs%3E%3Cfilter id='b' x='-30%25' y='-30%25' width='160%25' height='160%25'%3E%3CfeGaussianBlur stdDeviation='3'/%3E%3C/filter%3E%3C/defs%3E%3Cpath d='M20 0Q28 0 33.66 5.66L114.34 86.34Q120 92 120 100V0Z' fill='%2306192B'/%3E%3Cpath d='M28 7Q28 0 32.95 4.95Q78.2 41.8 115.05 87.05Q120 92 113 92H40Q28 92 28 80Z' fill='%23000' fill-opacity='.35' filter='url(%23b)' transform='translate(-3 3)'/%3E%3Cpath d='M28 7Q28 0 32.95 4.95Q78.2 41.8 115.05 87.05Q120 92 113 92H40Q28 92 28 80Z' fill='%2373BEC6'/%3E%3C/svg%3E");   /* the folded corner, drawn once */

  --sv-t-body:  clamp(.96rem, .93rem + .18vw, 1.04rem);
  --sv-t-lead:  clamp(1.02rem, .96rem + .4vw, 1.24rem);

  display: block;
  background: var(--sv-bg);
  color: var(--sv-text);
}
.sv a:focus-visible, .sv button:focus-visible { outline: 2px solid var(--sv-teal); outline-offset: 3px; }
/* a phone number never breaks across two lines */
body.theme-dark .sv a[href^="tel:"] { white-space: nowrap; }

/* ---- shared: the small label over a heading ------------------------------ */
body.theme-dark .sv .sv-kicker {
  margin: 0;
  font-family: var(--font-body); font-size: .74rem; font-weight: 600; line-height: 1.3;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--sv-teal);
}

/* ---- shared: section headings ------------------------------------------- */
body.theme-dark .sv .sv-h2 {
  margin: .8rem 0 0;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 1.3rem + 2.4vw, 3.3rem);
  line-height: 1.08; letter-spacing: -.025em;
  text-wrap: balance;
  color: #fff;
}
body.theme-dark .sv .sv-h2 > span:not(.w) { color: var(--sv-teal); font-weight: 400; white-space: nowrap; }

/* ---- shared: buttons and links (as on the Work page) ---------------------- */
body.theme-dark .sv .sv-btn {
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: 3.1rem; padding: .85rem 1.45rem;
  border: 0; border-radius: 999px;
  background: var(--sv-teal-hi); color: var(--sv-ink);
  font-family: var(--font-body); font-size: .95rem; font-weight: 700; line-height: 1.2;
  cursor: pointer;
  /* --mx/--my: the lean towards the pointer (data-magnetic, mouse only) */
  transform: translate3d(var(--mx, 0px), calc(var(--my, 0px) + var(--lift, 0px)), 0);
  transition: background-color .3s var(--ease), transform .35s var(--ease);
}
body.theme-dark .sv .sv-btn i { font-size: .8em; transition: transform .3s var(--ease); }

body.theme-dark .sv .sv-link {
  display: inline-flex; align-items: center; gap: .5rem;
  /* underlined with text-decoration, so the link can take a 44px tap
     target's padding without the line drifting away */
  padding: .72rem 0;
  font-family: var(--font-body); font-size: .95rem; font-weight: 600;
  color: #fff;
  text-decoration: underline; text-decoration-color: var(--sv-teal);
  text-decoration-thickness: 2px; text-underline-offset: 6px;
}
body.theme-dark .sv .sv-link i { font-size: .78em; color: var(--sv-teal); }

@media (hover: hover) {
  body.theme-dark .sv .sv-btn:hover { --lift: -1px; background: #fff; color: var(--sv-ink); }
  body.theme-dark .sv .sv-btn:hover i { transform: translateX(3px); }
  body.theme-dark .sv .sv-link:hover { color: var(--sv-teal-lt); }
}

/* ---- shared: words that rise into place ------------------------------------
   main.js wraps each word of a [data-split] heading in two spans: the outer
   one clips, the inner one rises out of it when the heading (or the reveal
   around it) comes in. The padding keeps tall letters, descenders and the
   last letter's overhang from being clipped, even at the chapter words'
   tight line height.
   --------------------------------------------------------------------- */
.sv [data-split].is-split .w {
  display: inline-block; overflow: hidden; vertical-align: top;
  padding: .1em .07em .14em 0; margin: -.1em -.07em -.14em 0;
}
.sv [data-split].is-split .w__i { display: inline-block; }
html.js:not(.no-anim) .sv [data-split].is-split .w__i {
  transform: translate3d(0, 115%, 0);
  transition: transform 1s var(--ease-out) calc(var(--wi, 0) * 70ms + 60ms);
}
html.js:not(.no-anim) .sv .is-in [data-split].is-split .w__i,
html.js:not(.no-anim) .sv [data-split].is-split.is-in .w__i { transform: none; }


/* ---- shared: a word that arrives folded --------------------------------
   The real text is the top half; an unread copy (aria-hidden) is the bottom
   half, hinged on the crease across the middle of the line. Folded, the
   bottom half is turned back behind the top one, so the word reads as its
   upper half alone; it swings forward, overshoots a touch like paper and
   lies flat, with a flat shade on it that clears as it turns to the light.
   Once it has landed, the copy is dropped and the real text shown whole
   (is-set), so no seam can ever show. The crease that stays is a hairline
   in the page's own colour: invisible on the page, it only shows where it
   crosses the letters, as a fold in printed paper would.
   --------------------------------------------------------------------- */
.sv-cw { position: relative; display: inline-block; perspective: 5.5em; }
.sv-cw em { font-style: normal; color: var(--sv-teal); }
.sv-cw__t, .sv-cw__b > span { display: block; }
.sv-cw__b { position: absolute; inset: 0; display: none; pointer-events: none; }
.sv-cw::after {
  content: "";
  position: absolute; left: -.04em; right: -.04em; top: 50%;
  height: max(1px, .014em); margin-top: max(-.5px, -.007em);
  background: var(--sv-bg); opacity: .5;
  pointer-events: none;
}
html.js:not(.no-anim) .sv-cw:not(.is-set) .sv-cw__t { clip-path: inset(-.3em -.3em 50% -.3em); }
html.js:not(.no-anim) .sv-cw:not(.is-set) .sv-cw__b {
  display: block;
  clip-path: inset(50% -.3em -.3em -.3em);
  transform-origin: 50% 50%;
  transform: rotateX(-100deg);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.sv-cw__b::after { content: ""; position: absolute; inset: -.3em; background: var(--sv-bg); opacity: .75; }
html.js:not(.no-anim) .sv-cw.is-open .sv-cw__b { animation: sv-unfold 1.3s cubic-bezier(.3, .7, .25, 1) var(--d, 0s) both; }
html.js:not(.no-anim) .sv-cw.is-open .sv-cw__b::after { animation: sv-unshade .8s ease-out var(--d, 0s) both; }
@keyframes sv-unfold {
  0%   { transform: rotateX(-100deg); }
  58%  { transform: rotateX(8deg); }
  80%  { transform: rotateX(-2.5deg); }
  100% { transform: rotateX(0deg); }
}
@keyframes sv-unshade { from { opacity: .75; } to { opacity: 0; } }

/* ---- 1. the promise ------------------------------------------------------- */
body.theme-dark .sv .sv-hero { padding: 6.75rem 0 clamp(3rem, 8vw, 5.5rem); }
.sv-hero__grid { display: grid; gap: clamp(2.6rem, 8vw, 3.4rem); }
body.theme-dark .sv .sv-hero__title {
  margin: .9rem 0 0;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.5rem, 1.35rem + 4.4vw, 4.6rem);
  line-height: 1.06; letter-spacing: -.03em;
  color: #fff;
  text-wrap: balance;
}
body.theme-dark .sv .sv-hero__title .sv-hero__em { color: var(--sv-teal); font-weight: 400; }
.sv-hero__title > .sv-nb { display: block; }

/* the rolling word: one line tall and clipped; inside it the three words
   and the first one again, so the roll comes back round without a jump.
   Each word holds for a little under two seconds, then rolls up to the
   next, about six seconds for the three. It starts once the headline has
   risen into place, and rests while it is off screen (main.js gives
   [data-marquee] is-off). With no script, or for anyone who asks for less
   motion, the sentence simply stands, written out. */
.sv-roll {
  display: none;
  height: 1.08em; overflow: hidden;
  font-size: 1.18em; line-height: 1.08;
  font-weight: 400; color: var(--sv-teal);
  letter-spacing: -.035em;
}
.sv-roll__track { display: block; }
.sv-roll__track > span { display: block; height: 1.08em; white-space: nowrap; }
html.js:not(.no-anim) .sv-roll { display: block; }
html.js:not(.no-anim) body.theme-dark .sv .sv-hero__title .sv-hero__still { display: none; }
html.js:not(.no-anim) .sv-roll__track { animation: sv-roll 6.3s cubic-bezier(.76, 0, .24, 1) 1.1s infinite; }
.sv-roll.is-off .sv-roll__track { animation-play-state: paused; }
@keyframes sv-roll {
  0%, 25%      { transform: translate3d(0, 0, 0); }
  33.3%, 58.3% { transform: translate3d(0, -25%, 0); }
  66.6%, 91.6% { transform: translate3d(0, -50%, 0); }
  100%         { transform: translate3d(0, -75%, 0); }
}
body.theme-dark .sv .sv-hero__lead {
  margin: 1.4rem 0 0; max-width: 46ch;
  font-size: var(--sv-t-lead); line-height: 1.6;
  color: var(--sv-text-2);
}
.sv-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.5rem; margin-top: 1.6rem; }

/* the three practices, by their words: the contents of the page */
body.theme-dark .sv .sv-words { display: grid; align-self: end; border-top: 1px solid rgba(115, 190, 198, .18); }
body.theme-dark .sv .sv-words__row {
  display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto;
  grid-template-areas: "no word go" ". name go";
  align-items: center; column-gap: .6rem; row-gap: .4rem;
  padding: 1.15rem 0 1.2rem;
  border-bottom: 1px solid rgba(115, 190, 198, .18);
  color: #fff; text-decoration: none;
}
body.theme-dark .sv .sv-words__no {
  grid-area: no; align-self: start; padding-top: .55rem;
  font-family: var(--font-display); font-size: .8rem; font-weight: 600;
  font-variant-numeric: tabular-nums; color: var(--sv-teal);
}
body.theme-dark .sv .sv-words .sv-cw {
  grid-area: word; justify-self: start;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.7rem, 1.9rem + 3.2vw, 4.4rem);
  line-height: .98; letter-spacing: -.035em;
  transition: color .3s var(--ease);
}
body.theme-dark .sv .sv-words__name { grid-area: name; font-size: .9rem; line-height: 1.4; color: var(--sv-text-2); }
body.theme-dark .sv .sv-words__name span { white-space: nowrap; color: rgba(234, 242, 246, .5); }
body.theme-dark .sv .sv-words__name span::before { content: "\00b7"; margin: 0 .5em; }
body.theme-dark .sv .sv-words__go {
  grid-area: go; align-self: center;
  font-size: 1.05rem; color: var(--sv-teal); opacity: .6;
  transition: opacity .3s var(--ease), transform .35s var(--ease);
}
@media (hover: hover) {
  body.theme-dark .sv .sv-words__row:hover .sv-cw { color: var(--sv-teal-lt); }
  body.theme-dark .sv .sv-words__row:hover .sv-words__go { opacity: 1; transform: translateY(3px); }
}

/* ---- 2. the practices --------------------------------------------------------- */
body.theme-dark .sv .sv-prac {
  padding: clamp(3.6rem, 10vw, 7.5rem) 0 clamp(1.6rem, 5vw, 3rem);
  scroll-margin-top: .5rem;
}
.sv-prac__head { display: grid; gap: 1.1rem; }
body.theme-dark .sv .sv-prac__title { margin: 0; display: grid; gap: 1rem; }
body.theme-dark .sv .sv-prac__name {
  font-family: var(--font-body); font-size: .78rem; font-weight: 600; line-height: 1.3;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--sv-teal);
}
body.theme-dark .sv .sv-prac__name > span { margin-right: .9em; font-family: var(--font-display); letter-spacing: .04em; color: rgba(234, 242, 246, .5); }
body.theme-dark .sv .sv-prac__word {
  display: block;
  font-family: var(--font-display); font-weight: 800;
  /* as large as the page allows, but never wider than the screen: the
     longest word, "Chosen.", runs about 4.7 times its size */
  font-size: min(clamp(4.4rem, 2rem + 11vw, 10.5rem), calc((100vw - 2.5rem) / 4.75));
  line-height: .95; letter-spacing: -.04em;
  color: #fff;
}
body.theme-dark .sv .sv-prac__lead {
  margin: 0; max-width: 38ch;
  font-size: var(--sv-t-lead); line-height: 1.55;
  color: var(--sv-text-2);
  text-wrap: pretty;
}

/* the work: three pieces, each arriving as two strips (its top half from
   the left, its bottom half from the right) that meet and lock into one
   picture. On a phone the first has the full width and the other two share
   a row under it; from a tablet up the three sit in one row, at the width
   of the text. Each opens its case study. */
.sv-shots {
  --fr: clamp(12px, .6rem + .6vw, 18px);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.2rem, 2.4vw, 1.6rem) clamp(.7rem, 1.4vw, 1.1rem);
  margin-top: clamp(1.8rem, 5vw, 3.2rem);
}
body.theme-dark .sv .sv-shot { display: flex; flex-direction: column; gap: .65rem; min-width: 0; color: inherit; text-decoration: none; }
.sv-shot--a { grid-column: 1 / -1; }
body.theme-dark .sv .sv-shot__frame {
  position: relative; display: block;
  aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: var(--fr);
  background: var(--sv-card);
  isolation: isolate;
}
/* the paper's edge: a hairline of light round every picture */
.sv-shot__frame::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  pointer-events: none;
}
.sv-shot__h { position: absolute; inset: 0; }
.sv-shot__h picture, .sv-shot__h img { display: block; width: 100%; height: 100%; }
.sv-shot__h img { object-fit: cover; transition: transform .7s var(--ease); }
.sv-shot__h--b { display: none; }
html.js:not(.no-anim) .sv-shot .sv-shot__h { transition: transform 1.35s cubic-bezier(.16, 1, .3, 1) var(--d, 0s); }
html.js:not(.no-anim) .sv-shot:not(.is-set) .sv-shot__h--t { clip-path: inset(0 0 50% 0); }
html.js:not(.no-anim) .sv-shot:not(.is-set) .sv-shot__h--b { display: block; clip-path: inset(50% 0 0 0); }
html.js:not(.no-anim) .sv-shot:not(.is-in) .sv-shot__h--t { transform: translate3d(-101%, 0, 0); }
html.js:not(.no-anim) .sv-shot:not(.is-in) .sv-shot__h--b { transform: translate3d(101%, 0, 0); }
body.theme-dark .sv .sv-shot__cap { font-size: .84rem; line-height: 1.4; color: var(--sv-text-2); }
body.theme-dark .sv .sv-shot__cap b { margin-right: .35em; font-weight: 600; color: #fff; transition: color .3s var(--ease); }
body.theme-dark .sv .sv-shot:focus-visible { outline: none; }
body.theme-dark .sv .sv-shot:focus-visible .sv-shot__frame { outline: 2px solid var(--sv-teal); outline-offset: 3px; }
@media (hover: hover) {
  .sv-shot.is-set:hover .sv-shot__h img { transform: scale(1.035); }
  body.theme-dark .sv .sv-shot:hover .sv-shot__cap b { color: var(--sv-teal-lt); }
}

/* everything included, as a quiet list. Each service is a toggle: added,
   its row takes a tint and its corner folds down (the site's folded corner,
   growing from the tip), and its label reads Added. main.js keeps the
   brief. */
.sv-inc { display: grid; gap: 1.5rem; margin-top: clamp(2.6rem, 7vw, 4.2rem); }
body.theme-dark .sv .sv-inc__title {
  margin: 0;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.3rem, 1.1rem + .7vw, 1.7rem); line-height: 1.15; letter-spacing: -.015em;
  color: #fff;
}
body.theme-dark .sv .sv-inc__hint { margin: .5rem 0 0; max-width: 30ch; font-size: .92rem; line-height: 1.55; color: var(--sv-text-2); }
body.theme-dark .sv .sv-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(115, 190, 198, .16); }
body.theme-dark .sv .sv-list > li { border-bottom: 1px solid rgba(115, 190, 198, .16); }
body.theme-dark .sv .sv-svc {
  --f: 1.25rem;
  position: relative;
  display: grid; grid-template-columns: 2.1rem minmax(0, 1fr) auto;
  grid-template-areas: "no name add" ". desc desc";
  column-gap: .5rem; row-gap: .35rem; align-items: baseline;
  width: 100%; margin: 0;
  padding: 1.15rem .9rem 1.25rem .5rem;
  border: 0; border-radius: 14px;
  background: transparent;
  font: inherit; color: inherit; text-align: left;
  cursor: pointer;
  transition: background-color .3s var(--ease);
}
.sv-svc::after {
  content: "";
  position: absolute; top: 0; right: 0;
  width: calc(var(--f) * 1.2); height: calc(var(--f) * 1.2);
  background: var(--sv-corner) 0 0 / 100% 100% no-repeat;
  transform-origin: 100% 0;
  transform: scale(0);
  transition: transform .5s cubic-bezier(.34, 1.56, .64, 1);
  pointer-events: none;
}
body.theme-dark .sv .sv-svc[aria-pressed="true"] { background: rgba(115, 190, 198, .1); }
.sv-svc[aria-pressed="true"]::after { transform: scale(1); }
body.theme-dark .sv .sv-svc__no {
  grid-area: no;
  font-family: var(--font-display); font-size: .8rem; font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--sv-teal);
}
body.theme-dark .sv .sv-svc__name {
  grid-area: name;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.04rem, .98rem + .3vw, 1.2rem); line-height: 1.25; letter-spacing: -.01em;
  color: #fff;
}
body.theme-dark .sv .sv-svc__desc { grid-area: desc; max-width: 52ch; font-size: .92rem; line-height: 1.55; color: var(--sv-text-2); }
/* Add, with a small drawn plus; Added, with a tick. Plain marks, no rings. */
body.theme-dark .sv .sv-svc__add {
  grid-area: add; justify-self: end;
  display: inline-flex; align-items: center; gap: .45rem;
  padding-left: .6rem;
  font-family: var(--font-body); font-size: .7rem; font-weight: 700; line-height: 1;
  letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  color: var(--sv-teal);
}
.sv-svc__add::before {
  content: ""; flex: none;
  width: 10px; height: 10px;
  background: currentColor;
  clip-path: polygon(40% 0, 60% 0, 60% 40%, 100% 40%, 100% 60%, 60% 60%, 60% 100%, 40% 100%, 40% 60%, 0 60%, 0 40%, 40% 40%);
  transition: transform .35s var(--ease);
}
.sv-svc__on { display: none; }
.sv-svc[aria-pressed="true"] .sv-svc__off { display: none; }
.sv-svc[aria-pressed="true"] .sv-svc__on { display: inline; }
body.theme-dark .sv .sv-svc[aria-pressed="true"] .sv-svc__add { color: var(--sv-teal-lt); margin-right: 1.1rem; }
.sv-svc[aria-pressed="true"] .sv-svc__add::before {
  width: 11px; height: 9px;
  clip-path: polygon(0 52%, 17% 36%, 40% 60%, 83% 0, 100% 16%, 40% 96%);
}
@media (hover: hover) {
  body.theme-dark .sv .sv-svc:not([aria-pressed="true"]):hover { background: rgba(115, 190, 198, .06); }
  .sv-svc:not([aria-pressed="true"]):hover .sv-svc__add::before { transform: rotate(90deg); }
}

.sv-prac__go {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .4rem 1.5rem; margin-top: 1.4rem;
}

/* ---- 3. how a project runs: the crease ---------------------------------------
   A rule down the page, faint at first and drawn in teal as you read. Its
   tip is held at a fixed reading point, 60% of the way down the screen, so
   the line grows exactly as fast as you scroll; each stage has a dot on the
   rule, and the dot fills with colour the moment the tip lands on it (and
   empties again if you scroll back). Each stage's card is hinged on its
   edge nearest the rule and folds out from it as it arrives. */
body.theme-dark .sv .sv-how { padding: clamp(3.6rem, 9vw, 7rem) 0 clamp(2.4rem, 6vw, 4rem); }
body.theme-dark .sv .sv-how__lead { margin: 1rem 0 0; max-width: 46ch; font-size: var(--sv-t-body); line-height: 1.65; color: var(--sv-text-2); }
body.theme-dark .sv .sv-crease {
  --x: .6rem;                                  /* where the rule runs */
  position: relative;
  list-style: none; margin: clamp(2.2rem, 6vw, 3.4rem) 0 0; padding: 0 0 0 2.5rem;
  display: grid; gap: 1.1rem;
  view-timeline: --sv-crease block;
}
.sv-crease::before, .sv-crease::after {
  content: "";
  position: absolute; left: var(--x); top: .6rem; bottom: .6rem;
  width: 2px; margin-left: -1px; border-radius: 2px;
  background: rgba(115, 190, 198, .18);
}
.sv-crease::after { background: var(--sv-teal); transform-origin: 50% 0; }
.sv-stage { position: relative; perspective: 1100px; }
/* the stop on the rule: an empty ring that fills when the line reaches it */
.sv-stage__dot {
  position: absolute; top: 1.5rem; left: calc(var(--x) - 2.5rem - 7px); z-index: 1;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--sv-bg); box-shadow: 0 0 0 2px rgba(115, 190, 198, .45);
}
.sv-stage__dot i {
  position: absolute; inset: -2px; border-radius: 50%;
  background: var(--sv-teal);
  box-shadow: 0 0 0 5px rgba(115, 190, 198, .16);
}
body.theme-dark .sv .sv-stage__card {
  --f: 1.35rem;
  position: relative;
  padding: 1.35rem 1.4rem 1.5rem;
  border-radius: 20px 0 20px 20px;
  background: var(--sv-card);
  box-shadow: 0 22px 34px -24px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 0 0 1px rgba(115, 190, 198, .1);
  transform-origin: 0 50%;
}
.sv-stage__card::after {
  content: "";
  position: absolute; top: 0; right: 0;
  width: calc(var(--f) * 1.2); height: calc(var(--f) * 1.2);
  background: var(--sv-corner) 0 0 / 100% 100% no-repeat;
  pointer-events: none;
}
body.theme-dark .sv .sv-stage__when {
  margin: 0; display: flex; align-items: baseline; gap: .6rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sv-teal);
}
body.theme-dark .sv .sv-stage__when span { font-family: var(--font-display); letter-spacing: .04em; color: rgba(234, 242, 246, .5); }
body.theme-dark .sv .sv-stage h3 {
  margin: .55rem 0 0;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); line-height: 1.05; letter-spacing: -.025em;
  color: #fff;
}
body.theme-dark .sv .sv-stage p:last-child { margin: .7rem 0 0; max-width: 40ch; font-size: .95rem; line-height: 1.6; color: var(--sv-text-2); }

/* ---- 5. the numbers, beside who trusts us ------------------------------------ */
body.theme-dark .sv .sv-proof {
  list-style: none;
  margin: 0 0 clamp(2.4rem, 6vw, 3.6rem); padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem;
  text-align: center;
}
body.theme-dark .sv .sv-proof li { display: grid; gap: .45rem; justify-items: center; }
body.theme-dark .sv .sv-proof strong {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.6rem);
  line-height: 1; letter-spacing: -.03em;
  color: #fff;
  font-variant-numeric: tabular-nums lining-nums;
}
body.theme-dark .sv .sv-proof strong span:not(.val) { color: var(--sv-teal); }
body.theme-dark .sv .sv-proof small {
  font-size: .7rem; font-weight: 600; line-height: 1.35;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--sv-text-2);
}

/* ---- 6. the questions -------------------------------------------------------
   The site's accordion (main.js opens it), set as quiet tiles: no rules
   between them, a plain drawn plus (no ring) that turns into a cross.
   --------------------------------------------------------------------- */
body.theme-dark .sv .sv-faq { padding: clamp(3.6rem, 9vw, 7rem) 0 clamp(2.4rem, 6vw, 4rem); }
.sv-faq__grid { display: grid; gap: clamp(1.8rem, 4vw, 2.6rem); }
body.theme-dark .sv .sv-faq__lead { margin: 1rem 0 0; max-width: 34ch; font-size: var(--sv-t-body); line-height: 1.6; color: var(--sv-text-2); }
body.theme-dark .sv .sv-faq__lead a { color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: var(--sv-teal); text-underline-offset: 4px; }
body.theme-dark .sv .faq { display: grid; gap: .6rem; border: 0; }
body.theme-dark .sv .faq__item { border: 0; border-radius: 18px; background: var(--sv-tint); padding: 0 1.2rem; transition: background-color .3s var(--ease); }
body.theme-dark .sv .faq__item.is-open { background: rgba(115, 190, 198, .11); }
body.theme-dark .sv .faq__q {
  gap: 1rem; padding: 1.15rem 0;
  font-size: clamp(1rem, .96rem + .3vw, 1.16rem); font-weight: 600; line-height: 1.35;
  color: #fff;
  background: none; border: 0; cursor: pointer;
}
body.theme-dark .sv .faq__q .ic {
  position: relative; flex: none;
  width: 22px; height: 22px; border: 0; border-radius: 0; background: transparent;
  transition: transform .4s var(--ease);
}
body.theme-dark .sv .faq__q .ic::before,
body.theme-dark .sv .faq__q .ic::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 14px; height: 2px; margin: -1px 0 0 -7px;
  border-radius: 2px; background: var(--sv-teal);
}
body.theme-dark .sv .faq__q .ic::after { transform: rotate(90deg); }
body.theme-dark .sv .faq__item.is-open .faq__q .ic { transform: rotate(45deg); }
body.theme-dark .sv .faq__a-inner { padding: 0 0 1.25rem; max-width: 62ch; font-size: var(--sv-t-body); line-height: 1.65; color: var(--sv-text-2); }


/* ---- 7. the close ------------------------------------------------------------ */
body.theme-dark .sv .sv-end { padding: 0 0 clamp(3.6rem, 8vw, 6rem); }
body.theme-dark .sv .sv-end__card {
  --f: 1.6rem;
  position: relative;
  max-width: 62rem; margin-inline: auto;
  padding: clamp(1.7rem, 1.1rem + 2.2vw, 2.9rem) clamp(1.3rem, .9rem + 2vw, 2.6rem) clamp(1.8rem, 1.2rem + 2.4vw, 3rem);
  border-radius: 26px 0 26px 26px;
  background: var(--sv-card);
  box-shadow: 0 26px 42px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 0 0 1px rgba(115, 190, 198, .14);
  text-align: center;
}
.sv-end__card::after {
  content: "";
  position: absolute; top: 0; right: 0;
  width: calc(var(--f) * 1.2); height: calc(var(--f) * 1.2);
  background: var(--sv-corner) 0 0 / 100% 100% no-repeat;
  pointer-events: none;
}
body.theme-dark .sv .sv-end__title {
  margin: .75rem 0 0;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.1rem);
  line-height: 1.08; letter-spacing: -.025em;
  color: #fff;
  text-wrap: balance;
}
body.theme-dark .sv .sv-end__title > span:not(.w) { color: var(--sv-teal); font-weight: 400; }
body.theme-dark .sv .sv-end__lead { margin: .8rem auto 0; max-width: 44ch; font-size: var(--sv-t-body); line-height: 1.6; color: var(--sv-text-2); text-wrap: balance; }
.sv-end__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .3rem 1.5rem; margin-top: 1.3rem; }

/* ---- your brief: the bar at the foot of the screen --------------------------
   Outside the page's main element, so it uses the site-wide colours. */
.sv-brief {
  position: fixed; left: 50%; bottom: calc(.9rem + env(safe-area-inset-bottom, 0px)); z-index: 900;
  display: flex; align-items: center; gap: .25rem;
  padding: .35rem;
  border-radius: 999px;
  background: #0E3152;
  box-shadow: 0 22px 44px -18px rgba(0, 0, 0, .85), inset 0 0 0 1px rgba(115, 190, 198, .3);
  transform: translate3d(-50%, calc(100% + 2rem), 0);
  visibility: hidden;
  transition: transform .55s var(--ease), visibility 0s linear .55s;
}
.sv-brief.is-on { transform: translate3d(-50%, 0, 0); visibility: visible; transition: transform .55s var(--ease), visibility 0s; }
.sv-brief__send {
  display: inline-flex; align-items: center; gap: .7rem;
  min-height: 2.9rem; padding: .3rem .3rem .3rem 1rem;
  border: 0; border-radius: 999px; background: none;
  font: inherit; color: #fff; white-space: nowrap; cursor: pointer;
}
.sv-brief__text { font-size: .9rem; color: rgba(234, 242, 246, .74); }
.sv-brief__text strong { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; color: #fff; }
.sv-brief__cta {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .6rem 1rem;
  border-radius: 999px;
  background: var(--teal-bright); color: var(--navy-900);
  font-size: .9rem; font-weight: 700;
  transition: background-color .3s var(--ease);
}
.sv-brief__cta .ico { font-size: .8em; }
.sv-brief__clear {
  display: grid; place-items: center; flex: none;
  width: 2.6rem; height: 2.6rem;
  border: 0; border-radius: 999px; background: none;
  color: rgba(234, 242, 246, .6); cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.sv-brief__clear svg { width: 1.1rem; height: 1.1rem; }
.sv-brief button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
@media (hover: hover) {
  .sv-brief__send:hover .sv-brief__cta { background: #fff; }
  .sv-brief__clear:hover { background: rgba(115, 190, 198, .14); color: #fff; }
}

/* ---- motion -----------------------------------------------------------------------
   The crease line and its dots are tied to the scroll where the browser can
   do that off the main thread; elsewhere the line is simply there and the
   dots are filled. The stages fold out with the scroll too.
   --------------------------------------------------------------------- */
@supports (animation-timeline: view()) {
  /* the line's tip sits at 60% of the screen: it starts as the top of the
     list reaches that point (40vh past the list entering) and is whole as
     the bottom of the list reaches it */
  html.js:not(.no-anim) .sv-crease::after {
    animation: sv-crease linear both; animation-timeline: --sv-crease;
    animation-range: entry-crossing calc(40vh + .6rem) entry-crossing calc(100% + 40vh - .6rem);
  }
  /* a dot fills as its centre crosses that same point, over a few pixels,
     so it reads as the line landing on it */
  html.js:not(.no-anim) .sv-stage__dot i {
    animation: sv-dot linear both; animation-timeline: view();
    animation-range: entry-crossing calc(40vh + 2px) entry-crossing calc(40vh + 12px);
  }
  html.js:not(.no-anim) .sv .sv-stage__card { animation: sv-stage linear both; animation-timeline: view(); animation-range: entry 10% cover 38%; }
}
@keyframes sv-crease { from { transform: scaleY(0); } to { transform: none; } }
@keyframes sv-dot    { from { opacity: 0; transform: scale(.25); } to { opacity: 1; transform: none; } }
@keyframes sv-stage  { from { opacity: .25; transform: rotateY(-70deg); } to { opacity: 1; transform: none; } }

/* ============================================================
   Larger screens: only additions from here on.
   ============================================================ */
@media (min-width: 760px) {
  /* the three in one row */
  .sv-shots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sv-shot--a { grid-column: auto; }
}

@media (min-width: 900px) {
  body.theme-dark .sv .sv-hero { padding-top: 8.5rem; }
  /* the promise on the left, its three words down the right. "We make
     brands" keeps to one line, sized to the column it sits in, and what we
     make them takes the lines under it */
  .sv-hero__copy { container-type: inline-size; }
  body.theme-dark .sv .sv-hero__title { font-size: clamp(2.6rem, 10cqi, 4.6rem); }
  body.theme-dark .sv .sv-hero__title .sv-nb { white-space: nowrap; }
  body.theme-dark .sv .sv-hero__title .sv-hero__em { display: block; }
  .sv-roll { font-size: 1.12em; }
  .sv-hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(2.5rem, 5vw, 5rem); align-items: end; }

  /* the word on the left, what it means on the right, sitting on its baseline */
  .sv-prac__head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 25rem);
    align-items: end; column-gap: 3rem;
  }
  body.theme-dark .sv .sv-prac__lead { padding-bottom: 1.1rem; }

  /* what is included: the heading and the way in on the left, the list on
     the right */
  .sv-inc { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
  .sv-inc__head { position: sticky; top: calc(var(--nav-h) + 2rem); }
  body.theme-dark .sv .sv-svc { grid-template-columns: 2.6rem minmax(0, 15rem) minmax(0, 1fr) auto; grid-template-areas: "no name desc add"; column-gap: 1.2rem; padding: 1.3rem 1rem 1.35rem .6rem; }
  body.theme-dark .sv .sv-svc__add { align-self: start; padding-top: .3rem; }
  body.theme-dark .sv .sv-svc__desc { font-size: .94rem; }

  /* the crease runs down the middle; the stages fold out to either side,
     the second of each pair a little lower */
  body.theme-dark .sv .sv-crease {
    --x: 50%;
    padding: 0; grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 5.5rem; row-gap: 1.6rem;
  }
  .sv-stage:nth-child(odd)  { grid-column: 1; }
  .sv-stage:nth-child(even) { grid-column: 2; margin-top: 6rem; }
  .sv-stage:nth-child(odd) .sv-stage__dot  { left: auto; right: calc(-2.75rem - 7px); }
  .sv-stage:nth-child(even) .sv-stage__dot { left: calc(-2.75rem - 7px); }
  .sv-stage:nth-child(odd) .sv-stage__card { transform-origin: 100% 50%; }
  @keyframes sv-stage-l { from { opacity: .25; transform: rotateY(70deg); } to { opacity: 1; transform: none; } }
  @supports (animation-timeline: view()) {
    html.js:not(.no-anim) .sv .sv-stage:nth-child(odd) .sv-stage__card { animation-name: sv-stage-l; }
  }

  .sv-faq__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; align-items: start; }
  .sv-faq__head { position: sticky; top: calc(var(--nav-h) + 2rem); }
}

/* ============================================================
   Less motion: everything shown finished, and still.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .sv-stage__card, .sv-crease::after, .sv-stage__dot i, .sv-cw__b, .sv-cw__b::after { animation: none !important; }
  .sv-roll { display: none !important; }
  .sv-hero__still { display: block !important; }
  .sv-cw__t { clip-path: none !important; }
  .sv-cw__b, .sv-shot__h--b { display: none !important; }
  .sv-shot__h--t { clip-path: none !important; transform: none !important; transition: none !important; }
  .sv [data-split] .w__i { transform: none !important; }
  .sv-svc::after, .sv-brief { transition: none !important; }
}
