:root {
  --bg: #f6f5f3;
  --bg-2: #eeedea;
  --ink: #111111;
  --muted: #6f6d69;
  --line: rgba(17, 17, 17, 0.14);
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  --btn-dark-bg: #111111;
  --btn-dark-ink: #ffffff;
  --accent: #1659c4;
  --tag: rgba(17, 17, 17, 0.38);
  --ink-soft: #4d4b48;

  --font-display: "Archivo", "Arial Black", sans-serif;
  --font-sans: "Manrope", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121212; --bg-2: #1a1a1a; --ink: #f1efec; --muted: #9a9792;
    --line: rgba(255, 255, 255, 0.14); --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --btn-dark-bg: #f1efec; --btn-dark-ink: #111111;
    --accent: #6fa0ff; --tag: rgba(241, 239, 236, 0.4); --ink-soft: #a9a6a1;
  }
}
:root[data-theme="dark"] {
  --bg: #121212; --bg-2: #1a1a1a; --ink: #f1efec; --muted: #9a9792;
  --line: rgba(255, 255, 255, 0.14); --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --btn-dark-bg: #f1efec; --btn-dark-ink: #111111;
  --accent: #6fa0ff; --tag: rgba(241, 239, 236, 0.4); --ink-soft: #a9a6a1;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  height: 56px; padding: 0 20px;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.logo {
  font-family: var(--font-display); font-weight: 900; font-size: 18px;
  letter-spacing: -0.02em; min-width: 28px;
}
.nav-links { display: flex; gap: 6px; flex: 1; }
.nav-link, .nav-links a {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
  padding: 6px 10px; border-radius: 2px; transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-link:hover { color: var(--ink); }
.nav-links a.active { background: var(--btn-dark-bg); color: var(--btn-dark-ink); }
.nav-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.icon-btn {
  display: grid; place-items: center; width: 32px; height: 32px;
  background: none; border: 0; color: var(--ink); cursor: pointer; border-radius: 4px;
}
.icon-btn:hover { background: var(--bg-2); }
.menu-btn { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 13px 18px; border-radius: 2px; border: 1px solid var(--btn-dark-bg);
  transition: transform 0.2s, opacity 0.2s;
}
.btn:hover { transform: translateY(-1px); opacity: 0.88; }
.btn-dark { background: var(--btn-dark-bg); color: var(--btn-dark-ink); }
.btn-outline { background: var(--bg); color: var(--ink); border-color: var(--line); }
.btn-sm { padding: 9px 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; overflow: hidden;
  display: grid; place-items: center; padding: 90px 20px 60px;
}
.orbits { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.orbits ellipse { fill: none; stroke: var(--line); stroke-width: 1; }
.orbits ellipse.strong { stroke: color-mix(in srgb, var(--ink) 55%, transparent); stroke-width: 1.4; }

.cards { position: absolute; inset: 0; pointer-events: none; }
.card {
  position: absolute; left: 0; top: 0;
  will-change: transform, opacity, filter;
}
.card-in {
  width: 100%; height: 100%; border-radius: 7px; overflow: hidden;
  box-shadow: var(--card-shadow);
}
.card img, .card .ph { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; z-index: 45;
  right: calc(80px + env(safe-area-inset-right, 0px));
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  display: grid; place-items: center; width: 48px; height: 48px;
  border: 1px solid var(--btn-dark-bg); border-radius: 2px;
  background: var(--btn-dark-bg); color: var(--btn-dark-ink); cursor: pointer;
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity 0.35s, transform 0.35s cubic-bezier(.2, .8, .2, 1), background 0.2s, color 0.2s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover, .to-top:focus-visible { background: var(--bg); color: var(--ink); outline: none; }
.to-top svg { transition: transform 0.25s; }
.to-top:hover svg { transform: translateY(-3px); }
@media (max-width: 900px) { .to-top { right: calc(16px + env(safe-area-inset-right, 0px)); } }

.hero-center { position: relative; z-index: 2; text-align: center; max-width: 1100px; }
.wordmark-soft { color: inherit; }
.wordmark {
  margin: 0 0 22px;
  font-family: var(--font-display); font-weight: 900; font-stretch: 125%;
  font-size: clamp(26px, 5.4vw, 92px); line-height: 0.95; letter-spacing: 0.01em;
  white-space: nowrap;
}
.headline {
  margin: 0 0 18px; font-weight: 800; letter-spacing: -0.02em;
  font-size: clamp(22px, 2.4vw, 34px);
}
/* first part of the headline in the same face as the name, in capitals */
.headline-main {
  font-family: var(--font-display); font-weight: 900; font-stretch: 125%;
  text-transform: uppercase; letter-spacing: 0.01em; font-size: 0.86em;
}
.headline em, .section-title em {
  font-family: var(--font-serif); font-weight: 400; font-style: italic;
  color: var(--muted); letter-spacing: 0;
}
.hero-text {
  margin: 0 auto 30px; max-width: 420px;
  font-weight: 300; font-size: 16px; line-height: 1.75; color: var(--muted);
}
.hero-buttons { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.meta {
  margin: 22px 0 0; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.meta span + span::before { content: "·"; margin: 0 10px; }

/* ---------- Right-edge ruler & section index ---------- */
/* The ruler's ticks are laid out in page coordinates (one tick per 1% of the page)
   and scroll with it, so the fixed progress marker always sits on its own percentage. */
.ruler {
  position: fixed; top: 0; right: 0; bottom: 0; width: 64px; z-index: 5;
  pointer-events: none; overflow: hidden;
}
.ruler-track { position: absolute; top: 0; right: 0; left: 0; will-change: transform; }
.ruler .tick {
  position: absolute; right: 0; width: 10px; border-top: 1px solid var(--line);
}
.ruler .tick.major { width: 18px; border-top-color: color-mix(in srgb, var(--ink) 35%, transparent); }
.ruler .tick span {
  position: absolute; right: 24px; top: -6px;
  font-family: var(--font-mono); font-size: 8px; color: var(--muted);
}
.ruler-marker {
  position: absolute; right: 0; width: 40px; border-top: 1px solid var(--accent);
  will-change: transform;
}
.ruler-marker span {
  position: absolute; right: 2px; bottom: 2px;
  font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.04em;
  color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap;
}

/* Upcoming sections, stacked in the middle of the right edge */
.section-index {
  position: fixed; right: 76px; top: 50%; transform: translateY(-50%); z-index: 40;
  display: flex; flex-direction: column; align-items: flex-end;
}
.section-index a {
  display: block; max-height: 22px; overflow: hidden;
  font-family: var(--font-display); font-weight: 800; font-stretch: 125%;
  font-size: 15px; line-height: 20px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--tag);
  transition: color 0.25s, opacity 0.5s, transform 0.6s cubic-bezier(.2, .8, .2, 1), max-height 0.5s 0.1s;
}
.section-index a:hover, .section-index a:focus-visible { color: var(--ink); transform: translateX(-6px); outline: none; }
.section-index { transition: opacity 0.4s; }
.section-index.over-video { opacity: 0; pointer-events: none; }
.section-index a.gone { opacity: 0; max-height: 0; transform: translateX(-28px); pointer-events: none; }

/* Current section's name, set sideways along the left edge */
.section-tag {
  position: fixed; left: 34px; top: 50%; z-index: 4; pointer-events: none;
  font-family: var(--font-display); font-weight: 800; font-stretch: 125%;
  font-size: clamp(26px, 2.9vw, 46px); line-height: 1; letter-spacing: 0.04em;
  text-transform: uppercase; white-space: nowrap; color: var(--tag);
  transform: translate(-50%, -50%) rotate(-90deg);
  transition: opacity 0.4s;
}
.section-tag.hide { opacity: 0; }

/* ---------- Content sections ---------- */
.section {
  position: relative; padding: 140px 64px; max-width: 1240px; margin: 0 auto;
  border-top: 1px solid var(--line);
}
.section-label {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 16px;
}
.section-title {
  margin: 0 0 56px; font-weight: 800; letter-spacing: -0.03em;
  font-size: clamp(34px, 5vw, 64px); line-height: 1.05;
}

.work-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1100px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
.work-item { display: block; }
button.work-item {
  width: 100%; padding: 0; border: 0; background: none; color: inherit;
  font: inherit; text-align: left; cursor: zoom-in;
}
button.work-item:focus-visible .thumb { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Photo viewer ---------- */
.viewer {
  position: fixed; inset: 0; z-index: 100;
  display: grid; grid-template-columns: 72px 1fr 72px; align-items: center;
  padding: max(56px, env(safe-area-inset-top, 0px)) max(8px, env(safe-area-inset-right, 0px)) max(40px, env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(14px);
  opacity: 0; transition: opacity 0.25s;
}
.viewer.open { opacity: 1; }
.viewer-stage {
  grid-column: 2; margin: 0; height: 100%; min-width: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
}
.viewer-stage img {
  max-width: 100%; max-height: calc(100% - 30px); object-fit: contain;
  border-radius: 6px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  opacity: 0; transform: scale(0.96); transition: opacity 0.35s, transform 0.45s cubic-bezier(.2, .8, .2, 1);
}
.viewer.open .viewer-stage img.in { opacity: 1; transform: none; }
.viewer-count {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.2em; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.viewer-btn {
  display: grid; place-items: center; width: 48px; height: 48px; justify-self: center;
  border: 1px solid var(--line); border-radius: 2px; background: var(--bg); color: var(--ink); cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.viewer-btn:hover, .viewer-btn:focus-visible { background: var(--btn-dark-bg); color: var(--btn-dark-ink); outline: none; }
.viewer-close { position: absolute; top: max(16px, env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); }
.viewer-prev { grid-column: 1; grid-row: 1; }
.viewer-next { grid-column: 3; grid-row: 1; }
.viewer-stage { grid-row: 1; }
html.viewer-lock { overflow: hidden; }
.viewer[hidden] { display: none; }
@media (max-width: 700px) {
  .viewer { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; row-gap: 16px; }
  .viewer-stage { grid-column: 1 / -1; grid-row: 1; }
  .viewer-prev { grid-column: 1; grid-row: 2; }
  .viewer-next { grid-column: 2; grid-row: 2; }
}
.work-item .thumb {
  aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden;
  box-shadow: var(--card-shadow); margin-bottom: 14px;
}
.work-item .thumb > * { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.work-item:hover .thumb > * { transform: scale(1.04); }
.work-item h3 { margin: 0 0 4px; font-size: 17px; font-weight: 700; }
.work-item p { margin: 0; color: var(--muted); font-weight: 300; font-size: 14px; line-height: 1.6; }

.about-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; }
.about-img { aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; box-shadow: var(--card-shadow); }
.about-img > * { width: 100%; height: 100%; object-fit: cover; }
.about-text p { font-size: 18px; font-weight: 300; line-height: 1.8; color: var(--muted); margin: 0 0 20px; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.service { padding: 32px 28px 36px 0; border-right: 1px solid var(--line); }
.service + .service { padding-left: 28px; }
.service:last-child { border-right: 0; }
.service .num { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); letter-spacing: 0.2em; }
.service h3 { margin: 18px 0 10px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.service p { margin: 0; color: var(--muted); font-weight: 300; line-height: 1.7; }

.contact-text { font-size: 18px; font-weight: 300; color: var(--muted); max-width: 520px; line-height: 1.75; margin: 0 0 32px; }
.contact-email {
  display: inline-block; font-family: var(--font-display); font-weight: 900; font-stretch: 125%;
  font-size: clamp(20px, 3.6vw, 44px); border-bottom: 2px solid var(--ink); padding-bottom: 4px;
  word-break: break-word;
}
.contact-links { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 36px; }
.contact-label + .contact-links { margin-top: 0; }
.contact-label {
  margin: 36px 0 12px; font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.whatsapp {
  display: inline-grid; place-items: center; width: 42px; height: 42px;
  border-radius: 2px; background: #25d366; color: #ffffff;
  transition: transform 0.2s, opacity 0.2s;
}
.whatsapp:hover { transform: translateY(-1px); opacity: 0.88; }

/* What we wrap */
.section-intro {
  margin: -32px 0 48px; max-width: 560px;
  font-size: 18px; font-weight: 300; line-height: 1.75; color: var(--muted);
}
.wraps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 22px; }
.wrap-card h3 { margin: 16px 0 6px; font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.wrap-card p { margin: 0; color: var(--muted); font-weight: 300; font-size: 14px; line-height: 1.65; }
.wrap-thumb {
  aspect-ratio: 4 / 3; max-width: 100%; border-radius: 6px; overflow: hidden; box-shadow: var(--card-shadow);
}
.wrap-thumb > * { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.wrap-card:hover .wrap-thumb > * { transform: scale(1.04); }

/* Key facts under the Why wrap text */
.facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
  margin: 36px 0 0; border-top: 1px solid var(--line);
}
.fact { padding: 20px 16px 0 0; }
.fact + .fact { padding-left: 16px; border-left: 1px solid var(--line); }
.fact dt {
  font-family: var(--font-display); font-weight: 900; font-stretch: 125%;
  font-size: clamp(28px, 3vw, 40px); line-height: 1; color: var(--ink);
}
.fact dd {
  margin: 10px 0 0; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); line-height: 1.6;
}

/* FAQ */
.faq-list { border-top: 1px solid var(--line); max-width: 900px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 0; cursor: pointer; list-style: none;
  font-size: clamp(17px, 1.6vw, 21px); font-weight: 700; letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover, .faq-item summary:focus-visible { color: var(--ink-soft); outline: none; }
.faq-icon { flex: none; transition: transform 0.3s; color: var(--muted); }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-item p {
  margin: -6px 0 26px; max-width: 680px;
  font-size: 16px; font-weight: 300; line-height: 1.8; color: var(--muted);
}

/* Footer */
.footer {
  padding: 64px 64px 28px; border-top: 1px solid var(--line); color: var(--muted);
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 40px;
  max-width: 1240px; margin: 0 auto 56px;
}
.footer-grid > * { min-width: 0; }
.footer-name {
  margin: 0 0 14px; font-family: var(--font-display); font-weight: 900; font-stretch: 125%;
  font-size: 18px; color: var(--ink);
}
.footer-brand p:not(.footer-name), .footer-col p:not(.footer-head) {
  margin: 0; font-size: 14px; font-weight: 300; line-height: 1.7; max-width: 300px;
}
.footer-head {
  margin: 0 0 14px; font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink);
}
.footer-col a {
  display: block; width: fit-content; margin-bottom: 8px; font-size: 14px; overflow-wrap: anywhere;
  transition: color 0.2s;
}
.footer-col a:hover, .footer-col a:focus-visible { color: var(--ink); }
.footer-copy {
  margin: 0; padding-top: 24px; border-top: 1px solid var(--line); text-align: center;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.15em; text-transform: uppercase;
}
@media (max-width: 1100px) {
  .wraps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1240px) { #nav-right-link { display: none; } }
@media (max-width: 560px) {
  .wraps-grid, .footer-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .fact + .fact { padding-left: 0; border-left: 0; }
  .fact { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
}

/* Reveal on scroll */
.reveal { transition: opacity 0.8s, transform 0.8s; }
.reveal:not(.in) { opacity: 0.35; transform: translateY(18px); }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .nav-links {
    display: none; position: absolute; top: 56px; left: 0; right: 0;
    flex-direction: column; padding: 12px 16px; background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .menu-btn { display: grid; }
  #nav-right-link { display: none; }
  .section { padding: 96px 16px; }
  .work-grid, .services-grid { grid-template-columns: 1fr; }
  .service, .service + .service { padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .about-wrap { grid-template-columns: 1fr; gap: 32px; }
  .ruler, .section-index, .section-tag { display: none; }
  .footer { padding: 48px 16px 24px; }
  .nav { padding: 0 16px; gap: 12px; }
}
@media (max-width: 520px) {
  .nav .btn-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .card { animation: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Simple phone layout (700px and narrower) ----------
   The swirl is replaced by a swipeable row of photos, grids get denser,
   and a quick contact bar stays at the bottom of the screen. */
.hero-strip, .mobile-bar { display: none; }
@media (max-width: 700px) {
  .cards, .orbits { display: none; }
  .hero { display: block; min-height: 0; padding: 92px 0 36px; }
  .hero-center { padding: 0 max(16px, env(safe-area-inset-left, 0px)); }
  .hero-text { font-size: 15px; margin-bottom: 24px; }
  .hero-strip {
    display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 32px 16px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .hero-strip::-webkit-scrollbar { display: none; }
  .strip-item {
    flex: 0 0 74%; aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden;
    scroll-snap-align: center; box-shadow: var(--card-shadow);
  }
  .strip-item > * { width: 100%; height: 100%; object-fit: cover; }

  .section { padding-block: 64px; }
  .section-title { margin-bottom: 28px; }
  .section-intro { margin: -12px 0 28px; font-size: 16px; }
  .service, .service + .service { padding: 20px 0; }

  .wraps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .wrap-card h3 { margin: 10px 0 0; font-size: 14px; }
  .wrap-card p { display: none; }

  .about-img { aspect-ratio: 16 / 10; }
  .about-text p { font-size: 16px; }

  .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .work-item .thumb { aspect-ratio: 1; margin-bottom: 0; border-radius: 4px; box-shadow: none; }

  .faq-item summary { padding: 18px 0; }

  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: 1fr 44px; gap: 8px;
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
  }
  .mobile-bar .btn { justify-content: center; padding: 12px 10px; }
  .mobile-bar .whatsapp { width: 44px; height: 44px; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
  .to-top { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- "View all projects" button + All projects page ---------- */
.work-more { display: flex; justify-content: center; margin-top: 48px; }
.work-more .btn { padding: 15px 22px; }
.work-more-count {
  display: inline-grid; place-items: center; min-width: 22px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--btn-dark-ink); color: var(--btn-dark-bg);
  font-size: 9.5px; letter-spacing: 0.04em; font-variant-numeric: tabular-nums;
}
.gallery-page .section { border-top: 0; padding-top: 120px; }
.gallery-back {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 40px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); transition: color 0.2s, gap 0.2s;
}
.gallery-back:hover, .gallery-back:focus-visible { color: var(--ink); gap: 12px; outline: none; }
.gallery-page .section-title { margin-bottom: 12px; }
.gallery-count {
  margin: 0 0 40px; font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.gallery-footer { padding-top: 0; }
@media (max-width: 700px) {
  .work-more { margin-top: 28px; }
  .work-more .btn { width: 100%; justify-content: center; }
  .gallery-page .section { padding-top: 88px; }
  .gallery-back { margin-bottom: 28px; }
  .gallery-count { margin-bottom: 24px; }
}

.noscript {
  margin: 0; padding: 96px 24px; text-align: center;
  font-size: 18px; line-height: 1.7; color: var(--ink);
}
.noscript a { text-decoration: underline; }

/* ---------- In motion video ---------- */
/* wider than the text column: up to 1480px, keeping a 32px margin from the window edges */
.video-frame {
  --video-w: min(1480px, calc(100vw - 64px));
  width: var(--video-w); margin-inline: calc((100% - var(--video-w)) / 2);
  position: relative; aspect-ratio: 16 / 9;
  border-radius: 6px; overflow: hidden; background: var(--bg-2); box-shadow: var(--card-shadow);
}
.video-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-toggle {
  position: absolute; right: 16px; bottom: 16px;
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 2px; cursor: pointer;
  background: rgba(17, 17, 17, 0.72); color: #ffffff; backdrop-filter: blur(6px);
  transition: background 0.2s;
}
.video-toggle:hover, .video-toggle:focus-visible { background: rgba(17, 17, 17, 0.92); outline: 2px solid #ffffff; outline-offset: 2px; }
.video-toggle .i-play, .video-toggle.is-paused .i-pause { display: none; }
.video-toggle.is-paused .i-play { display: block; }
.video-sound {
  right: auto; left: 16px; width: auto; padding: 0 14px 0 12px;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
}
.video-sound .i-sound, .video-sound.is-muted .i-muted { display: block; }
.video-sound .i-muted, .video-sound.is-muted .i-sound { display: none; }
@media (max-width: 700px) {
  /* edge to edge on phones */
  .video-frame { --video-w: 100vw; border-radius: 0; }
  .video-toggle { right: 10px; bottom: 10px; width: 40px; height: 40px; }
  .video-sound { right: auto; left: 10px; width: auto; }
}
