/* ============================================================
   Truly Sandra.illus - Figma-aligned static site
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito+Sans:wght@400;700&display=swap');

:root {
  --color-navy: #111827;
  --color-dark: #0a1121;
  --color-white: #ffffff;
  --color-yellow: #ffe715;
  --color-royal-blue: #2f5bde;
  --color-blue-soft: #f4faff;
  --color-blue-wash: #deeafd;
  --color-blue-accent: #a9ccf5;
  --color-pink: #f6b8df;
  --color-button-hover: #f3d7eb;
  --color-lilac: #c9c4f4;
  --color-green: #8ccb4a;
  --color-divider: rgba(17, 24, 39, 0.1);
  --color-muted: rgba(17, 24, 39, 0.72);

  --font-display: 'Fredoka', sans-serif;
  --font-body: 'Nunito Sans', sans-serif;

  --container: 1167px;
  --nav-height: 83px;
  --radius-sm: 16px;
  --radius-md: 24px;
  --radius-lg: 32px;
  --shadow-hard: 5px 5px 0 var(--color-navy);
  --shadow-panel: 8px 8px 0 var(--color-navy);
  --shadow-lift: 0 12px 36px -16px rgba(17, 24, 39, 0.35);
}

/* Keep the complete reference footer on wider phones and narrow tablets.
   The compact 355px composition above remains unchanged below 481px. */
@media (min-width: 481px) and (max-width: 768px) {
  body:not(.portfolio-page) .site-footer {
    --footer-content-top: 195px;
    --footer-blue-fill-top: 150px;
    min-height: 760px;
    margin-top: 0;
    padding: 0 0 14px;
    overflow: visible;
    scroll-margin-top: var(--nav-height);
  }

  body:not(.portfolio-page) .site-footer::before {
    display: block;
    top: var(--footer-blue-fill-top);
    bottom: 0;
    inset-inline: 0;
    border-radius: 0;
    background: var(--color-royal-blue);
  }

  body:not(.portfolio-page) .site-footer::after {
    display: block;
    inset-block: 0;
    background-image: url('../assets/svg/characters/bear-footer-mobile.svg');
    background-position: center calc(150px - 38.4vw);
    background-size: 110% auto;
  }

  body:not(.portfolio-page) .site-footer__inner {
    width: min(100% - 28px, 390px);
    padding-top: var(--footer-content-top);
  }

  body:not(.portfolio-page) .site-footer__inner::before {
    content: '';
    position: absolute;
    top: -43px;
    left: calc(50% - 70px);
    width: 28px;
    height: 37px;
    transform: translateX(-50%);
    background: url('../assets/svg/decorations/yellow-footer-accent.svg') center / contain no-repeat;
    pointer-events: none;
    z-index: 4;
  }

  body:not(.portfolio-page) .site-footer__inner h2 {
    display: block;
    width: min(100%, 326px);
    margin: 0 auto 14px;
    font-size: 24px;
    line-height: 1.04;
  }

  body:not(.portfolio-page) .site-footer__inner > p {
    display: block;
    width: min(100%, 282px);
    font-size: 13px;
    line-height: 1.55;
  }

  body:not(.portfolio-page) .site-footer__inner > .site-footer__contact-note {
    display: none;
  }

  body:not(.portfolio-page) .site-footer__mobile-break {
    display: inline;
  }

  body:not(.portfolio-page) .site-footer__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-wrap: nowrap;
    gap: 15px;
    margin-top: 18px;
  }

  body:not(.portfolio-page) .site-footer__actions .btn--primary {
    width: min(100%, 246px);
    min-height: 54px;
    padding: 0 18px;
    border-width: 2px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 6px 8px 0 var(--color-navy);
  }

  body:not(.portfolio-page) .site-footer__actions .btn--ghost {
    min-width: 0;
    min-height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--color-white);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
  }

  body:not(.portfolio-page) .site-footer__actions .btn--ghost:hover {
    background: transparent;
    box-shadow: none;
    transform: none;
  }

  body:not(.portfolio-page) .site-footer__decor--zigzag,
  body:not(.portfolio-page) .site-footer__decor--star,
  body:not(.portfolio-page) .site-footer__decor--curl,
  body:not(.portfolio-page) .site-footer__decor--wave {
    display: block;
  }

  body:not(.portfolio-page) .site-footer__decor--zigzag {
    top: 168px;
    left: calc(50% - 164px);
    width: 42px;
    height: 32px;
  }

  body:not(.portfolio-page) .site-footer__decor--star {
    top: 410px;
    left: calc(50% - 168px);
    width: 38px;
    height: 38px;
  }

  body:not(.portfolio-page) .site-footer__decor--curl {
    top: 166px;
    right: calc(50% - 168px);
    width: 44px;
    height: 48px;
  }

  body:not(.portfolio-page) .site-footer__decor--wave {
    top: 458px;
    width: 316px;
    height: 22px;
  }

  body:not(.portfolio-page) .site-footer__social {
    margin-top: 80px;
  }

  body:not(.portfolio-page) .site-footer__social-line {
    width: 330px;
  }

  body:not(.portfolio-page) .site-footer__social-icons {
    gap: 1px;
  }

  body:not(.portfolio-page) .site-footer__social-icons a,
  body:not(.portfolio-page) .site-footer__social-icon {
    width: 34px;
    height: 34px;
  }

  body:not(.portfolio-page) .site-footer__social-icons img {
    width: 28px;
    height: 27px;
    margin: 4px auto;
  }

  body:not(.portfolio-page) .site-footer__brand {
    width: 100%;
    margin: 54px 0 0;
  }

  body:not(.portfolio-page) .site-footer__brand-mobile {
    display: block;
    width: 355px;
    height: auto;
    aspect-ratio: 388 / 95;
    background: url('../assets/SVG Asset/Mobile veiw Home page/Brand logo.svg') center / contain no-repeat;
  }

  body:not(.portfolio-page) .site-footer__brand-mobile > span,
  body:not(.portfolio-page) .site-footer__brand-mobile > span:first-child,
  body:not(.portfolio-page) .site-footer__brand-mobile > span:last-child,
  body:not(.portfolio-page) .site-footer__brand-mobile .site-footer__brand-mobile-accent,
  body:not(.portfolio-page) .site-footer__brand-logo {
    display: none;
  }

  body:not(.portfolio-page) .site-footer__legal {
    display: grid;
    justify-items: center;
    gap: 9px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
  }

  body:not(.portfolio-page) .site-footer__legal p,
  body:not(.portfolio-page) .site-footer__legal p:first-child,
  body:not(.portfolio-page) .site-footer__legal p:last-child {
    width: 100%;
    flex: none;
    white-space: normal;
    text-align: center;
    font-size: 9px;
    line-height: 1.5;
  }

  body:not(.portfolio-page) .site-footer__legal p:first-child {
    order: 1;
    color: rgba(255, 255, 255, 0.72);
  }

  body:not(.portfolio-page) .site-footer__legal p:last-child {
    order: 2;
    color: rgba(255, 255, 255, 0.78);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

html.portfolio-document {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html.portfolio-document::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-navy);
  background: var(--color-white);
  overflow-x: clip;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--color-navy);
  line-height: 1.08;
  letter-spacing: 0;
}

p {
  margin-bottom: 0;
}

:focus-visible {
  outline: 3px solid var(--color-royal-blue);
  outline-offset: 4px;
}

.container {
  width: min(100% - 96px, var(--container));
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 760ms ease, transform 760ms ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.section-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 900ms ease, transform 900ms ease;
}

.section-reveal.section-revealed {
  opacity: 1;
  transform: translateY(0);
}

.hero.section-reveal {
  transform: none;
  transition-duration: 980ms;
}

.portfolio-page .reveal,
.portfolio-page .section-reveal,
.portfolio-page .image-load-fade {
  opacity: 1;
}

/* Keep portfolio section backgrounds locked to the document flow. Moving an
   entire section during its reveal creates visible seams between cloud layers. */
.portfolio-page section.section-reveal {
  transform: none;
}

.reveal-delay-1 { transition-delay: 90ms; }
.reveal-delay-2 { transition-delay: 180ms; }
.reveal-delay-3 { transition-delay: 270ms; }
.reveal-delay-4 { transition-delay: 360ms; }

/* ============================================================
   Navigation
   ============================================================ */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-height);
  transition: background-color 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.nav.scrolled,
.nav.menu-open {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 0;
  box-shadow: none;
  backdrop-filter: blur(16px);
}

.nav__inner {
  width: min(100% - 96px, var(--container));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav__brand,
.footer__brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.nav__brand-name {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  color: var(--color-navy);
}

.nav__brand-name span {
  color: var(--color-royal-blue);
}

.nav__brand-subline {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0;
  color: rgba(17, 24, 39, 0.55);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__cta,
.nav__menu-button,
.nav__dropdown-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--color-navy);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  color: var(--color-navy);
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.nav__cta {
  min-height: 44px;
  padding: 0 25px;
  background: var(--color-yellow);
  box-shadow: var(--shadow-hard);
  text-transform: uppercase;
}

.nav__menu-button {
  min-height: 44px;
  padding: 0 17px;
  gap: 8px;
  background: var(--color-white);
}

.nav__cta:hover,
.nav__menu-button:hover,
.nav__dropdown-cta:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hard);
}

.nav__menu-icon {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 12px;
  border-top: 2px solid var(--color-navy);
  border-bottom: 2px solid var(--color-navy);
}

.nav__menu-icon::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  border-top: 2px solid var(--color-navy);
}

.nav__menu-icon::after {
  content: '';
}

.nav__menu-button.open .nav__menu-icon {
  width: 12px;
  height: 12px;
  border: 0;
}

.nav__menu-button.open .nav__menu-icon::before,
.nav__menu-button.open .nav__menu-icon::after {
  position: absolute;
  left: 0;
  top: 5px;
  width: 12px;
  border-top: 2px solid var(--color-navy);
}

.nav__menu-button.open .nav__menu-icon::before {
  transform: rotate(45deg);
}

.nav__menu-button.open .nav__menu-icon::after {
  transform: rotate(-45deg);
}

.nav__mobile-overlay {
  position: fixed;
  top: 142px;
  left: 50%;
  right: auto;
  width: min(calc(100vw - 144px), 1054px);
  display: grid;
  gap: 0;
  padding: 22px 22px 20px;
  background: var(--color-white);
  border: 3px solid var(--color-navy);
  border-radius: 22px;
  box-shadow: 7px 7px 0 var(--color-navy);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -12px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.nav__mobile-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav__link {
  display: block;
  padding: 14px 2px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 0;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-navy);
}

.nav__link:hover,
.nav__link.active {
  color: var(--color-royal-blue);
  background: transparent;
}

.nav__dropdown-cta {
  min-height: 48px;
  margin-top: 22px;
  background: var(--color-yellow);
  box-shadow: none;
  text-transform: none;
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--color-blue-wash);
}

.hero--home {
  min-height: clamp(720px, 100svh, 898px);
  padding-top: var(--nav-height);
}

/* Homepage hero artwork is intentionally removed at every viewport and zoom. */
.home-page .hero--home > .hero__clouds,
.home-page .hero--home > .hero__character {
  display: none !important;
}

.hero__inner {
  position: relative;
  z-index: 4;
  width: min(100% - 96px, var(--container));
  min-height: calc(clamp(720px, 100svh, 898px) - var(--nav-height));
  margin: 0 auto;
  display: grid;
  place-items: start center;
  padding-top: 36px;
  text-align: center;
}

.hero__clouds {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__cloud {
  position: absolute;
  z-index: 1;
  user-select: none;
}

.hero__cloud--top {
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0.8;
}

.hero__cloud--bottom-png {
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: clamp(500px, 50vw, 640px);
  max-width: none;
  object-fit: fill;
  z-index: 3;
}

.hero__cloud--bottom-laptop {
  display: none;
}

.hero__cloud--tiny {
  width: 92px;
  opacity: 0.85;
  animation: float-cloud 8s ease-in-out infinite;
}

.hero__cloud--tiny-left {
  top: 170px;
  left: 8%;
}

.hero__cloud--tiny-right {
  top: 236px;
  right: 10%;
  width: 76px;
  animation-delay: 1100ms;
}

.hero__character {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  user-select: none;
}

.hero__character--bear {
  width: 352px;
  left: max(-10px, calc(50% - 642px));
  bottom: 180px;
  animation: hero-bear 6s ease-in-out infinite;
}

.hero__character--animals {
  width: 338px;
  right: max(-76px, calc(50% - 710px));
  bottom: 220px;
  animation: hero-animals 7s ease-in-out infinite;
}

.hero__headline-block {
  width: min(100%, 920px);
}

.hero__title {
  margin: 0;
  font-size: 100px;
  font-weight: 700;
  line-height: 1.03;
  text-transform: uppercase;
}

.hero__word,
.hero__book-row {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__book-row {
  --hero-o-open: 410px;
  --hero-o-closed: 140px;
  min-height: 140px;
  gap: 22px;
}

.hero__word--illustrator {
  margin-top: 6px;
  font-size: 90px;
  color: var(--color-royal-blue);
}

.hero__o {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--hero-o-closed);
  min-width: var(--hero-o-closed);
  height: 140px;
  overflow: hidden;
  overflow: clip;
  flex: 0 0 auto;
  background: var(--color-white);
  border: 6px solid var(--color-navy);
  border-radius: 999px;
  box-shadow: 10px 10px 0 var(--color-navy);
  contain: paint;
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: width, min-width, opacity;
  animation: hero-o-open 2.35s cubic-bezier(0.2, 0.72, 0.2, 1) 180ms forwards;
  animation-play-state: paused;
}

.hero__o::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background: var(--color-white);
  pointer-events: none;
  animation: hero-o-letter-hide 720ms ease-out 680ms forwards;
  animation-play-state: paused;
}

.hero__o img {
  display: block;
  flex: 0 0 var(--hero-o-open);
  width: var(--hero-o-open);
  min-width: var(--hero-o-open);
  height: 100%;
  object-fit: cover;
  object-position: 46% 18%;
  transform: translate3d(0, 0, 0) scale(2.8);
  transform-origin: 46% 18%;
  backface-visibility: hidden;
  opacity: 0;
  will-change: opacity;
  animation: hero-o-img-reveal 1.15s ease-out 0.72s forwards;
  animation-play-state: paused;
}

.hero__headline-block.revealed .hero__o,
.hero__headline-block.revealed .hero__o::before,
.hero__headline-block.revealed .hero__o img {
  animation-play-state: running;
}

.hero__intro {
  width: min(100%, 705px);
  margin: 18px auto 0;
  color: rgba(17, 24, 39, 0.8);
  font-size: 20px;
  line-height: 1.45;
}

.hero__actions,
.final-cta__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  padding: 0 39px;
  border: 3px solid var(--color-navy);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  color: var(--color-navy);
  text-transform: uppercase;
  transition:
    transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background-color 180ms ease,
    color 180ms ease;
  -webkit-tap-highlight-color: transparent;
}

.btn span[aria-hidden="true"] {
  display: inline-block;
  margin-left: 0.35em;
  transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn--primary {
  background: var(--color-yellow);
  box-shadow: var(--shadow-hard);
}

.btn--secondary {
  background: var(--color-white);
}

.btn--outline {
  background: var(--color-white);
  box-shadow: none;
}

.btn--small {
  min-height: 52px;
  padding: 0 28px;
  font-size: 15px;
  font-weight: 600;
  gap: 10px;
}

.btn:focus-visible {
  outline: 4px solid rgba(47, 91, 222, 0.32);
  outline-offset: 4px;
}

.btn--secondary:focus-visible,
.btn--outline:focus-visible {
  background: var(--color-button-hover);
}

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 6px 8px 0 var(--color-navy);
  }

  .btn--secondary:hover,
  .btn--outline:hover {
    background: var(--color-button-hover);
    transform: none;
    box-shadow: none;
  }

  .btn:hover span[aria-hidden="true"] {
    transform: translateX(4px);
  }
}

.btn--primary:active {
  transform: translate(5px, 5px) scale(0.985);
  box-shadow: 0 0 0 var(--color-navy);
  transition-duration: 80ms;
}

.btn--secondary:active,
.btn--outline:active {
  background: var(--color-button-hover);
  transform: scale(0.975);
  box-shadow: none;
  transition-duration: 80ms;
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .btn span[aria-hidden="true"] {
    transition: none;
  }

  .btn:hover,
  .btn:active,
  .btn:hover span[aria-hidden="true"] {
    transform: none;
  }
}

/* ============================================================
   Sections
   ============================================================ */

.section {
  position: relative;
  padding: 112px 0;
}

.section--white {
  background: var(--color-white);
}

.section--blue {
  background: var(--color-blue-soft);
}

.section__header {
  width: min(100%, 815px);
  margin: 0 auto 46px;
  text-align: center;
}

.section__header--split {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.65fr);
  align-items: end;
  gap: 64px;
  text-align: left;
}

.section__eyebrow {
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--color-royal-blue);
}

.section__title {
  margin-bottom: 0;
  font-size: 42px;
  font-weight: 700;
}

.section__desc {
  color: rgba(17, 24, 39, 0.75);
  font-size: 16px;
  line-height: 1.7;
}

.section__action {
  display: flex;
  justify-content: center;
  margin-top: 42px;
}

/* Simple subpages */

