/*
 * OutBox "scrapbook" theme skin.
 *
 * A standalone design layer: it is only linked when the site_theme setting is
 * "scrapbook" and every rule is scoped to body.site--scrapbook, so the paper
 * theme below it stays byte-for-byte intact. It overrides the shared section
 * markup — no view was changed for this theme.
 *
 * Palette: newsprint cream, warm paper, ink, burnt orange, deep teal, mustard.
 * Signature: torn-paper bookends (header strip, bands, footer) and the
 * polaroid portfolio carousel. Everything degrades without JavaScript: the
 * band simply scrolls by swipe.
 */

/* ------------------------------------------------------------- tokens ------ */

body.site--scrapbook {
  --color-bg: #f3ede1;
  --color-panel: #fffdf6;
  --color-text: #221b12;
  --color-muted: #6f6555;
  --color-border: #d8ccb4;
  --color-primary: #e8551f;
  --color-secondary: #107e79;
  --color-accent: #1a2233;
  --gradient-from: #e8551f;
  --gradient-to: #107e79;
  --brand-gradient: linear-gradient(135deg, #f0732e 0%, #e8551f 100%);
  --heading-gradient: linear-gradient(90deg, #221b12, #221b12);
  --radius-card: 12px;
  --radius-button: 999px;
  --radius-input: 8px;
  --shadow-card: 0 14px 34px rgba(34, 27, 18, 0.12);
  --spacing-section: 84px;
  --cut-line: rgba(34, 27, 18, 0.28);

  --sb-ink: #221b12;
  --sb-orange: #e8551f;
  --sb-teal: #107e79;
  --sb-mustard: #f0b429;
  --sb-navy: #1a2233;
  --sb-cream: #f3ede1;
  --sb-paper: #fffdf6;

  /* Torn-paper edge: a cream strip whose top edge follows a ripped contour. */
  --sb-tear: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='12' viewBox='0 0 28 12'%3E%3Cpath d='M0 12 L0 7 Q1.5 2 3.5 6 Q5.5 1 7.5 6 Q9.5 3 11.5 7 Q13.5 1.5 15.5 6 Q17.5 3 19.5 7.5 Q21.5 2 23.5 6.5 Q25.5 3.5 28 7 L28 12 Z' fill='%23000'/%3E%3C/svg%3E");
}

/* -------------------------------------------------------- typography ------ */

body.site--scrapbook h1,
body.site--scrapbook h2,
body.site--scrapbook h3,
body.site--scrapbook h4,
body.site--scrapbook .stats__figure,
body.site--scrapbook .brand__text {
  font-family: 'Noto Kufi Arabic', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: -0.01em;
}

[dir="ltr"] body.site--scrapbook h1,
[dir="ltr"] body.site--scrapbook h2,
[dir="ltr"] body.site--scrapbook h3,
[dir="ltr"] body.site--scrapbook h4,
[dir="ltr"] body.site--scrapbook .stats__figure,
[dir="ltr"] body.site--scrapbook .brand__text {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* --------------------------------------------------- section rhythm ------ */

/* Bands cut their own torn edges; the dashed cut-line stops where they sit. */
body.site--scrapbook .sec--clients,
body.site--scrapbook .sec--projects {
  border-block-start: 0;
}

body.site--scrapbook .sec--clients + .sec,
body.site--scrapbook .sec--projects + .sec {
  border-block-start: 0;
}

/* The navy panels of the paper theme come back to paper and ink. */
body.site--scrapbook .sec--stats,
body.site--scrapbook .sec--contact,
body.site--scrapbook .sec--cta {
  --color-text: #221b12;
  --color-muted: #6f6555;
  --color-border: rgba(34, 27, 18, 0.2);
  --color-panel: #fffdf6;
  --cut-line: rgba(34, 27, 18, 0.3);
  /* These three bands are paper in this skin, so the paper theme's
   * light-on-dark accent has to be taken back. */
  --accent-text: var(--sb-stamp-ink);
  background: transparent;
}

body.site--scrapbook .sec--gallery,
body.site--scrapbook .sec--videos {
  background: #ece3d2;
}

/* ------------------------------------------------ torn bands & edges ------ */

body.site--scrapbook .site-header::after,
body.site--scrapbook .site-footer::before,
body.site--scrapbook .sec--clients::before,
body.site--scrapbook .sec--clients::after,
body.site--scrapbook .sec--projects::before,
body.site--scrapbook .sec--projects::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  block-size: 12px;
  background: var(--sb-cream);
  -webkit-mask: var(--sb-tear) top / 28px 12px repeat-x;
  mask: var(--sb-tear) top / 28px 12px repeat-x;
}

body.site--scrapbook .site-header::after {
  inset-block-end: -1px;
}

body.site--scrapbook .site-footer::before {
  inset-block-start: -1px;
  transform: scaleY(-1);
}

body.site--scrapbook .sec--clients::before,
body.site--scrapbook .sec--projects::before {
  inset-block-start: -1px;
  transform: scaleY(-1);
}

body.site--scrapbook .sec--clients::after,
body.site--scrapbook .sec--projects::after {
  inset-block-end: -1px;
}

/* ------------------------------------------------------------- buttons ------ */

body.site--scrapbook .btn {
  border: 2px solid var(--sb-ink);
  border-radius: var(--radius-button);
  background: var(--sec-btn-bg, var(--sb-paper));
  color: var(--sec-btn-fg, var(--sb-ink));
  font-weight: 800;
  box-shadow: none;
  padding-inline: 1.5rem;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

body.site--scrapbook .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(34, 27, 18, 0.18);
  color: var(--sec-btn-fg, var(--sb-ink));
}

body.site--scrapbook .btn--primary {
  background-color: var(--sec-btn-bg, var(--sb-orange));
  background-image: var(--sec-btn-image, none);
  border-color: var(--sec-btn-bg, var(--sb-orange));
  color: var(--sec-btn-fg, #fffdf6);
  box-shadow: 0 8px 20px rgba(232, 85, 31, 0.32);
}

body.site--scrapbook .btn--primary:hover {
  background-color: var(--sec-btn-bg, #d14916);
  border-color: var(--sec-btn-bg, #d14916);
  color: var(--sec-btn-fg, #fffdf6);
}

body.site--scrapbook .btn--ghost {
  background-color: var(--sec-btn-bg, transparent);
}

body.site--scrapbook .btn--ghost:hover {
  background-color: var(--sec-btn-bg, var(--sb-paper));
  border-color: var(--sb-ink);
}

/* --------------------------------------------------------- eyebrows ------ */

body.site--scrapbook .sec__eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0;
  background: transparent;
  color: var(--sb-orange);
  box-shadow: none;
  border-radius: 0;
  letter-spacing: 0.14em;
  font-weight: 800;
  transform: none;
}

body.site--scrapbook .sec__eyebrow::before {
  content: "✦";
  margin-inline-end: 0.5rem;
  font-size: 0.9em;
  letter-spacing: 0;
}

body.site--scrapbook .sec--clients .sec__eyebrow,
body.site--scrapbook .sec--projects .sec__eyebrow {
  color: #fffdf6;
}

body.site--scrapbook .pill--sample {
  color: var(--color-muted);
  border: 1.5px dashed currentColor;
  background: transparent;
  font-weight: 700;
}

body.site--scrapbook .sec--clients .pill--sample,
body.site--scrapbook .sec--projects .pill--sample {
  background: transparent;
  color: rgba(255, 253, 246, 0.8);
  border-color: rgba(255, 253, 246, 0.7);
}

/* --------------------------------------------------------- header ------ */

body.site--scrapbook .site-header {
  background: var(--sb-navy);
  border-block-end: 0;
  --color-text: #fffdf6;
  --color-muted: #c2cad9;
  --color-border: rgba(255, 253, 246, 0.28);
  --color-panel: rgba(255, 253, 246, 0.1);
  --cut-line: rgba(255, 253, 246, 0.4);
}

body.site--scrapbook .site-header.is-sticky {
  background: rgba(26, 34, 51, 0.94);
}

body.site--scrapbook .site-header .brand {
  color: #fffdf6;
}

/* Search magnifier, decorative. */
body.site--scrapbook .site-header__tools::after {
  content: "";
  inline-size: 15px;
  block-size: 15px;
  border: 2px solid rgba(255, 253, 246, 0.75);
  border-radius: 50%;
  margin-inline-start: 0.35rem;
  position: relative;
}

body.site--scrapbook .site-header__tools::before {
  content: "";
  position: absolute;
  inline-size: 7px;
  block-size: 2px;
  background: rgba(255, 253, 246, 0.75);
  transform: rotate(45deg);
}

body.site--scrapbook .site-header__tools {
  position: relative;
}

body.site--scrapbook .lang__list::before {
  content: "";
  inline-size: 15px;
  block-size: 15px;
  align-self: center;
  border: 2px solid rgba(255, 253, 246, 0.6);
  border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
  color: rgba(255, 253, 246, 0.6);
}

body.site--scrapbook .lang__link {
  border-color: rgba(255, 253, 246, 0.35);
  color: rgba(255, 253, 246, 0.85);
}

body.site--scrapbook .lang__link:hover {
  color: #fffdf6;
  border-color: rgba(255, 253, 246, 0.8);
}

body.site--scrapbook .lang__link.is-active {
  background: rgba(255, 253, 246, 0.14);
  color: #fffdf6;
  border-color: rgba(255, 253, 246, 0.65);
}

body.site--scrapbook .nav-bar__link,
body.site--scrapbook .nav-disclosure__link {
  color: rgba(255, 253, 246, 0.85);
}

body.site--scrapbook .nav-bar__link:hover,
body.site--scrapbook .nav-disclosure__link:hover {
  background: transparent;
  color: #fffdf6;
}

/* The active page sits in an orange box, like the reference strip. */
body.site--scrapbook .nav-bar__link.is-active,
body.site--scrapbook .nav-disclosure__link.is-active {
  background: var(--sb-orange);
  border: 0;
  border-radius: 8px;
  color: #fffdf6;
}

body.site--scrapbook .nav-bar__link.is-active::after {
  display: none;
}

body.site--scrapbook .nav-disclosure__button {
  background: transparent;
  border: 2px solid rgba(255, 253, 246, 0.55);
  box-shadow: none;
  color: #fffdf6;
}

body.site--scrapbook .nav-disclosure nav {
  background: #222c42;
  border: 1px solid rgba(255, 253, 246, 0.22);
  box-shadow: 0 18px 40px rgba(10, 14, 22, 0.45);
}

/* ------------------------------------------------------------- hero ------ */

body.site--scrapbook .sec--hero {
  background-image: none;
}

body.site--scrapbook .sec--hero::before,
body.site--scrapbook .sec--hero::after {
  display: none;
}

body.site--scrapbook .hero__title {
  font-size: clamp(2.4rem, 1.55rem + 4vw, 4.4rem);
  line-height: 1.14;
}

body.site--scrapbook .hero__subtitle,
body.site--scrapbook .hero__text .sec__subtitle {
  max-inline-size: 52ch;
}

/* Cutout stage: no frame, no clipping, so the teal scrap pokes outside the box. */
body.site--scrapbook .hero__media {
  position: relative;
  z-index: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

body.site--scrapbook .hero__media::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset-block-start: -1rem;
  inset-inline-start: -1.2rem;
  inline-size: 62%;
  block-size: 86%;
  background: var(--sb-teal);
  border-radius: 6px;
  transform: rotate(-2.6deg);
}

[dir="rtl"] body.site--scrapbook .hero__media::before {
  transform: rotate(2.6deg);
}

/* The PNG background is snapped to the page cream, so the cutout floats;
   a rectangle shadow would betray the seam. */
body.site--scrapbook .hero__media img {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
  transform: rotate(0.9deg);
}

[dir="rtl"] body.site--scrapbook .hero__media img {
  transform: rotate(-0.9deg);
}

body.site--scrapbook .hero__media::after {
  content: "";
  position: absolute;
  inset-block-start: -0.85rem;
  inset-inline-start: 10%;
  inline-size: 5.4rem;
  block-size: 1.6rem;
  background: rgba(240, 180, 41, 0.85);
  transform: rotate(-3deg);
  box-shadow: 0 1px 4px rgba(34, 27, 18, 0.3);
}

[dir="rtl"] body.site--scrapbook .hero__media::after {
  transform: rotate(3deg);
}

/* Hand-drawn arrow from the copy down to the primary button. */
body.site--scrapbook .hero__actions {
  align-items: flex-end;
  gap: 1rem;
}

body.site--scrapbook .hero__actions::before {
  content: "";
  inline-size: 3.4rem;
  block-size: 2.6rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 52'%3E%3Cpath d='M6 5 Q 38 2 43 25' fill='none' stroke='%23e8551f' stroke-width='3.5' stroke-linecap='round'/%3E%3Cpath d='M33 19 L44 26 L53 15' fill='none' stroke='%23e8551f' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
  margin-inline-end: -0.2rem;
}

[dir="rtl"] body.site--scrapbook .hero__actions::before {
  transform: scaleX(-1);
}

body.site--scrapbook .hero__point {
  background: var(--sb-paper);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.55rem 1rem;
  box-shadow: 0 6px 16px rgba(34, 27, 18, 0.08);
}

body.site--scrapbook .hero__value {
  color: var(--sb-orange);
  font-weight: 900;
}

body.site--scrapbook .hero__badge {
  background: var(--sb-orange);
  color: #fffdf6;
  border: 0;
  border-radius: 6px;
  box-shadow: none;
  font-weight: 800;
}

/* ---------------------------------------------------------- services ------ */

body.site--scrapbook .services__grid {
  row-gap: 2.6rem;
}

body.site--scrapbook .services--grid .service {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: start;
  background: var(--sb-paper);
  border: 1px solid #d5c8ae;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(34, 27, 18, 0.1);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

/* Slight, alternating tilt: papers pinned to a wall, not a shop window. */
body.site--scrapbook .services__grid .service:nth-child(odd) {
  transform: rotate(-1.2deg);
}

body.site--scrapbook .services__grid .service:nth-child(even) {
  transform: rotate(1.2deg);
}

body.site--scrapbook .services--grid .service:hover {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: 0 22px 42px rgba(34, 27, 18, 0.16);
}

body.site--scrapbook .service::before {
  content: "";
  position: absolute;
  inset-block-start: -0.8rem;
  inset-inline-start: 15%;
  inline-size: 4.6rem;
  block-size: 1.5rem;
  background: rgba(240, 180, 41, 0.8);
  transform: rotate(-3deg);
  box-shadow: 0 1px 3px rgba(34, 27, 18, 0.28);
}

[dir="rtl"] body.site--scrapbook .service::before {
  transform: rotate(3deg);
}

body.site--scrapbook .service__icon {
  inline-size: 3.3rem;
  block-size: 3.3rem;
  border: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  line-height: 1;
  margin-block-end: 0.35rem;
  background: #d8eeeb;
}

body.site--scrapbook .services__grid .service:nth-child(5n + 2) .service__icon {
  background: #fdf0cd;
}

body.site--scrapbook .services__grid .service:nth-child(5n + 3) .service__icon {
  background: #fbd9c6;
}

body.site--scrapbook .services__grid .service:nth-child(5n + 4) .service__icon {
  background: #d8eeeb;
}

body.site--scrapbook .services__grid .service:nth-child(5n) .service__icon {
  background: #fdf0cd;
}

/* The circular arrow every card ends with. */
body.site--scrapbook .service::after {
  content: "";
  inline-size: 2.3rem;
  block-size: 2.3rem;
  border: 2px solid var(--sb-ink);
  border-radius: 50%;
  margin-block-start: auto;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6' fill='none' stroke='%23221b12' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 15px no-repeat;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

[dir="rtl"] body.site--scrapbook .service::after {
  transform: scaleX(-1);
}

body.site--scrapbook .service:hover::after,
body.site--scrapbook .service:focus-within::after {
  background-color: var(--sb-orange);
  border-color: var(--sb-orange);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6' fill='none' stroke='%23fffdf6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Five services across on wide screens, like the reference wall. */
@media (min-width: 64rem) {
  body.site--scrapbook .services__grid[data-cols="4"] {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 63.99rem) and (min-width: 40rem) {
  body.site--scrapbook .services__grid[data-cols="4"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------------------------------------------------------- clients ------ */

body.site--scrapbook .sec--clients {
  position: relative;
  background: var(--sb-teal);
  border-block: 0;
  padding-block: 2.4rem;
  --color-text: #fffdf6;
  --color-muted: rgba(255, 253, 246, 0.82);
  --color-border: rgba(255, 253, 246, 0.4);
}

body.site--scrapbook .sec--clients .clients__item {
  background: var(--sb-paper);
  border: 0;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(10, 30, 28, 0.3);
}

body.site--scrapbook .sec--clients .clients__item:hover {
  transform: translate(-2px, -2px) rotate(-1deg);
}

body.site--scrapbook .sec--clients .clients__name {
  color: var(--sb-ink);
}

/* ---------------------------------------------------------- gallery ------ */

body.site--scrapbook .gallery__item {
  position: relative;
  border: 0;
  border-radius: 10px;
  background: var(--sb-paper);
  box-shadow: 0 12px 28px rgba(34, 27, 18, 0.14);
}

body.site--scrapbook .gallery__item::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset-block-start: -0.7rem;
  inset-inline-start: 12%;
  inline-size: 4rem;
  block-size: 1.4rem;
  background: rgba(240, 180, 41, 0.8);
  transform: rotate(-3deg);
  box-shadow: 0 1px 3px rgba(34, 27, 18, 0.28);
}

[dir="rtl"] body.site--scrapbook .gallery__item::before {
  transform: rotate(3deg);
}

/* ---------------------------------------------------------- videos ------ */

body.site--scrapbook .video-card {
  border: 0;
  border-radius: 12px;
  background: var(--sb-paper);
  box-shadow: 0 14px 30px rgba(34, 27, 18, 0.12);
}

/* -------------------------------------------- projects: polaroid band ------ */

body.site--scrapbook .sec--projects {
  position: relative;
  background:
    radial-gradient(rgba(255, 253, 246, 0.055) 1px, transparent 1.4px) 0 0 / 22px 22px,
    var(--sb-navy);
  padding-block: 4.2rem 4.6rem;
  --color-text: #fffdf6;
  --color-muted: rgba(255, 253, 246, 0.72);
  --color-border: rgba(255, 253, 246, 0.25);
  --cut-line: rgba(255, 253, 246, 0.3);
}

body.site--scrapbook .sec--projects .btn--ghost {
  color: var(--sec-btn-fg, var(--color-text));
  border-color: var(--color-border);
}

body.site--scrapbook .sec--projects .btn--ghost:hover {
  background: var(--color-text);
  color: var(--color-panel);
  border-color: var(--color-text);
}

/* The list becomes a snap carousel; the JS adds arrows and dots on overflow. */
body.site--scrapbook .sec--projects .projects__list {
  display: grid;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: clamp(15rem, 26vw, 20.5rem);
  gap: 1.9rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1.1rem 0.4rem 1.3rem;
  margin-block-start: 0.4rem;
}

body.site--scrapbook .sec--projects .project-card {
  position: relative;
  scroll-snap-align: center;
  background: var(--sb-paper);
  border: 0;
  border-radius: 6px;
  box-shadow: 0 18px 36px rgba(6, 10, 18, 0.55);
  padding: 0.75rem 0.75rem 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

body.site--scrapbook .sec--projects .project-card:nth-child(odd) {
  transform: rotate(-1.6deg);
}

body.site--scrapbook .sec--projects .project-card:nth-child(even) {
  transform: rotate(1.4deg);
}

body.site--scrapbook .sec--projects .project-card:hover {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: 0 26px 46px rgba(6, 10, 18, 0.65);
}

body.site--scrapbook .sec--projects .project-card::before {
  content: "";
  position: absolute;
  inset-block-start: -0.8rem;
  inset-inline-start: 50%;
  translate: -50% 0;
  inline-size: 4.2rem;
  block-size: 1.5rem;
  background: rgba(243, 237, 225, 0.92);
  transform: rotate(-2deg);
  box-shadow: 0 1px 3px rgba(6, 10, 18, 0.5);
}

body.site--scrapbook .sec--projects .project-card__media {
  border-block-end: 0;
  border-radius: 4px;
}

body.site--scrapbook .sec--projects .project-card__body {
  --color-text: #221b12;
  --color-muted: #6f6555;
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  text-align: center;
  padding: 0.9rem 0.6rem 1.05rem;
}

body.site--scrapbook .sec--projects .project-card__title {
  font-family: 'Noto Kufi Arabic', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--sb-ink);
}

[dir="ltr"] body.site--scrapbook .sec--projects .project-card__title {
  font-family: 'Space Grotesk', system-ui, sans-serif;
}

body.site--scrapbook .sec--projects .project-card__summary,
body.site--scrapbook .sec--projects .project-card__result,
body.site--scrapbook .sec--projects .project-card__more {
  display: none;
}

body.site--scrapbook .sec--projects .project-card__client {
  color: var(--sb-orange);
  font-weight: 700;
  font-size: 0.85rem;
}

/* Carousel controls (injected by theme-scrapbook.js). */
body.site--scrapbook .sb-car {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  margin-block-start: 0.4rem;
}

body.site--scrapbook .sb-arrows {
  display: flex;
  gap: 0.9rem;
}

body.site--scrapbook .sb-arrow {
  inline-size: 3rem;
  block-size: 3rem;
  border: 2px solid var(--color-border);
  border-radius: 50%;
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

body.site--scrapbook .sb-arrow::before {
  content: "";
  inline-size: 0.65rem;
  block-size: 0.65rem;
  border-block-start: 2.5px solid currentColor;
  border-inline-end: 2.5px solid currentColor;
}

body.site--scrapbook .sb-arrow--next::before {
  transform: rotate(45deg);
}

body.site--scrapbook .sb-arrow--prev::before {
  transform: rotate(225deg);
}

body.site--scrapbook .sb-arrow:hover:not(:disabled) {
  background: var(--color-text);
  border-color: var(--color-text);
  color: var(--sec-bg-color, var(--sb-cream));
}

body.site--scrapbook .sb-arrow:disabled {
  opacity: 0.32;
  cursor: default;
}

body.site--scrapbook .sb-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  max-inline-size: 100%;
}

body.site--scrapbook .sb-dot {
  inline-size: 0.6rem;
  block-size: 0.6rem;
  border: 2px solid rgba(255, 253, 246, 0.7);
  border-radius: 999px;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: inline-size 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

body.site--scrapbook .sb-dot.is-active {
  inline-size: 1.7rem;
  background: var(--sb-orange);
  border-color: var(--sb-orange);
}

body.site--scrapbook .sb-arrow:focus-visible,
body.site--scrapbook .sb-dot:focus-visible {
  outline: 3px solid var(--sb-orange);
  outline-offset: 3px;
}

/* ------------------------------------------------------------- stats ------ */

body.site--scrapbook .stats__list {
  border: 0;
  padding: 0;
}

body.site--scrapbook .stats__figure {
  background-image: none;
  color: var(--sb-orange);
  -webkit-text-fill-color: var(--sb-orange);
  font-size: clamp(2.1rem, 1.3rem + 3vw, 3.1rem);
}

body.site--scrapbook .stats__item::before {
  content: "";
  inline-size: 12px;
  block-size: 12px;
  background: var(--sb-teal);
  transform: rotate(45deg);
  margin-inline: auto;
  margin-block-end: 0.55rem;
}

body.site--scrapbook .stats__item:nth-child(4n + 2)::before {
  background: var(--sb-mustard);
}

body.site--scrapbook .stats__item:nth-child(4n + 3)::before {
  background: var(--sb-orange);
}

body.site--scrapbook .stats__item:nth-child(4n)::before {
  background: var(--sb-ink);
}

body.site--scrapbook .stats__label {
  color: var(--sb-ink);
  font-weight: 700;
}

/* ------------------------------------------------------ testimonials ------ */

body.site--scrapbook .quote {
  position: relative;
  background: var(--sb-paper);
  border: 1px solid #d5c8ae;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(34, 27, 18, 0.1);
}

body.site--scrapbook .quote::before {
  content: "";
  position: absolute;
  inset-block-start: -0.75rem;
  inset-inline-start: 8%;
  inline-size: 4.2rem;
  block-size: 1.5rem;
  background: rgba(240, 180, 41, 0.8);
  transform: rotate(-2.5deg);
  box-shadow: 0 1px 3px rgba(34, 27, 18, 0.28);
}

body.site--scrapbook .quote__author {
  color: var(--sb-orange);
}

/* -------------------------------------------------------------- about ------ */

body.site--scrapbook .about__point {
  border: 1px solid #d5c8ae;
  background: var(--sb-paper);
  box-shadow: 0 10px 24px rgba(34, 27, 18, 0.09);
}

body.site--scrapbook .about__mark {
  background: var(--sb-orange);
  color: #fffdf6;
  border: 0;
}

/* ---------------------------------------------------------------- faq ------ */

body.site--scrapbook .faq__item {
  border: 1px solid #d5c8ae;
  border-radius: 10px;
  background: var(--sb-paper);
  box-shadow: 0 8px 20px rgba(34, 27, 18, 0.07);
}

/* ---------------------------------------------------------------- cta ------ */

body.site--scrapbook .sec--cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: var(--gap-lg);
}

body.site--scrapbook .cta__media {
  position: relative;
  inset: auto;
  z-index: 0;
}

/* Background snapped to cream: no rectangle shadow, just a pasted tilt. */
body.site--scrapbook .cta__bg {
  opacity: 1;
  object-fit: contain;
  max-block-size: 20rem;
  transform: rotate(-2deg);
}

body.site--scrapbook .cta__inner {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

body.site--scrapbook .cta__title {
  font-size: clamp(1.9rem, 1.3rem + 3vw, 3rem);
}

body.site--scrapbook .cta__chips .chip {
  color: var(--sb-teal);
  font-weight: 800;
}

@media (min-width: 60rem) {
  body.site--scrapbook .sec--cta {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  /* First child is the artwork; in RTL that column lands on the right. */
  body.site--scrapbook .cta__inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ------------------------------------------------------------ contact ------ */

body.site--scrapbook .contact__details {
  background: var(--sb-paper);
  border: 1px solid #d5c8ae;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(34, 27, 18, 0.08);
}

body.site--scrapbook .contact__form {
  position: relative;
  background: var(--sb-paper);
  border: 1px solid #d5c8ae;
  border-radius: 12px;
  padding: 1.6rem;
  box-shadow: 0 16px 36px rgba(34, 27, 18, 0.1);
}

body.site--scrapbook .contact__form::before {
  content: "";
  position: absolute;
  inset-block-start: -0.8rem;
  inset-inline-start: 10%;
  inline-size: 4.6rem;
  block-size: 1.5rem;
  background: rgba(240, 180, 41, 0.8);
  transform: rotate(-2.5deg);
  box-shadow: 0 1px 3px rgba(34, 27, 18, 0.28);
}

[dir="rtl"] body.site--scrapbook .contact__form::before {
  transform: rotate(2.5deg);
}

body.site--scrapbook .input {
  background: #fff;
  border: 1px solid #cfc3ab;
  border-radius: var(--radius-input);
  color: var(--sb-ink);
  box-shadow: none;
}

body.site--scrapbook .input:focus {
  border-color: var(--sb-teal);
  box-shadow: 0 0 0 3px rgba(16, 126, 121, 0.18);
}

/* ------------------------------------------------------------- footer ------ */

body.site--scrapbook .site-footer {
  position: relative;
  background: var(--sb-navy);
  border-block-start: 0;
}

body.site--scrapbook .site-footer__title {
  color: #ffab73;
}

body.site--scrapbook .site-footer__copy {
  color: #8e99b0;
}

/* ------------------------------------------------------------- slider ------ */

body.site--scrapbook .slider--inset .slider__frame {
  padding-block-start: 0.6rem;
}

body.site--scrapbook .slider--inset .slider__slide {
  padding-block-start: 0.9rem;
}

/* A strip of mustard tape pins each slide to the page. */
body.site--scrapbook .slider--inset .slider__slide::before {
  content: "";
  position: absolute;
  inset-block-start: 0.15rem;
  inset-inline-start: 8%;
  inline-size: 5rem;
  block-size: 1.4rem;
  background: rgba(240, 180, 41, 0.85);
  transform: rotate(-2deg);
  box-shadow: 0 1px 3px rgba(34, 27, 18, 0.3);
  z-index: 1;
}

[dir="rtl"] body.site--scrapbook .slider--inset .slider__slide::before {
  transform: rotate(2deg);
}

body.site--scrapbook .slider__img {
  border: 1px solid #d5c8ae;
  background: var(--sb-paper);
  box-shadow: 0 12px 28px rgba(34, 27, 18, 0.12);
}

body.site--scrapbook .slider__caption {
  background: rgba(21, 28, 47, 0.78);
}

body.site--scrapbook .slider__arrow {
  background: var(--sb-paper);
  border-color: #d5c8ae;
  color: var(--sb-navy);
}

body.site--scrapbook .slider__dot.is-active {
  background: var(--sb-orange);
}

body.site--scrapbook .slider__toggle {
  border-color: #cfc3ab;
  color: var(--sb-teal);
}

/* -------------------------------------------------------------- motion ------ */

@media (prefers-reduced-motion: reduce) {
  body.site--scrapbook .service,
  body.site--scrapbook .project-card,
  body.site--scrapbook .btn {
    transition: none;
  }
}

/* ---------------------------------------------------- section backgrounds --- */

body.site--scrapbook .sec--bg-light {
  background: var(--sb-paper);
}

body.site--scrapbook .sec--bg-tint {
  background: #ece3d2;
  background: color-mix(in srgb, var(--sb-teal) 8%, var(--color-bg));
}

body.site--scrapbook .sec--bg-navy,
body.site--scrapbook .sec--bg-dark {
  color: #f5efe2;
  --color-text: #f5efe2;
  --color-muted: #a9b3c6;
  --color-border: rgba(245, 239, 226, 0.22);
  --color-panel: #232d42;
  --cut-line: rgba(245, 239, 226, 0.35);
  --heading-gradient: linear-gradient(90deg, #f5efe2, #f5efe2);
}

body.site--scrapbook .sec--bg-navy {
  background: var(--sb-navy);
}

body.site--scrapbook .sec--bg-dark {
  background: #0e1420;
}

/* -------------------------------------------------- accent legibility pass --- */

/* The burnt orange does two different jobs. As small text it has to darken on
 * paper and lighten on a dark band. As the fill behind a cream label it carries
 * its own contrast and never moves. Splitting those jobs into two tokens keeps
 * a dark band from washing out the type inside the cards standing on it.
 */
body.site--scrapbook {
  --sb-stamp-ink: #a83208;
  --sb-stamp-fill: #a83208;
  --sb-stamp-on-dark: #ff9c57;
  --color-primary: #a83208;
  --color-muted: #675e4d;
  /* The shared components ask the band for its accent-as-text. This skin
   * already answers that question with --sb-stamp-ink, which every surface
   * below re-declares, so alias it here and in each of those blocks. */
  --accent-text: var(--sb-stamp-ink);
}

/* Accent used as text. */
body.site--scrapbook .sec__eyebrow,
body.site--scrapbook .hero__value,
body.site--scrapbook .service__icon,
body.site--scrapbook .website__site-link,
body.site--scrapbook .sec--projects .project-card__client,
body.site--scrapbook .quote__author,
body.site--scrapbook .cta__chips .chip {
  color: var(--sb-stamp-ink);
  -webkit-text-fill-color: var(--sb-stamp-ink);
}

/* Accent used as a fill under a cream label. */
body.site--scrapbook .chip.is-active,
body.site--scrapbook .hero__badge,
body.site--scrapbook .nav-bar__link.is-active,
body.site--scrapbook .nav-disclosure__link.is-active,
body.site--scrapbook .about__mark,
body.site--scrapbook .slider__dot.is-active,
body.site--scrapbook .sb-dot.is-active {
  background-color: var(--sb-stamp-fill);
  border-color: var(--sb-stamp-fill);
  color: #fffdf6;
  -webkit-text-fill-color: #fffdf6;
}

/* A button that was given no colour of its own is drawn from the band it
 * stands on, so an outline button on a navy band reads cream, not ink. This
 * base rule is written before the variants because they share its weight.
 */
body.site--scrapbook .btn {
  border: 2px solid currentColor;
  background: var(--sec-btn-bg, var(--color-panel));
  color: var(--sec-btn-fg, var(--color-text));
}

body.site--scrapbook .btn:hover {
  color: var(--sec-btn-fg, var(--color-text));
}

body.site--scrapbook .btn--ghost {
  background-color: var(--sec-btn-bg, transparent);
  color: var(--sec-btn-fg, var(--color-text));
}

body.site--scrapbook .btn--ghost:hover {
  background-color: var(--sec-btn-bg, var(--color-panel));
  border-color: currentColor;
  color: var(--sec-btn-fg, var(--color-text));
}

body.site--scrapbook .btn--primary {
  background-color: var(--sec-btn-bg, var(--sb-stamp-fill));
  border-color: var(--sec-btn-bg, var(--sb-stamp-fill));
  color: var(--sec-btn-fg, #fffdf6);
  box-shadow: 0 8px 20px rgba(168, 50, 8, 0.3);
}

body.site--scrapbook .btn--primary:hover {
  background-color: var(--sec-btn-bg, #8f2a07);
  border-color: var(--sec-btn-bg, #8f2a07);
  color: var(--sec-btn-fg, #fffdf6);
}

/* The sample badge paints its own plate, so it stays readable on a cream
 * polaroid, on a navy band, and on whatever the editor picks.
 */
body.site--scrapbook .pill--sample,
body.site--scrapbook .sec--clients .pill--sample,
body.site--scrapbook .sec--projects .pill--sample {
  background: #ffd9c4;
  border: 1.5px dashed #a83208;
  color: #6b2408;
}

/* Cards that are always printed on paper keep their own ink, so a dark band
 * behind them cannot flip their type to cream. Cards that follow the band
 * (--color-panel) are left alone and flip with it.
 */
body.site--scrapbook :is(.project-card, .quote, .quote__figure, .video-card,
                         .gallery__item, .about__point, .clients__item,
                         .faq__item, .contact__details, .contact__form,
                         .services--grid .service, .pill--sample) {
  color: var(--sb-ink);
  --color-text: var(--sb-ink);
  --color-muted: #675e4d;
  --color-border: #d5c8ae;
  --color-panel: var(--sb-paper);
  --color-primary: #a83208;
  --heading-gradient: linear-gradient(90deg, var(--sb-ink), var(--sb-ink));
  --sb-stamp-ink: #a83208;
  --accent-text: var(--sb-stamp-ink);
  --color-error: #b3261e;
}

/* The icon sits on its own pastel tile, so its accent never follows the band. */
body.site--scrapbook .service__icon {
  --sb-stamp-ink: #a83208;
  --accent-text: var(--sb-stamp-ink);
}

/* -------------------------------------- section backgrounds, all of them --- */

/* The background picker grew long after this skin was drawn, so the choices
 * that were never mapped fell through to paper tones while the band kept its
 * own ink. Every option now resolves to one of this skin's surfaces and
 * carries the tokens that match it.
 */
body.site--scrapbook :is(.sec--bg-light, .sec--bg-tint, .sec--bg-peach,
                         .sec--bg-rose, .sec--bg-butter, .sec--bg-sand,
                         .sec--bg-aqua, .sec--bg-indigo, .sec--bg-lilac,
                         .sec--bg-mist, .sec--bg-sage, .sec--bg-clay,
                         .sec--bg-gradient) {
  color: var(--sb-ink);
  --color-text: var(--sb-ink);
  --color-muted: #675e4d;
  --color-border: #d8ccb4;
  --color-panel: var(--sb-paper);
  --color-primary: #a83208;
  --cut-line: rgba(34, 27, 18, 0.28);
  --heading-gradient: linear-gradient(90deg, var(--sb-ink), var(--sb-ink));
  --sb-stamp-ink: #a83208;
  --accent-text: var(--sb-stamp-ink);
  --color-error: #b3261e;
}

body.site--scrapbook :is(.sec--bg-navy, .sec--bg-dark, .sec--bg-slate,
                         .sec--bg-forest, .sec--bg-plum, .sec--bg-ink) {
  color: #f5efe2;
  --color-text: #f5efe2;
  --color-muted: #c4ccd9;
  --color-border: rgba(245, 239, 226, 0.24);
  --color-panel: #232d42;
  --color-primary: var(--sb-stamp-on-dark);
  --cut-line: rgba(245, 239, 226, 0.35);
  --heading-gradient: linear-gradient(90deg, #f5efe2, #f5efe2);
  --sb-stamp-ink: var(--sb-stamp-on-dark);
  --accent-text: var(--sb-stamp-ink);
}

body.site--scrapbook .sec--bg-peach  { background: color-mix(in srgb, #e8551f 12%, #fffdf6); }
body.site--scrapbook .sec--bg-rose   { background: color-mix(in srgb, #b5405a 8%, #fffdf6); }
body.site--scrapbook .sec--bg-butter { background: color-mix(in srgb, #f0b429 16%, #fffdf6); }
body.site--scrapbook .sec--bg-sand   { background: color-mix(in srgb, #f0b429 10%, #f3ede1); }
body.site--scrapbook .sec--bg-clay   { background: color-mix(in srgb, #e8551f 14%, #f3ede1); }
body.site--scrapbook .sec--bg-aqua   { background: color-mix(in srgb, #107e79 12%, #fffdf6); }
body.site--scrapbook .sec--bg-indigo { background: color-mix(in srgb, #1a2233 12%, #fffdf6); }
body.site--scrapbook .sec--bg-lilac  { background: color-mix(in srgb, #7b6ab0 10%, #fffdf6); }
body.site--scrapbook .sec--bg-mist   { background: color-mix(in srgb, #1a2233 7%, #fffdf6); }
body.site--scrapbook .sec--bg-sage   { background: color-mix(in srgb, #107e79 9%, #f3ede1); }

body.site--scrapbook .sec--bg-gradient {
  background: linear-gradient(135deg,
    color-mix(in srgb, #e8551f 10%, #fffdf6),
    color-mix(in srgb, #107e79 12%, #fffdf6));
}

body.site--scrapbook .sec--bg-slate  { background: #2b3444; }
body.site--scrapbook .sec--bg-forest { background: #16302b; }
body.site--scrapbook .sec--bg-plum   { background: #2c1f31; }
body.site--scrapbook .sec--bg-ink    { background: #171310; }

/* ------------------------------------------------------- bands and plates --- */

/* The figures and labels follow whichever band the editor picked, so they read
 * from the band tokens instead of a fixed ink.
 */
body.site--scrapbook .stats__label {
  color: var(--color-text);
}

body.site--scrapbook .stats__figure {
  color: var(--sb-stamp-ink);
  -webkit-text-fill-color: var(--sb-stamp-ink);
}

/* The projects band is dark until the editor says otherwise. The guard keeps
 * that assumption from overriding an explicit background choice.
 */
body.site--scrapbook .sec--projects:not([class*="sec--bg-"]) {
  --sb-stamp-ink: var(--sb-stamp-on-dark);
  --accent-text: var(--sb-stamp-ink);
}

body.site--scrapbook .sec--clients .sec__eyebrow,
body.site--scrapbook .sec--projects .sec__eyebrow {
  color: var(--sb-stamp-ink);
  -webkit-text-fill-color: var(--sb-stamp-ink);
}

/* ---------------------------------- legibility pass 2: band-relative controls --- */

/* A control that flips on hover needs to know the colour of the band behind
 * it, not only the ink on top of it. Before the background picker existed the
 * answer was always navy or paper; now the band says.
 */
body.site--scrapbook :is(.sec--bg-light, .sec--bg-tint, .sec--bg-peach,
                         .sec--bg-rose, .sec--bg-butter, .sec--bg-sand,
                         .sec--bg-aqua, .sec--bg-indigo, .sec--bg-lilac,
                         .sec--bg-mist, .sec--bg-sage, .sec--bg-clay,
                         .sec--bg-gradient) {
  --sec-bg-color: #f6f1e6;
}

body.site--scrapbook :is(.sec--bg-navy, .sec--bg-dark, .sec--bg-slate,
                         .sec--bg-forest, .sec--bg-plum, .sec--bg-ink) {
  --sec-bg-color: #1a2233;
}

/* Two bands this skin paints itself when the editor has chosen no background:
 * the teal client rail and the navy polaroid wall. They keep their own ink,
 * and now also declare the surface behind them.
 */
body.site--scrapbook .sec--clients:not([class*="sec--bg-"]) {
  --sec-bg-color: var(--sb-teal);
  --sb-stamp-ink: #fffdf6;
  --accent-text: var(--sb-stamp-ink);
  --color-muted: #fffdf6;
}

body.site--scrapbook .sec--projects:not([class*="sec--bg-"]) {
  --sec-bg-color: var(--sb-navy);
  --color-panel: #232d42;
}

body.site--scrapbook .sec--projects .btn--ghost:hover {
  color: var(--sec-bg-color, var(--sb-cream));
}

body.site--scrapbook .sb-arrow:hover:not(:disabled) {
  color: var(--sec-bg-color, var(--sb-cream));
}

/* A carousel dot is the only mark that says "there is a control here", so it
 * cannot borrow the band's hairline: on paper that line is a 1.5:1 whisper.
 * The band's own ink at 58% reads as a graphic on every one of the 19 stocks.
 */
body.site--scrapbook .sec {
  --ctl-edge: color-mix(in srgb, var(--color-text) 58%, transparent);
}

body.site--scrapbook .sb-dot,
body.site--scrapbook .slider__dot {
  border-color: var(--ctl-edge);
}

/* A dot is a mark, not a label: it takes the accent of its band so it stays
 * visible on a navy wall and on a peach one.
 */
body.site--scrapbook .slider__dot.is-active,
body.site--scrapbook .sb-dot.is-active {
  background-color: var(--sb-stamp-ink);
  border-color: var(--sb-stamp-ink);
}

body.site--scrapbook .sb-arrow:focus-visible,
body.site--scrapbook .sb-dot:focus-visible {
  outline-color: var(--sb-stamp-ink);
}

/* An accent-filled card was too saturated to carry its own caption: at 28%
 * hue the plate and the tag fought each other. At 14% the paper still shows
 * through and both the tag and the muted line clear AA.
 */
body.site--scrapbook .card--filled {
  --card-mix: 14%;
}
