@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #08090a;
  --surface: #101213;
  --raised: #161819;
  --border: #26292b;
  --border-strong: #3a3f42;
  --text: #f5f7f6;
  --text-2: #a8afab;
  --text-3: #7f8782;
  --green: #3ddc84;
  --green-hover: #5be79a;
  --green-fill: rgba(61, 220, 132, 0.12);
  --green-line: rgba(61, 220, 132, 0.35);
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius-sm: 8px;
  --radius-md: 12px;
  --container: 1200px;
  --gutter: 24px;
  --header-h: 68px;
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 10px 16px;
  background: #fff;
  color: #08090a;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: 600 15px/1 var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: #fff;
  color: #08090a;
}

.btn-primary:hover {
  background: #e4e8e6;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--surface);
  border-color: var(--text-2);
}

.btn-sm {
  min-height: 36px;
  padding: 0 14px;
  font-size: 14px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 9, 10, 0.95);
  border-bottom: 1px solid var(--border);
}

@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .site-header {
    background: rgba(8, 9, 10, 0.7);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--green);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a:not(.btn) {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.site-nav a:not(.btn):hover {
  color: var(--text);
  background: var(--surface);
}

.site-nav .nav-cta {
  margin-left: 8px;
}

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.menu-btn svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 760px) {
  .menu-btn {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    padding: 12px var(--gutter) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }

  .site-nav[data-open="true"] {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .site-nav a:not(.btn) {
    padding: 14px 12px;
    font-size: 16px;
  }

  .site-nav .nav-cta {
    margin: 10px 0 0;
  }

  .site-nav .nav-cta .btn {
    width: 100%;
  }
}

.hero {
  padding-top: clamp(40px, 6vw, 72px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-strong);
  font: 500 13px var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-2);
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background: var(--green-fill);
  border: 1px solid var(--green-line);
  border-radius: 999px;
  color: #d3f8e3;
  font: 600 13px var(--font-sans);
  letter-spacing: 0;
  text-transform: none;
}

.availability[hidden] {
  display: none;
}

.availability::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.availability[data-open="false"] {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text-2);
}

.availability[data-open="false"]::before {
  background: var(--text-3);
}

