@font-face {
  font-family: 'Sk-Modernist';
  src: url('assets/fonts/Sk-Modernist-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sk-Modernist Mono';
  src: url('assets/fonts/Sk-Modernist-Mono.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000000;
  --fg: #ffffff;
  --fg-dim: rgba(255,255,255,0.45);
  --fg-dimmer: rgba(255,255,255,0.25);
  --font-main: 'Sk-Modernist';
  --font-mono: 'Sk-Modernist Mono';
}

* { margin: 0; padding: 0; box-sizing: border-box; cursor: none; }

::selection {
  color: #ffffff;
  background: #000000;
}

html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-mono);
}

html {
  scrollbar-gutter: stable;
  overflow-y: scroll;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body:not(.legal-page) {
  height: 100vh;
  overflow: hidden;
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 9999;
  transform: translate3d(-100px, -100px, 0);
  transition: transform 0.06s linear, width 0.15s ease, height 0.15s ease;
}
.cursor.hover { width: 34px; height: 34px; }

@media (hover: none) {
  .cursor { display: none; }
  * { cursor: auto; }
}

.site-nav {
  position: fixed;
  top: clamp(20px, 4vw, 36px);
  left: 0;
  right: 0;
  z-index: 10;
  height: clamp(56px, 9vw, 96px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: clamp(10px, 2.4vw, 16px);
  pointer-events: none; /* let clicks pass through the empty grid tracks */
}

.site-nav a.nav-link {
  pointer-events: auto;
  color: var(--fg);
  text-decoration: none;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: clamp(12px, 2vw, 13px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.site-nav a.nav-link:first-child { justify-self: end; }
.site-nav a.nav-link:last-child { justify-self: start; }
.site-nav a.nav-link:hover { color: var(--fg-dim); }
.site-nav a:focus-visible { outline: 1px solid var(--fg); outline-offset: 3px; }

.site-logo {
  pointer-events: auto;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(56px, 9vw, 96px);
  height: clamp(56px, 9vw, 96px);
  color: var(--fg);
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1;
  text-decoration: none;
  flex-shrink: 0;
}

.lang-switch {
  flex-shrink: 0;
}

.lang-switch select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 1px solid var(--fg-dimmer);
  color: var(--fg-dim);
  font-family: var(--font-main);
  font-weight: 400;
  font-size: clamp(11px, 1.4vw, 12px);
  letter-spacing: 0.04em;
  padding: clamp(4px, 1vw, 6px) 26px clamp(4px, 1vw, 6px) clamp(10px, 2vw, 12px);
  border-radius: 999px;
  cursor: pointer;
}

.lang-switch {
  position: relative;
}

.lang-switch::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 1px solid var(--fg-dim);
  border-bottom: 1px solid var(--fg-dim);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.lang-switch select:focus-visible {
  outline: 1px solid var(--fg);
  outline-offset: 2px;
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(20px, 6vw, 24px);
  text-align: center;
}

main.scroll-main {
  display: block;
  align-items: initial;
  justify-content: initial;
  text-align: initial;
  flex: 1;
  overflow: hidden;
  padding: 0;
  width: 100%;
  min-height: 0;
}

.scroll-container {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.scroll-container::-webkit-scrollbar { display: none; }

.panel {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
}

.panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}


@media (min-width: 769px) {
  .panel.portrait {
    flex: 0 0 auto;
    width: auto;
    height: 100%;
  }
  .panel.portrait img {
    position: static;
    inset: auto;
    width: auto;
    height: 100%;
    display: block;
  }
}

@media (max-width: 768px) {
  html, body {
    height: auto;
  }

  body:not(.legal-page) {
    height: auto;
    overflow: visible;
  }

  main.scroll-main {
    display: block;
    flex: none;
    overflow: visible;
    height: auto;
  }

  .scroll-container {
    display: block;
    overflow: visible;
    height: auto;
    touch-action: pan-y;
  }

  .panel,
  .panel.portrait {
    display: block;
    width: 100%;
    height: 100vh;
    height: 100dvh;
  }

  .panel.portrait img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 20;
    background: var(--bg);
  }


  main.legal {
    padding-bottom: 64px;
  }
}

h1 {
  font-family: var(--font-main);
  font-weight: 400;
  font-size: clamp(1.5rem, 6vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  max-width: 18ch;
}

body.legal-page {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --fg-dim: rgba(0,0,0,0.62);
  --fg-dimmer: rgba(0,0,0,0.38);
  background: var(--bg);
  color: var(--fg);
}

main.legal {
  justify-content: center;
  text-align: left;
  padding: clamp(40px, 8vw, 90px) clamp(12px, 4vw, 24px) clamp(32px, 5vw, 48px);
}

.content {
  width: 100%;
  max-width: 860px;
}

.legal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(12px, 3vw, 20px);
  margin-bottom: clamp(24px, 5vw, 40px);
}

main.legal h1 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  max-width: none;
  margin-bottom: 0;
}

.legal-block p,
.legal-content h2,
.legal-content h3,
.legal-content p,
.legal-content li {
  font-family: var(--font-mono);
  font-size: clamp(13px, 2vw, 14px);
}

.legal-block p {
  line-height: 1.4;
  color: var(--fg-dim);
}

.legal-block p.muted {
  color: var(--fg-dimmer);
  font-style: italic;
}

.legal-block .gap {
  height: clamp(16px, 3vw, 20px);
}

.legal-block p.local-time {
  margin-top: clamp(10px, 2vw, 14px);
  color: var(--fg-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}

.legal-block p.local-time::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2ecc71;
  flex-shrink: 0;
}

.legal-block p.local-time #localTime {
  font-variant-numeric: tabular-nums;
  color: var(--fg-dim);
}