.subpage-main {
  background: var(--color-white);
}

.subpage-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-height) + 78px) 0 86px;
  background: var(--color-blue-wash);
}

.subpage-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 128px;
  background: url('../assets/svg/clouds/hero-cloud-bottom.svg') center bottom / cover no-repeat;
  pointer-events: none;
}

.subpage-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
  align-items: center;
  gap: 56px;
}

.subpage-hero__copy {
  max-width: 700px;
}

.subpage-hero h1 {
  margin-bottom: 20px;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.98;
}

.subpage-hero .section__desc {
  max-width: 620px;
  font-size: 18px;
}

.author-hero-preview {
  position: relative;
  min-width: 0;
}

.author-hero-preview__browser {
  overflow: hidden;
  border: 4px solid var(--color-navy);
  border-radius: 32px;
  background: var(--color-white);
  box-shadow: var(--shadow-panel);
  transform: rotate(1.2deg);
}

.author-hero-preview__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 3px solid var(--color-navy);
  background: var(--color-cream);
}

.author-hero-preview__bar span {
  width: 12px;
  height: 12px;
  border: 2px solid var(--color-navy);
  border-radius: 999px;
  background: var(--color-yellow);
}

.author-hero-preview__bar span:nth-child(2) {
  background: var(--color-pink);
}

.author-hero-preview__bar span:nth-child(3) {
  background: var(--color-blue);
}

.author-hero-preview__bar strong {
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--color-navy);
}

.author-hero-preview__screen {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(210px, 0.78fr);
  gap: 24px;
  align-items: center;
  padding: 34px;
  min-height: 340px;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 226, 6, 0.34), transparent 28%),
    linear-gradient(135deg, #fffdf5 0%, #ffffff 58%, #e8f2ff 100%);
}

.author-hero-preview__copy small {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 14px;
  border: 2px solid var(--color-navy);
  border-radius: 999px;
  background: var(--color-blue-soft);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.author-hero-preview__copy strong {
  display: block;
  max-width: 300px;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1.05;
}

.author-hero-preview__copy p {
  max-width: 320px;
  margin-top: 14px;
  color: rgba(17, 24, 39, 0.72);
  line-height: 1.6;
}

.author-hero-preview__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.author-hero-preview__buttons span {
  padding: 10px 14px;
  border: 2px solid var(--color-navy);
  border-radius: 999px;
  background: var(--color-yellow);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
}

.author-hero-preview__buttons span:nth-child(2) {
  background: var(--color-white);
}

.author-hero-preview__screen img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 3px solid var(--color-navy);
  border-radius: 20px;
  object-fit: cover;
  object-position: center;
  box-shadow: 8px 8px 0 var(--color-navy);
  transform: rotate(-3deg);
}

.author-hero-preview__chips {
  position: absolute;
  right: -18px;
  bottom: -28px;
  display: grid;
  gap: 10px;
  width: min(210px, 46%);
}

.author-hero-preview__chips span {
  padding: 12px 16px;
  border: 3px solid var(--color-navy);
  border-radius: 18px;
  background: var(--color-yellow);
  box-shadow: 4px 4px 0 var(--color-navy);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.author-hero-preview__chips span:nth-child(2) {
  background: var(--color-pink);
}

.author-hero-preview__chips span:nth-child(3) {
  background: var(--color-blue-soft);
}

.subpage-hero__actions,
.subpage-actions,
.category-section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.subpage-actions--center {
  justify-content: center;
}

.subpage-hero__media,
.subpage-visual-card {
  overflow: hidden;
  border: 4px solid var(--color-navy);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-panel);
}

.subpage-hero__media img,
.subpage-visual-card img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.subpage-section {
  padding: 96px 0;
}

.subpage-section--blue {
  background: var(--color-blue-soft);
}

.subpage-split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1fr);
  gap: 54px;
  align-items: start;
}

.subpage-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.subpage-card,
.subpage-callout {
  border: 3px solid var(--color-navy);
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: var(--shadow-hard);
}

.subpage-card {
  padding: 28px;
}

.subpage-card h2,
.subpage-card h3,
.subpage-callout h2,
.subpage-callout h3 {
  margin-bottom: 12px;
  font-size: 26px;
}

.subpage-card p,
.subpage-list,
.subpage-callout p {
  color: rgba(17, 24, 39, 0.75);
}

.subpage-list {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.subpage-list li {
  position: relative;
  padding-left: 30px;
}

.subpage-list li::before {
  content: "";
  position: absolute;
  top: 0.63em;
  left: 0;
  width: 12px;
  height: 12px;
  border: 2px solid var(--color-navy);
  border-radius: 999px;
  background: var(--color-yellow);
}

.subpage-callout {
  padding: 34px;
  background: var(--color-yellow);
}

.contact-methods {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Project inquiry form */

.inquiry-section {
  scroll-margin-top: calc(var(--nav-height) + 24px);
  background: linear-gradient(180deg, var(--color-white) 0%, #fffdf3 100%);
}

.inquiry-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(36px, 6vw, 76px);
  align-items: start;
}

.inquiry-intro .section__title {
  margin-bottom: 18px;
}

.inquiry-note {
  margin-top: 30px;
  padding: 24px;
  border: 3px solid var(--color-navy);
  border-radius: var(--radius-md);
  background: var(--color-yellow);
  box-shadow: 5px 5px 0 var(--color-navy);
}

.inquiry-note h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.inquiry-note p {
  color: rgba(17, 24, 39, 0.78);
  line-height: 1.65;
}

.inquiry-form {
  min-width: 0;
  padding: clamp(24px, 4vw, 42px);
  border: 3px solid var(--color-navy);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-panel);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 20px;
}

.form-field {
  min-width: 0;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-navy);
}

.form-field label > span:not(.form-field__optional) {
  color: #a1281d;
}

.form-field__optional {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  color: rgba(17, 24, 39, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-field input,
.form-field select,
.form-field textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border: 2px solid rgba(17, 24, 39, 0.42);
  border-radius: 14px;
  background: var(--color-white);
  font: inherit;
  font-size: 16px;
  color: var(--color-navy);
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.form-field select {
  appearance: none;
  padding-right: 44px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--color-navy) 50%),
    linear-gradient(135deg, var(--color-navy) 50%, transparent 50%);
  background-position:
    calc(100% - 21px) 22px,
    calc(100% - 15px) 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.form-field textarea {
  min-height: 170px;
  resize: vertical;
  line-height: 1.6;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(17, 24, 39, 0.48);
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  outline: 3px solid rgba(47, 91, 222, 0.22);
  outline-offset: 2px;
  border-color: var(--color-royal-blue);
}

.form-field.is-invalid input,
.form-field.is-invalid select,
.form-field.is-invalid textarea {
  border-color: #b42318;
  background: #fff8f7;
}

.form-field__help,
.form-field__error {
  display: block;
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.45;
}

.form-field__help {
  color: rgba(17, 24, 39, 0.62);
}

.form-field__error {
  display: none;
  color: #9f1f16;
  font-weight: 700;
}

.form-field.is-invalid .form-field__error {
  display: block;
}

.inquiry-form__submit {
  margin-top: 30px;
}

.inquiry-form__submit[disabled] {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.inquiry-form__privacy {
  margin-top: 16px;
  color: rgba(17, 24, 39, 0.62);
  font-size: 13px;
}

.form-status {
  display: none;
  margin-top: 20px;
  padding: 15px 17px;
  border: 2px solid currentColor;
  border-radius: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.form-status.is-success,
.form-status.is-error {
  display: block;
}

.form-status.is-success {
  background: #ecfdf3;
  color: #166534;
}

.form-status.is-error {
  background: #fff4f2;
  color: #9f1f16;
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.case-study-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.case-study-meta span {
  display: block;
  padding: 16px;
  border: 2px solid var(--color-navy);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  font-family: var(--font-display);
  font-weight: 600;
  box-shadow: 3px 3px 0 var(--color-navy);
}

.case-study-video {
  overflow: hidden;
  border: 4px solid var(--color-navy);
  border-radius: var(--radius-lg);
  background: var(--color-navy);
  box-shadow: var(--shadow-panel);
}

.case-study-video video {
  display: block;
  width: 100%;
  height: auto;
  background: var(--color-navy);
}

.website-demo {
  overflow: hidden;
}

.website-demo__grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.1fr);
  gap: 52px;
  align-items: center;
}

.website-demo__copy {
  max-width: 520px;
}

.website-demo__copy .section__title {
  margin-bottom: 18px;
}

.website-demo__video {
  min-width: 0;
}

/* Books */

.books {
  overflow: hidden;
  padding: 92px 0 108px;
}

.books__header {
  position: relative;
  z-index: 1;
  width: min(100%, 890px);
  margin: 0 0 56px;
  text-align: left;
}

.books__header .section__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 17px;
  margin-bottom: 18px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--color-royal-blue);
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 11.2px;
  font-weight: 600;
  line-height: 16.8px;
  letter-spacing: 1.12px;
  text-transform: uppercase;
}

.books__header .section__title {
  font-size: 43px;
}

.books__header .section__desc {
  width: min(100%, 720px);
  margin-top: 20px;
}

.book-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px;
}

.books__more-btn {
  min-height: 48px;
  padding: 0 30px;
  border-width: 3px;
  border-radius: 999px;
  font-size: 13px;
}

.service-card,
.process-step {
  border: 3px solid var(--color-navy);
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: var(--shadow-hard);
}

.book-card {
  min-width: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.book-card__media {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 14px 28px -22px rgba(17, 24, 39, 0.55);
}

.book-card__image {
  width: 100%;
  aspect-ratio: 1 / 1.32;
  object-fit: cover;
  border-radius: 18px;
  background: var(--color-blue-wash);
  transition: transform 180ms ease;
  display: block;
}

.book-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  padding: 40px 16px 16px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0) 100%);
  border-radius: 0 0 18px 18px;
  pointer-events: none;
}

.book-card__overlay h3 {
  margin-bottom: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.28;
  color: #ffffff;
}

.book-card__tag {
  min-width: 103px;
  margin: 0;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--color-lilac);
  font-family: var(--font-display);
  font-size: 11.2px;
  font-weight: 600;
  line-height: 16.8px;
  letter-spacing: 1.12px;
  text-align: center;
  text-transform: uppercase;
  color: var(--color-navy);
  white-space: nowrap;
  box-shadow: none;
}

.book-card:nth-child(3) .book-card__tag {
  background: var(--color-yellow);
}

.book-card:nth-child(4) .book-card__tag {
  min-width: 110px;
  background: #b7ef6d;
}

/* Services */

.services {
  overflow: hidden;
  padding: 94px 0 126px;
}

.services__backdrop {
  position: absolute;
  left: 50%;
  bottom: 54px;
  width: min(100%, 1263px);
  max-width: none;
  min-height: 520px;
  object-fit: fill;
  transform: translateX(-50%);
  pointer-events: none;
}

.services__sun {
  position: absolute;
  top: 12px;
  right: max(28px, calc((100vw - var(--container)) / 2));
  width: 360px;
  max-width: 40vw;
  pointer-events: none;
}

.services__inner {
  position: relative;
  z-index: 1;
}

.services__header {
  width: min(100%, 620px);
  margin: 0 0 34px;
  padding-top: 88px;
  text-align: left;
}

.services__header .section__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 17px;
  margin-bottom: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--color-royal-blue);
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 11.2px;
  font-weight: 600;
  line-height: 16.8px;
  letter-spacing: 1.12px;
  text-transform: uppercase;
}

.services__header .section__title {
  font-size: 43px;
  max-width: 565px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
  width: min(100%, 1012px);
  margin: 0 auto;
}

.service-card {
  min-height: 372px;
  padding: 34px 34px 30px;
  border-width: 2px;
  border-radius: 20px;
  box-shadow: 8px 8px 0 var(--color-navy);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.service-card:nth-child(1),
.service-card:nth-child(2),
.service-card:nth-child(3) {
  background: var(--color-white);
}

.service-card:hover,
.process-step:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-panel);
}

.book-card:hover .book-card__media {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px -22px rgba(17, 24, 39, 0.62);
}

.book-card:hover .book-card__image {
  transform: scale(1.04);
}

.service-card__icon-wrap {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 28px;
  border: 3px solid var(--color-navy);
  border-radius: 12px;
}

.service-card__icon-wrap--pink {
  background: var(--color-pink);
}

.service-card__icon-wrap--yellow {
  background: var(--color-yellow);
}

.service-card__icon-wrap--lilac {
  background: var(--color-lilac);
}

.service-card__icon {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.service-card h3 {
  margin-bottom: 18px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
}

.service-card p {
  color: rgba(17, 24, 39, 0.7);
  font-size: 15px;
  line-height: 1.58;
}

.service-card a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  margin-top: 32px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--color-royal-blue);
}

/* Portfolio preview */

.portfolio-preview {
  position: relative;
  overflow: hidden;
  padding: 152px 0 140px;
  background: var(--color-white);
}

.portfolio-preview::before {
  content: none;
}

.portfolio-preview__inner {
  position: relative;
  z-index: 4;
  width: min(100% - 30px, var(--container));
}

.portfolio-preview__snail {
  position: absolute;
  top: 22px;
  right: max(-152px, calc(50% - 742px));
  display: block;
  width: 560px;
  max-width: none;
  pointer-events: none;
  z-index: 1;
}

.portfolio-preview__flower {
  position: absolute;
  right: max(118px, calc(50% - 482px));
  bottom: 74px;
  width: 132px;
  opacity: 0.6;
  pointer-events: none;
  z-index: 2;
}

.portfolio-preview__header {
  position: relative;
  z-index: 2;
  width: min(100%, 675px);
  margin: 0 0 46px;
  padding: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  border: 0;
  text-align: left;
}

.portfolio-preview__header .section__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 17px;
  margin-bottom: 18px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--color-pink);
  color: var(--color-navy);
  font-family: var(--font-display);
  font-size: 11.2px;
  font-weight: 600;
  line-height: 16.8px;
  letter-spacing: 1.12px;
  text-transform: uppercase;
}

.portfolio-preview__header .section__title {
  max-width: 640px;
  font-size: 42px;
  line-height: 1.08;
}

.portfolio-preview__header .section__desc {
  max-width: 640px;
  margin-top: 20px;
}

.portfolio-preview .section__action {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: center;
  margin-top: 44px;
}

.portfolio-preview .btn--small {
  min-width: 262px;
  min-height: 62px;
  border-width: 3px;
  box-shadow: 5px 7px 0 var(--color-navy);
}

.portfolio-mosaic {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(226px, 20vw, 252px);
  gap: 26px;
  align-items: stretch;
}

.work-card,
.featured-card,
.gallery__item,
.category-section__media {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 0;
  text-align: left;
  border: 3px solid var(--color-navy);
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: var(--shadow-lift);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.work-card {
  border: 0;
  border-radius: 23px;
  box-shadow: 0 18px 34px -24px rgba(17, 24, 39, 0.78);
}

.work-card::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 42%;
  background: linear-gradient(180deg, rgba(10, 17, 33, 0), rgba(10, 17, 33, 0.46));
  pointer-events: none;
}

.work-card:hover,
.featured-card:hover,
.gallery__item:hover,
.category-section__media:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-panel);
}

.work-card:hover {
  box-shadow: 0 22px 42px -24px rgba(17, 24, 39, 0.78);
}

.work-card img,
.featured-card img,
.gallery__item img,
.category-section__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
}

.work-card:hover img,
.featured-card:hover img,
.gallery__item:hover img,
.category-section__media:hover img {
  transform: scale(1.04);
}

.image-load-fade {
  opacity: 0;
  transition-property: opacity, transform, box-shadow;
  transition-duration: 700ms, 320ms, 180ms;
  transition-timing-function: ease;
}

.image-load-fade.is-loaded {
  opacity: 1;
}

.work-card span,
.featured-card span,
.gallery__item span,
.category-section__media span {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  width: fit-content;
  max-width: calc(100% - 32px);
  padding: 9px 13px;
  border: 2px solid var(--color-navy);
  border-radius: 999px;
  background: var(--color-yellow);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-navy);
  box-shadow: 3px 3px 0 var(--color-navy);
}

.work-card > span:not(.work-card__tag) {
  z-index: 2;
  right: auto;
  bottom: 18px;
  left: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 16px;
  font-weight: 700;
  line-height: 0.98;
  color: var(--color-white);
  text-shadow: 0 2px 12px rgba(10, 17, 33, 0.55);
  box-shadow: none;
}

.work-card--wide {
  grid-column: span 8;
}

.work-card--lilly {
  grid-column: 1 / span 8;
  grid-row: 1;
}

.work-card--crowns {
  grid-column: 9 / span 4;
  grid-row: 1;
}

.work-card--characters {
  grid-column: 1 / span 4;
  grid-row: 2;
}

.work-card--cover {
  grid-column: 5 / span 8;
  grid-row: 2;
}

.work-card--website-live {
  grid-column: 1 / span 4;
  grid-row: 3;
}

.work-card--website-muted {
  grid-column: 5 / span 4;
  grid-row: 3;
}

.work-card__tag {
  left: auto !important;
  right: 18px !important;
  bottom: 21px !important;
  z-index: 3 !important;
  padding: 7px 16px 6px !important;
  border: 0 !important;
  background: var(--color-yellow) !important;
  color: var(--color-navy) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 16.8px !important;
  letter-spacing: 1.12px !important;
  text-transform: uppercase;
  box-shadow: none !important;
  text-shadow: none !important;
}

