:root {

  --bg: #000000;
  --fg: #FFFFFF;
  --fg-soft: #D6D6D6;
  --fg-muted: #A6A6A6;
  --line: #262626;
  --line-strong: #333333;
  --pin-label-border: #4D4D4D;
  --outline: #8C8C8C;
  --field-border: #5C5C5C;
  --field-bg: #0D0D0D;
  --red: #FF1A1A;
  --on-red: #000000;
  --red-on-fg: #A10C0C;
  --blue: #2F7BFF;
  --map-filter: none;
  --partner-filter: none;
  --logo-on-dark: block;
  --logo-on-light: none;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --container: 1280px;
  --gutter: 24px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #FFFFFF;
    --fg: #0A0A0A;
    --fg-soft: #3D3D3D;
    --fg-muted: #5E5E5E;
    --line: #E4E4E4;
    --line-strong: #D4D4D4;
    --pin-label-border: #BDBDBD;
    --field-border: #8A8A8A;
    --field-bg: #F5F5F5;
    --red: #A10C0C;
    --on-red: #FFFFFF;
    --red-on-fg: #FF1A1A;
    --blue: #0C4BA1;
    --map-filter: invert(1);
    --partner-filter: brightness(0);
    --logo-on-dark: none;
    --logo-on-light: block;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #FFFFFF;
  --fg: #0A0A0A;
  --fg-soft: #3D3D3D;
  --fg-muted: #5E5E5E;
  --line: #E4E4E4;
  --line-strong: #D4D4D4;
  --pin-label-border: #BDBDBD;
  --field-border: #8A8A8A;
  --field-bg: #F5F5F5;
  --red: #A10C0C;
  --on-red: #FFFFFF;
  --red-on-fg: #FF1A1A;
  --blue: #0C4BA1;
  --map-filter: invert(1);
  --partner-filter: brightness(0);
  --logo-on-dark: none;
  --logo-on-light: block;
  color-scheme: light;
}

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--fg); }
a:hover { color: var(--red); }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

h1, h2 { margin: 0; font-family: var(--font-display); font-weight: 600; }
p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
}
.red { color: var(--red); }

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 12px 18px;
  background: var(--fg);
  color: var(--bg);
  font-weight: 600;
}
.skip-link:focus { top: 16px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0;
  cursor: pointer;
}
.btn-primary {
  min-height: 56px;
  padding: 0 28px;
  background: var(--red);
  color: var(--on-red);
  border: 0;
}
.btn-primary:hover { background: var(--fg); color: var(--bg); }
.btn-primary:disabled { opacity: .6; cursor: progress; }
.btn-outline {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--fg);
  font-weight: 500;
}
.btn-outline:hover { border-color: var(--red); }

.btn-outline { position: relative; }
.btn-outline::after {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1px;
  pointer-events: none;
  background: linear-gradient(125deg, transparent 38%, var(--red) 38% 62%, transparent 62%) no-repeat;
  background-size: 80px 100%;
  background-position: -80px 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
@media (prefers-reduced-motion: no-preference) {
  .btn-outline::after { animation: border-sweep 4s infinite; }
}
@keyframes border-sweep {
  0% { background-position: -80px 0; animation-timing-function: cubic-bezier(0.19, 1, 0.22, 1); }
  30%, 100% { background-position: calc(100% + 80px) 0; }
}
.btn-blue {
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid var(--blue);
  color: var(--blue);
}
.btn-blue:hover { background: var(--blue); color: var(--bg); }
.link-blue {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.link-blue:hover { color: var(--fg); }

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--fg);
  text-decoration: none;
}
.lockup img { width: 56px; height: 56px; flex: none; }
.lockup .logo-on-dark { display: var(--logo-on-dark); }
.lockup .logo-on-light { display: var(--logo-on-light); }
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.wordmark .red { color: var(--red); }
.lockup:hover { color: var(--fg); }

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  padding-block: 24px;
}
.site-header > .lockup { margin-right: auto; }
.header-tools { display: flex; align-items: center; gap: 32px; }
.header-book { font-size: 15px; font-weight: 500; }
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 32px;
  font-size: 15px;
  font-weight: 500;
}

.lang { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.lang select {
  height: 44px;
  padding: 0 10px;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--field-border);
  border-radius: 0;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}
