@font-face {
  font-family: "Manrope Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/fonts/manrope-latin.woff2") format("woff2-variations");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/fonts/cormorant-garamond-latin-400.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --bg: #050505;
  --ink: #f2f0eb;
  --ink-soft: #a8a49e;
  --rule: #292824;
  --accent: #d8d4ca;
  --font-headline: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope Variable", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

button,
input,
textarea,
select { font: inherit; }

::selection {
  background: var(--ink);
  color: var(--bg);
}

.public-body {
  min-height: 100svh;
  overflow-x: hidden;
}

.public-body::before {
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 72% 36%, color-mix(in srgb, var(--ink) 4%, transparent), transparent 30%),
    linear-gradient(135deg, transparent 0 48%, color-mix(in srgb, var(--ink) 2%, transparent) 50%, transparent 52%);
}

.ambient-field {
  position: fixed;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.82;
}

.site-shell {
  --gutter: clamp(24px, 4vw, 64px);
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100svh;
  grid-template-rows: auto 1fr auto;
  padding: 0 var(--gutter);
}

.public-header,
.public-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: clamp(68px, 9vh, 92px);
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.public-header {
  border-bottom: 1px solid var(--rule);
}

.monogram {
  color: var(--ink);
  font-family: var(--font-headline);
  font-size: 20px;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
}

.discipline {
  margin: 0;
}

.public-main {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 2.15fr) minmax(260px, 0.85fr);
  grid-template-areas:
    "identity credentials"
    "about about"
    "links links";
  align-items: stretch;
}

.identity {
  grid-area: identity;
  display: flex;
  min-height: clamp(420px, 67vh, 760px);
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: clamp(38px, 6vh, 80px) clamp(24px, 5vw, 84px) clamp(38px, 6vh, 80px) 0;
}

.location {
  min-height: 1.5em;
  margin: 0 0 clamp(20px, 4vh, 42px);
  color: var(--ink-soft);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.location:empty { visibility: hidden; }

.identity h1 {
  max-width: 8ch;
  margin: 0;
  font-family: var(--font-headline);
  font-size: clamp(112px, 15.2vw, 244px);
  font-weight: 400;
  letter-spacing: -0.073em;
  line-height: 0.66;
  text-wrap: balance;
}

.identity h1 span {
  display: inline-block;
}

.credentials {
  grid-area: credentials;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(38px, 6vh, 80px) 0 clamp(38px, 6vh, 80px) clamp(28px, 4vw, 64px);
  border-left: 1px solid var(--rule);
}

.credentials[hidden],
.about[hidden],
.links-wrap[hidden] { display: none; }

.credentials h2,
.about h2,
.links-wrap h2 {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.credentials dl {
  margin: 0;
  border-top: 1px solid color-mix(in srgb, var(--rule) 80%, transparent);
}

.credential-row {
  padding: 17px 0 18px;
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 80%, transparent);
}

.credential-row dt {
  margin: 0 0 6px;
  color: var(--ink-soft);
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.credential-row dd {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-headline);
  font-size: clamp(21px, 2vw, 30px);
  line-height: 1.08;
}

.about,
.links-wrap {
  display: grid;
  grid-template-columns: minmax(160px, 0.65fr) minmax(0, 2.35fr);
  padding: clamp(48px, 7vw, 96px) 0;
  border-top: 1px solid var(--rule);
}

.about { grid-area: about; }
.links-wrap { grid-area: links; }

.about [data-slot="about"] {
  max-width: 720px;
  font-family: var(--font-headline);
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.18;
}

.about p { margin: 0 0 0.7em; }

.links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.links li { border-top: 1px solid var(--rule); }
.links li:last-child { border-bottom: 1px solid var(--rule); }

.links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  text-decoration: none;
}

.links .arrow {
  color: var(--ink-soft);
  transition: transform 220ms ease, color 220ms ease;
}

.links a:hover .arrow,
.links a:focus-visible .arrow {
  color: var(--ink);
  transform: translate(4px, -2px);
}

.public-footer {
  min-height: clamp(52px, 7vh, 72px);
  border-top: 1px solid var(--rule);
}

.public-footer span:empty { display: none; }

.noscript-note {
  position: fixed;
  right: 24px;
  bottom: 18px;
  z-index: 4;
  margin: 0;
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.no-fouc .site-shell { opacity: 0; }
.site-shell { transition: opacity 240ms ease; }

.public-body[data-ready="true"] .monogram,
.public-body[data-ready="true"] .discipline,
.public-body[data-ready="true"] .identity h1,
.public-body[data-ready="true"] .credentials {
  animation: reveal 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.public-body[data-ready="true"] .discipline { animation-delay: 60ms; }
.public-body[data-ready="true"] .identity h1 { animation-delay: 90ms; }
.public-body[data-ready="true"] .credentials { animation-delay: 160ms; }

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 5px;
}

#ios-install-hint {
  position: fixed;
  z-index: 80;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid var(--rule);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  color: var(--ink);
  font-size: 12px;
  backdrop-filter: blur(14px);
}

#ios-install-hint button {
  flex-shrink: 0;
  padding: 6px 12px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.not-found {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 24px;
}

.not-found main {
  width: min(760px, 100%);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: clamp(44px, 8vw, 96px) 0;
}

.not-found h1 {
  margin: 0 0 24px;
  font-family: var(--font-headline);
  font-size: clamp(72px, 12vw, 154px);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.85;
}

.not-found p { color: var(--ink-soft); }
.not-found a { color: var(--ink); }

@media (max-width: 760px) {
  .site-shell { --gutter: 20px; }

  .public-header { min-height: 62px; }

  .public-main {
    grid-template-columns: 1fr;
    grid-template-areas:
      "identity"
      "credentials"
      "about"
      "links";
  }

  .identity {
    min-height: min(56svh, 520px);
    padding: 34px 0 40px;
  }

  .location { margin-bottom: 20px; }

  .identity h1 {
    font-size: clamp(80px, 24vw, 132px);
    line-height: 0.69;
  }

  .credentials {
    padding: 30px 0 34px;
    border-top: 1px solid var(--rule);
    border-left: 0;
  }

  .credential-row {
    display: grid;
    grid-template-columns: 84px 1fr;
    align-items: baseline;
    gap: 14px;
  }

  .credential-row dt { margin: 0; }

  .about,
  .links-wrap {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 44px 0;
  }

  .public-footer {
    min-height: 58px;
    font-size: 8px;
  }
}

@media (max-height: 640px) and (min-width: 761px) {
  .identity { min-height: 390px; }
  .identity h1 { font-size: clamp(96px, 13vw, 176px); }
  .public-header { min-height: 58px; }
  .public-footer { min-height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
