﻿:root {
  --bg: #0d0f11;
  --panel: rgba(22, 25, 29, 0.78);
  --paper: #f3ede2;
  --paper-soft: #d7cec0;
  --text: #161514;
  --muted: #6a655c;
  --line-soft: rgba(25, 30, 35, 0.1);
  --red: #d94a2f;
  --orange: #c8702f;
  --yellow: #d9a43b;
  --green: #6ea582;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  --radius-lg: 22px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Instrument Sans", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(217, 74, 47, 0.22), transparent 28%),
    radial-gradient(circle at left 15%, rgba(201, 112, 47, 0.14), transparent 25%),
    linear-gradient(180deg, #f2ecdf 0%, #ece4d5 100%);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.15;
  mix-blend-mode: multiply;
}

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

img {
  max-width: 100%;
  display: block;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  background: #fff;
  color: #111;
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 1000;
  transition: top 180ms ease;
}

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

.page {
  width: min(calc(100% - 40px), var(--max));
  margin: 20px auto;
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(13, 15, 17, 0.98), rgba(22, 25, 29, 0.94)),
    var(--bg);
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 36px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.2;
}

.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -120px;
  top: -100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 74, 47, 0.35), rgba(217, 74, 47, 0.08) 45%, transparent 72%);
  filter: blur(10px);
}

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

.topbar,
.hero-grid,
.stats,
.cards,
.contact-panel,
footer,
.faq-list {
  display: grid;
  gap: 18px;
}

.topbar {
  grid-template-columns: 1fr auto;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.brand strong,
h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.04em;
}

.brand strong {
  font-size: 1.35rem;
  font-weight: 700;
}

.eyebrow,
.tag,
.mini,
.stat-label,
.contact-label {
  font-family: "IBM Plex Mono", monospace;
}

.eyebrow {
  color: var(--yellow);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.eyebrow-dark {
  color: var(--red);
}

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

.hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  padding-top: 34px;
  align-items: start;
  gap: 32px;
}

h1 {
  font-size: clamp(2.6rem, 6.2vw, 5rem);
  line-height: 0.93;
  max-width: 8ch;
  margin-bottom: 20px;
}

.accent {
  color: var(--red);
}

.lead {
  max-width: 62ch;
  font-size: 1.08rem;
  color: var(--paper-soft);
}

.hero-copy {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.hero-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #efe5d8;
  font-size: 0.78rem;
}

.tag-dark {
  background: rgba(20, 24, 28, 0.08);
  border-color: rgba(20, 24, 28, 0.08);
  color: var(--text);
}

.tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), var(--yellow));
  box-shadow: 0 0 18px rgba(217, 164, 59, 0.55);
}

.hero-panel,
.stat,
.card,
.contact-panel,
.quote {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--panel);
  backdrop-filter: blur(18px);
}

.hero-panel {
  padding: 24px;
  border-radius: var(--radius-lg);
  display: grid;
  gap: 18px;
  max-width: 420px;
  justify-self: end;
}

.hero-panel h2 {
  font-size: 1.5rem;
  line-height: 1.05;
}

.hero-panel p {
  color: var(--paper-soft);
  font-size: 0.97rem;
}

.mini {
  font-size: 0.76rem;
  color: #bcaf9d;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:focus-visible,
.faq-item summary:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(217, 164, 59, 0.65);
  outline-offset: 3px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: #fff;
  box-shadow: 0 10px 28px rgba(217, 74, 47, 0.28);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--paper);
  background: rgba(255, 255, 255, 0.04);
}

main {
  display: grid;
  gap: 22px;
  margin-top: 22px;
}

.section {
  background: rgba(255, 250, 243, 0.72);
  border: 1px solid rgba(34, 27, 21, 0.08);
  border-radius: 32px;
  padding: 34px 28px;
  box-shadow: 0 18px 46px rgba(74, 53, 33, 0.07);
}

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
  max-width: 70ch;
}

.section h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 0.98;
}

.section p,
.timeline-item p,
.faq-item p {
  color: var(--muted);
  font-size: 1rem;
}

.stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat {
  padding: 22px;
  border-radius: 22px;
  color: var(--paper);
  background: linear-gradient(180deg, rgba(25, 30, 35, 0.95), rgba(15, 17, 20, 0.95));
}

.stat-value {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1;
  margin-bottom: 8px;
  color: var(--paper);
}

.stat-label {
  color: var(--yellow);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 10px;
}

.cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.projects-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

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

.project-card {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: 0 12px 30px rgba(56, 38, 22, 0.06);
  display: grid;
  gap: 16px;
}

.project-media,
.admin-project-media {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: rgba(20, 24, 28, 0.08);
}

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

.project-card h3 {
  font-size: 1.3rem;
}

.project-card p {
  color: var(--muted);
}

.project-card-empty {
  grid-column: 1 / -1;
}

.project-meta,
.project-actions,
.project-footer {
  display: flex;
  gap: 12px;
}

.project-meta,
.project-footer {
  align-items: center;
  justify-content: space-between;
}

.project-footer {
  align-items: end;
  gap: 18px;
}

.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.project-status,
.project-year {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.project-actions {
  flex-direction: column;
  align-items: flex-end;
}

.project-actions .btn {
  min-width: 140px;
}

.card {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(17, 17, 17, 0.08);
  color: var(--text);
  box-shadow: 0 12px 30px rgba(56, 38, 22, 0.06);
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.card ul {
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 0.98rem;
}

.card li::before {
  content: "+";
  display: inline-block;
  width: 18px;
  color: var(--red);
  font-weight: 700;
}

.quote {
  border-radius: 28px;
  padding: 44px 32px;
  color: var(--paper);
  background: linear-gradient(135deg, rgba(25, 30, 35, 0.98), rgba(14, 16, 18, 0.98));
  display: grid;
  place-items: center;
  min-height: 260px;
  text-align: center;
}

.quote-text {
  position: relative;
  margin: 0;
  max-width: 860px;
  padding: 24px 0 0;
}

.quote-text::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(4rem, 8vw, 6rem);
  line-height: 1;
  color: rgba(217, 164, 59, 0.2);
}

.quote p {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1.15;
  color: var(--paper);
  max-width: 22ch;
  margin: 0 auto;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line-soft);
}

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

.timeline-year {
  color: var(--red);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.timeline-item h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.faq-list {
  gap: 14px;
}

.faq-item {
  border-radius: 18px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: rgba(255, 255, 255, 0.58);
  padding: 18px 20px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--text);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin-top: 12px;
  max-width: 70ch;
}

.contact-panel {
  grid-template-columns: 1fr;
  padding: 30px;
  border-radius: 30px;
  color: var(--paper);
  background:
    radial-gradient(circle at top right, rgba(110, 165, 130, 0.24), transparent 28%),
    linear-gradient(135deg, rgba(20, 24, 28, 0.98), rgba(14, 16, 18, 0.98));
  box-shadow: var(--shadow);
}

.contact-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.02;
  margin-bottom: 16px;
  max-width: 18ch;
}

.contact-copy {
  width: 100%;
  max-width: 860px;
  margin: 0;
  text-align: left;
}

.contact-copy p {
  color: var(--paper-soft);
  max-width: 56ch;
  margin: 0 0 16px;
}

.contact-copy .cta-row {
  justify-content: flex-start;
}

.contact-label {
  color: var(--green);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

footer {
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 8px 8px 26px;
  color: #5a544b;
}

.admin-body {
  min-height: 100vh;
}

.admin-page {
  width: min(calc(100% - 32px), 1320px);
  margin: 18px auto;
}

.admin-shell {
  background: linear-gradient(135deg, rgba(13, 15, 17, 0.98), rgba(22, 25, 29, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 34px;
  padding: 28px;
  color: var(--paper);
  box-shadow: var(--shadow);
}

.admin-head,
.admin-layout,
.admin-list-head,
.field-row,
.admin-project-top,
.admin-project-meta,
.admin-tags {
  display: grid;
  gap: 16px;
}

.admin-head,
.admin-list-head {
  grid-template-columns: 1fr auto;
  align-items: start;
}

.admin-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 0.98;
  margin: 12px 0;
}

.admin-subtitle {
  color: var(--paper-soft);
  max-width: 60ch;
}

.admin-layout {
  grid-template-columns: minmax(320px, 420px) 1fr;
  margin-top: 24px;
}

.admin-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 22px;
}

.admin-card h2 {
  margin-bottom: 18px;
}

.admin-form,
.field,
.admin-projects {
  display: grid;
  gap: 14px;
}

.field span {
  display: block;
  margin-bottom: 8px;
  color: var(--paper-soft);
  font-size: 0.95rem;
}

.field-row {
  grid-template-columns: 1fr 1fr;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(13, 15, 17, 0.46);
  color: var(--paper);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
}

.checkbox {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--paper-soft);
}