.work-card--crowns .work-card__tag {
  background: #f3dff1 !important;
}

.work-card--characters .work-card__tag {
  background: var(--color-lilac) !important;
}

.work-card--cover .work-card__tag {
  background: #b7ef6d !important;
}

.work-card--website {
  min-height: 0;
  background: #cfcfcf;
}

.work-card--website::after {
  content: none;
}

.work-card--website-live {
  overflow: hidden;
  background:
    radial-gradient(circle at 15px 15px, rgba(47, 91, 222, 0.12) 0 1px, transparent 1.5px) 0 0 / 18px 18px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0)),
    #fff8eb;
}

.work-card--website-muted {
  background: linear-gradient(180deg, #d2d2d2 0%, #b9b9b9 63%, #686868 100%);
}

.work-card--website-live::before {
  content: 'PRINCESS PICKLES\A PRINTS';
  position: absolute;
  inset: 18px -36px auto auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 146px;
  height: 190px;
  padding-top: 32px;
  border: 5px solid #d89d5b;
  border-radius: 4px;
  background:
    radial-gradient(circle at 54% 47%, #38bd4c 0 25px, transparent 26px),
    radial-gradient(circle at 54% 47%, #f64a9b 0 3px, transparent 4px),
    radial-gradient(circle at 43% 39%, #2f5bde 0 4px, transparent 5px),
    radial-gradient(circle at 63% 59%, #f6b8df 0 5px, transparent 6px),
    linear-gradient(#f8e4c0, #fff6df);
  color: rgba(17, 24, 39, 0.58);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.08;
  text-align: center;
  white-space: pre;
  transform: rotate(-3deg);
  box-shadow: 0 8px 18px -12px rgba(17, 24, 39, 0.7);
}

.work-card__site-nav {
  position: absolute;
  top: 13px;
  right: 18px;
  display: flex;
  gap: 14px;
}

.work-card__site-nav span {
  position: static;
  display: block;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(17, 24, 39, 0.48);
  font-family: var(--font-body);
  font-size: 5px;
  line-height: 1;
  box-shadow: none;
}

.work-card__site-nav span:nth-child(1)::before {
  content: 'Home';
}

.work-card__site-nav span:nth-child(2)::before {
  content: 'Books';
}

.work-card__site-nav span:nth-child(3)::before {
  content: 'Shop';
}

.work-card__site-nav span:nth-child(4)::before {
  content: 'Blog';
}

.work-card__site-copy {
  position: absolute;
  left: -20px;
  top: 88px;
  color: var(--color-navy);
  font-family: var(--font-display);
}

.work-card__site-copy strong {
  display: block;
  max-width: 188px;
  font-size: 27px;
  line-height: 0.98;
}

.work-card__site-copy em {
  display: inline-flex;
  margin-top: 6px;
  padding: 1px 8px 3px;
  background: #f28670;
  color: var(--color-white);
  font-size: 20px;
  font-style: normal;
  line-height: 1;
}

.work-card__site-copy p {
  max-width: 194px;
  margin-top: 9px;
  color: rgba(17, 24, 39, 0.48);
  font-family: var(--font-body);
  font-size: 6px;
  font-weight: 700;
  line-height: 1.35;
}

.work-card__site-buttons {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.work-card__site-copy small {
  display: inline-flex;
  margin-top: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: #f79e47;
  color: var(--color-white);
  font-size: 10px;
  line-height: 1;
}

.work-card__site-copy small + small {
  background: var(--color-royal-blue);
}

.work-card--website .work-card__tag {
  background: var(--color-royal-blue) !important;
  color: var(--color-white) !important;
}

/* Process */

.process {
  background: var(--color-blue-wash);
  overflow: visible;
  padding: 88px 0 96px;
}

.process__cloud-top {
  position: absolute;
  top: -116px;
  left: 50%;
  width: max(116vw, 100%);
  max-width: none;
  height: 470px;
  object-fit: fill;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 1;
}

.process__heart {
  position: absolute;
  top: 168px;
  right: max(58px, calc((100vw - var(--container)) / 2 + 52px));
  width: 104px;
  pointer-events: none;
  z-index: 1;
  transform: rotate(10deg);
}

.process__doodle-left {
  position: absolute;
  top: 220px;
  left: max(48px, calc((100vw - var(--container)) / 2 + 20px));
  width: 72px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
  transform: rotate(-12deg);
}

.process__doodle-bottom {
  position: absolute;
  bottom: 18px;
  left: max(48px, calc((100vw - var(--container)) / 2 + 60px));
  width: 62px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.95;
}

.process__header {
  position: relative;
  z-index: 2;
  width: min(100%, 690px);
  margin: 0 auto 34px;
  text-align: left;
}

.process__header .section__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 17px;
  margin-bottom: 18px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--color-royal-blue);
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 11.2px;
  font-weight: 600;
  line-height: 16.8px;
  letter-spacing: 1.12px;
  text-transform: uppercase;
}

.process-list {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.process-step {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 86px;
  padding: 18px 28px;
  background: var(--color-white);
  border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: 16px;
  box-shadow: 0 12px 28px -18px rgba(17, 24, 39, 0.45);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.process-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -22px rgba(17, 24, 39, 0.48);
}

.process-step__number {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  border: 3px solid var(--color-navy);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1;
}

.process-step__number--yellow {
  background: var(--color-yellow);
}

.process-step__number--pink {
  background: var(--color-pink);
}

.process-step__number--lilac {
  background: var(--color-lilac);
}

.process-step__number--green {
  background: var(--color-green);
}

.process-step__number--blue {
  background: var(--color-royal-blue);
  color: var(--color-white);
}

.process-step__content {
  flex: 1;
}

.process-step__content h3 {
  margin-bottom: 5px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.process-step__content p {
  color: rgba(17, 24, 39, 0.58);
  font-size: 12.5px;
  line-height: 1.45;
}

/* Why */

.why {
  position: relative;
  overflow: hidden;
  background: var(--color-white);
}

.why__copy {
  position: relative;
}

.why__copy .section__title {
  overflow: visible;
}

.why__title-word {
  position: relative;
  display: inline-block;
  overflow: visible;
}

.why__brand-line {
  color: inherit;
}

.why__brand-accent {
  color: var(--color-royal-blue);
}

.why__blob-decor {
  position: absolute;
  left: calc(100% + 10px);
  top: -42px;
  display: block;
  width: 72px;
  height: 70px;
  pointer-events: none;
  z-index: 1;
  transform: rotate(4deg);
}

.why__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.why__copy .section__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 17px;
  margin-bottom: 18px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--color-yellow);
  color: var(--color-navy);
  font-family: var(--font-display);
  font-size: 11.2px;
  font-weight: 600;
  line-height: 16.8px;
  letter-spacing: 1.12px;
  text-transform: uppercase;
}

.why__copy .section__desc {
  margin-top: 18px;
  color: rgba(17, 24, 39, 0.7);
  font-size: 15px;
  line-height: 1.6;
}

.why__copy .btn {
  margin-top: 28px;
  min-height: 56px;
  padding: 0 32px;
  font-size: 15px;
  font-weight: 600;
  gap: 10px;
}

.why__panel {
  padding: 34px;
  background: var(--color-blue-wash);
  border: 3px solid var(--color-navy);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-panel);
}

.why__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}

.why__item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--color-navy);
}

.why__check {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-green);
  border: 2px solid var(--color-navy);
}

.why__check::after {
  content: '';
  width: 10px;
  height: 5px;
  border-left: 2px solid var(--color-navy);
  border-bottom: 2px solid var(--color-navy);
  transform: rotate(-45deg) translate(1px, -1px);
}

/* Site Footer */

.site-footer {
  --footer-content-top: clamp(570px, 40vw, 820px);
  --footer-blue-fill-top: clamp(780px, 78vw, 1340px);
  position: relative;
  isolation: isolate;
  background: transparent;
  color: var(--color-white);
  text-align: center;
  min-height: clamp(1320px, 122vw, 1780px);
  padding: 0 0 24px;
  margin-top: 56px;
  border-radius: 0;
}

.site-footer::before,
.site-footer::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  pointer-events: none;
}

.site-footer::before {
  top: var(--footer-blue-fill-top);
  bottom: 0;
  background: var(--color-royal-blue);
  z-index: 0;
}

.site-footer::after {
  inset-block: 0;
  background-image: url('../assets/svg/characters/bear-footer.svg');
  background-repeat: no-repeat;
  background-position: top center;
  background-size: max(100%, 1600px) auto;
  z-index: 1;
}

.site-footer__decor {
  position: absolute;
  pointer-events: none;
  z-index: 2;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.site-footer__decor--zigzag {
  top: calc(var(--footer-content-top) - 52px);
  left: 10%;
  width: 76px;
  height: 58px;
  background-image: url('../assets/svg/decorations/doodle-3.svg');
}

.site-footer__decor--star {
  top: calc(var(--footer-content-top) + 170px);
  left: 8%;
  width: 98px;
  height: 96px;
  background-image: url('../assets/svg/decorations/star.svg');
}

.site-footer__decor--curl {
  top: calc(var(--footer-content-top) + 70px);
  right: 7%;
  width: 96px;
  height: 102px;
  background-color: #7ca9fd;
  mask-image: url('../assets/svg/decorations/doodle-2.svg');
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-image: url('../assets/svg/decorations/doodle-2.svg');
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  transform: rotate(70deg);
  opacity: 0.75;
}

.site-footer__decor--wave {
  top: calc(var(--footer-content-top) + 310px);
  left: 50%;
  width: min(86%, 934px);
  height: 59px;
  transform: translateX(-50%);
  background-image: url('../assets/svg/decorations/doodle-5.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.site-footer__decor--wave::before {
  content: none;
}

.site-footer__inner {
  position: relative;
  z-index: 3;
  padding-top: var(--footer-content-top);
}

.site-footer__inner h2 {
  width: min(100%, 600px);
  margin: 0 auto 16px;
  font-size: 54px;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.15;
}

.site-footer__mobile-break {
  display: none;
}

.site-footer__inner p {
  width: min(100%, 520px);
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  line-height: 1.55;
}

.site-footer__inner .site-footer__contact-note {
  margin-top: 10px;
  color: var(--color-white);
  font-weight: 700;
}

.site-footer__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 50px;
}

.site-footer__actions .btn {
  min-height: 44px;
  padding: 0 22px;
  font-size: 12px;
  font-weight: 600;
  gap: 8px;
}

.site-footer__actions .btn--primary {
  background: var(--color-yellow);
  box-shadow: var(--shadow-hard);
}

.site-footer__actions .btn--ghost {
  background: transparent;
  color: var(--color-white);
  border-color: transparent;
  box-shadow: none;
  padding-inline: 6px;
}

.site-footer__actions .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 rgba(255, 255, 255, 0.25);
}

.site-footer__social {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 178px;
}

.site-footer__social-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(76vw, 660px);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

.site-footer__social-icons {
  position: relative;
  display: flex;
  gap: 12px;
  z-index: 1;
}

.site-footer__social-icons a,
.site-footer__social-icon {
  display: block;
  width: 50px;
  height: 46px;
  border: 0;
  background: transparent;
  transition: transform 160ms ease;
}

.site-footer__social-icons a:hover,
.site-footer__social-icon:hover {
  transform: translate(-2px, -2px);
}

.site-footer__social-icons img {
  width: 100%;
  height: 100%;
  display: block;
}

.site-footer__brand {
  width: 100%;
  margin: 152px 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.site-footer__brand-mobile {
  display: none;
}

.site-footer__brand-logo {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

.site-footer__legal {
  margin-top: 58px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.site-footer__legal p {
  width: auto;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.5;
}

/* Browser zoom can push a laptop past the artwork's 1600px minimum size.
   Extend the artwork and its blue underlay before the SVG's inset body
   can expose white gutters at either side of the footer. */
@media (min-width: 1450px) {
  .site-footer {
    /* The desktop SVG's cloud base sits at 509/1428 of its rendered width.
       Begin the solid fill there so wide/zoomed-out views keep the artwork's
       rounded top instead of exposing either white gutters or a flat blue cut. */
    --footer-blue-fill-top: max(655px, calc(35.65vw - 8px));
  }

  .site-footer::after {
    background-size: max(100%, 1860px) auto;
  }
}

@media (min-width: 1900px) {
  .site-footer {
    --footer-content-top: max(650px, 34.5vw);
    min-height: 1420px;
  }

  .site-footer__inner h2 {
    font-size: 50px;
  }

  .site-footer__actions {
    margin-top: 44px;
  }

  .site-footer__decor--zigzag {
    top: calc(var(--footer-content-top) - 44px);
    left: max(10%, calc(50% - 820px));
  }

  .site-footer__decor--star {
    top: calc(var(--footer-content-top) + 136px);
    left: max(8%, calc(50% - 850px));
  }

  .site-footer__decor--curl {
    top: calc(var(--footer-content-top) + 62px);
    right: max(7%, calc(50% - 850px));
  }

  .site-footer__decor--wave {
    top: calc(var(--footer-content-top) + 252px);
    width: min(52vw, 830px);
  }

  .site-footer__social {
    margin-top: 132px;
  }

  .site-footer__social-line {
    width: min(52vw, 650px);
  }

  .site-footer__brand {
    width: min(100%, 1120px);
    margin: 112px auto 0;
  }
}

/* Final CTA (legacy for portfolio page) */

.final-cta {
  position: relative;
  overflow: hidden;
  padding: 110px 0;
  background: var(--color-yellow);
  text-align: center;
}

.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 231, 21, 0));
  pointer-events: none;
}

.final-cta__inner {
  position: relative;
  z-index: 1;
}

.final-cta h2 {
  width: min(100%, 760px);
  margin: 0 auto 16px;
  font-size: 50px;
}

.final-cta p:not(.section__eyebrow) {
  width: min(100%, 590px);
  margin: 0 auto;
  color: rgba(17, 24, 39, 0.76);
  font-size: 18px;
  line-height: 1.55;
}

.final-cta .btn--primary {
  background: var(--color-white);
}

.final-cta__snail {
  position: absolute;
  left: 0;
  bottom: -54px;
  width: 150px;
  opacity: 0.78;
}

.social {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.social a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--color-navy);
  border-radius: 999px;
  background: var(--color-white);
  box-shadow: 3px 3px 0 var(--color-navy);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.social a:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hard);
}

.social img {
  width: 22px;
  height: 22px;
}

/* Footer (legacy for portfolio page) */

.footer {
  position: relative;
  overflow: hidden;
  background: var(--color-dark);
  color: var(--color-white);
  padding: 76px 0 36px;
}

.footer__bear {
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 360px;
  opacity: 0.18;
}

.footer__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
}

.footer .nav__brand-name,
.footer .nav__brand-subline {
  color: var(--color-white);
}

.footer .nav__brand-name span {
  color: var(--color-yellow);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  font-family: var(--font-display);
  font-size: 16px;
}

.footer__links a:hover {
  color: var(--color-yellow);
}

.footer p {
  grid-column: 1 / -1;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

/* ============================================================
   Portfolio page
   ============================================================ */

.portfolio-hero {
  min-height: 767px;
  padding-top: var(--nav-height);
}

.portfolio-hero__inner {
  position: relative;
  z-index: 4;
  min-height: 684px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}

.portfolio-hero h1 {
  width: min(100%, 820px);
  margin: 0 auto 18px;
  font-size: 64px;
  font-weight: 700;
}

.portfolio-hero p:not(.section__eyebrow) {
  width: min(100%, 670px);
  margin: 0 auto;
  color: rgba(17, 24, 39, 0.78);
  font-size: 18px;
  line-height: 1.55;
}

.portfolio-hero__bear {
  width: 285px;
  left: max(-34px, calc(50% - 660px));
  bottom: 105px;
  animation: hero-bear 6s ease-in-out infinite;
}

.portfolio-hero__animals {
  width: 310px;
  right: max(-74px, calc(50% - 690px));
  bottom: 220px;
  animation: hero-animals 7s ease-in-out infinite;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-auto-rows: 285px;
  gap: 24px;
}

.featured-card--large {
  grid-row: span 2;
}

.featured-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: var(--color-white);
  box-shadow: 0 14px 28px -22px rgba(17, 24, 39, 0.55);
  cursor: pointer;
  border: none;
  padding: 0;
  text-align: left;
  width: 100%;
  height: 100%;
}

.featured-card__media {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 18px;
}

.featured-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
  display: block;
}

.featured-card:hover .featured-card__media img {
  transform: scale(1.04);
}

.featured-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  padding: 40px 16px 16px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0) 100%);
  border-radius: 0 0 18px 18px;
  pointer-events: none;
}

.featured-card__overlay h3 {
  margin-bottom: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.28;
  color: #ffffff;
}

.featured-card__tag {
  min-width: 103px;
  margin: 0;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--color-yellow);
  font-family: var(--font-display);
  font-size: 11.2px;
  font-weight: 600;
  line-height: 16.8px;
  letter-spacing: 1.12px;
  text-align: center;
  text-transform: uppercase;
  color: var(--color-navy);
  white-space: nowrap;
  box-shadow: none;
  pointer-events: none;
}

.featured-card:nth-child(2) .featured-card__tag {
  background: var(--color-lilac);
}