.lang select:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.theme-menu { display: inline-flex; border: 1px solid var(--field-border); }
.theme-menu[hidden] { display: none; }
.theme-menu button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
}
.theme-menu button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.theme-menu button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; position: relative; }
.site-nav a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

@media (max-width: 639.98px) {
  .site-header { column-gap: 10px; }
  .site-header > .lockup { gap: 8px; }
  .site-header .lockup img { width: 40px; height: 40px; }
  .site-header .wordmark { font-size: 18px; }
  .header-tools { order: 1; gap: 8px; }
  .site-nav { order: 2; width: 100%; column-gap: 12px; justify-content: space-between; font-size: 14px; }
  .header-book { order: 3; }
  .lang { gap: 4px; }
  .lang svg { width: 16px; height: 16px; }
  .lang select { height: 32px; padding: 0 4px; font-size: 13px; }
  .theme-menu button { width: 28px; height: 30px; }
  .theme-menu svg { width: 16px; height: 16px; }
}

.hero { display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; }
.hero-content, .map-clip { grid-area: 1 / 1; }

.hero-content {
  position: relative;
  z-index: 1;
  align-self: end;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 0 var(--gutter) 48px;

  padding-top: calc(max(100vw, min(2200px, 250vw)) * 0.33 + 32px);
  pointer-events: none;

  text-shadow: 0 0 3px var(--bg), 0 0 8px var(--bg), 0 0 16px var(--bg), 0 0 24px var(--bg);
}
.hero-content > * { pointer-events: auto; }
.hero-content .btn-primary { text-shadow: none; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
}
.hero h1 {
  font-size: clamp(34px, 8.2vw, 116px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero h1 > span { display: block; }
.hero-lede {
  max-width: 720px;
  font-size: 20px;
  line-height: 1.5;
  color: var(--fg-soft);
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

@media (min-width: 1280px) {
  .hero-content {
    align-items: flex-end;
    padding-top: calc(max(100vw, 2200px) * 0.095);
  }
  .hero-content > * { width: min(100%, 600px); }
  .hero h1 { font-size: 64px; }
}

.map-clip { min-width: 0; overflow: hidden; perspective: 1200px; }
.map-enter {
  width: max(100%, min(2200px, 250vw));
  margin-left: min(0px, calc((100% - min(2200px, 250vw)) * 0.26));
  transform-style: preserve-3d;
}
.map {
  --rx: 12deg;
  --ry: 10deg;
  position: relative;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .35s ease-out;
  will-change: transform;
}
.map > img {
  width: 100%;
  aspect-ratio: 3600 / 1575;
  opacity: 0.42;
  filter: var(--map-filter);
}

@keyframes map-enter {
  from { opacity: 0; transform: rotateX(22deg) rotateY(18deg) scale(1.08); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .map-enter { animation: map-enter 1.4s cubic-bezier(.2, .7, .2, 1) both; }
}

.pin {
  position: absolute;
  width: 0;
  height: 0;
}
.pin-halo, .pin-core { position: absolute; border-radius: 50%; background: var(--red); }
.pin-halo {
  left: -28px; top: -28px;
  width: 56px; height: 56px;
  animation: pin-halo 2.4s cubic-bezier(.2, .6, .3, 1) infinite backwards;
}
.pin-core {
  left: -9px; top: -9px;
  width: 18px; height: 18px;
  border: 3px solid #FFFFFF;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .6);
  animation: pin-core 2.4s ease-in-out infinite backwards;
}
.pin-halo, .pin-core { animation-delay: var(--delay, 0s); }
.pin-label {
  position: absolute;
  left: 0;
  bottom: 18px;
  transform: translateX(-50%);
  padding: 2px 8px;
  background: var(--bg);
  border: 1px solid var(--pin-label-border);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.5;
  white-space: nowrap;
}

@keyframes pin-halo {
  0% { transform: scale(.35); opacity: .6; }
  75%, 100% { transform: scale(1); opacity: 0; }
}
@keyframes pin-core {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}
@media (prefers-reduced-motion: reduce) {
  .pin-halo, .pin-core { animation: none; }
  .pin-halo { opacity: .25; }
}

.cities { padding-bottom: 96px; }
.cities ul {
  list-style: none;
  margin: 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line-strong);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  gap: 24px 32px;
}
@media (max-width: 639.98px) {
  .cities ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .city-meta { overflow-wrap: anywhere; }
}
.cities li { display: flex; flex-direction: column; gap: 16px; }
.city-text { display: flex; flex-direction: column; gap: 4px; }
.city-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
}
.city-time { font-family: var(--font-mono); font-size: 14px; font-weight: 500; }
.city-time:empty { display: none; }
.city-meta { font-family: var(--font-mono); font-size: 13px; color: var(--fg-muted); }

.clock {
  position: relative;
  width: 64px;
  height: 64px;
  border: 1px solid var(--outline);
  border-radius: 50%;
}
.clock-hand {
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 2px;
  margin-left: -1px;
  background: var(--fg);
  transform-origin: 50% 100%;
  animation: clock-spin linear infinite;
}
.clock:not(.is-set) .clock-hand { display: none; }
.clock-hour { height: 16px; animation-duration: 43200s; animation-delay: var(--hour, 0s); }
.clock-min { height: 25px; animation-duration: 3600s; animation-delay: var(--min, 0s); }
.clock-sec {
  width: 1px;
  height: 28px;
  margin-left: -0.5px;
  background: var(--red);
  animation-duration: 60s;
  animation-delay: var(--sec, 0s);
}
.clock-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--red);
}
@keyframes clock-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .clock-sec { display: none !important; } }