.hero h1 {
  margin: clamp(28px, 5vw, 56px) 0 0;
  font-size: clamp(2rem, 8.6vw, 7.6rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.hero h1 span {
  display: block;
  white-space: nowrap;
}

.hero h1 .hl {
  color: var(--green);
}

.hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px 64px;
  align-items: end;
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: 28px;
  border-top: 1px solid var(--border-strong);
}

.hero-lede {
  max-width: 46ch;
  margin: 0;
  color: var(--text);
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.hero-index {
  margin: clamp(40px, 6vw, 72px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border-strong);
}

.hero-index a {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s ease, padding-left 0.2s ease;
}

.hero-index .num {
  color: var(--text-3);
  font: 500 14px var(--font-mono);
}

.hero-index .label {
  font-size: clamp(1.4rem, 3.2vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero-index .hint {
  color: var(--text-3);
  font-size: 14px;
}

.hero-index a:hover {
  color: var(--green);
  padding-left: 12px;
}

.hero-index a:hover .num {
  color: var(--green);
}

.kicker {
  display: block;
  margin-bottom: 14px;
  color: var(--green);
  font: 500 13px var(--font-mono);
  letter-spacing: 0.06em;
}

@media (max-width: 760px) {
  .hero h1 {
    font-size: clamp(3rem, 19vw, 5.5rem);
  }

  .hero h1 span {
    white-space: normal;
  }

  .hero-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero-index a {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .hero-index .hint {
    display: none;
  }
}

.section {
  padding-block: 96px;
}

main > .section + .section {
  border-top: 1px solid var(--border);
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.section-head p {
  margin: 12px 0 0;
  color: var(--text-2);
  font-size: 17px;
}

@media (max-width: 640px) {
  .section {
    padding-block: 64px;
  }
}

.projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.project {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.project:hover {
  border-color: var(--border-strong);
}

.project-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--raised);
  border-bottom: 1px solid var(--border);
}

.project-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #2b302d;
  font-size: 64px;
  font-weight: 800;
  user-select: none;
}

.project-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-3);
  font-size: 13px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-weight: 600;
}

.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.status[data-status="in_development"]::before {
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--green);
}

.status[data-status="archived"]::before {
  background: var(--text-3);
}

.project h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.project p {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chip {
  padding: 6px 8px;
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-2);
  font: 500 12.5px/1 var(--font-mono);
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.project--featured {
  grid-column: 1 / -1;
  flex-direction: row;
}

.project--featured .project-media {
  flex: 0 0 55%;
  aspect-ratio: auto;
  min-height: 320px;
  border-bottom: 0;
  border-right: 1px solid var(--border);
}

.project--featured .project-body {
  justify-content: center;
  padding: 36px;
  gap: 16px;
}

.project--featured h3 {
  font-size: 28px;
  letter-spacing: -0.02em;
}

.project--featured p {
  font-size: 16px;
}

@media (max-width: 960px) {
  .projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .project--featured {
    flex-direction: column;
  }

  .project--featured .project-media {
    flex: none;
    aspect-ratio: 16 / 10;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .project--featured .project-body {
    padding: 20px;
  }

  .project--featured h3 {
    font-size: 22px;
  }
}

@media (max-width: 640px) {
  .projects {
    grid-template-columns: minmax(0, 1fr);
  }
}

.experience-layout {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 56px;
  align-items: start;
}

.experience-layout .section-head {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  margin-bottom: 0;
}

.timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 20px;
  width: 1px;
  background: var(--border);
}

.entry {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 20px;
  padding-bottom: 40px;
}

.entry:last-child {
  padding-bottom: 0;
}

.entry-logo {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  overflow: hidden;
  background: var(--raised);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--text-2);
  font-size: 16px;
  font-weight: 800;
}

.entry[data-current="true"] .entry-logo {
  border-color: var(--green);
}

.entry-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.entry-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.entry h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.entry h3 a {
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.15s ease;
}

.entry h3 a:hover {
  text-decoration-color: var(--green);
}

.pill {
  padding: 4px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
}

.pill[data-current="true"] {
  background: var(--green-fill);
  border-color: var(--green-line);
  color: #d3f8e3;
}

.entry-role {
  margin: 4px 0 0;
  color: var(--text);
  font-weight: 500;
}

.entry-dates {
  margin: 2px 0 0;
  color: var(--text-3);
  font-size: 14px;
}

.entry-desc {
  max-width: 62ch;
  margin: 12px 0 0;
  color: var(--text-2);
  font-size: 15px;
}

@media (max-width: 900px) {
  .experience-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .experience-layout .section-head {
    position: static;
    margin-bottom: 0;
  }
}

.empty {
  display: grid;
  justify-items: start;
  gap: 14px;
  padding: 32px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text-2);
}

.empty strong {
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
}

.empty p {
  max-width: 52ch;
  margin: 0;
}

.skeleton {
  min-height: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.55;
  }
}

.site-footer {
  position: relative;
  overflow: hidden;
  padding-bottom: 28px;
  color: var(--text-3);
  font-size: 14px;
}