.featured-card:nth-child(3) .featured-card__tag {
  background: #b7ef6d;
}

.mobile-featured {
  display: none;
}

.filters {
  padding: 86px 0;
}

.gallery__filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.gallery__filter {
  min-height: 48px;
  padding: 0 20px;
  border: 2px solid var(--color-navy);
  border-radius: 999px;
  background: var(--color-white);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-navy);
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.gallery__filter:hover,
.gallery__filter.active {
  background: var(--color-yellow);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--color-navy);
}

.gallery-heading {
  margin-bottom: 42px;
  text-align: center;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 360px;
  gap: 26px;
}

.gallery__item {
  min-height: 0;
}

.gallery__item--wide {
  grid-column: span 2;
}

.gallery__item:nth-child(5),
.gallery__item:nth-child(10) {
  grid-row: span 2;
}

.gallery__item.is-hidden {
  display: none;
}

.category-section__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 54px;
  align-items: center;
}

.category-section__copy .section__desc {
  margin: 18px 0 30px;
}

.category-section__media {
  aspect-ratio: 16 / 10;
}

.final-cta--portfolio {
  background: var(--color-yellow);
}

/* Portfolio page reference layout */

.portfolio-page {
  --nav-height: 64px;
  background: var(--color-white);
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.portfolio-page main {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.portfolio-page .nav {
  position: absolute;
}

.portfolio-page .nav__inner {
  width: min(100% - 96px, 1760px);
}

.portfolio-page .nav__brand-name {
  font-size: 18px;
}

.portfolio-page .nav__brand-subline {
  margin-top: 5px;
  font-size: 7px;
}

.portfolio-page .nav__cta {
  min-height: 44px;
  padding: 0 24px;
  font-size: 12px;
  box-shadow: 4px 4px 0 var(--color-navy);
}

.portfolio-page .nav__menu-button {
  min-height: 44px;
  padding: 0 16px;
  gap: 7px;
  font-size: 12px;
}

.portfolio-page .nav__menu-icon {
  width: 13px;
  height: 10px;
}

.portfolio-page .nav__menu-icon::before {
  top: 3px;
  width: 13px;
}

.portfolio-page .portfolio-hero {
  min-height: 620px;
  padding-top: var(--nav-height);
  overflow: hidden;
  background: var(--color-white);
}

.portfolio-page .portfolio-hero .hero__cloud--top {
  top: -22px;
  width: 100%;
  height: auto;
  max-width: none;
  left: 50%;
  transform: translateX(-50%) scaleY(0.6);
  transform-origin: top center;
  opacity: 1;
}

.portfolio-page .portfolio-hero__cloud-below {
  left: 0;
  bottom: calc(230px - 29.1vw);
  width: 100%;
  max-width: none;
  transform: none;
  opacity: 1;
  z-index: 2;
}

.portfolio-page .portfolio-hero .hero__cloud--tiny-left {
  top: 176px;
  left: 9%;
  width: 112px;
}

.portfolio-page .portfolio-hero .hero__cloud--tiny-right {
  top: 244px;
  right: 9%;
  width: 118px;
}

.portfolio-page .portfolio-hero__inner {
  min-height: 556px;
  width: min(100% - 64px, 540px);
  align-content: start;
  padding-top: 28px;
}

.portfolio-page .portfolio-hero .section__eyebrow {
  display: block;
  margin-bottom: 13px;
  color: var(--color-royal-blue);
  font-size: 10px;
  letter-spacing: 4px;
}

.portfolio-page .portfolio-hero h1 {
  width: min(100%, 460px);
  margin: 0 auto 16px;
  font-size: 48px;
  line-height: 1.04;
  letter-spacing: 0;
}

.portfolio-page .portfolio-hero h1 span {
  color: var(--color-royal-blue);
}

.portfolio-page .portfolio-hero p:not(.section__eyebrow) {
  width: min(100%, 380px);
  color: rgba(17, 24, 39, 0.68);
  font-size: 13px;
  line-height: 1.48;
}

.portfolio-page .portfolio-hero__actions {
  margin-top: 24px;
}

.portfolio-page .portfolio-hero .btn--small {
  min-width: 190px;
  min-height: 44px;
  padding: 0 34px;
  font-size: 12px;
  box-shadow: 5px 5px 0 var(--color-navy);
}

.portfolio-page .featured {
  margin-top: -1px;
  padding: 78px 0 56px;
  background: var(--color-blue-wash);
}

.portfolio-page .featured .container,
.portfolio-page .filters .container,
.portfolio-page .portfolio-gallery .container,
.portfolio-page .category-section .container {
  width: min(100% - 44px, 900px);
}

.portfolio-page .filters .container {
  width: min(100% - 44px, 1100px);
}

.portfolio-page .featured .section__header {
  width: min(100%, 720px);
  margin-bottom: 48px;
}

.portfolio-page .featured .section__title {
  font-size: 40px;
  line-height: 1.08;
}

.portfolio-page .featured .section__desc {
  max-width: 540px;
  margin: 12px auto 0;
  color: rgba(17, 24, 39, 0.62);
  font-size: 12px;
  line-height: 1.5;
}

.portfolio-page .featured-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: 42px;
  align-items: start;
  width: min(100%, 760px);
  margin: 0 auto;
}

.portfolio-page .featured-card {
  height: auto;
  aspect-ratio: 1.44 / 1;
  border: 3px solid var(--color-navy);
  border-radius: 16px;
  box-shadow: 7px 7px 0 var(--color-navy);
  background: var(--color-white);
}

.portfolio-page .featured-card:nth-child(3) {
  grid-column: 1 / -1;
  width: 58%;
  justify-self: center;
}

.portfolio-page .featured-card,
.portfolio-page .featured-card__media {
  border-radius: 16px;
}

.portfolio-page .featured-card__media {
  display: grid;
  grid-template-rows: minmax(0, 1fr) 76px;
  background: var(--color-white);
}

.portfolio-page .featured-card__media img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border-radius: 13px 13px 0 0;
}

.portfolio-page .featured-card__overlay {
  position: static;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  align-content: center;
  gap: 5px;
  min-height: 76px;
  padding: 10px 18px 12px;
  border-top: 0;
  border-radius: 0 0 13px 13px;
  background: var(--color-white);
  text-align: center;
}

.portfolio-page .featured-card__overlay h3 {
  margin: 0;
  color: var(--color-navy);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.28;
}

.portfolio-page .featured-card__tag {
  position: static;
  display: inline-flex;
  width: auto;
  min-width: 0;
  justify-self: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-royal-blue);
  font-size: 7px;
  line-height: 1.2;
  letter-spacing: 2.2px;
  box-shadow: none;
}

.portfolio-page .featured-card:nth-child(2) .featured-card__tag,
.portfolio-page .featured-card:nth-child(3) .featured-card__tag {
  background: transparent;
}

.portfolio-page .filters {
  position: relative;
  z-index: 1;
  margin-top: -1px;
  padding: 92px 0 76px;
  overflow: visible;
  background: var(--color-white);
}

.portfolio-page .filters::before {
  content: none;
}

.portfolio-page .filters::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  height: min(28.82vw, 364px);
  background-image: url("../assets/SVG Asset/Web portfolio page/cloud 1.svg");
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: 100vw auto;
  pointer-events: none;
  transform: translateX(-50%);
  z-index: 0;
}

.portfolio-page .filters .container {
  position: relative;
  z-index: 1;
}

.portfolio-page .filters__header {
  width: min(100%, 720px);
  margin: 0 auto 58px;
  text-align: center;
}

.portfolio-page .filters__header .section__title {
  font-size: clamp(40px, 5.2vw, 58px);
  line-height: 0.95;
}

.portfolio-page .filters__desc {
  max-width: 610px;
  margin: 12px auto 0;
  color: rgba(17, 24, 39, 0.62);
  font-size: 14px;
  line-height: 1.5;
}

.portfolio-page .filters__subline {
  margin-top: 28px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--color-royal-blue);
}

.portfolio-page .gallery__filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 14px;
  width: min(100%, 1040px);
  margin: 0 auto;
}

.portfolio-page .gallery__filter {
  min-height: 44px;
  padding: 0 22px;
  border: 3px solid var(--color-navy);
  border-radius: 999px;
  background: var(--color-white);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--color-navy);
  box-shadow: 3px 3px 0 var(--color-navy);
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.portfolio-page .gallery__filter:hover,
.portfolio-page .gallery__filter.active {
  background: var(--color-yellow);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--color-navy);
}

.portfolio-page .portfolio-gallery {
  margin-top: 0;
  padding: 26px 0 28px;
  background: var(--color-white);
}

.portfolio-page .gallery__grid {
  display: block;
  columns: 2 380px;
  column-gap: 34px;
  width: min(100%, 980px);
  margin: 0 auto;
}

.portfolio-page .gallery__item {
  display: block;
  width: 100%;
  min-height: 0;
  margin: 0 0 34px;
  padding: 0;
  overflow: hidden;
  break-inside: avoid;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  aspect-ratio: auto;
  transition-delay: var(--gallery-reveal-delay, 0ms);
}

.portfolio-page .gallery__item.reveal {
  opacity: 1;
  transform: none;
}

.portfolio-page .gallery__item.is-hidden,
.portfolio-page .gallery__item.is-load-hidden {
  display: none;
}

.portfolio-page .gallery__load-more-wrap {
  display: flex;
  justify-content: center;
  width: min(100%, 980px);
  margin: 30px auto 0;
}

.portfolio-page .gallery__load-more {
  min-width: 210px;
  min-height: 58px;
}

.portfolio-page .gallery__load-more[hidden] {
  display: none;
}

.portfolio-page .gallery__item:hover,
.portfolio-page .gallery__item:focus-visible {
  transform: none;
  box-shadow: none;
}

.portfolio-page .gallery__item img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0;
}

.portfolio-page .gallery__item img.image-load-fade {
  opacity: 1;
  transform: none;
  animation: gallery-image-in 520ms ease var(--gallery-image-delay, 0ms) both;
}

.portfolio-page .gallery__item img.image-load-fade.is-loaded {
  opacity: 1;
  transform: none;
}

.portfolio-page .gallery__item:hover img {
  transform: none;
}

.portfolio-page .portfolio-summary-cta {
  margin-top: 24px;
  padding: 36px 0 220px;
  background: var(--color-blue-soft);
}

.portfolio-page .portfolio-summary-cta__inner {
  position: relative;
  z-index: 4;
  width: min(100% - 32px, 780px);
  margin: 0 auto;
  padding: 44px clamp(24px, 5vw, 64px);
  border: 3px solid var(--color-navy);
  border-radius: 28px;
  background: var(--color-white);
  box-shadow: 8px 9px 0 var(--color-navy);
  text-align: center;
}

.portfolio-page .portfolio-summary-cta__inner.portfolio-cloud-rise {
  opacity: 1;
  transform: translateY(130px);
  transition: transform 2100ms cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-page .portfolio-summary-cta__inner.portfolio-cloud-rise.revealed {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-page .portfolio-summary-cta__inner p {
  max-width: 650px;
  margin: 0 auto 28px;
  color: rgba(17, 24, 39, 0.72);
  font-size: 18px;
  line-height: 1.7;
}

.portfolio-page .category-section {
  position: relative;
  isolation: isolate;
  overflow: visible;
  padding: 94px 0 112px;
  background: var(--color-blue-wash);
}

.portfolio-page .category-section::before {
  content: "";
  position: absolute;
  left: 50%;
  top: auto;
  bottom: calc(100% - 1px);
  z-index: 0;
  width: 100vw;
  height: max(19.86vw, 299px);
  min-height: 0;
  background-image: url("../assets/SVG Asset/Web portfolio page/cloud 2.svg");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100vw auto;
  pointer-events: none;
  transform: translateX(-50%);
}

.portfolio-page .category-section::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  z-index: 0;
  width: 100vw;
  height: clamp(132px, 17vw, 230px);
  background-image: url("../assets/SVG Asset/Web portfolio page/Cloud footer.svg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100vw 100%;
  pointer-events: none;
  transform: translateX(-50%);
}

.portfolio-page .category-section__grid {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 0.78fr) minmax(260px, 1fr);
  gap: 28px;
  align-items: center;
  padding-bottom: 118px;
}

.portfolio-page .category-section__copy .section__eyebrow {
  display: none;
}

.portfolio-page .category-section__copy .section__title {
  max-width: 300px;
  font-size: 25px;
  line-height: 1.05;
}

.portfolio-page .category-section__copy .section__desc {
  max-width: 310px;
  margin: 14px 0 18px;
  color: rgba(17, 24, 39, 0.68);
  font-size: 12px;
  line-height: 1.55;
}

.portfolio-page .category-section__copy .btn {
  min-height: 44px;
  padding: 0 22px;
  border-width: 2px;
  font-size: 11px;
  box-shadow: 3px 3px 0 var(--color-navy);
}

.portfolio-page .author-site-stack {
  display: grid;
  gap: 20px;
  max-width: 420px;
  margin-left: auto;
}

.portfolio-page .browser-mockup {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--color-navy);
  border-radius: 12px;
  background: var(--color-white);
  box-shadow: 5px 5px 0 var(--color-navy);
}

.portfolio-page .browser-mockup--offset {
  transform: translateX(-24px);
}

.portfolio-page .browser-mockup__chrome {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 12px;
  background: #f3f4f6;
  border-bottom: 1.5px solid var(--color-navy);
}

.portfolio-page .browser-mockup__chrome span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-navy);
  opacity: 0.35;
}

.portfolio-page .browser-mockup__viewport {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-white);
}

.portfolio-page .browser-mockup--video .browser-mockup__viewport {
  aspect-ratio: 32 / 15;
}

.portfolio-page .browser-mockup__viewport img,
.portfolio-page .browser-mockup__viewport video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.portfolio-page .coming-soon-preview {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #f6f1e8;
}

.portfolio-page .coming-soon-preview__site {
  height: 100%;
  padding: 18px 20px;
  filter: blur(4px);
  transform: scale(1.04);
  opacity: 0.78;
}

.portfolio-page .coming-soon-preview__nav {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 2px dashed rgba(17, 24, 39, 0.22);
}

.portfolio-page .coming-soon-preview__nav span {
  width: 46px;
  height: 8px;
  border-radius: 999px;
  background: #203353;
}

.portfolio-page .coming-soon-preview__hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  align-items: center;
  min-height: 58%;
}

.portfolio-page .coming-soon-preview__hero span,
.portfolio-page .coming-soon-preview__hero strong,
.portfolio-page .coming-soon-preview__hero em {
  display: block;
  border-radius: 999px;
}

.portfolio-page .coming-soon-preview__hero span {
  width: 34%;
  height: 16px;
  margin-bottom: 18px;
  background: #4267c9;
}

.portfolio-page .coming-soon-preview__hero strong {
  width: 86%;
  height: 32px;
  margin-bottom: 12px;
  background: #ec6f61;
}

.portfolio-page .coming-soon-preview__hero em {
  width: 62%;
  height: 18px;
  background: #203353;
}

.portfolio-page .coming-soon-preview__hero aside {
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 220, 38, 0.9), rgba(236, 111, 97, 0.82)),
    #ffdc26;
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.42);
}

.portfolio-page .coming-soon-preview__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.portfolio-page .coming-soon-preview__cards span {
  height: 46px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: inset 0 0 0 2px rgba(17, 24, 39, 0.12);
}

.portfolio-page .coming-soon-preview__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(17, 24, 39, 0.24);
}

.portfolio-page .coming-soon-preview__overlay span {
  padding: 12px 24px;
  border: 2px solid var(--color-navy);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 4px 4px 0 var(--color-navy);
  color: var(--color-navy);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  line-height: 1;
}

.portfolio-page .site-footer {
  --footer-content-top: 0px;
  --footer-blue-fill-top: 0px;
  min-height: auto;
  margin-top: 0;
  padding: 0 0 24px;
  overflow: hidden;
  background: var(--color-royal-blue);
}

.portfolio-page .site-footer::before {
  content: none;
}

.portfolio-page .site-footer::after {
  content: none;
}

.portfolio-page .site-footer__inner {
  position: relative;
  z-index: 3;
  padding-top: 84px;
}

.portfolio-page .site-footer__decor {
  display: none;
}

.portfolio-page .site-footer__inner h2 {
  width: min(100%, 560px);
  font-size: 42px;
}

.portfolio-page .site-footer__inner p {
  width: min(100%, 480px);
  font-size: 16px;
  line-height: 1.6;
}

.portfolio-page .site-footer__actions {
  margin-top: 36px;
}

.portfolio-page .site-footer__actions .btn {
  min-height: 48px;
  padding: 0 28px;
  border-width: 3px;
  font-size: 13px;
}

.portfolio-page .site-footer__actions .btn--ghost {
  border-color: var(--color-white);
  color: var(--color-white);
}

.portfolio-page .site-footer__actions .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.15);
}

.portfolio-page .site-footer__social {
  margin-top: 64px;
}

.portfolio-page .site-footer__brand {
  margin-top: 72px;
}

.portfolio-page .site-footer__legal {
  margin-top: 32px;
}

