

:root {
  color-scheme: dark;

  --bg: #000000;
  --surface: #0b0b0b;
  --surface-raised: #141414;
  --overlay: rgba(0, 0, 0, 0.72);

  --line: #232323;
  --line-strong: #3a3a3a;

  --text: #ededed;
  --text-muted: #9a9a9a;
  --text-faint: #6e6e6e;

  --accent: #ffffff;
  --on-accent: #000000;

  --danger: #e5484d;
  --danger-hover: #f2585d;
  --danger-tint: rgba(229, 72, 77, 0.12);
  --on-danger: #ffffff;
  --confirm: #46a758;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas,
    "Liberation Mono", monospace;

  --size-micro: 0.6875rem;
  --size-sm: 0.8125rem;
  --size-base: 0.9375rem;
  --size-md: 1.0625rem;
  --size-lg: 1.375rem;
  --size-xl: 1.75rem;

  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s5: 1.5rem;
  --s6: 2rem;
  --s7: 3rem;
  --s8: 4rem;
  --s9: 6rem;

  --radius-sm: 3px;
  --radius: 6px;
  --shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.7);

  --gutter: 2.5rem;
  --measure-narrow: 34rem;
  --measure-text: 46rem;
  --measure-wide: 72rem;

  --ease: cubic-bezier(0.2, 0, 0, 1);
  --dur: 140ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-slow: 620ms;
}

[data-theme="light"] {
  color-scheme: light;

  --bg: #ffffff;
  --surface: #fafafa;
  --surface-raised: #ffffff;
  --overlay: rgba(255, 255, 255, 0.76);

  --line: #e4e4e4;
  --line-strong: #c4c4c4;

  --text: #101010;
  --text-muted: #5c5c5c;
  --text-faint: #8a8a8a;

  --accent: #000000;
  --on-accent: #ffffff;

  --danger: #c62a2f;
  --danger-hover: #a81f24;
  --danger-tint: rgba(198, 42, 47, 0.08);
  --confirm: #1a7f37;

  --shadow: 0 24px 60px -16px rgba(0, 0, 0, 0.22);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--size-base);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

.label {
  font-family: var(--font-mono);
  font-size: var(--size-micro);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.skip-link {
  position: absolute;
  left: var(--s4);
  top: var(--s4);
  z-index: 200;
  padding: var(--s2) var(--s4);
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--radius-sm);
  font-size: var(--size-sm);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.navbar {
  display: flex;
  align-items: center;
  gap: var(--s5);
  padding: var(--s4) var(--gutter);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-right: auto;
  text-decoration: none;
}

.navbar__logo {
  height: 1.5rem;
  aspect-ratio: 512 / 445;
  flex-shrink: 0;
  background: url("../img/logo.png") center / contain no-repeat;
}

[data-theme="light"] .navbar__logo {
  filter: invert(1);
}

.navbar__name {
  font-size: var(--size-base);
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: var(--s5);
}

.navbar__link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: var(--size-sm);
  padding: var(--s1) 0;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease);
}

.navbar__link:hover {
  color: var(--text);
}

.navbar__link--active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.theme-toggle:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.theme-toggle svg {
  width: 15px;
  height: 15px;
  transition: rotate var(--dur) var(--ease);
}

[data-theme="light"] .theme-toggle svg {
  rotate: 180deg;
}

.page {
  flex: 1;
  width: 100%;
}

.hero {
  padding: var(--s9) var(--gutter) var(--s7);
  border-bottom: 1px solid var(--line);
}

.hero__inner {
  max-width: var(--measure-wide);
  margin: 0 auto;
}

.hero--center .hero__inner {
  max-width: var(--measure-text);
  text-align: center;
}

.hero__eyebrow {
  display: block;
  margin-bottom: var(--s4);
}

.hero__title {
  font-size: clamp(2rem, 1.1rem + 3.6vw, 3.25rem);
  margin-bottom: var(--s4);
}

.hero__subtitle {
  color: var(--text-muted);
  font-size: var(--size-md);
  max-width: 38rem;
}

.hero--center .hero__subtitle {
  margin-inline: auto;
}