.checkbox input {
  width: 18px;
  height: 18px;
}

.admin-feedback {
  min-height: 24px;
  color: var(--green);
}

.admin-feedback[data-error="true"] {
  color: #ff9b86;
}

.admin-projects {
  max-height: 920px;
  overflow: auto;
  padding-right: 4px;
}

.admin-project-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 18px;
  display: grid;
  gap: 14px;
}

.admin-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-links a {
  color: var(--paper-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.admin-project-top {
  grid-template-columns: 1fr auto;
  align-items: start;
}

.admin-project-meta {
  gap: 6px;
  justify-items: end;
  color: var(--paper-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  text-transform: uppercase;
}

.admin-tags {
  grid-template-columns: repeat(auto-fit, minmax(120px, max-content));
  gap: 8px;
}

.admin-empty {
  color: var(--paper-soft);
}

.footer-brand {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
}

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

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn {
    transition: none;
  }
}

@media (max-width: 920px) {
  .hero-grid,
  .contact-panel,
  .projects-grid,
  .cards,
  .stats,
  footer {
    grid-template-columns: 1fr;
  }

  .topbar {
    grid-template-columns: 1fr;
  }

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

  .hero-panel {
    max-width: 100%;
    justify-self: stretch;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .admin-layout,
  .admin-head,
  .admin-list-head,
  .admin-project-top {
    grid-template-columns: 1fr;
  }

  .admin-project-meta {
    justify-items: start;
  }
}

@media (max-width: 640px) {
  .page {
    width: min(calc(100% - 22px), var(--max));
    margin: 11px auto;
  }

  body {
    line-height: 1.45;
  }

  .hero,
  .section,
  .contact-panel,
  .admin-shell {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .hero {
    padding-top: 26px;
  }

  .topbar {
    gap: 14px;
    padding-bottom: 16px;
  }

  .brand strong {
    font-size: 1.2rem;
  }

  .eyebrow,
  .mini,
  .stat-label,
  .contact-label {
    letter-spacing: 0.14em;
    font-size: 0.68rem;
  }

  h1 {
    font-size: clamp(2.2rem, 14vw, 3.6rem);
    line-height: 1.04;
    margin-bottom: 16px;
    max-width: 100%;
    text-wrap: balance;
  }

  .lead,
  .hero-panel p,
  .section p,
  .timeline-item p,
  .faq-item p,
  .contact-copy p {
    font-size: 0.98rem;
  }

  .hero-grid {
    gap: 18px;
    padding-top: 24px;
  }

  .hero-copy,
  .section-head,
  .timeline,
  .faq-list {
    gap: 16px;
  }

  .hero-panel,
  .card,
  .stat,
  .faq-item,
  .project-card,
  .admin-card,
  .admin-project-card {
    padding: 18px;
    border-radius: 20px;
  }

  .hero-panel h2,
  .card h3,
  .timeline-item h3 {
    font-size: 1.2rem;
  }

  h1,
  .contact-title,
  .quote p {
    max-width: 100%;
  }

  .quote {
    min-height: unset;
    padding: 34px 22px;
  }

  .quote-text {
    padding-top: 18px;
  }

  .quote-text::before {
    top: -10px;
    font-size: 3.5rem;
  }

  .quote p {
    font-size: clamp(1.45rem, 8vw, 2rem);
  }

  .section h2,
  .contact-title {
    font-size: clamp(1.5rem, 8vw, 2.15rem);
    line-height: 1.05;
  }

  .cta-row,
  .hero-list {
    flex-direction: column;
  }

  .projects-toolbar {
    justify-content: stretch;
  }

  .tag {
    width: 100%;
    justify-content: flex-start;
    padding: 11px 14px;
  }

  .btn {
    width: 100%;
    min-height: 46px;
  }

  .timeline-item {
    padding: 14px 0;
  }

  .timeline-year {
    font-size: 0.74rem;
  }

  .faq-item {
    padding: 16px 16px 18px;
  }

  .faq-item summary {
    font-size: 1rem;
    line-height: 1.4;
  }

  .project-meta,
  .project-footer,
  .project-actions,
  .field-row {
    grid-template-columns: 1fr;
    display: grid;
  }

  .project-actions {
    align-items: stretch;
  }

  .project-card .btn {
    width: 100%;
  }

  footer {
    gap: 10px;
    padding: 6px 2px 18px;
  }
}