@media (min-width: 769px) {
  .portfolio-page .portfolio-gallery {
    padding-bottom: 0;
  }

  .portfolio-page .portfolio-summary-cta {
    padding: 8px 0 calc(max(22.24vw, 335px) - 155px);
  }

  .portfolio-page .category-section {
    isolation: auto;
    min-height: 560px;
    padding: clamp(78px, 6vw, 98px) 0 0;
    background: var(--color-blue-wash);
  }

  .portfolio-page .category-section::before {
    top: auto;
    bottom: calc(100% - 1px);
    height: max(22.24vw, 335px);
    background-size: max(112vw, 1687px) auto;
    background-position: center bottom;
  }

  .portfolio-page .category-section::after {
    content: none;
  }

  .portfolio-page .category-section .container {
    width: min(100% - 96px, 1280px);
  }

  .portfolio-page .category-section__grid {
    z-index: 4;
    grid-template-columns: minmax(330px, 0.72fr) minmax(500px, 1fr);
    gap: clamp(56px, 7vw, 112px);
    align-items: start;
    padding-bottom: clamp(176px, 13vw, 228px);
  }

  .portfolio-page .category-section__copy {
    padding-top: clamp(24px, 3vw, 44px);
  }

  .portfolio-page .category-section__copy .section__eyebrow {
    display: block;
    margin-bottom: 12px;
    color: var(--color-royal-blue);
    font-size: 10px;
    letter-spacing: 4px;
  }

  .portfolio-page .category-section__copy .section__title {
    max-width: 500px;
    font-size: clamp(38px, 3.2vw, 48px);
    line-height: 1.02;
    letter-spacing: 0;
  }

  .portfolio-page .category-section__copy .section__desc {
    max-width: 500px;
    margin: 18px 0 24px;
    color: rgba(17, 24, 39, 0.68);
    font-size: 14px;
    line-height: 1.58;
  }

  .portfolio-page .category-section__actions {
    margin-top: 0;
  }

  .portfolio-page .category-section__copy .btn {
    min-height: 44px;
    padding: 0 28px;
    border-width: 3px;
    font-size: 11px;
    box-shadow: 4px 4px 0 var(--color-navy);
  }

  .portfolio-page .author-site-stack {
    justify-items: center;
    gap: 22px;
    width: 100%;
    max-width: 560px;
    margin-left: auto;
    padding-top: 0;
  }

  .portfolio-page .browser-mockup {
    width: min(100%, 440px);
    overflow: hidden;
    border: 3px solid var(--color-navy);
    border-radius: 14px;
    box-shadow: none;
    background: var(--color-white);
  }

  .portfolio-page .browser-mockup--video {
    transform: rotate(-1deg);
  }

  .portfolio-page .browser-mockup--offset {
    justify-self: center;
    transform: translateX(-18px) rotate(1deg);
  }

  .portfolio-page .browser-mockup__chrome {
    display: none;
  }

  .portfolio-page .browser-mockup__viewport,
  .portfolio-page .browser-mockup--video .browser-mockup__viewport {
    aspect-ratio: 32 / 15;
  }

  .portfolio-page .browser-mockup__viewport img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
  }

  .portfolio-page .site-footer {
    position: relative;
    z-index: 1;
    margin-top: -160px;
    min-height: 520px;
    padding: 0 0 36px;
    background: linear-gradient(
      to bottom,
      transparent 0 250px,
      var(--color-royal-blue) 250px 100%
    );
    overflow: visible;
  }

  .portfolio-page .site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    right: auto;
    bottom: auto;
    z-index: 0;
    width: 100vw;
    height: clamp(300px, 27vw, 420px);
    background-color: transparent;
    background-image: url("../assets/SVG Asset/Web portfolio page/Cloud footer.svg");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: max(100vw, 1627px) auto;
    pointer-events: none;
    transform: translateX(-50%);
  }

  .portfolio-page .site-footer__inner {
    position: relative;
    z-index: 2;
    padding-top: 170px;
  }

  .portfolio-page .site-footer__inner h2 {
    width: min(100%, 760px);
    margin-bottom: 18px;
    font-size: clamp(42px, 4.2vw, 60px);
    line-height: 1.08;
  }

  .portfolio-page .site-footer__inner p {
    width: min(100%, 560px);
    font-size: 12px;
    line-height: 1.55;
  }

  .portfolio-page .site-footer__contact-note {
    display: none;
  }

  .portfolio-page .site-footer__actions {
    margin-top: 34px;
    gap: 16px;
  }

  .portfolio-page .site-footer__actions .btn {
    min-height: 48px;
    padding: 0 28px;
    font-size: 12px;
  }

  .portfolio-page .site-footer__social {
    margin-top: 150px;
  }
}

/* ============================================================
   Lightbox
   ============================================================ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 72px;
  background: rgba(10, 17, 33, 0.9);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox__image {
  max-width: min(100%, 1120px);
  max-height: calc(100vh - 144px);
  border: 4px solid var(--color-white);
  border-radius: var(--radius-sm);
  object-fit: contain;
  background: var(--color-white);
}

.lightbox__close,
.lightbox__nav {
  position: fixed;
  display: grid;
  place-items: center;
  border: 3px solid var(--color-navy);
  border-radius: 999px;
  background: var(--color-yellow);
  color: var(--color-navy);
  font-family: var(--font-display);
  box-shadow: var(--shadow-hard);
}

.lightbox__close {
  top: 24px;
  right: 24px;
  width: 50px;
  height: 50px;
  font-size: 32px;
  line-height: 1;
}

.lightbox__nav {
  top: 50%;
  width: 54px;
  height: 54px;
  padding: 0;
  transform: translateY(-50%);
}

.lightbox__nav svg {
  display: block;
  width: 30px;
  height: 30px;
  overflow: visible;
}

.lightbox__nav path {
  fill: none;
  stroke: currentColor;
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lightbox__nav--prev {
  left: 24px;
}

.lightbox__nav--next {
  right: 24px;
}

/* ============================================================
   Motion
   ============================================================ */

@keyframes hero-o-open {
  0%,
  18% {
    width: var(--hero-o-closed);
    min-width: var(--hero-o-closed);
    opacity: 1;
  }
  48% {
    opacity: 1;
  }
  86%,
  100% {
    width: var(--hero-o-open);
    min-width: var(--hero-o-open);
    opacity: 1;
  }
}

@keyframes hero-o-img-reveal {
  0%, 32% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes hero-o-letter-hide {
  0%,
  34% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes hero-bear {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(-1deg); }
}

@keyframes hero-animals {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(14px) rotate(1deg); }
}

@keyframes float-cloud {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes gallery-image-in {
  from {
    transform: translateY(12px) scale(0.985);
  }

  to {
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .reveal,
  .section-reveal {
    opacity: 1;
    transform: none;
  }

  .image-load-fade {
    opacity: 1;
  }

  .portfolio-page .gallery__item,
  .portfolio-page .gallery__item img.image-load-fade {
    transition-delay: 0ms !important;
  }

  .portfolio-page .gallery__item img.image-load-fade {
    animation: none !important;
    transform: none;
  }

  .hero__o {
    animation: none !important;
    width: var(--hero-o-open);
    min-width: var(--hero-o-open);
  }

  .hero__o::before {
    display: none;
  }

  .hero__o img {
    animation: none !important;
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(2.8);
  }

}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1100px) {
  .hero__title {
    font-size: 78px;
  }

  .hero__word--illustrator {
    font-size: 72px;
  }

  .hero__o {
    height: 96px;
  }

  .hero__book-row {
    --hero-o-open: 330px;
    --hero-o-closed: 96px;
  }

  .hero__o img {
    width: 315px;
    height: 92px;
  }

  .hero__character--bear {
    width: 318px;
    left: max(24px, calc(50% - 500px));
    bottom: 205px;
  }

  .hero__character--animals {
    width: 300px;
    right: -64px;
    bottom: 228px;
  }

  .book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-preview__flower {
    right: max(72px, calc(50% - 402px));
    bottom: 80px;
    width: 122px;
  }

  .portfolio-preview__snail {
    right: -190px;
    width: 510px;
  }

  .books__header {
    width: min(100%, 760px);
  }

  .services__header {
    padding-top: 64px;
  }

  .process-list {
    max-width: 100%;
  }

  .gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery__item--wide {
    grid-column: span 1;
  }
}

@media (max-width: 900px) {
  .subpage-hero__grid,
  .subpage-split,
  .inquiry-layout,
  .website-demo__grid,
  .section__header--split,
  .service-grid,
  .why__grid,
  .category-section__grid,
  .featured-grid {
    grid-template-columns: 1fr;
  }

  .section__header--split {
    gap: 18px;
    text-align: center;
  }

  .author-hero-preview {
    width: min(100%, 640px);
    margin: 12px auto 0;
  }

  .author-hero-preview__chips {
    right: 16px;
  }

  .service-card {
    min-height: auto;
  }

  .subpage-card-grid,
  .contact-methods,
  .case-study-meta {
    grid-template-columns: 1fr;
  }

  .subpage-hero__media img,
  .subpage-visual-card img {
    min-height: 260px;
  }

  .services__backdrop {
    bottom: 42px;
    width: 1240px;
    height: calc(100% - 84px);
  }

  .service-grid {
    width: min(100%, 650px);
  }

  .featured-card--large {
    grid-row: span 1;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 62px;
  }

  .container,
  .nav__inner,
  .hero__inner {
    width: min(100% - 32px, var(--container));
  }

  .nav__brand-name {
    font-size: 20px;
  }

  .nav__brand-subline {
    font-size: 9px;
    margin-top: 5px;
  }

  .nav__cta {
    display: none;
  }

  .nav__menu-button {
    min-height: 44px;
    padding: 0 14px;
    font-size: 12px;
    text-transform: uppercase;
  }

  .nav__mobile-overlay {
    top: calc(var(--nav-height) + 18px);
    left: 16px;
    right: 16px;
    width: auto;
    transform: translateY(-12px);
    border-radius: 20px;
  }

  .nav__mobile-overlay.open {
    transform: translateY(0);
  }

  .subpage-hero {
    padding: calc(var(--nav-height) + 48px) 0 64px;
  }

  .subpage-hero h1 {
    font-size: 44px;
  }

  .subpage-hero .section__desc {
    font-size: 16px;
  }

  .author-hero-preview__browser {
    border-radius: 24px;
    transform: none;
  }

  .author-hero-preview__screen {
    grid-template-columns: minmax(0, 1fr) minmax(150px, 0.8fr);
    gap: 16px;
    min-height: 260px;
    padding: 22px;
  }

  .author-hero-preview__copy small {
    margin-bottom: 10px;
    padding: 7px 10px;
    font-size: 10px;
  }

  .author-hero-preview__copy strong {
    font-size: 24px;
  }

  .author-hero-preview__copy p {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.45;
  }

  .author-hero-preview__buttons span {
    padding: 8px 10px;
    font-size: 10px;
  }

  .author-hero-preview__chips {
    position: relative;
    right: auto;
    bottom: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    margin-top: 14px;
  }

  .author-hero-preview__chips span {
    padding: 9px 8px;
    border-radius: 14px;
    font-size: 11px;
  }

  .subpage-section {
    padding: 70px 0;
  }

  .inquiry-layout {
    gap: 34px;
  }

  .inquiry-intro {
    max-width: 680px;
  }

  .inquiry-form {
    padding: 24px;
    border-radius: 24px;
    box-shadow: 5px 5px 0 var(--color-navy);
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .form-field--full {
    grid-column: auto;
  }

  .form-field input,
  .form-field select,
  .form-field textarea {
    font-size: 16px;
  }

  .subpage-card,
  .subpage-callout {
    padding: 24px;
  }

  .subpage-hero__actions .btn,
  .subpage-actions .btn,
  .category-section__actions .btn,
  .inquiry-form__submit {
    width: 100%;
  }

  .hero--home {
    min-height: 560px;
  }

  .hero__inner {
    min-height: 500px;
    padding-top: 54px;
    place-items: start center;
  }

  .hero__title {
    font-size: 44px;
    line-height: 1.02;
  }

  .hero__book-row {
    --hero-o-open: 158px;
    --hero-o-closed: 54px;
    min-height: 68px;
    gap: 8px;
  }

  .hero__word--illustrator {
    margin-top: 4px;
    font-size: 32px;
  }

  .hero__o {
    height: 54px;
    border-width: 4px;
  }

  .hero__o img {
    width: 150px;
    height: 50px;
  }

  .hero__intro {
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.55;
  }

  .hero__actions,
  .final-cta__actions {
    gap: 12px;
    margin-top: 18px;
  }

  .btn {
    min-height: 52px;
    padding: 0 24px;
    font-size: 14px;
  }

  .hero__character--bear {
    width: 155px;
    left: -56px;
    bottom: 76px;
  }

  .hero__character--animals {
    width: 165px;
    right: -72px;
    bottom: 104px;
  }

  .hero__cloud--top {
    width: 160%;
    max-width: none;
    left: -30%;
  }

  .hero__cloud--bottom-png {
    width: 100%;
    height: 430px;
    bottom: 0;
  }

  .hero__cloud--tiny {
    width: 58px;
  }

  .hero__cloud--tiny-left {
    top: 112px;
    left: 7%;
  }

  .hero__cloud--tiny-right {
    top: 164px;
    right: 9%;
    width: 48px;
  }

  .section {
    padding: 74px 0;
  }

  .section__header {
    margin-bottom: 34px;
  }

  .section__title,
  .final-cta h2 {
    font-size: 32px;
  }

  .section__desc,
  .final-cta p:not(.section__eyebrow) {
    font-size: 15px;
  }

  .books {
    padding: 66px 0 76px;
  }

  .books__header {
    margin-bottom: 36px;
  }

  .books__header .section__title {
    font-size: 31px;
  }

  .books__header .section__desc {
    margin-top: 14px;
  }

  .services {
    padding: 62px 0 82px;
  }

  .services__backdrop {
    top: 116px;
    bottom: auto;
    left: 50%;
    width: 820px;
    height: calc(100% - 148px);
    transform: translateX(-50%);
  }

  .services__sun {
    top: 20px;
    right: -78px;
    width: 230px;
    max-width: none;
  }

  .services__header {
    width: 100%;
    margin-bottom: 28px;
    padding-top: 40px;
  }

  .services__header .section__eyebrow {
    margin-bottom: 20px;
  }

  .services__header .section__title {
    font-size: 31px;
  }

  .book-grid,
  .portfolio-mosaic,
  .process-list,
  .gallery__grid {
    grid-template-columns: 1fr;
  }

  .portfolio-mosaic,
  .gallery__grid {
    grid-auto-rows: auto;
  }

  .work-card,
  .featured-card,
  .gallery__item,
  .category-section__media {
    aspect-ratio: 4 / 3;
  }

  .portfolio-preview {
    padding: 74px 0 76px;
  }

  .portfolio-preview__snail {
    display: none;
  }

  .portfolio-preview__flower {
    display: none;
  }

  .portfolio-preview__header {
    width: 100%;
    margin: 0 0 34px;
    padding: 0;
  }

  .portfolio-preview__header .section__title {
    font-size: 31px;
  }

  .portfolio-preview__header .section__desc {
    margin-top: 16px;
  }

  .portfolio-mosaic {
    gap: 20px;
  }

  .work-card__site-copy {
    left: -14px;
    top: 58px;
  }

  .work-card__site-copy strong {
    font-size: 22px;
  }

  .work-card__site-copy em {
    font-size: 16px;
  }

  .book-card__image {
    aspect-ratio: 1 / 1.05;
  }

  .book-card__overlay {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 24px 12px 12px;
  }

  .book-card__overlay h3 {
    font-size: 15px;
  }

  .book-card__tag {
    width: fit-content;
    min-width: 112px;
  }

  .service-grid {
    gap: 22px;
    width: min(100%, 318px);
  }

  .service-card {
    min-height: 318px;
    padding: 26px 24px 24px;
    border-radius: 18px;
    box-shadow: 6px 6px 0 var(--color-navy);
  }

  .service-card__icon-wrap {
    width: 44px;
    height: 44px;
    margin-bottom: 22px;
    border-width: 2px;
    border-radius: 10px;
  }

  .service-card__icon {
    width: 22px;
    height: 22px;
  }

  .service-card h3 {
    margin-bottom: 12px;
    font-size: 18px;
  }

  .service-card p {
    font-size: 14px;
  }

  .service-card a {
    margin-top: 24px;
    font-size: 12px;
  }

  .work-card--wide,
  .work-card--lilly,
  .work-card--crowns,
  .work-card--characters,
  .work-card--cover,
  .work-card--website-live,
  .work-card--website-muted,
  .work-card--tall,
  .gallery__item:nth-child(5),
  .gallery__item:nth-child(10) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .process {
    padding: 108px 0 78px;
  }

  .process__cloud-top {
    top: -46px;
    width: 128%;
    height: 235px;
  }

  .process__header {
    margin-bottom: 28px;
  }

  .process-step {
    align-items: flex-start;
    min-height: auto;
    padding: 18px;
    gap: 14px;
  }

  .process-step__number {
    width: 44px;
    height: 44px;
    font-size: 13px;
    border-width: 2px;
  }

  .process-step__content h3 {
    font-size: 16px;
  }

  .process-step__content p {
    font-size: 13px;
  }

  .process__heart {
    top: 74px;
    right: 24px;
    width: 68px;
  }

  .process__doodle-left {
    top: 160px;
    width: 50px;
  }

  .process__doodle-bottom {
    bottom: 12px;
    width: 44px;
  }

  .why {
    padding: 74px 0 82px;
    background: var(--color-white);
  }

  .why__grid {
    gap: 28px;
    align-items: start;
  }

  .why__copy {
    max-width: none;
  }

  .why__copy .section__eyebrow {
    min-height: 34px;
    margin-bottom: 14px;
    padding: 0 16px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.08em;
  }

  .why__copy .section__title {
    max-width: 100%;
    font-size: clamp(23px, 7vw, 30px);
    line-height: 1.04;
    letter-spacing: -0.02em;
  }

  .why__brand-line {
    display: block;
  }

  .why__copy .section__desc {
    max-width: 31ch;
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.62;
  }

  .why__blob-decor {
    left: calc(100% + 10px);
    top: -16px;
    width: 54px;
    height: 52px;
  }

  .why__copy .btn {
    display: none;
  }

  .why__panel {
    width: 100%;
    padding: 18px 18px 14px;
    border: 1.5px solid #c2c8ff;
    border-radius: 30px;
    background: #dce8ff;
    box-shadow: none;
  }

  .why__list {
    gap: 0;
  }

  .why__item {
    align-items: flex-start;
    gap: 12px;
    padding: 15px 0;
    font-size: 14px;
    line-height: 1.5;
  }

  .why__item:not(:last-child) {
    border-bottom: 1px solid rgba(104, 125, 170, 0.28);
  }

  .why__item span:last-child {
    flex: 1;
    max-width: 30ch;
  }

  .why__check {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    border-width: 1.5px;
  }

  .why__check::after {
    width: 7px;
    height: 4px;
    border-left-width: 1.75px;
    border-bottom-width: 1.75px;
    transform: rotate(-45deg) translate(0.5px, -0.5px);
  }

  .final-cta {
    padding: 78px 0;
  }

  .final-cta__snail {
    width: 98px;
    left: -18px;
  }

  .portfolio-hero {
    min-height: 620px;
  }

  .portfolio-hero__inner {
    min-height: 558px;
  }

  .portfolio-hero h1 {
    font-size: 36px;
  }

  .portfolio-hero p:not(.section__eyebrow) {
    font-size: 15px;
  }

  .portfolio-hero__bear {
    width: 140px;
    left: -50px;
    bottom: 74px;
  }

  .portfolio-hero__animals {
    width: 155px;
    right: -68px;
    bottom: 142px;
  }

  .featured-grid {
    grid-auto-rows: auto;
  }

  .filters {
    padding: 68px 0;
  }

  .gallery__filter {
    min-height: 44px;
    padding: 0 16px;
    font-size: 14px;
  }

  .lightbox {
    padding: 76px 18px;
  }

  .lightbox__image {
    max-height: calc(100vh - 152px);
  }

  .lightbox__nav {
    top: auto;
    bottom: 22px;
    transform: none;
  }

  .lightbox__nav--prev {
    left: calc(50% - 66px);
  }

  .lightbox__nav--next {
    right: calc(50% - 66px);
  }

  .footer__inner {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .footer__links {
    justify-content: flex-start;
  }

  .featured-card__overlay {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 24px 12px 12px;
  }

  .featured-card__overlay h3 {
    font-size: 15px;
  }

  .site-footer {
    --footer-content-top: 64px;
    --footer-blue-fill-top: 0px;
    min-height: 0;
    margin-top: 0;
    padding: 64px 0 32px;
    border-radius: 0;
  }

  /* Match the reference: solid blue, no bear, no doodles across the
     small/medium range (this is what 67-110% zoom in a narrow window hits). */
  .site-footer::after {
    display: none;
  }

  .site-footer__inner {
    padding-top: 0;
  }

  /* Reference drops the CTA on small screens */
  .site-footer__inner h2,
  .site-footer__inner > p,
  .site-footer__contact-note,
  .site-footer__actions,
  .site-footer__mobile-break {
    display: none;
  }

  .site-footer__decor--zigzag,
  .site-footer__decor--star,
  .site-footer__decor--curl,
  .site-footer__decor--wave {
    display: none;
  }

  .site-footer__social {
    margin-top: 0;
  }

  .site-footer__social-line {
    width: min(70vw, 360px);
  }

  .site-footer__social-icons {
    gap: 8px;
  }

  .site-footer__social-icons a {
    width: 44px;
    height: 44px;
  }

  .site-footer__social-icons img {
    width: 32px;
    height: 30px;
    margin: 7px auto;
    object-fit: contain;
  }

  .site-footer__brand {
    width: 100%;
    margin-top: 44px;
    margin-left: 0;
    margin-right: 0;
  }

  .site-footer__brand-logo {
    display: none;
  }

  .site-footer__brand-mobile {
    display: grid;
    justify-items: center;
    gap: 2px;
  }

  .site-footer__brand-mobile > span {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 0.82;
    letter-spacing: -0.06em;
    white-space: nowrap;
    color: var(--color-white);
  }

  .site-footer__brand-mobile > span:first-child {
    font-size: 84px;
    line-height: 0.76;
  }

  .site-footer__brand-mobile > span:last-child {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0;
    font-size: 52px;
    line-height: 0.8;
  }

  .site-footer__brand-mobile .site-footer__brand-mobile-accent {
    display: inline-block;
    margin-left: 1px;
    font-size: 0.78em;
    line-height: 1;
    color: #7ca9fd;
    letter-spacing: -0.05em;
    transform: translateY(-1px);
  }

  .site-footer__legal {
    display: grid;
    justify-items: center;
    gap: 8px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
  }

  .site-footer__legal p {
    width: 100%;
    flex: none;
    white-space: normal;
    text-align: center;
    font-size: 11px;
    line-height: 1.5;
  }

  .site-footer__legal p:first-child {
    order: 2;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
  }

  .site-footer__legal p:last-child {
    order: 1;
    flex: none;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.78);
  }

}

@media (max-width: 480px) {
  .site-footer {
    --footer-content-top: 195px;
    --footer-blue-fill-top: 158px;
    min-height: 754px;
    padding: 0 0 14px;
    margin-top: 0;
    overflow: hidden;
  }

  .site-footer::before {
    display: block;
    top: var(--footer-blue-fill-top);
    bottom: 0;
    background: var(--color-royal-blue);
  }

  /* Use the supplied mobile bear/cloud composition from the reference artwork. */
  .site-footer::after {
    display: block;
    inset-block: 0;
    background-image: url('../assets/svg/characters/bear-footer-mobile.svg');
    background-position: center calc(150px - 38.4vw);
    background-size: 110% auto;
  }

  .site-footer__inner {
    width: min(100% - 28px, 390px);
    padding-top: var(--footer-content-top);
  }

  .site-footer__inner h2 {
    display: block;
    width: min(100%, 326px);
    margin: 0 auto 14px;
    font-size: 24px;
    line-height: 1.04;
  }

  .site-footer__inner > p {
    display: block;
    width: min(100%, 282px);
    font-size: 13px;
    line-height: 1.58;
  }

  .site-footer__inner > .site-footer__contact-note {
    display: none;
  }

  .site-footer__mobile-break {
    display: inline;
  }

  .site-footer__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-wrap: nowrap;
    gap: 15px;
    margin-top: 18px;
  }

  .site-footer__actions .btn--primary {
    width: min(100%, 246px);
    min-height: 54px;
    padding: 0 18px;
    border-width: 2px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 6px 8px 0 var(--color-navy);
  }

  .site-footer__actions .btn--ghost {
    min-width: 0;
    min-height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--color-white);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
  }

  .site-footer__actions .btn--ghost:hover {
    background: transparent;
    box-shadow: none;
    transform: none;
  }

  .site-footer__decor--zigzag,
  .site-footer__decor--star,
  .site-footer__decor--curl,
  .site-footer__decor--wave {
    display: block;
  }

  .site-footer__decor--zigzag {
    top: 168px;
    left: 5%;
    width: 42px;
    height: 32px;
  }

  .site-footer__decor--star {
    top: 410px;
    left: 4%;
    width: 38px;
    height: 38px;
  }

  .site-footer__decor--curl {
    top: 166px;
    right: 3%;
    width: 44px;
    height: 48px;
  }

  .site-footer__decor--wave {
    top: 458px;
    width: min(84%, 316px);
    height: 22px;
  }

  .site-footer__social {
    margin-top: 80px;
  }

  .site-footer__social-line {
    width: min(88vw, 330px);
  }

  .site-footer__social-icons {
    gap: 1px;
  }

  .site-footer__social-icons a,
  .site-footer__social-icon {
    width: 34px;
    height: 34px;
  }

  .site-footer__social-icons img {
    width: 28px;
    height: 27px;
    margin: 4px auto;
  }

  .site-footer__brand {
    margin-top: 54px;
  }

  .site-footer__brand-mobile {
    display: block;
    width: min(100vw, 388px);
    height: auto;
    aspect-ratio: 388 / 95;
    background: url('../assets/SVG Asset/Mobile veiw Home page/Brand logo.svg') center / contain no-repeat;
  }

  .site-footer__brand-mobile > span,
  .site-footer__brand-mobile > span:first-child,
  .site-footer__brand-mobile > span:last-child,
  .site-footer__brand-mobile .site-footer__brand-mobile-accent {
    display: none;
  }

  .site-footer__brand-logo {
    display: none;
  }

  .site-footer__legal {
    display: grid;
    justify-items: center;
    gap: 9px;
    margin-top: 26px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
  }

  .site-footer__legal p,
  .site-footer__legal p:first-child,
  .site-footer__legal p:last-child {
    width: 100%;
    flex: none;
    white-space: normal;
    text-align: center;
    font-size: 9px;
    line-height: 1.5;
  }

  .site-footer__legal p:first-child {
    order: 1;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.72);
  }

  .site-footer__legal p:last-child {
    order: 2;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.78);
  }
}