.section {
  padding: var(--s8) var(--gutter);
}

.section__inner {
  max-width: var(--measure-wide);
  margin: 0 auto;
}

.section__inner--narrow {
  max-width: 38rem;
}

.section__head {
  padding-bottom: var(--s4);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--s6);
}

.section__head > .label {
  display: block;
  margin-bottom: var(--s3);
}

.section__title {
  font-size: var(--size-xl);
}

.section__lead {
  color: var(--text-muted);
  margin-top: var(--s3);
  max-width: var(--measure-narrow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  padding: 0.6875rem var(--s5);
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  font-size: var(--size-sm);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: opacity var(--dur) var(--ease),
    background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.btn:hover {
  opacity: 0.86;
}

.btn--secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}

.btn--secondary:hover {
  opacity: 1;
  background: var(--surface);
  border-color: var(--text-faint);
}

.btn--block {
  width: 100%;
}

.btn--danger {
  background: transparent;
  border-color: var(--danger);
  color: var(--danger);
}

.btn--danger:hover {
  opacity: 1;
  background: var(--danger-tint);
}

.btn--danger.is-confirming {
  background: var(--danger);
  border-color: var(--danger);
  color: var(--on-danger);
}

.btn--danger.is-confirming:hover {
  background: var(--danger-hover);
}

.btn--danger.is-done {
  background: var(--confirm);
  border-color: var(--confirm);
  color: #ffffff;
}

.link {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-color: var(--line-strong);
  transition: text-decoration-color var(--dur) var(--ease);
}

.link:hover {
  text-decoration-color: currentColor;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s6);
}

.panel__title {
  font-size: var(--size-lg);
  margin-bottom: var(--s5);
}

.panel > * + * {
  margin-top: var(--s4);
}

.panel > .label + * {
  margin-top: var(--s2);
}

.panel > p {
  color: var(--text-muted);
}

.panel__note {
  padding-top: var(--s4);
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: var(--size-sm);
}

.list {
  list-style: none;
}

.list li {
  position: relative;
  padding-left: var(--s5);
  color: var(--text-muted);
  margin-bottom: var(--s2);
}

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 1px;
  background: var(--line-strong);
}

.datum {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s4);
}

.datum__value {
  font-size: var(--size-md);
  font-weight: 600;
  margin-top: var(--s1);
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s4);
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s6);
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease);
}

.plan:hover {
  border-color: var(--line-strong);
}

.plan--featured {
  border-color: var(--text-faint);
}

.plan__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s2);
  margin-bottom: var(--s2);
}

.plan__name {
  font-size: var(--size-lg);
  font-weight: 600;
}

.plan__badge {
  font-family: var(--font-mono);
  font-size: var(--size-micro);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.15rem var(--s2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

.plan__tagline {
  color: var(--text-muted);
  margin-bottom: var(--s5);
}

.plan__price {
  padding-bottom: var(--s4);
  margin-bottom: var(--s4);
  border-bottom: 1px solid var(--line);
}

.plan .list {
  margin-bottom: var(--s5);
}

.plan__cta {
  margin-top: auto;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: var(--size-sm);
  font-weight: 600;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.plan__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}

.plan:has(.plan__cta:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.plan__cta:focus-visible {
  outline: none;
}

.plan__cta::after {
  content: " \2192";
  color: var(--text-faint);
}

.role {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr auto;
  align-items: center;
  gap: var(--s5);
  width: 100%;
  padding: var(--s5) var(--s3);
  margin-inline: calc(var(--s3) * -1);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background var(--dur) var(--ease);
}

.role:hover {
  background: var(--surface);
}

.role__title {
  font-size: var(--size-md);
  font-weight: 600;
}

.role__meta {
  color: var(--text-muted);
  font-size: var(--size-sm);
}

.role__type {
  justify-self: end;
  font-family: var(--font-mono);
  font-size: var(--size-micro);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.2rem var(--s2);
  white-space: nowrap;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3);
}

.field {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.6875rem var(--s3);
  color: var(--text);
  font-size: var(--size-base);
  margin-bottom: var(--s3);
  transition: border-color var(--dur) var(--ease);
}

.field::placeholder {
  color: var(--text-faint);
}

.field:hover {
  border-color: var(--line-strong);
}

.field:focus {
  outline: none;
  border-color: var(--accent);
}

textarea.field {
  resize: vertical;
  min-height: 7rem;
}

select.field {
  cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 1rem center, right 0.7rem center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: var(--s7);
}

select.field option {
  background: var(--bg);
  color: var(--text);
}

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s1);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: var(--s5);
  margin-bottom: var(--s3);
  text-align: center;
  color: var(--text-muted);
  font-size: var(--size-sm);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease),
    background var(--dur) var(--ease);
}