.footer-wordmark {
  padding-inline: var(--gutter);
  color: rgba(245, 247, 246, 0.07);
  font-size: clamp(64px, 17vw, 240px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.9;
  text-align: center;
  white-space: nowrap;
  user-select: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 15%, transparent 95%);
  mask-image: linear-gradient(to bottom, #000 15%, transparent 95%);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.6fr) repeat(3, minmax(120px, 1fr));
  gap: 40px clamp(24px, 4vw, 64px);
  margin-top: clamp(24px, 4vw, 48px);
}

.footer-brand p {
  max-width: 340px;
  margin: 16px 0 0;
  color: var(--text-3);
  line-height: 1.7;
}

.footer-brand .brand {
  color: var(--text);
}

.footer-col h2 {
  margin: 0 0 18px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.footer-col ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col a,
.footer-top-link {
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-col a:hover,
.footer-top-link:hover {
  color: var(--green);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(40px, 6vw, 72px);
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ln {
    opacity: 1;
    animation: none;
  }

  .skeleton {
    animation: none;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}

:root {
  --danger: #ff7b7b;
}

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

.reviews-layout {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 56px;
  align-items: start;
}

.reviews-side {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  display: grid;
  gap: 28px;
}

.reviews-side .section-head {
  margin-bottom: 0;
}

.rating-summary[hidden] {
  display: none;
}

.rating-avg {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
}

.rating-avg strong {
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.rating-avg .rating-count {
  flex-basis: 100%;
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
}

.stars {
  display: inline-flex;
  gap: 2px;
  color: var(--green);
}

.stars svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.stars svg[data-off] {
  fill: none;
  color: var(--text-3);
}

.dist {
  display: grid;
  gap: 6px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.dist li {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 10px;
  color: var(--text-2);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.dist .bar {
  height: 6px;
  overflow: hidden;
  background: var(--raised);
  border-radius: 3px;
}

.dist .bar span {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: 3px;
}

.dist li > :last-child {
  text-align: right;
}

.composer {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.composer-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.composer-title:focus {
  outline: none;
}

.composer-note {
  margin: 0 0 16px;
  color: var(--text-2);
  font-size: 14.5px;
}

.composer .btn {
  width: 100%;
}

.composer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.composer-actions .btn {
  width: auto;
  flex: 1 1 auto;
}

.notice {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
}

.notice[data-type="error"] {
  border-color: var(--danger);
  color: #ffd0d0;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 14.5px;
}

.user-chip strong {
  min-width: 0;
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
}

.avatar {
  flex: none;
  width: 40px;
  height: 40px;
  background: var(--raised);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  object-fit: cover;
}

.user-chip .avatar {
  width: 32px;
  height: 32px;
}

.link-btn {
  padding: 8px 0;
  background: none;
  border: 0;
  color: var(--text-2);
  font: 500 14px/1.2 var(--font-sans);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 4px;
  cursor: pointer;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.link-btn:hover {
  color: var(--text);
  text-decoration-color: currentColor;
}

.link-btn[data-danger] {
  color: #ffb3b3;
}

.user-chip .link-btn {
  margin-left: auto;
}

.field {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

.field > legend,
.field > label {
  padding: 0;
  font-size: 14px;
  font-weight: 600;
}

.star-input {
  display: flex;
  gap: 2px;
  margin-left: -4px;
}

.star-input label {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  color: var(--text-3);
  cursor: pointer;
}

.star-input label:focus-within {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}

.star-input svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.star-input label[data-on] {
  color: var(--green);
}

.star-input label[data-on] svg {
  fill: currentColor;
}

.field textarea {
  width: 100%;
  min-height: 132px;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: 400 16px/1.6 var(--font-sans);
  resize: vertical;
}

.field textarea::placeholder {
  color: var(--text-3);
}

.field textarea:focus-visible {
  border-color: var(--green);
  outline-offset: 0;
}

.field textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

.field-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-3);
  font-size: 13px;
}

.field-error {
  margin: 0;
  color: var(--danger);
  font-size: 13.5px;
}

.field-error:empty {
  display: none;
}

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

.review {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.review:first-child {
  padding-top: 0;
  border-top: 0;
}

.review-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-who {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.review-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  font-weight: 700;
}

.review-name a {
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.15s ease;
}

.review-name a:hover {
  text-decoration-color: var(--green);
}

.review-date {
  color: var(--text-3);
  font-size: 14px;
}

.review-head .stars {
  margin-left: auto;
}

.review-body {
  max-width: 62ch;
  margin: 14px 0 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.7;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.review-actions {
  margin-top: 6px;
}

.reviews-more {
  margin-top: 8px;
}

.reviews-more .btn[hidden] {
  display: none;
}

@media (max-width: 900px) {
  .reviews-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .reviews-side {
    position: static;
  }
}

@media (max-width: 480px) {
  .review-head {
    flex-wrap: wrap;
  }

  .review-head .stars {
    flex-basis: 100%;
    margin-left: 52px;
  }
}

.commission-layout {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 64px;
  align-items: start;
}

.commission-intro h2 {
  margin: 0 0 16px;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.commission-intro p {
  margin: 0 0 16px;
  color: var(--text-2);
}

.commission-alt {
  margin-top: 28px !important;
}

.commission-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.form-row .field {
  align-content: start;
}

.field input[type="text"],
.field select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: 400 16px/1.4 var(--font-sans);
}

.field select {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23A8AFAB' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

.field input[type="text"]::placeholder {
  color: var(--text-3);
}

.field input[type="text"]:focus-visible,
.field select:focus-visible {
  border-color: var(--green);
  outline-offset: 0;
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: var(--danger);
}

.field .hint {
  margin: 0;
  color: var(--text-3);
  font-size: 13px;
}

.field .optional {
  color: var(--text-3);
  font-weight: 400;
}

.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.turnstile {
  margin: 0 0 16px;
  min-height: 65px;
}

.turnstile[hidden],
.commission-card [hidden] {
  display: none;
}

.commission-done {
  padding: 24px 0;
}

.commission-done h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
}

.commission-done p {
  margin: 0 0 20px;
  color: var(--text-2);
}

.commission-card .field-error {
  margin-bottom: 16px;
}

@media (max-width: 900px) {
  .commission-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .commission-card {
    padding: 20px;
  }
}