@media (max-width: 768px) {
  .portfolio-page {
    --nav-height: 64px;
  }

  .portfolio-page .nav {
    position: absolute;
  }

  .portfolio-page .nav__inner {
    width: min(100% - 42px, 1167px);
  }

  .portfolio-page .nav__brand-name {
    font-size: 16px;
  }

  .portfolio-page .nav__brand-subline {
    margin-top: 4px;
    font-size: 6.5px;
  }

  .portfolio-page .nav__cta {
    display: inline-flex;
    min-height: 44px;
    padding: 0 18px;
    font-size: 9px;
    box-shadow: 4px 4px 0 var(--color-navy);
  }

  .portfolio-page .nav__menu-button {
    min-height: 44px;
    padding: 0 14px;
    gap: 6px;
    font-size: 9px;
  }

  .portfolio-page .nav__menu-icon {
    width: 12px;
    height: 9px;
  }

  .portfolio-page .nav__menu-icon::before {
    top: 2.5px;
    width: 12px;
  }

  .portfolio-page .portfolio-hero {
    min-height: 392px;
    padding-top: var(--nav-height);
  }

  .portfolio-page .portfolio-hero .hero__cloud--top {
    top: -24px;
    left: 50%;
    width: 122%;
    transform: translateX(-50%);
  }

  .portfolio-page .portfolio-hero__cloud-below {
    bottom: -34px;
    width: 100%;
  }

  .portfolio-page .portfolio-hero .hero__cloud--tiny-left {
    top: 164px;
    left: 11%;
    width: 88px;
  }

  .portfolio-page .portfolio-hero .hero__cloud--tiny-right {
    top: 270px;
    right: -5%;
    width: 88px;
  }

  .portfolio-page .portfolio-hero__inner {
    min-height: 330px;
    width: min(100% - 36px, 520px);
    align-content: start;
    padding-top: 15px;
  }

  .portfolio-page .portfolio-hero .section__eyebrow {
    margin-bottom: 12px;
    font-size: 8px;
    letter-spacing: 3.2px;
  }

  .portfolio-page .portfolio-hero h1 {
    width: min(100%, 306px);
    margin-bottom: 14px;
    font-size: 32px;
    line-height: 1.08;
  }

  .portfolio-page .portfolio-hero p:not(.section__eyebrow) {
    width: min(100%, 320px);
    font-size: 12px;
    line-height: 1.55;
  }

  .portfolio-page .portfolio-hero .btn--small {
    min-width: 190px;
    min-height: 48px;
    padding: 0 30px;
    font-size: 12px;
  }

  .portfolio-page .featured {
    display: none;
  }

  .portfolio-page .mobile-featured {
    display: block;
    padding: 42px 0 38px;
    overflow: hidden;
    background: var(--color-blue-wash);
  }

  .portfolio-page .mobile-featured .container {
    width: min(100% - 40px, 330px);
  }

  .portfolio-page .mobile-featured__frame {
    position: relative;
    min-height: 590px;
    padding: 30px 12px 22px;
  }

  .portfolio-page .mobile-featured__header {
    width: min(100%, 250px);
    margin: 0 auto 20px;
    text-align: center;
  }

  .portfolio-page .mobile-featured__header .section__title {
    margin-bottom: 12px;
    font-size: 24px;
    line-height: 1.08;
  }

  .portfolio-page .mobile-featured__header p {
    margin: 0;
    color: rgba(17, 24, 39, 0.62);
    font-size: 10px;
    line-height: 1.32;
  }

  .portfolio-page .mobile-featured__stage {
    position: relative;
    height: 330px;
    margin: 0 -34px;
    perspective: 900px;
  }

  .portfolio-page .mobile-featured__card {
    position: absolute;
    top: 10px;
    left: 50%;
    z-index: 1;
    display: grid;
    grid-template-rows: minmax(0, 1fr) 72px;
    width: 178px;
    height: 300px;
    overflow: hidden;
    border: 3px solid var(--color-navy);
    border-radius: 18px;
    background: var(--color-white);
    cursor: pointer;
    box-shadow: 5px 5px 0 var(--color-navy);
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) scale(0.82);
    transform-origin: center bottom;
    transition: transform 260ms ease, opacity 260ms ease;
  }

  .portfolio-page .mobile-featured__card:focus-visible {
    outline: 3px solid var(--color-yellow);
    outline-offset: 4px;
  }

  .portfolio-page .mobile-featured__card[data-featured-position="active"] {
    z-index: 4;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) scale(1);
  }

  .portfolio-page .mobile-featured__card[data-featured-position="prev"] {
    z-index: 2;
    opacity: 0.92;
    transform: translateX(calc(-50% - 126px)) translateY(32px) rotate(-8deg) scale(0.86);
  }

  .portfolio-page .mobile-featured__card[data-featured-position="next"] {
    z-index: 2;
    opacity: 0.92;
    transform: translateX(calc(-50% + 126px)) translateY(32px) rotate(8deg) scale(0.86);
  }

  .portfolio-page .mobile-featured__card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .portfolio-page .mobile-featured__card-copy {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 6px;
    padding: 8px 10px;
    text-align: center;
  }

  .portfolio-page .mobile-featured__card-copy span {
    position: static;
    width: auto;
    max-width: none;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--color-royal-blue);
    font-family: var(--font-display);
    font-size: 6px;
    font-weight: 600;
    letter-spacing: 1.5px;
    line-height: 1.1;
    text-transform: uppercase;
  }

  .portfolio-page .mobile-featured__card-copy h3 {
    margin: 0;
    color: var(--color-navy);
    font-size: 7px;
    font-weight: 700;
    line-height: 1.18;
  }

  .portfolio-page .mobile-featured__controls {
    position: relative;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
  }

  .portfolio-page .mobile-featured__arrow {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 3px solid var(--color-navy);
    border-radius: 999px;
    background: var(--color-white);
    color: var(--color-navy);
    box-shadow: 3px 3px 0 var(--color-navy);
  }

  .portfolio-page .mobile-featured__arrow--next {
    background: var(--color-yellow);
  }

  .portfolio-page .mobile-featured__arrow svg {
    width: 20px;
    height: 20px;
  }

  .portfolio-page .mobile-featured__arrow path {
    fill: none;
    stroke: currentColor;
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .portfolio-page .mobile-featured__dots {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .portfolio-page .mobile-featured__dots span {
    display: block;
    width: 7px;
    height: 7px;
    border: 1.5px solid var(--color-navy);
    border-radius: 999px;
    background: var(--color-white);
  }

  .portfolio-page .mobile-featured__dots span.active {
    width: 20px;
    background: var(--color-navy);
  }

  .portfolio-page .featured .container,
  .portfolio-page .filters .container,
  .portfolio-page .portfolio-gallery .container,
  .portfolio-page .category-section .container {
    width: min(100% - 56px, 560px);
  }

  .portfolio-page .featured .section__header {
    width: min(100%, 470px);
    margin-bottom: 36px;
  }

  .portfolio-page .featured-grid {
    width: min(100%, 520px);
    gap: 30px;
  }

  .portfolio-page .featured-card {
    border-radius: 13px;
    box-shadow: 5px 5px 0 var(--color-navy);
  }

  .portfolio-page .featured-card,
  .portfolio-page .featured-card__media {
    border-radius: 13px;
  }

  .portfolio-page .featured-card__media {
    grid-template-rows: minmax(0, 1fr) 58px;
  }

  .portfolio-page .featured-card:nth-child(3) {
    width: 60%;
  }

  .portfolio-page .featured-card__overlay {
    min-height: 58px;
    padding: 7px 12px 9px;
    gap: 3px;
  }

  .portfolio-page .featured-card__overlay h3 {
    font-size: 7px;
  }

  .portfolio-page .featured-card__tag {
    font-size: 5.5px;
    letter-spacing: 1.7px;
  }

  .portfolio-page .featured .section__title,
  .portfolio-page .filters__header .section__title {
    font-size: 34px;
  }

  .portfolio-page .filters__desc {
    max-width: 390px;
    font-size: 12px;
  }

  .portfolio-page .filters__subline {
    margin-top: 18px;
    font-size: 8px;
  }

  .portfolio-page .filters {
    padding: 56px 0 44px;
    background: var(--color-white);
  }

  .portfolio-page .filters::before {
    content: none;
  }

  .portfolio-page .filters::after {
    height: 268px;
    background-size: 180vw auto;
  }

  .portfolio-page .gallery__filters {
    gap: 8px;
  }

  .portfolio-page .gallery__filter {
    min-height: 40px;
    padding: 0 14px;
    border-width: 2px;
    font-size: 7.4px;
    box-shadow: 2px 2px 0 var(--color-navy);
  }

  .portfolio-page .portfolio-gallery {
    margin-top: 0;
    padding-top: 8px;
    padding-bottom: 0;
  }

  .portfolio-page .portfolio-summary-cta {
    padding: 8px 0 max(24px, calc(26.1vw - 70px));
  }

  .portfolio-page .gallery__grid {
    columns: 2 260px;
    column-gap: 18px;
  }

  .portfolio-page .gallery__item {
    margin-bottom: 18px;
  }

  .portfolio-page .gallery__item {
    margin-bottom: 14px;
  }

  .portfolio-page .category-section {
    padding: 84px 0 88px;
  }

  .portfolio-page .category-section::before {
    top: auto;
    bottom: calc(100% - 1px);
    height: 26.1vw;
    min-height: 0;
    background-image: url("../assets/SVG Asset/Mobile portfolio page/cloud 2.svg");
    background-size: 132vw auto;
  }

  .portfolio-page .category-section::after {
    height: 118px;
    background-size: 132vw 100%;
  }

  .portfolio-page .category-section__grid {
    grid-template-columns: 0.78fr 1fr;
    gap: 12px;
    padding-bottom: 76px;
  }

  .portfolio-page .category-section__copy .section__title {
    font-size: 18px;
  }

  .portfolio-page .category-section__copy .section__desc {
    font-size: 8px;
  }

  .portfolio-page .author-site-stack {
    gap: 14px;
    max-width: 100%;
  }

  .portfolio-page .browser-mockup--offset {
    transform: translateX(-12px);
  }

  .portfolio-page .browser-mockup__chrome {
    height: 20px;
    padding: 0 8px;
  }

  .portfolio-page .browser-mockup__chrome span {
    width: 5px;
    height: 5px;
  }

  .portfolio-page .site-footer {
    min-height: 680px;
    margin-top: 0;
    padding: 0;
    overflow: hidden;
    background: var(--color-royal-blue);
  }

  .portfolio-page .site-footer::before,
  .portfolio-page .site-footer::after {
    content: none;
  }

  .portfolio-page .site-footer__inner {
    width: min(100% - 28px, 390px);
    padding-top: 44px;
  }

  .portfolio-page .site-footer__inner h2 {
    display: block;
    width: min(100%, 300px);
    margin: 0 auto 28px;
    font-size: 30px;
    line-height: 1.05;
  }

  .portfolio-page .site-footer__inner > p {
    display: block;
    width: min(100%, 286px);
    font-size: 16px;
    line-height: 1.18;
  }

  .portfolio-page .site-footer__inner > .site-footer__contact-note {
    display: none;
  }

  .portfolio-page .site-footer__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-wrap: nowrap;
    gap: 16px;
    margin-top: 22px;
  }

  .portfolio-page .site-footer__actions .btn {
    padding-inline: 28px;
    border-width: 3px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
  }

  .portfolio-page .site-footer__actions .btn--primary {
    width: min(100%, 276px);
    min-height: 84px;
    padding-inline: 34px;
    box-shadow: 7px 8px 0 var(--color-navy);
  }

  .portfolio-page .site-footer__actions .btn--ghost {
    width: min(100%, 196px);
    min-height: 62px;
    border-color: var(--color-navy);
    background: var(--color-white);
    color: var(--color-navy);
    box-shadow: 6px 7px 0 var(--color-navy);
  }

  .portfolio-page .site-footer__actions .btn--ghost:hover {
    background: var(--color-white);
  }

  .portfolio-page .site-footer__social {
    margin-top: 48px;
  }

  .portfolio-page .site-footer__social-line {
    display: none;
  }

  .portfolio-page .site-footer__social-icons {
    gap: 0;
  }

  .portfolio-page .site-footer__social-icons a,
  .portfolio-page .site-footer__social-icon {
    width: 30px;
    height: 30px;
  }

  .portfolio-page .site-footer__social-icons img {
    width: 26px;
    height: 25px;
    margin: 2px auto;
    object-fit: contain;
  }

  .portfolio-page .site-footer__brand {
    width: 100vw;
    margin-top: 68px;
    margin-left: calc(50% - 50vw);
  }

  .portfolio-page .site-footer__brand-mobile {
    display: block;
    width: min(100vw, 388px);
    aspect-ratio: 388 / 95;
    background: url('../assets/SVG Asset/Mobile veiw Home page/Brand logo.svg') center / contain no-repeat;
  }

  .portfolio-page .site-footer__brand-mobile > span,
  .portfolio-page .site-footer__brand-logo {
    display: none;
  }

  .portfolio-page .site-footer__legal {
    display: none;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .hero--home {
    min-height: 530px;
  }

  .hero__inner {
    min-height: 468px;
    padding-top: clamp(52px, 8vw, 70px);
  }

  .hero__headline-block {
    width: min(100%, 720px);
  }

  .hero__title {
    font-size: clamp(50px, 8.2vw, 62px);
  }

  .hero__book-row {
    --hero-o-open: clamp(180px, 34vw, 250px);
    --hero-o-closed: clamp(60px, 10vw, 76px);
    min-height: clamp(62px, 10vw, 76px);
    gap: clamp(10px, 2vw, 16px);
  }

  .hero__o {
    height: clamp(60px, 10vw, 76px);
    border-width: 5px;
    box-shadow: 7px 7px 0 var(--color-navy);
  }

  .hero__o img {
    width: var(--hero-o-open);
    min-width: var(--hero-o-open);
    height: 100%;
  }

  .hero__word--illustrator {
    font-size: clamp(38px, 6.7vw, 50px);
  }

  .hero__intro {
    width: min(100%, 680px);
    margin-top: 18px;
    font-size: clamp(16.5px, 2.45vw, 18.5px);
    font-weight: 500;
    line-height: 1.55;
  }

  .hero__actions {
    gap: clamp(12px, 2.4vw, 18px);
    margin-top: 22px;
  }

  .hero__actions .btn {
    min-height: clamp(58px, 8vw, 63px);
    padding-inline: clamp(28px, 5vw, 38px);
    font-size: clamp(16px, 2.25vw, 17.5px);
    font-weight: 600;
  }

  .hero__character--bear {
    width: clamp(185px, 30vw, 225px);
    left: clamp(-62px, -7vw, -38px);
    bottom: -12px;
  }

  .hero__character--animals {
    width: clamp(195px, 31vw, 235px);
    right: clamp(-78px, -8vw, -48px);
    bottom: 48px;
  }

  .hero__cloud--bottom-png {
    height: 485px;
  }
}

@media (max-width: 430px) {
  .hero--home {
    min-height: 430px;
  }

  .hero__inner {
    min-height: 368px;
    padding-top: 26px;
  }

  .hero__headline-block {
    width: 100%;
  }

  .portfolio-page .gallery__grid {
    columns: 1;
    width: min(100%, 360px);
  }

  .portfolio-page .gallery__item {
    margin-bottom: 20px;
  }

  .hero__title {
    font-size: 41px;
  }

  .hero__word--illustrator {
    font-size: 31px;
  }

  .hero__o {
    height: 44px;
  }

  .hero__book-row {
    --hero-o-open: 145px;
    min-height: 48px;
    gap: 7px;
  }

  .hero__intro {
    width: min(100%, 300px);
    margin-top: 6px;
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.4;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
  }

  .hero__actions .btn {
    width: auto;
    min-height: 44px;
    padding: 0 18px;
    font-size: 12.5px;
    font-weight: 600;
  }

  .hero__actions .btn--primary {
    width: min(100%, 220px);
  }

  .hero__actions .btn--secondary {
    width: min(100%, 150px);
  }

  .hero__character--bear {
    width: 200px;
    left: -40px;
    bottom: -38px;
  }

  .hero__character--animals {
    width: 215px;
    right: -64px;
    bottom: -2px;
  }

  .hero__cloud--bottom-png {
    height: 250px;
  }

  .books {
    padding: 14px 0 68px;
  }

  .books__header {
    width: 100%;
    margin-bottom: 24px;
    padding: 0;
  }

  .books__header .section__eyebrow {
    display: none;
  }

  .books__header .section__title {
    max-width: 330px;
    font-size: 26px;
    line-height: 1.12;
  }

  .books__header .section__desc {
    max-width: 330px;
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.55;
  }

  .book-grid {
    grid-template-columns: repeat(2, minmax(0, 125px));
    justify-content: center;
    column-gap: clamp(24px, 12vw, 48px);
    row-gap: 40px;
  }

  .book-card__media {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: visible;
    border-radius: 16px;
    box-shadow: none;
  }

  .book-card__image {
    width: 125px;
    height: 125px;
    aspect-ratio: 1;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 12px 24px -18px rgba(17, 24, 39, 0.65);
  }

  .book-card__overlay {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    padding: 0 4px;
    background: none;
    border-radius: 0;
  }

  .book-card__overlay h3 {
    order: 2;
    margin: 0;
    font-size: 13px;
    line-height: 1.18;
    color: var(--color-navy);
  }

  .book-card__tag {
    order: 1;
    min-width: 0;
    padding: 2px 8px;
    font-size: 8px;
    line-height: 14px;
    letter-spacing: 0.4px;
  }

  .book-card:nth-child(4) .book-card__tag {
    min-width: 0;
  }

  .books .section__action {
    margin-top: 44px;
  }

  .final-cta__actions .btn {
    width: 100%;
  }

  .author-hero-preview__bar strong {
    font-size: 11px;
  }

  .author-hero-preview__screen {
    grid-template-columns: 1fr;
  }

  .author-hero-preview__screen img {
    width: min(100%, 280px);
    justify-self: center;
  }

  .author-hero-preview__chips {
    grid-template-columns: 1fr;
  }

  .portfolio-page .nav__inner {
    width: min(100% - 32px, var(--container));
  }

  .portfolio-page .nav__cta {
    display: none;
  }

  .portfolio-page .portfolio-hero {
    min-height: 398px;
  }

  .portfolio-page .portfolio-hero__inner {
    min-height: 318px;
    padding-top: 14px;
  }

  .portfolio-page .portfolio-hero h1 {
    width: min(100%, 306px);
    font-size: 31px;
  }

  .portfolio-page .portfolio-hero p:not(.section__eyebrow) {
    width: min(100%, 276px);
  }

  .portfolio-page .portfolio-hero__cloud-below {
    bottom: -26px;
    width: 100%;
  }

  .portfolio-page .portfolio-hero .hero__cloud--tiny-left {
    left: 7%;
    width: 74px;
  }

  .portfolio-page .portfolio-hero .hero__cloud--tiny-right {
    right: 6%;
    width: 76px;
  }
}

/* Keep the compact reference book grid across the full mobile preview range. */
@media (max-width: 768px) {
  .books {
    padding: clamp(14px, 4vw, 38px) 0 clamp(68px, 10vw, 86px);
  }

  .books__header {
    width: 100%;
    margin-bottom: clamp(24px, 4vw, 32px);
    padding: 0;
  }

  .books__header .section__eyebrow {
    display: none;
  }

  .books__header .section__title {
    max-width: 500px;
    font-size: clamp(26px, 5.2vw, 34px);
    line-height: 1.12;
  }

  .books__header .section__desc {
    max-width: 500px;
    margin-top: 10px;
    font-size: clamp(14px, 2.3vw, 16px);
    line-height: 1.55;
  }

  .book-grid {
    --book-card-size: clamp(116px, 32vw, 176px);
    grid-template-columns: repeat(2, var(--book-card-size));
    justify-content: center;
    column-gap: clamp(24px, 12vw, 64px);
    row-gap: clamp(40px, 8vw, 56px);
  }

  .book-card__media {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: visible;
    border-radius: 16px;
    box-shadow: none;
  }

  .book-card__image {
    width: var(--book-card-size);
    height: var(--book-card-size);
    aspect-ratio: 1;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 12px 24px -18px rgba(17, 24, 39, 0.65);
  }

  .book-card__overlay {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    padding: 0 4px;
    background: none;
    border-radius: 0;
  }

  .book-card__overlay h3 {
    order: 2;
    margin: 0;
    font-size: clamp(13px, 2.5vw, 15px);
    line-height: 1.18;
    color: var(--color-navy);
  }

  .book-card__tag,
  .book-card:nth-child(4) .book-card__tag {
    order: 1;
    min-width: 0;
    padding: 2px 8px;
    font-size: clamp(8px, 1.5vw, 9px);
    line-height: 14px;
    letter-spacing: 0.4px;
  }

  .books .section__action {
    margin-top: 44px;
  }
}

/* Reference-shaped mobile services and portfolio transition. */
@media (max-width: 768px) {
  .services {
    isolation: isolate;
    overflow: visible;
    padding: clamp(82px, 15vw, 106px) 0 112px;
    border-radius: 0;
    background: var(--color-white);
  }

  .services::before {
    content: "";
    position: absolute;
    top: 145px;
    right: 0;
    bottom: 145px;
    left: 0;
    z-index: 0;
    background: var(--color-blue-wash);
    pointer-events: none;
  }

  .services::after {
    content: "";
    position: absolute;
    top: 0;
    left: -45%;
    z-index: 0;
    width: 190%;
    height: 320px;
    background: url('../assets/svg/decorations/blob.svg') center / 100% 100% no-repeat;
    transform: rotate(180deg);
    pointer-events: none;
  }

  .services__backdrop {
    display: block;
    top: auto;
    bottom: 0;
    left: 50%;
    z-index: 0;
    width: 190%;
    height: 320px;
    min-height: 0;
    object-fit: fill;
    transform: translateX(-50%);
  }

  .services__sun {
    top: -38px;
    right: 30px;
    z-index: 5;
    width: 210px;
    max-width: none;
  }

  .services__inner {
    z-index: 3;
  }

  .services__header {
    width: min(100%, 300px);
    margin: 0 auto 24px;
    padding-top: 0;
  }

  .services__header .section__eyebrow {
    min-height: 18px;
    margin-bottom: 12px;
    padding: 0 10px;
    font-size: 9px;
    line-height: 18px;
    letter-spacing: 0.9px;
  }

  .services__header .section__title {
    max-width: 296px;
    font-size: clamp(25px, 6.7vw, 31px);
    line-height: 1.03;
  }

  .service-grid {
    gap: 16px;
    width: min(100%, 300px);
  }

  .service-card {
    min-height: 0;
    padding: 17px 18px 16px;
    border-width: 2px;
    border-radius: 20px;
    box-shadow: 7px 7px 0 var(--color-navy);
  }

  .service-card__icon-wrap {
    width: 46px;
    height: 46px;
    margin-bottom: 16px;
    border-width: 2px;
    border-radius: 11px;
  }

  .service-card__icon {
    width: 23px;
    height: 23px;
  }

  .service-card h3 {
    margin-bottom: 8px;
    font-size: 15.5px;
    line-height: 1.18;
  }

  .service-card p {
    font-size: 12.5px;
    line-height: 1.32;
  }

  .service-card a {
    min-height: auto;
    margin-top: 12px;
    font-size: 10.5px;
    line-height: 1.2;
  }

  .portfolio-preview {
    padding: 190px 0 76px;
  }

  .portfolio-preview__snail {
    display: block;
    top: 18px;
    right: -72px;
    z-index: 2;
    width: 245px;
  }

  .portfolio-preview__flower {
    display: none;
  }

  .portfolio-preview__header {
    margin-bottom: 30px;
  }

  .portfolio-preview__header .section__eyebrow {
    min-height: 18px;
    margin-bottom: 12px;
    padding: 0 10px;
    background: var(--color-royal-blue);
    color: var(--color-white);
    font-size: 9px;
    line-height: 18px;
    letter-spacing: 0.9px;
  }

  .portfolio-preview__header .section__title {
    max-width: 330px;
    font-size: clamp(25px, 6.7vw, 31px);
    line-height: 1.08;
  }
}

.portfolio-preview .mobile-featured__controls,
.portfolio-preview .mobile-featured__card-copy {
  display: none;
}

@media (max-width: 768px) {
  .portfolio-preview {
    padding-bottom: 78px;
  }

  .portfolio-preview__header {
    margin-bottom: 18px;
  }

  .portfolio-preview__header .section__desc {
    max-width: 330px;
    margin-top: 12px;
    font-size: 12.5px;
    line-height: 1.36;
  }

  .portfolio-preview__flower {
    display: block;
    content: url("../assets/SVG Asset/Mobile veiw Home page/Flower.svg?v=outline");
    top: auto;
    right: 22px;
    bottom: 70px;
    z-index: 5;
    width: 58px;
    opacity: 1;
  }

  .portfolio-preview .portfolio-mosaic {
    position: relative;
    display: block;
    width: 100vw;
    height: 318px;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
    perspective: 900px;
  }

  .portfolio-preview .mobile-featured__card {
    position: absolute;
    top: 28px;
    left: 50%;
    z-index: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) 42px;
    grid-column: auto;
    grid-row: auto;
    width: 178px;
    height: 222px;
    aspect-ratio: auto;
    overflow: hidden;
    border: 2px solid var(--color-navy);
    border-radius: 20px;
    background: var(--color-white);
    box-shadow: 5px 6px 0 var(--color-navy);
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) scale(0.84);
    transform-origin: center bottom;
    transition: transform 260ms ease, opacity 260ms ease;
  }

  .portfolio-preview .mobile-featured__card::after {
    content: none;
  }

  .portfolio-preview .mobile-featured__card[data-featured-position="active"],
  .portfolio-preview .mobile-featured__card[data-featured-position="active"]:hover {
    top: 0;
    z-index: 4;
    width: 220px;
    height: 246px;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%);
  }

  .portfolio-preview .mobile-featured__card[data-featured-position="prev"],
  .portfolio-preview .mobile-featured__card[data-featured-position="prev"]:hover {
    z-index: 2;
    opacity: 1;
    transform: translateX(calc(-50% - 142px)) translateY(30px) rotate(-9deg);
  }

  .portfolio-preview .mobile-featured__card[data-featured-position="next"],
  .portfolio-preview .mobile-featured__card[data-featured-position="next"]:hover {
    z-index: 2;
    opacity: 1;
    transform: translateX(calc(-50% + 142px)) translateY(30px) rotate(9deg);
  }

  .portfolio-preview .mobile-featured__card img,
  .portfolio-preview .mobile-featured__card:hover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: none;
  }

  .portfolio-preview .mobile-featured__card > span {
    display: none;
  }

  .portfolio-preview .mobile-featured__card-copy {
    position: static;
    display: grid;
    align-content: center;
    padding: 8px 12px;
    background: var(--color-white);
    text-align: left;
  }

  .portfolio-preview .mobile-featured__card-copy h3 {
    margin: 0;
    color: var(--color-navy);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.1;
  }

  .portfolio-preview .mobile-featured__controls {
    position: absolute;
    inset: 0;
    z-index: 7;
    display: block;
    pointer-events: none;
  }

  .portfolio-preview .mobile-featured__arrow {
    position: absolute;
    top: 104px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 2px solid var(--color-navy);
    border-radius: 999px;
    background: var(--color-white);
    color: var(--color-navy);
    box-shadow: 3px 3px 0 var(--color-navy);
    pointer-events: auto;
  }

  .portfolio-preview .mobile-featured__arrow:first-child {
    left: calc(50% - 132px);
  }

  .portfolio-preview .mobile-featured__arrow--next {
    right: calc(50% - 132px);
  }

  .portfolio-preview .mobile-featured__arrow svg {
    width: 18px;
    height: 18px;
  }

  .portfolio-preview .mobile-featured__arrow path {
    fill: none;
    stroke: currentColor;
    stroke-width: 3.2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .portfolio-preview .mobile-featured__dots {
    position: absolute;
    top: 284px;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 5px;
    transform: translateX(-50%);
  }

  .portfolio-preview .mobile-featured__dots span {
    display: block;
    width: 7px;
    height: 7px;
    border: 0;
    border-radius: 999px;
    background: #c4c8ce;
  }

  .portfolio-preview .mobile-featured__dots span.active {
    width: 21px;
    background: var(--color-royal-blue);
  }

  .portfolio-preview .section__action {
    margin-top: 22px;
  }

  .portfolio-preview .btn--small {
    min-width: 176px;
    min-height: 44px;
    padding: 0 22px;
    border-width: 2px;
    font-size: 10px;
    box-shadow: 5px 6px 0 var(--color-navy);
  }
}

