/* Shared by every page: font, colour tokens (light + dark), footer, back-to-top, consent bar. */

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/onest-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/onest-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --font: 'Onest', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --ease-soft: cubic-bezier(.16, 1, .3, 1);
}

/* Lenis smooth scrolling */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }

/* ---------- footer ---------- */
/* it rides up over the last 32px of the section above, so its rounded corners show that section */
.foot-wrap {
  position: relative;
  z-index: 2;
  margin-top: -32px;
  background: transparent;
}
.foot-wrap--dark .site-footer { box-shadow: inset 0 1px 0 rgba(232, 228, 224, .12); }
.site-footer {
  --f-bg: #1A1818;
  --f-fg: #E8E4E0;
  --f-rgb: 232, 228, 224;
  position: relative;
  z-index: 2;
  overflow: hidden;
  margin-bottom: 0;
  border-radius: 2rem 2rem 0 0;
  background: var(--f-bg);
  color: var(--f-fg);
  font-family: var(--font);
}
html[data-mode="dark"] .site-footer {
  --f-bg: #0F0E0E;
  box-shadow: inset 0 1px 0 rgba(232, 228, 224, .1);
}
.site-footer__in {
  position: relative;
  z-index: 1;
  max-width: 88rem;
  margin: 0 auto;
  padding: 5.5rem 1.25rem 1.5rem;
}
@media (min-width: 1024px) {
  .site-footer__in { padding: 7rem 5.5rem 1.75rem; }
}
.footer__kicker {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(var(--f-rgb), .6);
}
.footer__kicker i {
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: #8FBF7A;
  box-shadow: 0 0 0 0 rgba(143, 191, 122, .6);
  animation: footPulse 2.2s ease-out infinite;
}
@keyframes footPulse {
  70% { box-shadow: 0 0 0 .55rem rgba(143, 191, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(143, 191, 122, 0); }
}
.footer__title {
  margin: 1.4rem 0 1.25rem;
  font-size: clamp(2.75rem, 7.5vw, 6.5rem);
  font-weight: 600;
  line-height: .95;
  letter-spacing: -.035em;
}
.footer__title span {
  display: block;
  color: rgba(var(--f-rgb), .42);
}
.footer__text {
  max-width: 46ch;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: rgba(var(--f-rgb), .7);
}
.footer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2.25rem;
}
.footer__btn {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  height: 3.5rem;
  padding: 0 .55rem 0 1.6rem;
  border: 0;
  border-radius: 999px;
  background: var(--f-fg);
  color: var(--f-bg);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .35s var(--ease-soft);
}
.footer__btn b {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--f-bg);
  color: var(--f-fg);
}
.footer__btn svg {
  width: 1.05rem;
  height: 1.05rem;
  transition: transform .35s var(--ease-soft);
}
.footer__btn:hover { transform: translateY(-2px); }
.footer__btn:hover svg { transform: translateX(3px); }
.footer__ghost {
  display: inline-flex;
  align-items: center;
  height: 3.5rem;
  padding: 0 1.5rem;
  border: 1px solid rgba(var(--f-rgb), .2);
  border-radius: 999px;
  background: none;
  color: var(--f-fg);
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .25s;
}
.footer__ghost:hover { background: rgba(var(--f-rgb), .07); }
.footer__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.25rem 1.5rem;
  margin-top: 5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(var(--f-rgb), .12);
}
@media (min-width: 768px) {
  .footer__cols { grid-template-columns: 2fr 1fr 1fr; }
}
.footer__cols h3 {
  margin-bottom: 1rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(var(--f-rgb), .66);
}
.footer__cols ul {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer__cols button,
.footer__cols a {
  padding: 0;
  border: 0;
  background: none;
  color: rgba(var(--f-rgb), .85);
  font: inherit;
  font-size: .9375rem;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: color .2s;
}
.footer__cols button:hover,
.footer__cols a:hover { color: #fff; }
.footer__cols li.st {
  font-size: .9375rem;
  color: rgba(var(--f-rgb), .85);
}
.footer__cols .footer__work {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: .6rem 1.5rem;
}
@media (pointer: coarse), (max-width: 767.98px) {
  .footer__cols ul { gap: 0; }
  .footer__cols button,
  .footer__cols a,
  .footer__bottom button {
    display: inline-flex;
    align-items: center;
    min-width: 44px;
    min-height: 44px;
  }
  .footer__cols li.st {
    display: flex;
    align-items: center;
    min-height: 32px;
  }
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem;
  margin-top: 1.75rem;
  font-size: .8125rem;
  color: rgba(var(--f-rgb), .68);
}
.footer__bottom button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.footer__bottom button:hover { color: var(--f-fg); }
.footer__legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .2em;
  text-decoration-color: rgba(var(--f-rgb), .35);
}
.footer__legal a:hover { color: var(--f-fg); }
@media (pointer: coarse), (max-width: 767.98px) {
  .footer__legal a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .footer__kicker i { animation: none; }
}

/* ---------- floating back-to-top ---------- */
.scrolltop {
  --st-bg: #1A1818;
  --st-fg: #E8E4E0;
  --st-ring: 232, 228, 224;
  position: fixed;
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  z-index: 60;
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--st-bg);
  color: var(--st-fg);
  cursor: pointer;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .45), 0 0 0 1px rgba(var(--st-ring), .14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(.75rem) scale(.9);
  transition: opacity .35s ease, visibility 0s linear .35s, transform .45s var(--ease-soft),
    background .3s ease, color .3s ease, box-shadow .3s ease;
}
.scrolltop.show {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.scrolltop[data-on="dark"] {
  --st-bg: #E8E4E0;
  --st-fg: #1A1818;
  --st-ring: 26, 24, 24;
}
.scrolltop .scrolltop__arrow {
  width: 1.15rem;
  height: 1.15rem;
  transition: transform .4s var(--ease-soft);
}
.scrolltop .scrolltop__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  pointer-events: none;
}
.scrolltop__ring circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  opacity: .85;
  stroke-dasharray: var(--len);
  stroke-dashoffset: calc(var(--len) * (1 - var(--p, 0)));
  transition: stroke-dashoffset .12s linear;
}
.scrolltop__label {
  position: absolute;
  right: calc(100% + .6rem);
  top: 50%;
  padding: .4rem .75rem;
  border-radius: 999px;
  background: var(--st-bg);
  color: var(--st-fg);
  font: 500 .8125rem/1 var(--font);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(.4rem, -50%);
  transition: opacity .25s ease, transform .35s var(--ease-soft);
  box-shadow: 0 0 0 1px rgba(var(--st-ring), .14);
}
@media (hover: hover) {
  .scrolltop:hover { transform: translateY(-3px); }
  .scrolltop:hover .scrolltop__arrow { transform: translateY(-3px); }
  .scrolltop:hover .scrolltop__label {
    opacity: 1;
    transform: translate(0, -50%);
  }
}
.scrolltop:focus-visible {
  outline: 2px solid #C4B0B0;
  outline-offset: 3px;
}
@media (max-width: 767.98px) {
  .scrolltop { width: 3rem; height: 3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .scrolltop,
  .scrolltop .scrolltop__arrow { transition: opacity .2s ease, visibility 0s linear .2s; }
}

/* ---------- analytics consent bar (only shown when an analytics ID is configured) ---------- */
.consent {
  position: fixed;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(34rem, calc(100% - 2rem));
  padding: .9rem .9rem .9rem 1.2rem;
  border-radius: 1.25rem;
  background: #1A1818;
  color: #E8E4E0;
  font: 400 .875rem/1.45 var(--font);
  transform: translateX(-50%);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .55), 0 0 0 1px rgba(232, 228, 224, .12);
}
.consent[hidden] { display: none; }
.consent p { flex: 1; margin: 0; }
.consent a { color: inherit; }
.consent div { display: flex; flex: none; gap: .5rem; }
.consent button {
  height: 2.5rem;
  padding: 0 1rem;
  border: 1px solid rgba(232, 228, 224, .25);
  border-radius: 999px;
  background: none;
  color: inherit;
  font: inherit;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}
.consent button[data-consent="yes"] {
  border-color: transparent;
  background: #E8E4E0;
  color: #1A1818;
}
@media (max-width: 539.98px) {
  .consent { flex-direction: column; align-items: stretch; }
  .consent div button { flex: 1; }
}

/* ---------- shimmer while an image or recording loads ---------- */
.skel { position: relative; }
.skel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 6;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(100deg, #E2DDD8 30%, #F1EDE9 50%, #E2DDD8 70%);
  background-size: 220% 100%;
  animation: skel 1.25s linear infinite;
}
html[data-mode="dark"] .skel::after {
  background-image: linear-gradient(100deg, #231F1F 30%, #2F2A2A 50%, #231F1F 70%);
}
@keyframes skel {
  from { background-position: 120% 0; }
  to { background-position: -100% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .skel::after { animation: none; }
}