.dropzone:hover {
  border-color: var(--text-faint);
  background: var(--surface);
}

.checkbox {
  display: flex;
  align-items: center;
  gap: var(--s3);
  color: var(--text-muted);
  font-size: var(--size-sm);
  margin: var(--s4) 0 var(--s5);
  cursor: pointer;
}

.checkbox input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent);
  cursor: pointer;
}

.form__note {
  color: var(--text-faint);
  font-size: var(--size-sm);
  margin-top: var(--s3);
  text-align: center;
}

.status {
  min-height: 1.25rem;
  margin-top: var(--s3);
  color: var(--text-muted);
  font-size: var(--size-sm);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s5);
  background: var(--overlay);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  width: 100%;
  max-width: 42rem;
  max-height: 86vh;
  overflow-y: auto;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s6);
  box-shadow: var(--shadow);
  transform: translateY(8px);
  transition: transform var(--dur) var(--ease);
}

.modal--narrow {
  max-width: 32rem;
}

.modal-overlay.is-open .modal {
  transform: none;
}

.modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s4);
  padding-bottom: var(--s4);
  margin-bottom: var(--s5);
  border-bottom: 1px solid var(--line);
}

.modal__title {
  font-size: var(--size-lg);
}

.modal__close {
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: var(--size-sm);
  line-height: 1;
  cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.modal__close:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.modal__body {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--s6);
}

.modal__aside {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  padding-left: var(--s6);
  border-left: 1px solid var(--line);
}

.modal__block {
  margin-bottom: var(--s5);
}

.modal__block > .label {
  display: block;
  margin-bottom: var(--s2);
}

.modal__text {
  color: var(--text-muted);
}

.faq {
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
  padding: var(--s5) 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary:hover {
  color: var(--text-muted);
}

.faq__toggle {
  position: relative;
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}

.faq__toggle::before,
.faq__toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  background: var(--text-faint);
}

.faq__toggle::before {
  width: 11px;
  height: 1px;
}

.faq__toggle::after {
  width: 1px;
  height: 11px;
  transition: scale var(--dur) var(--ease);
}

.faq__item[open] .faq__toggle::after {
  scale: 1 0;
}

.faq__answer {
  color: var(--text-muted);
  padding-bottom: var(--s5);
  max-width: var(--measure-text);
}

.legal {
  flex: 1;
  max-width: var(--measure-text);
  margin: 0 auto;
  padding: var(--s8) var(--gutter) var(--s9);
}

.legal__intro {
  color: var(--text-muted);
  padding-bottom: var(--s6);
  margin-bottom: var(--s6);
  border-bottom: 1px solid var(--line);
}

.legal section {
  margin-bottom: var(--s7);
}

.legal h2 {
  font-size: var(--size-lg);
  margin-bottom: var(--s3);
}

.legal h3 {
  font-size: var(--size-md);
  margin: var(--s5) 0 var(--s2);
}

.legal p {
  color: var(--text-muted);
  margin-bottom: var(--s3);
}

.legal ul {
  list-style: none;
  margin-bottom: var(--s4);
}

.legal li {
  position: relative;
  padding-left: var(--s5);
  color: var(--text-muted);
  margin-bottom: var(--s1);
}

.legal li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 1px;
  background: var(--line-strong);
}

.legal strong {
  color: var(--text);
  font-weight: 600;
}

.legal a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-color: var(--line-strong);
}

