:root {
  --bg: #f7f2ea;
  --surface: #ffffff;
  --surface-soft: #f1ece4;
  --ink: #141414;
  --muted: #67615a;
  --line: #ddd5ca;
  --accent: #1d1d1d;
  --shadow: 0 18px 50px rgba(18, 18, 18, 0.06);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.06), transparent 22%),
    linear-gradient(180deg, #0f1115 0%, #171a21 100%);
  color: var(--ink);
  font-family: "Manrope", sans-serif;
}

button,
input,
textarea,
select {
  font: inherit;
}

.shell {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
  padding: 18px 0 48px;
}

.shell-admin {
  max-width: 1260px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 8px 0 28px;
  position: relative;
}

.brand {
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 600;
}

.menu-toggle {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
  padding: 18px 0 24px;
}

.hero-intro,
.hero-copy,
.stat-card,
.project-card,
.tool-card,
.thought-card,
.contact-layout,
.about-grid .tool-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-intro,
.hero-copy {
  padding: 28px;
}

.hero-photo-wrap {
  margin-bottom: 18px;
  border-radius: 22px;
  overflow: hidden;
}

.hero-photo {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center 28%;
}

.avatar-block {
  display: grid;
  gap: 14px;
}

.avatar-mark {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1f1f1f 0%, #444 100%);
  color: #fff;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.avatar-block strong,
h1,
h2,
h3 {
  font-family: "Sora", sans-serif;
}

.avatar-block p,
.mini-intro,
.hero-description,
.project-copy p,
.experience-copy p,
.tool-card p,
.thought-card p,
.contact-copy p,
.future-note p,
.site-footer p {
  color: var(--muted);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-cta-link {
  text-decoration: none;
}

.mini-intro {
  margin: 18px 0 0;
  line-height: 1.75;
}

.section-tag,
.section-kicker,
.thought-meta {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 800;
  color: #8d8479;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.96;
  color: var(--ink);
}

h2 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 0.98;
  color: #ffffff;
}

h3 {
  font-size: 1.12rem;
  line-height: 1.2;
  color: var(--ink);
}

.hero-description {
  margin-top: 18px;
  max-width: 58ch;
  line-height: 1.85;
  font-size: 1.02rem;
}

.stats-row,
.projects-grid,
.tools-grid,
.thoughts-list,
.about-grid,
.reviews-grid {
  display: grid;
  gap: 18px;
}

.stats-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 4px 0 42px;
}

.stat-card {
  padding: 22px 24px;
}

.stat-card strong {
  display: block;
  margin-bottom: 10px;
  font-family: "Sora", sans-serif;
  font-size: 2.3rem;
  line-height: 1;
}

