:root {
  --bg: #070707;
  --text: #f5f0e8;
  --muted: rgba(245, 240, 232, 0.7);
  --line: rgba(255, 255, 255, 0.1);
  --accent: #bea25d;
  --content-width: min(1180px, calc(100vw - 40px));
  --header-height: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", sans-serif;
}

body.modal-open {
  overflow: hidden;
}

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

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: var(--header-height);
  padding: 0 clamp(24px, 8vw, 148px);
  background: #020202;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.brand,
.nav a,
.outline-button,
.eyebrow,
.section-kicker,
.time-label,
.info-band p,
.text-link {
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.brand {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2rem, 2.5vw, 2.7rem);
  line-height: 1;
  letter-spacing: 0;
}

.nav {
  display: flex;
  gap: clamp(26px, 3vw, 48px);
  margin-left: auto;
  margin-right: 30px;
}

.nav a,
.outline-button,
.text-link,
.solid-button {
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.nav a {
  font-size: 0.8rem;
  font-weight: 800;
}

.nav a:hover,
.text-link:hover {
  color: var(--accent);
}

.outline-button,
.solid-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 19px;
  font-size: 0.78rem;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.28);
  max-width: 100%;
  text-align: center;
  overflow-wrap: anywhere;
}

.outline-button:hover,
.solid-button:hover {
  transform: translateY(-1px);
}

.outline-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero {
  position: relative;
  min-height: 100svh;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  background:
    linear-gradient(to bottom, rgba(7, 7, 7, 0.08), rgba(7, 7, 7, 0.78)),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1800&q=80")
      center 43% / cover no-repeat;
  transform: scale(1.03);
  will-change: transform;
}

.hero-overlay {
  background:
    linear-gradient(to bottom, rgba(2, 2, 2, 0) 0%, rgba(2, 2, 2, 0.12) 42%, rgba(2, 2, 2, 0.88) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.12) 54%, rgba(0, 0, 0, 0.32) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(670px, calc(100vw - 48px));
  min-height: calc(100svh - var(--header-height));
  margin-left: clamp(22px, 9.3vw, 148px);
  padding: clamp(40px, 8vw, 110px) 0 clamp(36px, 5vw, 64px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: clamp(0.86rem, 1vw, 1rem);
  font-weight: 800;
}

.hero h1 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(7.2rem, 14.3vw, 13.25rem);
  line-height: 0.84;
  letter-spacing: 0;
  animation: riseIn 900ms ease-out both;
}

.hero-copy {
  max-width: 500px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
  line-height: 1.7;
  animation: fadeIn 1200ms ease-out both;
  animation-delay: 140ms;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
  animation: fadeIn 1200ms ease-out both;
  animation-delay: 260ms;
}

.solid-button {
  background: var(--text);
  color: #0b0b0b;
  border-color: var(--text);
}

.solid-button:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  font-size: 0.78rem;
  font-weight: 800;
}

.info-band,
.feature-grid,
.projects-section,
.cta-panel {
  width: var(--content-width);
  margin: 0 auto;
}

.info-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.info-band p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.72rem, 1vw, 0.82rem);
  font-weight: 700;
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  padding: clamp(48px, 8vw, 110px) 0;
}

.feature-copy h2,
.projects-heading h2,
.cta-panel h2 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  line-height: 0.95;
}

.feature-list {
  display: grid;
  gap: 26px;
}

.feature-list article {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.feature-list span {
  color: var(--accent);
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
}

.feature-list h3 {
  margin: 10px 0 8px;
  font-size: 1.15rem;
}

.feature-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.projects-section {
  padding: clamp(36px, 7vw, 92px) 0;
  border-top: 1px solid var(--line);
}

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

.projects-heading {
  display: grid;
  gap: 4px;
  max-width: 760px;
  margin-bottom: clamp(28px, 5vw, 56px);
}

.project-workspace {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.project-form {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 28px);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
}

.project-form label {
  display: grid;
  gap: 9px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-form input,
.project-form select,
.project-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
  font: 500 1rem/1.4 "Manrope", sans-serif;
}

.project-form select option {
  color: #111;
}

.project-form textarea {
  min-height: 118px;
  resize: vertical;
}

.project-form input::placeholder,
.project-form textarea::placeholder {
  color: rgba(245, 240, 232, 0.42);
}

.project-form input:focus,
.project-form select:focus,
.project-form textarea:focus {
  outline: 2px solid rgba(190, 162, 93, 0.55);
  outline-offset: 2px;
}

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

.project-card {
  position: relative;
  display: grid;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease;
}

.project-card:hover,
.project-card:focus-visible {
  border-color: rgba(190, 162, 93, 0.65);
  outline: none;
  transform: translateY(-2px);
}

.project-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #111;
}

