@font-face {
  font-family: "DM Sans Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url("/assets/fonts/dm-sans-variable.woff2") format("woff2-variations");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("/assets/fonts/barlow-condensed-600.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("/assets/fonts/barlow-condensed-700.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --ink: #101010;
  --ink-soft: #191919;
  --brand: rgb(60, 60, 60);
  --paper: #f2f1ed;
  --paper-muted: #aaa9a4;
  --line-light: rgba(255, 255, 255, 0.14);
  --line-dark: rgba(13, 13, 13, 0.18);
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "DM Sans Variable", "Aptos", sans-serif;
  --side: clamp(1.25rem, 4vw, 4.5rem);
  --page-rail: min(1760px, calc(100% - (var(--side) * 2)));
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

html { background: var(--ink); scroll-behavior: smooth; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
}

button { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--brand); color: #fff; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.75rem 1rem;
  transform: translateY(-150%);
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
}

.skip-link:focus { transform: translateY(0); }

.contact-card { min-height: 100vh; overflow: clip; }

.topbar {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--side);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(16, 16, 16, 0.92);
  backdrop-filter: blur(16px);
}

.brand-link { display: block; width: 78px; height: 62px; }
.brand-link img { width: 100%; height: 100%; object-fit: contain; filter: brightness(0) invert(1); }
.brand-logo-mark { display: none; }

.topbar-meta {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 2.6vw, 3rem);
  color: rgba(255, 255, 255, 0.58);
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.085em;
  line-height: 1;
  text-transform: uppercase;
}

.install-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line-light);
  border-radius: 7px;
  background: transparent;
  color: var(--paper);
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
}

.install-trigger[hidden] { display: none; }
.install-trigger svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.install-trigger:hover { border-color: var(--paper); background: var(--paper); color: var(--ink); }

.language-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
}

.language-flag {
  display: block;
  width: 28px;
  height: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.language-flag svg { display: block; width: 100%; height: 100%; }

.language-link::after {
  position: absolute;
  right: 0;
  bottom: -0.35rem;
  left: 0;
  height: 2px;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  background: var(--paper);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.language-link:hover::after,
.language-link:focus-visible::after { transform: scaleX(1); transform-origin: left; }

.identity {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.58fr);
  width: var(--page-rail);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 7rem);
  margin-inline: auto;
  padding: clamp(8.5rem, 10vw, 11rem) 0 clamp(4.5rem, 6vw, 6.5rem);
}

