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

:root {
  --cream:   #FFF8EC;
  --cream2:  #FFFDF6;
  --ink:     #1B1A2E;
  --muted:   #4A4866;
  --border:  #F2E9D6;
  --yellow:  #FFD526;
  --yellow2: #fff0b2;
  --orange:  #FF6E25;
  --blue:    #008FDB;
  --purple:  #7C4FAB;
  --amber:   #FFA405;

  --font: "Metropolis", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
  --pad:  40px;
}

html, body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img { display: block; max-width: 100%; }
a   { color: inherit; }

.label {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,248,236,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: background 0.35s ease, border-color 0.35s ease,
              backdrop-filter 0.35s ease;
}

.site-header .site-nav a,
.site-header .btn-outline,
.site-header .logo img {
  transition: color 0.35s ease, border-color 0.35s ease,
              background 0.15s ease, filter 0.35s ease;
}

body.home .site-header:not(.scrolled) {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}

body.home .site-header:not(.scrolled) .site-nav a { color: #fff; }
body.home .site-header:not(.scrolled) .btn-outline { color: #fff; border-color: rgba(255,255,255,0.85); }
body.home .site-header:not(.scrolled) .btn-outline:hover { background: #fff; color: var(--ink); }
body.home .site-header:not(.scrolled) .logo img { filter: brightness(0) invert(1); }

html:not(.js) .hero { margin-top: 0; padding-top: 48px; min-height: 0; }
html:not(.js) body.home .site-header:not(.scrolled) {
  background: rgba(255,248,236,0.85);
  border-bottom-color: var(--border);
}
html:not(.js) body.home .site-header:not(.scrolled) .site-nav a { color: var(--ink); }
html:not(.js) body.home .site-header:not(.scrolled) .btn-outline { color: var(--ink); border-color: var(--ink); }
html:not(.js) body.home .site-header:not(.scrolled) .logo img { filter: none; }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.site-header .logo img { height: 38px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.site-nav a {
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  color: var(--ink);
}

.btn-outline {
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  padding: 9px 18px;
  border-radius: 999px;
  text-decoration: none;
  background: transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn-outline:hover { background: var(--ink); color: var(--cream); }

.hero {
  position: relative;
  overflow: hidden;

  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;

  margin-top: calc(var(--header-h, 76px) * -1);
  padding: calc(var(--header-h, 76px) + 48px) 0 56px;
  background: #2A1F3D;
}

.hero > .wrap { width: 100%; }

.hero .aurora {
  position: absolute;
  inset: -30%;
  z-index: 0;
  filter: blur(70px);
  opacity: 1;
  pointer-events: none;
}

.hero .bloom {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;

  translate: var(--bx, 0px) var(--by, 0px);
  will-change: translate;
}

.hero .b1 { width: 48%; height: 64%; left:  0%; top:  4%; background: var(--purple); }
.hero .b2 { width: 40%; height: 50%; left: 44%; top: 34%; background: var(--orange); }
.hero .b3 { width: 40%; height: 52%; left:  6%; top: 44%; background: var(--blue);   }
.hero .b4 { width: 36%; height: 46%; left: 60%; top: 40%; background: var(--amber);  }
.hero .b5 { width: 32%; height: 42%; left: 72%; top:  4%; background: var(--yellow); }

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(100deg,
      rgba(18, 13, 28, 0.42) 0%,
      rgba(18, 13, 28, 0.32) 30%,
      rgba(18, 13, 28, 0.10) 55%,
      transparent 72%);
}

.hero .petal-bg-wrap {
  position: absolute;
  right: -40px;
  top: 50%;
  width: 480px;
  z-index: 1;
  pointer-events: none;

  transform: translate3d(var(--mx, 0px), calc(-50% + var(--py, 0px) + var(--my, 0px)), 0) rotate(var(--mrot, 0deg));
  will-change: transform;
}

.hero .petal-bg {
  width: 100%;
  opacity: 0.95;
  transform: rotate(-8deg);

  filter: brightness(0) invert(1);
}

.hero .inner { position: relative; z-index: 2; max-width: 820px; }

.hero .eyebrow { margin-bottom: 22px; color: rgba(255,255,255,0.8); }

.hero h1 {
  font-weight: 900;
  font-size: clamp(64px, 8vw, 112px);
  line-height: 0.94;
  letter-spacing: -0.035em;
  color: #fff;
  text-shadow: 0 2px 30px rgba(18, 13, 28, 0.28);
}

.hero h1 em {
  font-style: normal;
  color: var(--yellow);
  text-shadow: 0 1px 2px rgba(18, 13, 28, 0.4),
               0 2px 22px rgba(18, 13, 28, 0.3);
}

.hero p {
  font-size: 22px;
  line-height: 1.45;
  color: rgba(255,255,255,0.82);
  margin-top: 28px;
  max-width: 580px;
  text-shadow: 0 1px 20px rgba(18, 13, 28, 0.3);
}

.hero-cta {
  display: flex;
  gap: 24px;
  margin-top: 36px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-primary {
  font-weight: 800;
  font-size: 17px;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  padding: 15px 30px;
  border-radius: 999px;
  text-decoration: none;
  background: var(--cream2);
  transition: background 0.15s, color 0.15s;
}
.btn-primary:hover { background: var(--ink); color: var(--cream); }

.btn-secondary {
  font-weight: 400;
  font-size: 17px;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  background: var(--cream2);
  transition: background 0.15s, color 0.15s;
}
.btn-secondary:hover { background: var(--amber); color: var(--cream); border: 1px solid transparent;}

.hero-email {
  font-weight: 700;
  font-size: 17px;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

.services { padding: 72px 0; }

.services h2 {
  font-weight: 900;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 820px;
  margin: 14px 0 48px;
}

.services h2 em { font-style: normal; color: var(--orange); }

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

.spotlight-card {
  position: relative;
  background: var(--cream2);
  border: 0px solid var(--ink);
  border-radius: 28px;
  padding: 32px 30px 36px;
  overflow: hidden;
  min-height: 280px;
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
              box-shadow 0.35s ease;
}

.spotlight-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(27, 26, 46, 0.08);
}

.spotlight-card .card-petal {
  position: absolute;
  right: -50px;
  top: -40px;
  width: 200px;
  opacity: 0.85;
  pointer-events: none;
  transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
              opacity 0.35s ease;
}

.spotlight-card:hover .card-petal {
  transform: rotate(9deg) scale(1.12);
  opacity: 1;
}

.spotlight-card .card-petal--top {
  right: -32px;
  top: -8px;
  width: 185px;
}

.spotlight-card .card-petal--blue {
  top: -78px;
}

.spotlight-card .card-label {
  position: relative;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.spotlight-card h3 {
  position: relative;
  font-weight: 900;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 240px;
}

.spotlight-card p {
  position: relative;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 18px;
}

.clients { padding: 40px 0 80px; }
.clients .eyebrow { margin-bottom: 28px; }

.clients-marquee {
  overflow: hidden;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  padding: 36px 0;

  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee-track:hover { animation-play-state: paused; }

.marquee-group {
  display: flex;
  align-items: center;
  gap: 72px;
  padding-right: 72px;
}

.marquee-group .client-name { flex-shrink: 0; }

.marquee-group img {
  filter: grayscale(1);
  opacity: 0.6;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.marquee-group img:hover {
  filter: grayscale(0);
  opacity: 1;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

.about {
  position: relative;
  overflow: hidden;
  padding: 88px 0;
}

.about .petal-deco {
  position: absolute;
  left: -100px;
  bottom: -80px;
  width: 360px;
  opacity: 0.6;
  pointer-events: none;
  transform: translateY(var(--py, 0px));
  will-change: transform;
}

.about-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.about-grid h2 {
  font-weight: 900;
  font-size: clamp(44px, 5vw, 68px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-top: 18px;
}

.about-grid .portrait {
  width: 100%;
  max-width: 330px;
  margin-top: 40px;
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.about-grid .portrait:hover { transform: rotate(-3deg) scale(1.03); }

.about-grid .body { font-size: 20px; line-height: 1.55; }
.about-grid .body p + p { margin-top: 20px; color: var(--muted); }

.big-quote {
  position: relative;
  background: var(--yellow2);
  padding: 120px var(--pad);
  overflow: hidden;
}

.big-quote .deco-left {
  position: absolute;
  left: -120px;
  bottom: -120px;
  width: 420px;
  opacity: 0.55;
  pointer-events: none;
  transform: translateY(var(--py, 0px));
  will-change: transform;
}
.big-quote .deco-right {
  position: absolute;
  right: -100px;
  top: -80px;
  width: 320px;
  opacity: 0.55;
  pointer-events: none;
  transform: translateY(var(--py, 0px));
  will-change: transform;
}

.big-quote blockquote {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  font-weight: 900;
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-align: center;
}

.big-quote blockquote em {
  font-style: italic;

  background-image: linear-gradient(to right,
      var(--orange) 0%, var(--orange) 50%,
      var(--purple) 50%, var(--purple) 100%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  transition: background-position 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.big-quote:hover blockquote em {
  background-position: 0 0;
}

.big-quote .caption {
  position: relative;
  text-align: center;
  margin-top: 32px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.75;
}

.contact {
  position: relative;
  background: var(--cream2);
  padding: 96px var(--pad);
  overflow: hidden;
  border-top: 1.5px solid var(--ink);
}

.contact .petal-deco {
  position: absolute;
  right: -100px;
  bottom: -120px;
  width: 360px;
  opacity: 0.35;
  pointer-events: none;
  transform: translateY(var(--py, 0px)) rotate(20deg);
  will-change: transform;
}

.contact h2 {
  position: relative;
  font-weight: 900;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 820px;
  margin-top: 22px;
}

.contact-cols {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.contact-col .col-label {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.contact-col .col-value {
  font-weight: 800;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-decoration: none;
  display: block;
}

.contact-col .col-value:hover { text-decoration: underline; }

.contact-col .elsewhere {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.contact-col .elsewhere a { text-decoration: none; }
.contact-col .elsewhere a:hover { text-decoration: underline; }
.contact-col .elsewhere .dot { opacity: 0.3; }

.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 72px var(--pad) 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand img { height: 60px; }

.footer-brand .tagline {
  font-weight: 900;
  font-size: 28px;
  letter-spacing: -0.02em;
  margin-top: 22px;
  line-height: 1.05;
  max-width: 320px;
}

.footer-col .col-head {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}

.footer-col ul a:hover { text-decoration: underline; }

.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,248,236,0.12);
  display: flex;
  justify-content: space-between;
  font-weight: 500;
  font-size: 13px;
  opacity: 0.6;
}

@media (max-width: 900px) {
  :root { --pad: 24px; }

  .site-nav .nav-links { display: none; }

  .hero .petal-bg-wrap { width: 280px; right: -20px; }
  .hero .petal-bg      { opacity: 0.28; }
  .hero .aurora        { filter: blur(50px); }

  .card-grid          { grid-template-columns: 1fr; }
  .marquee-group      { gap: 44px; padding-right: 44px; }
  .about-grid         { grid-template-columns: 1fr; gap: 40px; }
  .contact-cols       { grid-template-columns: 1fr; }
  .footer-grid        { grid-template-columns: 1fr 1fr; row-gap: 40px; }
}

@media (max-width: 560px) {
  .footer-grid        { grid-template-columns: 1fr; }
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

@media (prefers-reduced-motion: no-preference) {

  .js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease,
                transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  }

  .js .reveal.in {
    opacity: 1;
    transform: none;
  }

  .js .card-grid .reveal:nth-child(2)     { transition-delay: 0.12s; }
  .js .card-grid .reveal:nth-child(3)     { transition-delay: 0.24s; }
  .js .contact-cols .reveal:nth-child(2)  { transition-delay: 0.10s; }
  .js .contact-cols .reveal:nth-child(3)  { transition-delay: 0.20s; }

  .js .hero .eyebrow,
  .js .hero h1,
  .js .hero .inner > p:not(.eyebrow) {
    animation: rise 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  }
  .js .hero h1                       { animation-delay: 0.1s; }
  .js .hero .inner > p:not(.eyebrow) { animation-delay: 0.22s; }

  .js .hero .petal-bg-wrap {
    animation: petal-arrive 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  }

  .js .hero .petal-bg {
    animation: petal-breathe 14s ease-in-out infinite alternate;
  }

  .hero .bloom { animation: bloom-drift 16s ease-in-out infinite alternate; }
  .hero .b1 { animation-name: drift-a; animation-duration: 17s; }
  .hero .b2 { animation-name: drift-b; animation-duration: 21s; }
  .hero .b3 { animation-name: drift-c; animation-duration: 15s; }
  .hero .b4 { animation-name: drift-d; animation-duration: 23s; }
  .hero .b5 { animation-name: drift-e; animation-duration: 19s; }

  @keyframes drift-a {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(22%, -16%) scale(1.35); }
  }
  @keyframes drift-b {
    from { transform: translate(0, 0) scale(1.2); }
    to   { transform: translate(-20%, 14%) scale(0.95); }
  }
  @keyframes drift-c {
    from { transform: translate(0, 0) scale(1.1); }
    to   { transform: translate(-24%, 20%) scale(1.4); }
  }
  @keyframes drift-d {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(26%, 12%) scale(1.3); }
  }
  @keyframes drift-e {
    from { transform: translate(0, 0) scale(1.25); }
    to   { transform: translate(-18%, -22%) scale(1); }
  }

  @keyframes rise {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: none; }
  }

  @keyframes petal-arrive {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  @keyframes petal-breathe {
    from { transform: rotate(-10deg) scale(1); }
    to   { transform: rotate(-5deg)  scale(1.04); }
  }
}

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

  .marquee-track { animation: none; }

  .clients-marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
            mask-image: none;
  }
}

.work-head {
  position: relative;
  overflow: hidden;
  padding: 64px 0 40px;
}
.work-head .petal-deco {
  position: absolute;
  right: -80px;
  top: -60px;
  width: 320px;
  opacity: 0.5;
  pointer-events: none;
  transform: translateY(var(--py, 0px));
  will-change: transform;
}
.work-head .back {
  display: inline-block;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  color: var(--muted);
  margin-bottom: 26px;
}
.work-head .back:hover { color: var(--ink); }
.work-head h1 {
  font-weight: 900;
  font-size: clamp(40px, 5.5vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 880px;
}
.work-head h1 em { font-style: normal; color: var(--orange); }
.work-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 24px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.work-meta .dot { opacity: 0.35; }
.work-head .intro {
  font-size: 20px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 620px;
  margin-top: 26px;
}
.work-head .btn-secondary { margin-top: 30px; }

.pdf-viewer {
  position: relative;
  background: var(--cream);
  padding: 28px 0 130px;
  min-height: 70vh;
  overflow-x: auto;
}
.pdf-page {
  position: relative;
  margin: 0 auto;
  min-height: 200px;
  background: var(--cream2);
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(27, 26, 46, 0.10);
  overflow: hidden;
}

.pdf-pages.mode-single { display: block; }
.pdf-pages.mode-single .pdf-page { display: none; }
.pdf-pages.mode-single .pdf-page.active { display: block; }

.pdf-pages.mode-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}
.pdf-pages.mode-scroll .pdf-page { display: block; width: 100%; max-width: 880px; }
.pdf-page canvas {
  display: block;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.pdf-page.rendered canvas { opacity: 1; }

.pdf-page::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 26px; height: 26px;
  margin: -13px 0 0 -13px;
  border: 3px solid var(--border);
  border-top-color: var(--amber);
  border-radius: 50%;
  animation: pdf-spin 0.8s linear infinite;
  opacity: 0.9;
}
.pdf-page.rendered::after { display: none; }
@keyframes pdf-spin { to { transform: rotate(360deg); } }

.pdf-status {
  text-align: center;
  padding: 80px var(--pad);
  color: var(--muted);
  font-size: 16px;
}
.pdf-status a { color: var(--ink); font-weight: 700; }

.pdf-controls {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  background: rgba(255, 248, 236, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 12px 34px rgba(27, 26, 46, 0.12);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.pdf-controls.ready { opacity: 1; visibility: visible; }
.pdf-controls button {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.pdf-controls button:hover { background: rgba(27, 26, 46, 0.08); }
.pdf-controls button:disabled { opacity: 0.3; cursor: default; }
.pdf-controls .counter {
  min-width: 70px;
  text-align: center;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.pdf-controls .sep { width: 1px; height: 22px; background: var(--border); margin: 0 4px; }
.pdf-controls .zoom-level {
  min-width: 46px;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.pdf-controls .zoom-wrap { display: flex; align-items: center; gap: 6px; }

@media (max-width: 560px) {
  .pdf-controls .zoom-wrap { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pdf-page canvas { transition: none; }
  .pdf-page::after { animation: none; }
}

.web-stage { padding: 16px 0 120px; }

.web-frame {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  background: var(--cream2);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 30px 70px rgba(27, 26, 46, 0.16);
  overflow: hidden;
}

.web-chrome {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 48px;
  padding: 0 16px;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}
.web-dots { display: flex; gap: 7px; flex-shrink: 0; }
.web-dots span { width: 11px; height: 11px; border-radius: 50%; display: block; }
.web-dots .d1 { background: var(--orange); }
.web-dots .d2 { background: var(--amber); }
.web-dots .d3 { background: var(--blue); }
.web-url {
  flex: 1;
  max-width: 460px;
  margin: 0 auto;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: var(--cream2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.web-scroll {
  position: relative;
  height: 72vh;
  min-height: 380px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}
.web-scroll::-webkit-scrollbar { display: none; }
.web-shot { display: block; width: 100%; }

.web-frame + .web-frame   { margin-top: 72px; }
.web-frame + .web-caption { margin-top: 72px; }
.web-caption {
  margin: 0 0 24px 4px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.web-rail {
  position: absolute;
  top: 60px;
  right: 11px;
  bottom: 14px;
  width: 6px;
  border-radius: 999px;
  background: rgba(27, 26, 46, 0.08);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
}
.web-rail.active { opacity: 0.6; }
.web-frame:hover .web-rail.active { opacity: 1; }
.web-thumb {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 60px;
  border-radius: 999px;
  background: var(--amber);
  cursor: grab;
  will-change: transform, height;
}
.web-thumb:active { cursor: grabbing; }

.web-fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 90px;
  background: linear-gradient(to top, var(--cream2), rgba(255, 253, 246, 0));
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.35s ease;
  z-index: 2;
}
.web-fade.hidden { opacity: 0; }

.web-hint {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(27, 26, 46, 0.85);
  color: var(--cream);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  pointer-events: none;
  z-index: 4;
  transition: opacity 0.4s ease;
}
.web-hint .chev {
  width: 12px; height: 12px;
  border-right: 2px solid var(--cream);
  border-bottom: 2px solid var(--cream);
  transform: rotate(45deg);
  margin-top: -3px;
}
.web-hint.hidden { opacity: 0; }

.web-missing {
  padding: 80px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 16px;
}

@media (prefers-reduced-motion: no-preference) {
  .web-hint:not(.hidden) { animation: hint-bob 1.8s ease-in-out infinite; }
  @keyframes hint-bob {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(5px); }
  }
}

@media (max-width: 700px) {
  .web-scroll { height: 64vh; }
  .web-url { font-size: 12px; }
}

.gallery { padding: 16px 0 120px; }

.gallery-row {
  display: grid;
  gap: 24px;
  margin-bottom: 24px;
}
.gallery-row:last-child { margin-bottom: 0; }
.gallery-row.cols-1 { grid-template-columns: 1fr; }
.gallery-row.cols-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-row.cols-3 { grid-template-columns: repeat(3, 1fr); }

.gallery-item {
  position: relative;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--cream2);
  aspect-ratio: 4 / 3;
}
.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.gallery-item:hover img { transform: scale(1.04); }

.gallery-item.ratio-square    { aspect-ratio: 1 / 1; }
.gallery-item.ratio-portrait  { aspect-ratio: 3 / 4; }
.gallery-item.ratio-landscape { aspect-ratio: 4 / 3; }
.gallery-item.ratio-wide      { aspect-ratio: 16 / 9; }
.gallery-item.ratio-auto      { aspect-ratio: auto; }
.gallery-item.ratio-auto img  { height: auto; }

.gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px 18px;
  background: linear-gradient(to top, rgba(27, 26, 46, 0.72), rgba(27, 26, 46, 0));
  color: var(--cream);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover figcaption { opacity: 1; }
@media (hover: none) { .gallery-item figcaption { opacity: 1; } }

@media (max-width: 900px) {
  .gallery-row.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .gallery-row.cols-2,
  .gallery-row.cols-3 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-item img { transition: none; }
}