.stat-card p {
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section {
  padding: 20px 0 40px;
}

.section-head {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.section-head-row {
  grid-template-columns: 1fr auto;
  align-items: end;
}

.see-all-link,
.back-link {
  color: #b9b3aa;
  text-decoration: none;
  font-weight: 700;
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

.compact-button {
  min-height: 46px;
  padding: 0 16px;
}

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

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

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

.project-card {
  overflow: hidden;
}

.project-link-wrap {
  display: block;
  color: inherit;
  text-decoration: none;
}

.project-art {
  min-height: 240px;
  padding: 22px;
  display: flex;
  align-items: flex-start;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, #2f2f2f 0%, #171717 100%);
}

.project-art span {
  display: inline-flex;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.project-copy {
  padding: 22px;
}

.project-copy p,
.experience-copy p,
.tool-card p,
.thought-card p,
.contact-copy p,
.future-note p {
  margin-top: 10px;
  line-height: 1.8;
}

.experience-list,
.thoughts-list {
  display: grid;
  gap: 14px;
}

.experience-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: start;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.experience-item:last-child {
  border-bottom: 1px solid var(--line);
}

.experience-period {
  color: #8d8479;
  font-weight: 700;
  white-space: nowrap;
}

.experience-copy h3 {
  color: #ffffff;
}

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

.tool-card,
.thought-card {
  padding: 24px;
}

.contact-section {
  padding-bottom: 22px;
}

.page-hero,
.project-detail-hero {
  padding: 18px 0 24px;
}

.page-hero h1,
.project-detail-hero h1 {
  color: #ffffff;
}

.admin-login-page {
  min-height: calc(100vh - 36px);
  display: grid;
  place-items: center;
}

.admin-login-card,
.admin-panel-card,
.admin-section,
.admin-sidebar,
.admin-project-card,
.request-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.admin-login-card {
  width: min(100%, 520px);
  padding: 30px;
}

.admin-login-form,
.admin-editor-form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.admin-login-form label,
.admin-editor-form label {
  display: grid;
  gap: 8px;
}

.admin-login-form span,
.admin-editor-form span,
.upload-block-head span {
  font-size: 0.94rem;
  font-weight: 700;
}

.admin-login-form input,
.admin-editor-form input,
.admin-editor-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfaf7;
  padding: 16px 18px;
  color: var(--ink);
  outline: none;
}

.admin-login-button {
  text-decoration: none;
}

.admin-topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 0 26px;
}

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

.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 22px;
}

.admin-sidebar {
  height: fit-content;
  padding: 16px;
  display: grid;
  gap: 10px;
  position: sticky;
  top: 20px;
}

.admin-nav-link {
  padding: 14px 16px;
  border-radius: 16px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.admin-nav-link.is-active {
  background: var(--surface-soft);
  color: var(--ink);
}

.admin-content {
  display: grid;
  gap: 22px;
}

.admin-section,
.admin-panel-card {
  padding: 22px;
}

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

.admin-project-card {
  overflow: hidden;
}

.admin-project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.requests-list {
  display: grid;
  gap: 14px;
}

.request-card {
  padding: 20px;
}

.request-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.request-budget {
  display: inline-flex;
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--surface-soft);
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-project-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 22px;
}

.admin-action-stack {
  display: grid;
  gap: 12px;
}

.admin-action-button {
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}

.admin-action-button.is-active {
  background: var(--surface-soft);
  font-weight: 700;
}

.admin-action-button.is-danger {
  color: #8d2e2e;
}

.admin-upload-block {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}

.upload-block-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.upload-block-head p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.projects-page-section {
  padding-top: 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  padding: 24px;
}

.contact-copy {
  display: grid;
  gap: 18px;
  align-content: start;
}

.future-note {
  padding: 18px;
  border-radius: 18px;
  background: var(--surface-soft);
}

.future-note strong {
  font-family: "Sora", sans-serif;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form span {
  font-size: 0.94rem;
  font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfaf7;
  padding: 16px 18px;
  font: inherit;
  color: var(--ink);
  outline: none;
}

.contact-form textarea {
  resize: vertical;
  min-height: 136px;
}

.submit-button {
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.project-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.detail-card,
.video-card,
.gallery-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.detail-card {
  padding: 18px 20px;
}

.detail-card span {
  display: block;
  margin-bottom: 8px;
  color: #8d8479;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.gallery-card {
  overflow: hidden;
}

.gallery-placeholder,
.video-placeholder {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, #2f2f2f 0%, #171717 100%);
  color: #fff;
  text-align: center;
}

.gallery-placeholder span,
.video-placeholder span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  font-weight: 700;
}

.gallery-card h3 {
  padding: 18px 20px 20px;
}

.video-card {
  padding: 0;
  overflow: hidden;
}

.video-placeholder strong {
  display: block;
  max-width: 16ch;
  font-family: "Sora", sans-serif;
  font-size: 1.8rem;
  line-height: 1.08;
}

.video-card p {
  margin: 0;
  padding: 20px 22px 24px;
  color: var(--muted);
  line-height: 1.8;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.review-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 22px;
}

.review-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.review-head h3 {
  color: var(--ink);
}

.review-head p {
  margin-top: 6px;
  color: var(--muted);
}

.review-rating {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: #0f1115;
  color: #f6d365;
  font-weight: 800;
}

.review-text {
  color: var(--muted);
  line-height: 1.85;
}

.review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.review-meta span {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
}

body.js-enabled .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

@media (max-width: 920px) {
  .hero,
  .admin-layout,
  .admin-project-layout,
  .contact-layout,
  .projects-grid,
  .projects-grid-all,
  .tools-grid,
  .about-grid,
  .admin-projects-grid,
  .stats-row,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: none;
  }

  .experience-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(calc(100% - 20px), var(--container));
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 12px 0 18px;
    background: rgba(247, 242, 234, 0.96);
    backdrop-filter: blur(10px);
  }

  .admin-topbar,
  .upload-block-head,
  .request-head {
    align-items: start;
    flex-direction: column;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font-weight: 700;
    position: absolute;
    left: 0;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .section-head-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-intro,
  .hero-copy,
  .tool-card,
  .thought-card,
  .contact-layout,
  .project-copy,
  .project-art {
    padding-left: 20px;
    padding-right: 20px;
  }

  h1 {
    font-size: clamp(2.5rem, 14vw, 4.4rem);
  }

  h2 {
    font-size: clamp(1.8rem, 10vw, 2.6rem);
  }
}