.eyebrow,
.directory small,
.index {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.identity h1 {
  max-width: 10ch;
  margin: 0 0 1.5rem;
  font-family: var(--body);
  font-size: clamp(3.5rem, 5.4vw, 5.8rem);
  font-weight: 620;
  letter-spacing: -0.065em;
  line-height: 0.96;
}

.role {
  max-width: 23ch;
  margin: 0;
  color: var(--paper);
  font-size: clamp(1.35rem, 1.9vw, 2rem);
  font-weight: 570;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.primary-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2.25rem;
}

.button {
  position: relative;
  display: inline-flex;
  min-width: 240px;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 1.15rem 1rem 1.3rem;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  cursor: pointer;
}

.button > * { position: relative; z-index: 1; }

.button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.button-primary { background: var(--paper); color: var(--ink); }

.button-primary::before {
  position: absolute;
  inset: 0;
  content: "";
  transform: translateX(-102%);
  background: #fff;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.button-primary:hover::before,
.button-primary:focus-visible::before { transform: translateX(0); }

.share-button {
  min-width: 190px;
  justify-content: space-between;
  padding: 1rem 1.15rem 1rem 1.3rem;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  background: transparent;
  color: var(--paper);
  transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.share-button svg { width: 22px; flex: 0 0 22px; }
.share-button:hover { border-color: var(--paper); background: var(--paper); color: var(--ink); }
.button:focus-visible, a:focus-visible { outline: 2px solid var(--paper); outline-offset: 4px; }
.status { min-height: 1.2em; margin: 0.8rem 0 0; color: rgba(244, 241, 232, 0.68); font-size: 0.78rem; }
.status:empty { display: none; }

.qr-panel {
  align-self: center;
  width: min(100%, 390px);
  justify-self: end;
  margin: 0;
  padding: clamp(1.25rem, 2.2vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: var(--brand);
  color: var(--paper);
}

.qr-frame { padding: clamp(0.75rem, 1.4vw, 1.25rem); border-radius: 8px; background: #fff; }
.qr-frame img { width: 100%; aspect-ratio: 1; }

.qr-caption {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.qr-caption span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.directory {
  padding: clamp(4.5rem, 7vw, 7rem) var(--side);
  background: var(--ink-soft);
  color: var(--paper);
}

.directory-heading,
.directory-grid { width: min(1760px, 100%); margin-inline: auto; }

.directory-heading {
  display: block;
}

.directory-heading h2 {
  max-width: 12ch;
  margin: 0;
  font-family: var(--body);
  font-size: clamp(3rem, 6.2vw, 7rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 4rem);
  margin-top: clamp(2.5rem, 4vw, 4rem);
}

.directory article {
  display: grid;
  grid-template-columns: auto 1fr;
  min-width: 0;
  min-height: 170px;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-light);
}

.directory .index,
.directory small { color: rgba(244, 241, 232, 0.54); }
.directory small { justify-self: end; }

.directory a {
  grid-column: 1 / -1;
  align-self: end;
  overflow-wrap: anywhere;
  color: var(--paper);
  font-size: clamp(1rem, 1.25vw, 1.25rem);
  font-weight: 570;
  letter-spacing: -0.02em;
  line-height: 1.45;
}

.directory a b { font-weight: 500; }
.directory a:hover { text-decoration: underline; text-underline-offset: 0.3rem; }

.mobile-action { display: none; }

.install-dialog {
  width: min(380px, calc(100vw - 2rem));
  height: fit-content;
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: var(--ink-soft);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.52);
  color: var(--paper);
}

.install-dialog::backdrop { background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(5px); }
.install-dialog[open] { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 1rem; padding: 1.15rem; }
.install-dialog-mark { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 8px; background: var(--brand); }
.install-dialog-mark img { width: 38px; filter: brightness(0) invert(1); }
.install-kicker { margin: 0 0 0.45rem; color: var(--paper-muted); font-family: var(--display); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; }
.install-dialog h2 { margin: 0; font-size: 1.25rem; letter-spacing: -0.035em; line-height: 1.1; }
.install-dialog p:not(.install-kicker) { margin: 0.55rem 0 0; color: var(--paper-muted); font-size: 0.82rem; line-height: 1.45; }
.install-dialog-close {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 38px;
  padding: 0.55rem 0.85rem;
  border: 0;
  border-radius: 7px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}
.install-dialog-close:hover { background: #fff; }

@media (max-width: 980px) {
  .identity { grid-template-columns: minmax(0, 1fr) minmax(290px, 0.7fr); gap: 3rem; }
  .directory-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  :root { --page-rail: calc(100% - 2.5rem); }
  body { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
  .topbar { min-height: 64px; }
  .brand-link { width: 48px; height: 31px; }
  .brand-link .brand-logo-full { display: none; }
  .brand-link .brand-logo-mark { display: block; }
  .topbar-meta > span { display: none; }
  .topbar-meta { font-size: 0.9rem; }
  .install-trigger { width: 36px; height: 36px; justify-content: center; padding: 0; }
  .install-trigger span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .identity {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 7rem 0 5rem;
  }
  .identity h1 { max-width: none; margin-bottom: 1.8rem; font-size: clamp(2.8rem, 13vw, 3.7rem); }
  .role { max-width: none; font-size: 1.18rem; }
  .primary-actions { margin-top: 2rem; }
  .primary-actions { display: none; }
  .qr-panel { width: min(74vw, 320px); justify-self: center; margin-top: 2.75rem; }
  .directory { padding-block: 4rem; }
  .directory-heading h2 { font-size: clamp(2.15rem, 10vw, 2.75rem); }
  .directory-grid { grid-template-columns: 1fr; gap: 0; margin-top: 3rem; }
  .directory article { min-height: 120px; }
  .mobile-action {
    position: fixed;
    z-index: 150;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 0.7rem;
    padding: 0.7rem 0.75rem calc(0.7rem + env(safe-area-inset-bottom));
    background: rgba(16, 16, 16, 0.92);
    backdrop-filter: blur(16px);
  }
  .mobile-action a {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    padding-inline: 1.2rem;
    border-radius: 8px;
    background: var(--paper);
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-transform: uppercase;
  }
  .mobile-action a span:last-child { font-size: 1.4rem; font-weight: 400; }

  .mobile-share-button {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: var(--brand);
    color: var(--paper);
    cursor: pointer;
  }

  .mobile-share-button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
  }
}

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