/* Art by André Rizé — shared styles */
@font-face {
  font-family: "Bodoni Moda";
  src: url(/assets/fonts/bodoni-moda-latin-opsz-normal.woff2) format("woff2-variations");
  font-weight: 400 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url(/assets/fonts/bodoni-moda-latin-opsz-italic.woff2) format("woff2-variations");
  font-weight: 400 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url(/assets/fonts/archivo-latin-wdth-normal.woff2) format("woff2-variations");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
}

:root {
  --ink: #000;
  --paper: #fff;
  --teal: #10a39a;
  --pink: #e8407a;
  --gold: #c9a23a;
  --grey: #8b8884;
  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --text: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --step-0: 1.125rem;   /* 18px body */
  --step-1: 1.333rem;
  --step-2: 1.777rem;
  --step-3: 2.369rem;
  --step-4: 3.157rem;
  --gutter: clamp(20px, 4vw, 56px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--text);
  font-size: var(--step-0);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
[hidden]:not(.m-label) { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 12px; }

/* Ink that carries you from one space to the next (journey.js) */
/* Only clip, opacity and flat colour move here: no filters, so it stays smooth on a phone and never flashes. */
.ink-wipe { position: fixed; inset: 0; z-index: 999; pointer-events: none; overflow: hidden; }
.ink-wipe i { position: absolute; inset: 0; clip-path: circle(0px at var(--x) var(--y)); }
.ink-wipe .w1 { background: #14857e; }                       /* the paint's leading edge: teal */
.ink-wipe .w2 { background: #061d1e; }                       /* the body of the paint: deep ink */
.ink-wipe.go .w1 { clip-path: circle(var(--r) at var(--x) var(--y)); transition: clip-path .52s cubic-bezier(.5,0,.2,1); }
.ink-wipe.go .w2 { clip-path: circle(var(--r) at var(--x) var(--y)); transition: clip-path .52s cubic-bezier(.5,0,.2,1) .1s; }
/* arriving: the next page is already under the same paint at its very first frame; the paint thins to a teal wash and clears */
html.ink-arriving { background: #061d1e; }
html.ink-arriving::before { content: ""; position: fixed; inset: 0; z-index: 999; pointer-events: none; background: #061d1e; animation: ink-safe .6s 2.5s forwards; }
.ink-cover { position: fixed; inset: 0; z-index: 999; pointer-events: none; background: #061d1e; will-change: opacity; transition: opacity .55s ease; }
.ink-cover.veil { z-index: 998; background: #14857e; opacity: .45; transition: opacity .95s ease .1s; }
.ink-cover.off { opacity: 0; }

/* Navigation: white type that inverts against whatever is behind it */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  color: #fff; mix-blend-mode: difference;
  pointer-events: none;
}
.nav a, .nav button { pointer-events: auto; }
body.home .nav, body.about .nav { position: absolute; }
.nav__home { display: block; width: 64px; }
.nav__home img { width: 100%; height: auto; }
.nav__links { display: flex; gap: clamp(14px, 2.4vw, 34px); list-style: none; margin: 0; padding: 0; }
.nav__links a {
  text-decoration: none; font-size: 1.125rem; font-weight: 500; letter-spacing: .01em;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { border-bottom-color: currentColor; }
.nav__toggle { display: none; background: none; border: 0; padding: 8px; pointer-events: auto; cursor: pointer; }
.nav__toggle span { display: block; width: 28px; height: 2px; background: #fff; margin: 6px 0; }

@media (max-width: 760px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; align-items: flex-start;
    gap: 10px; padding: 0 var(--gutter); background: #000; mix-blend-mode: normal;
    transform: translateY(-100%); transition: transform .45s cubic-bezier(.7,0,.2,1);
  }
  .nav.is-open { mix-blend-mode: normal; }
  .nav.is-open .nav__links { transform: none; }
  .nav__links a { font-family: var(--display); font-size: 2.6rem; font-weight: 500; }
  .nav__toggle { position: relative; z-index: 2; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 2px solid currentColor; background: transparent; border-radius: 999px;
  font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--solid:hover { background: var(--teal); border-color: var(--teal); color: #fff; }

.display { font-family: var(--display); font-weight: 500; line-height: 1.02; letter-spacing: -.015em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
@keyframes ink-safe { to { opacity: 0; visibility: hidden; } }   /* if the script never runs, the paint clears by itself */

/* a little cinema over the 3D spaces: darker corners and fine grain */
.film { position: fixed; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; background: radial-gradient(ellipse 120% 105% at 50% 46%, transparent 52%, rgba(0,0,0,.3) 100%); }
.film::after { content: ""; position: absolute; inset: -120px; opacity: .075; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.4 -.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain .5s steps(1) infinite; }
@keyframes grain { 0% { transform: translate(0,0); } 25% { transform: translate(-37px,23px); } 50% { transform: translate(41px,-18px); } 75% { transform: translate(-19px,-44px); } }
/* smooth scrolling (Lenis) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