/* Breathing room between the case-study content and the cloud transition. */
.website-demo {
  padding-bottom: 196px;
}

@media (min-width: 769px) {
  .process__cloud-top {
    top: -100px;
    left: 50%;
    width: 100vw;
    height: clamp(298px, 29.1vw, 330px);
    object-fit: fill;
    transform: translateX(-50%);
  }
}

/* Keep larger laptop screens at the balanced 1024px case-study proportions. */
@media (min-width: 901px) {
  .website-demo__grid {
    width: min(100%, 992px);
    margin-inline: auto;
    grid-template-columns: 340px minmax(0, 600px);
    gap: 52px;
  }
}

/* Let the desktop cloud continue beyond the screen so its SVG edges stay hidden. */
@media (min-width: 1200px) {
  .process__cloud-top {
    top: -110px;
    width: 114vw;
    max-width: none;
    height: 360px;
  }
}

@media (max-width: 768px) {
  .website-demo {
    padding-bottom: 124px;
  }

  /* Mobile case-study flow: title, video, supporting copy, then actions. */
  .website-demo__grid {
    row-gap: 24px;
  }

  .website-demo__copy {
    display: contents;
  }

  .website-demo__copy .section__eyebrow {
    order: 1;
    margin-bottom: -14px;
  }

  .website-demo__copy .section__title {
    order: 2;
    margin-bottom: 0;
  }

  .website-demo__video {
    order: 3;
    margin-top: 4px;
  }

  .website-demo__copy .section__desc {
    order: 4;
  }

  .website-demo__copy .subpage-actions {
    order: 5;
    margin-top: 2px;
  }

  .process {
    padding-top: 60px;
  }

  .process__cloud-top {
    top: -82px;
    left: 50%;
    width: 100vw;
    height: auto;
    object-fit: contain;
    transform: translateX(-50%);
  }

  /* Reference-matched mobile process composition. */
  .process {
    padding: 102px 0 82px;
  }

  .process__header,
  .process-list {
    width: min(100%, 334px);
    margin-inline: auto;
  }

  .process__header {
    margin-bottom: 34px;
  }

  .process__header .section__eyebrow {
    min-height: 24px;
    margin-bottom: 18px;
    padding: 2px 13px;
    font-size: 10px;
    line-height: 20px;
  }

  .process__header .section__title {
    font-size: 30px;
    line-height: 1.06;
  }

  .process__header .section__desc {
    margin-top: 26px;
    font-size: 16px;
    line-height: 1.7;
  }

  .process-list {
    gap: 20px;
  }

  .process-step {
    align-items: center;
    gap: 18px;
    min-height: 120px;
    padding: 16px 17px;
    border: 3px solid var(--color-navy);
    border-radius: 24px;
    box-shadow: 7px 8px 0 var(--color-navy);
  }

  .process-step__number {
    width: 50px;
    height: 50px;
    border-width: 3px;
    font-size: 14px;
  }

  .process-step__content h3 {
    margin-bottom: 6px;
    font-size: 16px;
    line-height: 1.2;
  }

  .process-step__content p {
    color: rgba(17, 24, 39, 0.68);
    font-size: 14px;
    line-height: 1.28;
  }

  .process__heart {
    top: 18px;
    right: 30px;
    width: 102px;
  }

  .process__doodle-left {
    top: 26px;
    left: max(44px, calc((100vw - 334px) / 2));
    width: 54px;
    opacity: 1;
    transform: rotate(-12deg);
  }
}