.legal-content { display: none; }
.legal-content.active { display: block; }

.legal-content h2 {
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg);
  line-height: 1.4;
  margin: clamp(34px, 6vw, 48px) 0 clamp(10px, 2vw, 14px);
}
.legal-content h2:first-child { margin-top: 0; }

.legal-content h3 {
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg);
  line-height: 1.4;
  margin: clamp(22px, 4vw, 28px) 0 10px;
}

.legal-content p {
  font-weight: 400;
  line-height: 1.35;
  color: var(--fg-dim);
  margin-bottom: clamp(22px, 4.5vw, 32px);
}

.legal-content strong {
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--fg);
}

.legal-content ul {
  margin: 0 0 clamp(22px, 4.5vw, 32px) 1.2em;
  color: var(--fg-dim);
}
.legal-content li {
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 10px;
}

.legal-content a { color: var(--fg-dim); }
.legal-content a:hover { color: var(--fg); }

.legal-content .source-note {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11px;
  color: var(--fg-dimmer);
  margin-top: 8px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 3vw, 22px);
  max-width: 480px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-family: var(--font-main);
  font-weight: 400;
  font-size: clamp(11px, 1.4vw, 12px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.form-field input,
.form-field textarea {
  font-family: var(--font-mono);
  font-size: clamp(13px, 2vw, 14px);
  color: var(--fg);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--fg-dimmer);
  padding: clamp(6px, 1.4vw, 8px) 2px;
  cursor: text;
}

.form-field input.invalid,
.form-field textarea.invalid {
  border-color: #c0392b;
}

.field-error {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.6vw, 12px);
  color: #c0392b;
  min-height: 1.3em;
  margin-top: 4px;
}

.form-field .iti {
  width: 100%;
}
.form-field .iti input.invalid {
  border-color: #c0392b;
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
  border: 1px solid var(--fg-dimmer);
  border-radius: 6px;
  padding: clamp(10px, 2vw, 12px);
}

.form-field input:focus-visible,
.form-field textarea:focus-visible {
  outline: 1px solid var(--fg);
  outline-offset: 2px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--fg-dimmer);
}

.contact-form button.back {
  align-self: flex-start;
  cursor: pointer;
}

.form-note {
  margin-top: clamp(10px, 2vw, 14px);
  font-family: var(--font-mono);
  font-size: clamp(12px, 1.8vw, 13px);
  color: var(--fg-dim);
  max-width: 480px;
  min-height: 1.4em;
}

.back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: clamp(32px, 7vw, 48px);
  padding: clamp(8px, 1.6vw, 10px) clamp(20px, 4vw, 26px);
  border: 1px solid var(--fg-dimmer);
  border-radius: 999px;
  color: var(--fg-dim);
  text-decoration: none;
  font-family: var(--font-main);
  font-weight: 400;
  font-size: clamp(11px, 1.4vw, 12px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: transparent;
}
.back:hover { color: var(--fg); border-color: var(--fg-dim); }
.back:focus-visible { outline: 1px solid var(--fg); outline-offset: 2px; }

footer {
  padding: clamp(14px, 3.5vw, 20px) 16px;
  display: flex;
  justify-content: center;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(8px, 2vw, 12px);
  max-width: 100%;
}

.footer-row a,
.footer-row .copyright {
  color: var(--fg-dim);
  text-decoration: none;
  font-family: var(--font-main);
  font-weight: 400;
  font-size: clamp(9px, 1.8vw, 10px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.footer-row a:hover { color: var(--fg); }

footer .divider {
  color: var(--fg-dimmer);
  font-size: clamp(9px, 1.8vw, 10px);
  line-height: 1;
}

:focus-visible { outline: 1px solid var(--fg); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .cursor { transition: none; }
}

@media (max-width: 480px) {
  main.legal {
    padding-top: 40px;
    padding-left: 12px;
    padding-right: 12px;
    padding-bottom: 28px;
  }

  .legal-top {
    margin-bottom: 20px;
  }

  .legal-content h2 {
    margin-top: 26px;
  }

  .legal-content h3 {
    margin-top: 18px;
  }

  footer {
    padding: 12px 10px;
  }

  .footer-row {
    gap: 6px;
  }

  .site-nav {
    top: 12px;
  }
}

@media (max-width: 340px) {
  h1 { font-size: clamp(1.3rem, 7vw, 2rem); }
  main.legal h1 { font-size: 1.3rem; }
  .legal-content p, .legal-content ul, .legal-content li { font-size: 12.5px; }
  footer a, .footer-row .copyright { font-size: 10px; }
}