.legal a:hover {
  text-decoration-color: currentColor;
}

.legal__contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s5);
}

.legal__contact-card p:last-child {
  margin-bottom: 0;
}

.legal__closing {
  color: var(--text-faint);
  font-size: var(--size-sm);
  padding-top: var(--s6);
  border-top: 1px solid var(--line);
}

.footer {
  border-top: 1px solid var(--line);
  padding: var(--s6) var(--gutter);
}

.footer__inner {
  max-width: var(--measure-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s4);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s5);
}

.footer__link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: var(--size-sm);
  transition: color var(--dur) var(--ease);
}

.footer__link:hover {
  color: var(--text);
}

.footer__copy {
  color: var(--text-faint);
  font-size: var(--size-sm);
}

@media (max-width: 60rem) {
  :root {
    --gutter: 1.5rem;
  }

  .plans,
  .modal__body,
  .form__row {
    grid-template-columns: 1fr;
  }

  .modal__aside {
    padding-left: 0;
    padding-top: var(--s5);
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .hero {
    padding-top: var(--s8);
  }

  .role {
    grid-template-columns: 1fr auto;
    gap: var(--s2) var(--s4);
  }

  .role__type {
    grid-row: 1;
    grid-column: 2;
  }
}

@media (max-width: 40rem) {
  .navbar {
    flex-wrap: wrap;
    gap: var(--s3) var(--s4);
  }

  .navbar__links {
    order: 3;
    width: 100%;
    gap: var(--s4);
    justify-content: space-between;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 5rem;
}

html,
body,
.modal {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.modal::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.js [data-reveal] {
  opacity: 0;
  translate: 0 14px;
  transition: opacity var(--dur-slow) var(--ease-out),
    translate var(--dur-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, translate;
}

.js [data-reveal].is-visible {
  opacity: 1;
  translate: none;
  will-change: auto;
}

[data-reveal-group] > * {
  --reveal-delay: 0ms;
}

[data-reveal-group] > *:nth-child(2) { --reveal-delay: 70ms; }
[data-reveal-group] > *:nth-child(3) { --reveal-delay: 140ms; }
[data-reveal-group] > *:nth-child(4) { --reveal-delay: 210ms; }
[data-reveal-group] > *:nth-child(5) { --reveal-delay: 280ms; }
[data-reveal-group] > *:nth-child(6) { --reveal-delay: 350ms; }
[data-reveal-group] > *:nth-child(7) { --reveal-delay: 420ms; }
[data-reveal-group] > *:nth-child(8) { --reveal-delay: 490ms; }
[data-reveal-group] > *:nth-child(9) { --reveal-delay: 560ms; }

.hero--full {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100svh - 3.9rem);
  padding-block: var(--s9);
}

.hero--full .hero__inner {
  width: 100%;
}

.scroll-cue {
  width: 1.5rem;
  height: 2.5rem;
  position: absolute;
  left: 50%;
  bottom: var(--s6);
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s2);
  color: var(--text-faint);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.scroll-cue:hover {
  color: var(--text);
}

.scroll-cue::after {
  content: "";
  width: 1px;
  height: 2rem;
  background: linear-gradient(to bottom, var(--line-strong), transparent);
  animation: cue 2.4s var(--ease-out) infinite;
  transform-origin: top;
}

@keyframes cue {
  0% { scale: 1 0.35; opacity: 0; }
  40% { scale: 1 1; opacity: 1; }
  100% { scale: 1 1; opacity: 0; }
}

.faq__item[open] .faq__answer {
  animation: faq-in 320ms var(--ease-out) both;
}

@keyframes faq-in {
  from { opacity: 0; translate: 0 -4px; }
  to { opacity: 1; translate: none; }
}

.modal {
  scale: 0.985;
  transition: transform var(--dur) var(--ease), scale var(--dur) var(--ease),
    opacity var(--dur) var(--ease);
  opacity: 0;
}

.modal-overlay.is-open .modal {
  scale: 1;
  opacity: 1;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s4);
}

.tile {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease);
}

.tile:hover {
  border-color: var(--line-strong);
}

@media (max-width: 60rem) {
  .tiles {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js [data-reveal],
  .js [data-reveal].is-visible {
    opacity: 1;
    translate: none;
    transition: none;
  }

  .scroll-cue::after,
  .faq__item[open] .faq__answer {
    animation: none;
  }
}

[hidden] {
  display: none !important;
}

.hero__rule {
  width: 2.5rem;
  height: 1px;
  margin: var(--s5) auto 0;
  background: var(--line-strong);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s2);
  padding-bottom: var(--s6);
  margin-bottom: var(--s6);
  border-bottom: 1px solid var(--line);
}

.filter {
  padding: 0.4375rem var(--s4);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: var(--size-sm);
  cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease),
    background var(--dur) var(--ease);
}

