:root {
  color-scheme: dark;
  --bg: #08090a;
  --panel: #121416;
  --panel-soft: #181b1e;
  --ink: #f5f5f2;
  --muted: #b7bbb8;
  --line: rgba(255, 255, 255, 0.13);
  --accent: #c79a44;
  --accent-strong: #e2b75d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem clamp(1rem, 4vw, 4rem);
  background: rgba(8, 9, 10, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand,
nav,
.admin-top,
.stats,
.request-card-top {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.75rem;
  font-weight: 800;
}

.brand-logo {
  display: block;
  width: 13rem;
  height: 2.7rem;
  object-fit: contain;
  object-position: left center;
}

nav {
  gap: 1rem;
  color: var(--muted);
  font-size: 0.94rem;
}

nav a:hover,
footer a:hover {
  color: var(--accent-strong);
}

.hero {
  position: relative;
  width: 100%;
  min-height: 72vh;
  background: #050607;
  overflow: hidden;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 50% 52%, rgba(0, 0, 0, 0.54) 0%, rgba(0, 0, 0, 0.36) 34%, rgba(0, 0, 0, 0.08) 62%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.56) 0%, rgba(0, 0, 0, 0.06) 48%, rgba(0, 0, 0, 0.32) 100%);
  pointer-events: none;
}

.hero-art {
  display: block;
  width: 100%;
  height: min(82vh, 860px);
  min-height: 72vh;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -42%);
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 1rem;
  width: min(52rem, calc(100% - 2rem));
  text-align: center;
}

.hero-logo {
  display: block;
  width: min(100%, 43rem);
  height: auto;
  filter:
    drop-shadow(0 5px 5px rgba(0, 0, 0, 0.95))
    drop-shadow(0 18px 34px rgba(0, 0, 0, 0.9));
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(3.25rem, 8vw, 7rem);
  line-height: 0.9;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

h3 {
  margin: 0;
  font-size: 1.05rem;
}

.hero-overlay p,
.quiet,
.service-list p,
.meta,
footer {
  color: var(--muted);
  line-height: 1.55;
}

.hero-overlay p {
  max-width: 46rem;
  margin: 0;
  color: #f4f1e9;
  font-size: 1.14rem;
  font-weight: 650;
  text-shadow:
    0 2px 3px rgba(0, 0, 0, 0.95),
    0 8px 24px rgba(0, 0, 0, 0.9);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #090909;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.button:hover {
  background: var(--accent-strong);
}

.hero-button {
  width: fit-content;
  border-color: #ffe5a5;
  background: #f2c96a;
  color: #050505;
  box-shadow:
    0 0 0 2px rgba(0, 0, 0, 0.72),
    0 10px 22px rgba(0, 0, 0, 0.68),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.hero-button:hover {
  background: #ffe09a;
}

.button.subtle {
  background: var(--panel-soft);
  color: var(--ink);
  border-color: var(--line);
}

.work,
.request-section,
.admin-shell {
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 4vw, 4rem);
}

.section-heading {
  margin-bottom: 1.4rem;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-list article {
  min-height: 11rem;
  padding: 1.1rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #101214;
}

.service-list p {
  margin: 0.7rem 0 0;
  font-size: 0.94rem;
}

.showcase-art {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
  background: #050607;
}

.request-section {
  display: grid;
  grid-template-columns: minmax(18rem, 0.72fr) minmax(20rem, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  background: #0c0d0f;
}

.request-form,
.login-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

label {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.8rem 0.85rem;
  background: #090a0b;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

.wide {
  grid-column: 1 / -1;
}

.form-status {
  min-height: 1.4rem;
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.92rem;
}

.admin-shell {
  min-height: calc(100vh - 8rem);
}

.admin-top {
  justify-content: space-between;
  margin-bottom: 1rem;
}

.login-form {
  max-width: 44rem;
}

.stats {
  gap: 0.8rem;
  margin: 1rem 0;
}

.stats div {
  min-width: 10rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.stats strong {
  display: block;
  font-size: 2rem;
}

.request-list {
  display: grid;
  gap: 0.85rem;
}

.request-card {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.request-card-top {
  justify-content: space-between;
  gap: 1rem;
}

.tag {
  color: var(--accent-strong);
  font-weight: 850;
}

.meta {
  font-size: 0.9rem;
}

.message {
  white-space: pre-wrap;
  line-height: 1.55;
}

footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .request-section {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .service-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header,
  footer,
  .admin-top,
  .request-card-top {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: flex-start;
  }

  .brand-logo {
    width: 11rem;
  }

  .hero {
    min-height: 66vh;
  }

  .hero-art {
    height: 66vh;
    min-height: 66vh;
    object-position: 56% center;
  }

  .hero::after {
    background:
      radial-gradient(circle at 50% 56%, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.4) 42%, rgba(0, 0, 0, 0.14) 74%),
      linear-gradient(0deg, rgba(0, 0, 0, 0.66) 0%, rgba(0, 0, 0, 0.08) 48%, rgba(0, 0, 0, 0.36) 100%);
  }

  .hero-overlay {
    top: 54%;
    width: min(30rem, calc(100% - 2rem));
  }

  .hero-overlay p {
    font-size: 1rem;
  }

  .service-list,
  .request-form,
  .login-form {
    grid-template-columns: 1fr;
  }
}