.section { border-top: 1px solid var(--line); }
.section > .container { padding-block: 96px; }
.section h2 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.principles > .container { display: flex; flex-direction: column; gap: 56px; }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 80px;
}
.section-head p { flex: 0 1 520px; font-size: 19px; color: var(--fg-soft); text-wrap: pretty; }
.principle-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 40px 32px;
}
.principle-list li {
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding-top: 20px;
  border-top: 2px solid var(--fg);
}
.principle-index { font-family: var(--font-mono); font-size: 14px; color: var(--red); }
.principle-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.highlights > .container { display: flex; flex-direction: column; gap: 48px; }
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, max(280px, calc((100% - 32px) / 3))), 1fr));
  gap: 16px;
}
.highlight {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  min-height: 180px;
  padding: 32px;
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
  transition: opacity .15s;
}
.highlight:hover { color: var(--bg); opacity: .88; }
.highlight-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.highlight-title { display: flex; flex-direction: column; gap: 8px; }
.highlight-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.highlight-dot { color: var(--red-on-fg); }
.highlight-kind {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.highlight-mark { flex: none; width: 56px; height: 56px; }
.highlight-tagline {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
}
.highlight-tagline > span { display: block; }
.highlight-domain { font-family: var(--font-mono); font-size: 13px; font-weight: 500; }

.partners > .container { display: flex; flex-direction: column; gap: 48px; }
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 16px;
}
.partner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 180px;
  padding: 32px;
  border: 1px solid var(--line-strong);
  text-decoration: none;
  transition: border-color .15s;
}
.partner:hover { border-color: var(--fg); color: var(--fg); }
.partner-logo { align-self: flex-start; height: 36px; width: auto; max-width: 100%; filter: var(--partner-filter); }
.partner-domain {
  align-self: flex-end;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-muted);
}

.contact > .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 56px 96px;
}
.contact-info { display: flex; flex-direction: column; gap: 32px; }
.contact-info > p { max-width: 460px; font-size: 19px; color: var(--fg-soft); text-wrap: pretty; }
.contact-item { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.contact-item + .contact-item { gap: 12px; }
.contact-email {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-form { display: flex; flex-direction: column; gap: 24px; }
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 24px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; color: var(--fg-soft); }
.field input, .field textarea {
  width: 100%;
  padding: 0 16px;
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: 0;
  color: var(--fg);
  font: inherit;
}
.field input { height: 52px; }
.field textarea { padding-block: 14px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 2px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form-note { font-size: 14px; color: var(--fg-muted); }
.form-status { padding: 14px 16px; font-size: 15px; }
.form-status[hidden] { display: none; }

.form-status:target { display: block; }
.cf-turnstile { min-height: 65px; }
.form-status.is-success { border: 1px solid var(--blue); }
.form-status.is-error { border: 1px solid var(--red); }

.site-footer { border-top: 1px solid var(--line); }
.site-footer > .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  padding-block: 40px 56px;
}
.site-footer .wordmark { font-size: 18px; }
.site-footer p { font-size: 14px; color: var(--fg-soft); }
.site-footer p a { color: var(--fg-soft); }
.site-footer p a:hover { color: var(--red); }