.filter:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.filter[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.work {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
}

.work-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease);
}

.work-card:hover {
  border-color: var(--line-strong);
}

.work-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.work-card__count {
  position: absolute;
  right: var(--s3);
  bottom: var(--s3);
  padding: 0.15rem var(--s2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.work-card__play {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--text);
}

.work-card__play svg {
  width: 12px;
  height: 12px;
  margin-left: 2px;
}

.work-card__body {
  padding: var(--s5);
}

.work-card__tag {
  display: block;
  margin-bottom: var(--s2);
}

.work-card__title {
  font-size: var(--size-md);
  margin-bottom: var(--s2);
}

.work-card__desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text-muted);
  font-size: var(--size-sm);
}

.work__empty {
  padding: var(--s8) 0;
  text-align: center;
  color: var(--text-muted);
}

@media (max-width: 60rem) {
  .work {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 40rem) {
  .work {
    grid-template-columns: 1fr;
  }
}

.turnstile {
  margin: 0;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

.navbar__account {
  display: inline-flex;
  flex-shrink: 0;
  line-height: 0;
  border-radius: 50%;
}

.navbar__avatar {
  width: 1.625rem;
  height: 1.625rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  object-fit: cover;
  transition: border-color var(--dur) var(--ease);
}

.navbar__account:hover .navbar__avatar {
  border-color: var(--line-strong);
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s3);
  padding-bottom: var(--s6);
  border-bottom: 1px solid var(--line);
}

.profile__avatar {
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  object-fit: cover;
}

.profile__name {
  font-size: clamp(1.75rem, 1rem + 2.4vw, 2.5rem);
}

.profile__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-top: var(--s6);
}

.notice {
  padding: var(--s3) var(--s4);
  margin-bottom: var(--s5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: var(--size-sm);
}

.notice--ok {
  border-color: var(--confirm);
  color: var(--confirm);
}

.notice--err {
  border-color: var(--danger);
  color: var(--danger);
}

.admin-list {
  list-style: none;
}

.admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--line);
}

.admin-row:last-child {
  border-bottom: 0;
}

.admin-row__id {
  font-family: var(--font-mono);
  font-size: var(--size-sm);
  word-break: break-all;
}

.admin-row .btn {
  flex-shrink: 0;
  padding: 0.3rem var(--s3);
  font-size: var(--size-micro);
}

.admin-empty {
  color: var(--text-faint);
  font-size: var(--size-sm);
}

.admin-add {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
}

.admin-add .field {
  margin-bottom: 0;
  font-family: var(--font-mono);
}

.admin-add .btn {
  flex-shrink: 0;
}

@media (max-width: 32rem) {
  .admin-add {
    flex-direction: column;
  }

  .admin-add .btn {
    width: 100%;
  }
}

.work-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-item {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--line);
}

.admin-item:last-child {
  border-bottom: 0;
}

.admin-item__thumb {
  width: 3.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.admin-item__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.admin-item__title {
  font-size: var(--size-sm);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-item__meta {
  font-family: var(--font-mono);
  font-size: var(--size-micro);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.admin-item .btn {
  flex-shrink: 0;
  padding: 0.3rem var(--s3);
  font-size: var(--size-micro);
}

.upload {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.upload .field,
.upload .dropzone {
  margin-bottom: 0;
}

.upload textarea.field {
  min-height: 4.5rem;
}