.project-card-content {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.project-card small {
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.project-card h3 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  line-height: 0.95;
}

.project-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

.project-open-label {
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.empty-gallery {
  display: grid;
  grid-column: 1 / -1;
  min-height: 260px;
  place-items: center;
  padding: 28px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed rgba(255, 255, 255, 0.22);
}

.project-delete {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.project-delete:hover {
  color: #0b0b0b;
  background: var(--accent);
}

.admin-body {
  min-height: 100svh;
  background:
    linear-gradient(135deg, rgba(190, 162, 93, 0.1), transparent 28%),
    #070707;
}

.admin-shell {
  width: var(--content-width);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) 0;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.admin-header h1 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(4rem, 9vw, 8rem);
  line-height: 0.88;
}

.admin-note {
  margin: 24px 0;
  padding: 16px 18px;
  color: var(--muted);
  background: rgba(190, 162, 93, 0.09);
  border: 1px solid rgba(190, 162, 93, 0.28);
  line-height: 1.6;
}

.admin-note strong {
  color: var(--text);
}

.admin-workspace {
  margin-top: clamp(24px, 4vw, 42px);
}

.admin-login {
  max-width: 430px;
  margin-top: clamp(24px, 4vw, 42px);
}

.admin-signout {
  width: 100%;
  background: transparent;
  cursor: pointer;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--accent);
  font-size: 0.92rem;
  line-height: 1.5;
}

.form-status.is-error {
  color: #ffad9f;
}

.is-hidden {
  display: none !important;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  padding: clamp(16px, 3vw, 34px);
  overflow-y: auto;
}

.project-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
}

.project-modal-panel {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: auto;
  padding: clamp(20px, 4vw, 44px);
  background: #080808;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

.project-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  min-height: 38px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.project-modal-close:hover {
  color: #0b0b0b;
  background: var(--accent);
}

.project-modal-copy {
  max-width: 760px;
  padding-right: 96px;
  margin-bottom: clamp(24px, 4vw, 38px);
}

.project-modal-copy h2 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(3.6rem, 9vw, 8rem);
  line-height: 0.88;
}

.project-modal-copy p:last-child {
  max-width: 640px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.75;
}

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

.premium-gallery-item {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #111;
  cursor: zoom-in;
}

.premium-gallery-item.is-featured {
  grid-column: span 2;
  grid-row: span 2;
}

.premium-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 230px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 220ms ease;
}

.premium-gallery-item:hover img {
  transform: scale(1.025);
}

.premium-gallery-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.image-zoom {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 34px);
}

.image-zoom-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(14px);
}

.image-zoom-panel {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(1320px, 100%);
  height: min(820px, calc(100svh - 40px));
}

.image-zoom-panel img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.7);
}

.image-zoom-close,
.image-zoom-nav {
  position: absolute;
  z-index: 2;
  min-height: 42px;
  padding: 0 15px;
  color: var(--text);
  background: rgba(8, 8, 8, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.image-zoom-close:hover,
.image-zoom-nav:hover {
  color: #0b0b0b;
  background: var(--accent);
}

.image-zoom-close {
  top: 0;
  right: 0;
}

.image-zoom-prev {
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.image-zoom-next {
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.cta-panel {
  display: grid;
  gap: 16px;
  padding: 0 0 90px;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  :root {
    --header-height: 122px;
  }

  .topbar {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 18px;
    height: auto;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    margin: 0;
    gap: clamp(16px, 5vw, 32px);
  }

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

  .project-workspace,
  .project-gallery,
  .public-projects .project-gallery,
  .premium-gallery {
    grid-template-columns: 1fr;
  }

  .premium-gallery-item.is-featured {
    grid-column: auto;
    grid-row: auto;
  }

  .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  :root {
    --content-width: min(100vw - 28px, 100%);
    --header-height: 126px;
  }

  .topbar {
    padding-left: 14px;
    padding-right: 14px;
  }

  .brand {
    font-size: clamp(2rem, 11vw, 2.7rem);
    width: 100%;
    text-align: center;
  }

  .nav {
    gap: 14px;
  }

  .nav a {
    font-size: clamp(0.66rem, 2.7vw, 0.78rem);
    letter-spacing: 0.1em;
  }

  .hero-content {
    width: calc(100vw - 28px);
    margin-left: 14px;
    justify-content: flex-end;
  }

  .hero h1 {
    font-size: clamp(5rem, 27vw, 8.4rem);
  }

  .hero-copy {
    max-width: 100%;
    font-size: clamp(1.02rem, 4.5vw, 1.2rem);
  }

  .info-band {
    grid-template-columns: 1fr;
  }

  .feature-copy h2,
  .projects-heading h2,
  .cta-panel h2 {
    font-size: clamp(2.5rem, 14vw, 4rem);
  }

  .outline-button {
    display: none;
  }

  .project-modal {
    padding: 10px;
  }

  .project-modal-panel {
    padding: 18px;
  }

  .project-modal-copy {
    padding-right: 0;
    padding-top: 48px;
  }

  .premium-gallery-item img {
    min-height: 210px;
  }

  .image-zoom-panel {
    height: calc(100svh - 24px);
  }

  .image-zoom-nav {
    top: auto;
    bottom: 0;
    transform: none;
  }

  .image-zoom-prev {
    left: 0;
  }

  .image-zoom-next {
    right: 0;
  }
}

@media (max-width: 380px) {
  :root {
    --header-height: 118px;
  }

  .nav {
    gap: 10px;
  }

  .nav a {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
  }

  .hero h1 {
    font-size: clamp(4.35rem, 26vw, 6.1rem);
  }
}