@media (max-width: 768px) {
  body:not(.portfolio-page) .site-footer__legal {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
  }

  body:not(.portfolio-page) .site-footer__legal p,
  body:not(.portfolio-page) .site-footer__legal p:first-child,
  body:not(.portfolio-page) .site-footer__legal p:last-child {
    width: 100%;
    margin-inline: auto;
    justify-self: stretch;
    text-align: center;
  }
}

/* Portfolio mobile footer: keep the reference composition stable when a
   narrow browser preview is zoomed out and its CSS viewport grows. */
@media (max-width: 1200px) {
  .portfolio-page {
    --portfolio-footer-cloud-height: clamp(93px, 27.85vw, 177px);
  }

  .portfolio-page .category-section::after {
    content: none;
  }

  .portfolio-page .site-footer {
    position: relative;
    min-height: 780px;
    margin-top: calc(0px - var(--portfolio-footer-cloud-height));
    padding: 0;
    overflow: hidden;
    background: linear-gradient(
      to bottom,
      transparent 0 var(--portfolio-footer-cloud-height),
      var(--color-royal-blue) var(--portfolio-footer-cloud-height) 100%
    );
  }

  .portfolio-page .site-footer::before {
    content: "";
    position: absolute;
    inset: 12px auto auto 50%;
    z-index: 0;
    width: 100vw;
    height: var(--portfolio-footer-cloud-height);
    background: url('../assets/SVG Asset/Mobile portfolio page/Cloud footer.svg?v=2') center bottom / 100% 100% no-repeat;
    transform: translateX(-50%);
    pointer-events: none;
  }

  .portfolio-page .site-footer::after {
    content: none;
  }

  .portfolio-page .site-footer__inner {
    width: min(100% - 28px, 390px);
    padding-top: 160px;
  }

  .portfolio-page .site-footer__inner h2 {
    display: block;
    width: min(100%, 300px);
    margin: 0 auto 28px;
    font-size: 30px;
    line-height: 1.05;
  }

  .portfolio-page .site-footer__inner > p {
    display: block;
    width: min(100%, 286px);
    font-size: 16px;
    line-height: 1.18;
  }

  .portfolio-page .site-footer__inner > .site-footer__contact-note {
    display: none;
  }

  .portfolio-page .site-footer__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-wrap: nowrap;
    gap: 16px;
    margin-top: 22px;
  }

  .portfolio-page .site-footer__actions .btn {
    padding-inline: 28px;
    border-width: 3px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
  }

  .portfolio-page .site-footer__actions .btn--primary {
    width: min(100%, 276px);
    min-height: 84px;
    padding-inline: 34px;
    box-shadow: 7px 8px 0 var(--color-navy);
  }

  .portfolio-page .site-footer__actions .btn--ghost {
    width: min(100%, 196px);
    min-height: 62px;
    border-color: var(--color-navy);
    background: var(--color-white);
    color: var(--color-navy);
    box-shadow: 6px 7px 0 var(--color-navy);
  }

  .portfolio-page .site-footer__actions .btn--ghost:hover {
    background: var(--color-white);
  }

  .portfolio-page .site-footer__social {
    margin-top: 48px;
  }

  .portfolio-page .site-footer__social-line {
    display: none;
  }

  .portfolio-page .site-footer__social-icons {
    gap: 0;
  }

  .portfolio-page .site-footer__social-icons a,
  .portfolio-page .site-footer__social-icon {
    width: 30px;
    height: 30px;
  }

  .portfolio-page .site-footer__social-icons img {
    width: 26px;
    height: 25px;
    margin: 2px auto;
    object-fit: contain;
  }

  .portfolio-page .site-footer__brand {
    width: 100vw;
    margin-top: 68px;
    margin-left: calc(50% - 50vw);
  }

  .portfolio-page .site-footer__brand-mobile {
    display: block;
    width: min(100vw, 388px);
    aspect-ratio: 388 / 95;
    background: url('../assets/SVG Asset/Mobile veiw Home page/Brand logo.svg') center / contain no-repeat;
  }

  .portfolio-page .site-footer__brand-mobile > span,
  .portfolio-page .site-footer__brand-logo {
    display: none;
  }

  .portfolio-page .site-footer__legal {
    display: none;
  }
}

/* Portfolio author-websites section: reference-matched mobile composition. */
@media (max-width: 768px) {
  .portfolio-page .category-section {
    padding: 38px 0 calc(var(--portfolio-footer-cloud-height) + 4px);
  }

  .portfolio-page .category-section .container {
    width: min(100% - 76px, 330px);
  }

  .portfolio-page .category-section__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    padding-bottom: 0;
  }

  .portfolio-page .category-section__copy {
    padding-top: 0;
  }

  .portfolio-page .category-section__copy .section__eyebrow {
    display: block;
    margin: 0 0 16px;
    color: var(--color-royal-blue);
    font-size: 10px;
    line-height: 1.2;
    letter-spacing: 4px;
  }

  .portfolio-page .category-section__copy .section__title {
    max-width: 100%;
    font-size: clamp(28px, 8.2vw, 31px);
    line-height: 1.12;
    letter-spacing: -0.02em;
  }

  .portfolio-page .category-section__copy .section__desc {
    max-width: 100%;
    margin: 22px 0 31px;
    color: rgba(17, 24, 39, 0.72);
    font-size: 16px;
    line-height: 1.62;
  }

  .portfolio-page .category-section__actions {
    margin: 0;
  }

  .portfolio-page .category-section__copy .btn {
    width: min(100%, 242px);
    min-height: 52px;
    padding: 0 22px;
    border-width: 3px;
    font-size: 12px;
    box-shadow: 6px 7px 0 var(--color-navy);
  }

  .portfolio-page .author-site-stack {
    display: grid;
    justify-items: stretch;
    gap: 20px;
    width: 100%;
    max-width: none;
    margin: 0;
    padding-top: 0;
  }

  .portfolio-page .browser-mockup {
    width: 100%;
    border-width: 2px;
    border-radius: 12px;
    box-shadow: 5px 6px 0 var(--color-navy);
  }

  .portfolio-page .browser-mockup--video {
    transform: rotate(-1deg);
  }

  .portfolio-page .browser-mockup--offset {
    justify-self: end;
    width: 96%;
    transform: translateX(2px) rotate(-1deg);
  }

  .portfolio-page .browser-mockup__chrome {
    display: flex;
    height: 20px;
    padding: 0 8px;
  }

  .portfolio-page .browser-mockup__chrome span {
    width: 5px;
    height: 5px;
  }

  .portfolio-page .browser-mockup__viewport,
  .portfolio-page .browser-mockup--video .browser-mockup__viewport {
    aspect-ratio: 16 / 9;
  }
}

/* Homepage hero: reference-matched laptop composition. */
@media (min-width: 769px) and (max-width: 1200px) {
  .home-page {
    --nav-height: 72px;
  }

  .home-page .nav__inner {
    width: min(100% - 68px, var(--container));
  }

  .home-page .nav__brand-name {
    font-size: 20px;
  }

  .home-page .nav__brand-subline {
    margin-top: 4px;
    font-size: 8px;
  }

  .home-page .nav__cta,
  .home-page .nav__menu-button {
    min-height: 38px;
    border-width: 2px;
    font-size: 12px;
  }

  .home-page .nav__cta {
    padding-inline: 20px;
    box-shadow: 4px 4px 0 var(--color-navy);
  }

  .home-page .nav__menu-button {
    gap: 6px;
    padding-inline: 14px;
  }

  .hero--home {
    min-height: clamp(570px, 58vw, 620px);
  }

  .hero--home .hero__inner {
    min-height: calc(clamp(570px, 58vw, 620px) - var(--nav-height));
    padding-top: 18px;
  }

  .hero--home .hero__headline-block {
    width: min(100%, 820px);
  }

  .hero--home .hero__title {
    font-size: clamp(66px, 7.7vw, 80px);
    line-height: 1.01;
  }

  .hero--home .hero__book-row {
    --hero-o-open: clamp(260px, 32vw, 330px);
    --hero-o-closed: clamp(82px, 9.4vw, 96px);
    min-height: clamp(82px, 9.4vw, 96px);
    gap: clamp(14px, 1.8vw, 20px);
  }

  .hero--home .hero__o {
    height: clamp(82px, 9.4vw, 96px);
    border-width: 4px;
    box-shadow: 7px 7px 0 var(--color-navy);
  }

  .hero--home .hero__o img {
    width: var(--hero-o-open);
    min-width: var(--hero-o-open);
    height: 100%;
  }

  .hero--home .hero__word--illustrator {
    margin-top: 4px;
    font-size: clamp(60px, 7.1vw, 74px);
    letter-spacing: 0.06em;
  }

  .hero--home .hero__intro {
    width: min(100%, 610px);
    margin-top: 13px;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.42;
  }

  .hero--home .hero__actions {
    gap: 14px;
    margin-top: 18px;
  }

  .hero--home .hero__actions .btn {
    min-height: 54px;
    padding-inline: 31px;
    font-size: 14px;
    font-weight: 600;
  }

  .hero--home .hero__cloud--top {
    display: none;
  }

  .hero--home .hero__cloud--bottom-png {
    display: none;
  }

  .hero--home .hero__cloud--bottom-laptop {
    display: block;
    left: 0;
    right: auto;
    bottom: 0;
    width: 100%;
    height: auto;
    max-width: none;
    object-fit: contain;
    object-position: center bottom;
  }

  .hero--home .hero__character--bear {
    display: none;
    left: -24px;
    bottom: clamp(205px, 23vw, 235px);
    width: clamp(220px, 26vw, 260px);
  }

  .hero--home .hero__character--animals {
    display: none;
    right: -28px;
    bottom: clamp(225px, 24vw, 250px);
    width: clamp(205px, 24vw, 245px);
  }
}

/* Keep removed homepage artwork hidden when browser zoom expands the CSS viewport. */
@media (min-width: 769px) {
  .home-page .hero__character--bear,
  .home-page .hero__character--animals,
  .home-page .hero__cloud--bottom-png,
  .home-page .hero__cloud--bottom-laptop {
    display: none;
  }
}
