:root {
  color-scheme: dark;
  --ink: #f5efe7;
  --muted: #b9b0a5;
  --paper: #141312;
  --panel: rgba(245, 239, 231, 0.08);
  --panel-strong: rgba(245, 239, 231, 0.14);
  --line: rgba(245, 239, 231, 0.2);
  --ember: #ff7a45;
  --moss: #9fbd8d;
  --iris: #9d8cff;
  --cyan: #67d8ca;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  background:
    radial-gradient(circle at 8% 20%, rgba(103, 216, 202, 0.18), transparent 28rem),
    radial-gradient(circle at 86% 22%, rgba(255, 122, 69, 0.22), transparent 30rem),
    radial-gradient(circle at 52% 86%, rgba(157, 140, 255, 0.16), transparent 34rem),
    linear-gradient(135deg, #0f1210 0%, #1d1916 46%, #141312 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.5rem;
  padding: 1.1rem clamp(1rem, 4vw, 3rem);
  background: linear-gradient(to bottom, rgba(20, 19, 18, 0.82), rgba(20, 19, 18, 0));
  backdrop-filter: blur(14px);
}

.brand {
  display: grid;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  place-items: center;
  padding: 9rem clamp(1rem, 5vw, 4rem) 4rem;
  isolation: isolate;
}

.hero-media,
.hero-vignette {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(103, 216, 202, 0.28), transparent 22rem),
    radial-gradient(circle at 82% 20%, rgba(255, 122, 69, 0.3), transparent 24rem),
    radial-gradient(circle at 50% 72%, rgba(157, 140, 255, 0.18), transparent 32rem),
    linear-gradient(135deg, #0e1411 0%, #1a1512 48%, #101416 100%);
}

.light-leak {
  position: absolute;
  width: 38vmax;
  height: 38vmax;
  border-radius: 50%;
  opacity: 0.58;
  filter: blur(48px);
  mix-blend-mode: screen;
  animation: floatLight 12s ease-in-out infinite alternate;
}

.light-one {
  top: -14vmax;
  right: -8vmax;
  background: radial-gradient(circle, rgba(255, 122, 69, 0.72), transparent 62%);
}

.light-two {
  left: -14vmax;
  bottom: -12vmax;
  background: radial-gradient(circle, rgba(103, 216, 202, 0.46), transparent 60%);
  animation-delay: -4s;
}

.hero-vignette {
  background:
    radial-gradient(circle at 50% 38%, rgba(0, 0, 0, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(14, 17, 16, 0.3), rgba(14, 17, 16, 0.42) 34%, rgba(14, 17, 16, 0.86) 100%);
}

.hero-content {
  width: min(100%, 74rem);
  text-align: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 1rem;
  color: var(--moss);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(4rem, 14vw, 13rem);
  line-height: 0.78;
  text-shadow: 0 14px 70px rgba(0, 0, 0, 0.48);
}

h2 {
  font-size: clamp(2.2rem, 5vw, 5.5rem);
  line-height: 0.95;
}

h3 {
  font-size: 1.1rem;
}

p {
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.65;
}

.hero-copy {
  max-width: 46rem;
  margin: 0 auto;
  color: var(--ink);
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  line-height: 1.2;
}

.hero-actions,
.contact-card,
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-actions {
  justify-content: center;
  margin-top: 1.5rem;
}

.button,
.filter {
  min-height: 2.9rem;
  border: 1px solid var(--line);
  padding: 0.78rem 1rem;
  color: var(--ink);
  background: rgba(20, 19, 18, 0.5);
  font: inherit;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.button:hover,
.filter:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 239, 231, 0.48);
}

.primary,
.filter.active {
  border-color: transparent;
  background: var(--ember);
  color: #1b100c;
  font-weight: 800;
}

.ghost {
  backdrop-filter: blur(12px);
}

.hero-categories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2.75rem auto 0;
}

.hero-category {
  display: grid;
  gap: 0.7rem;
  min-height: 15rem;
  padding: 1.25rem;
  border: 1px solid rgba(245, 239, 231, 0.22);
  background: rgba(20, 19, 18, 0.4);
  backdrop-filter: blur(10px);
  text-align: left;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease;
}

.hero-category:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 239, 231, 0.46);
  background: rgba(20, 19, 18, 0.58);
}

.hero-category span {
  color: var(--moss);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.hero-category strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 500;
  line-height: 0.95;
}

.hero-category em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.45;
}

section {
  padding: clamp(4rem, 9vw, 8rem) clamp(1rem, 5vw, 4rem);
}

.featured {
  display: grid;
  grid-template-columns: minmax(18rem, 0.85fr) minmax(20rem, 1.15fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  background: #ebe2d4;
  color: #181512;
}

.featured p {
  color: #5d554d;
}

.featured .section-kicker {
  color: #8a3f24;
}

.featured-stage {
  position: relative;
  min-height: 28rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.featured-stage img {
  height: 100%;
  min-height: 28rem;
  object-fit: cover;
}

.floating-note {
  position: absolute;
  border: 1px solid rgba(24, 21, 18, 0.16);
  padding: 0.85rem 1rem;
  background: rgba(235, 226, 212, 0.86);
  color: #181512;
  box-shadow: 0 14px 40px rgba(24, 21, 18, 0.2);
  backdrop-filter: blur(8px);
}

.note-one {
  top: 12%;
  left: 8%;
}

.note-two {
  right: 8%;
  bottom: 10%;
}

.text-link {
  display: inline-block;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.22rem;
  font-weight: 800;
}

.section-heading {
  max-width: 64rem;
  margin-bottom: 2rem;
}

.filter-bar {
  margin-bottom: 1.2rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.empty-projects {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  padding: 2rem;
  color: var(--muted);
}

.project-card {
  position: relative;
  grid-column: span 4;
  min-height: 30rem;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--panel);
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 1.4rem), calc(100% - 1.4rem) 100%, 0 100%);
}

.project-card:nth-child(5n + 1),
.project-card:nth-child(5n + 4) {
  grid-column: span 6;
}

.project-card img {
  height: 100%;
  min-height: 30rem;
  object-fit: cover;
  filter: saturate(0.86);
  transition:
    transform 500ms ease,
    filter 500ms ease;
}

.project-card:hover img {
  transform: scale(1.08) rotate(0.4deg);
  filter: saturate(1.04) contrast(1.04);
}

.project-info {
  position: absolute;
  inset: auto 0 0;
  padding: 1.25rem;
  background: linear-gradient(to top, rgba(20, 19, 18, 0.94), rgba(20, 19, 18, 0));
}

.project-info p {
  margin: 0 0 0.4rem;
  color: var(--moss);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-info h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 2.8vw, 3rem);
  font-weight: 500;
  line-height: 0.98;
}

label {
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: 0.9rem;
  color: var(--ink);
  background: rgba(20, 19, 18, 0.78);
  font: inherit;
}

textarea {
  min-height: 7rem;
  resize: vertical;
}

.contact {
  display: grid;
  grid-template-columns: minmax(16rem, 1fr) minmax(16rem, 0.8fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  background: #ebe2d4;
  color: #181512;
}

.contact p,
.contact .section-kicker {
  color: #6f5c4c;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.hidden-field {
  display: none;
}

.contact-card {
  grid-column: 2;
}

.contact-card a {
  border: 1px solid rgba(24, 21, 18, 0.2);
  padding: 0.85rem 1rem;
  color: #181512;
}

.project-dialog {
  width: min(60rem, calc(100vw - 2rem));
  border: 1px solid var(--line);
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.project-dialog::backdrop {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
}

.dialog-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  z-index: 1;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(20, 19, 18, 0.76);
  font-size: 1.4rem;
  cursor: pointer;
}

.project-dialog img {
  height: min(58vh, 32rem);
  object-fit: cover;
}

.dialog-body {
  padding: clamp(1.2rem, 4vw, 2rem);
}

.dialog-body p:first-child {
  color: var(--moss);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes slowDrift {
  from {
    transform: scale(1.06) translate3d(-1%, -1%, 0);
  }

  to {
    transform: scale(1.12) translate3d(1%, 1%, 0);
  }
}

@keyframes floatLight {
  from {
    transform: translate3d(-3%, -2%, 0) scale(0.95);
  }

  to {
    transform: translate3d(4%, 3%, 0) scale(1.08);
  }
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
  }

  .hero {
    min-height: 92vh;
  }

  .featured,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero-categories {
    grid-template-columns: 1fr;
  }

  .contact-card {
    grid-column: auto;
  }

  .project-card,
  .project-card:nth-child(5n + 1),
  .project-card:nth-child(5n + 4) {
    grid-column: span 6;
  }
}

@media (max-width: 620px) {
  .site-header {
    position: absolute;
  }

  .hero {
    padding-top: 7rem;
  }

  .hero-actions .button,
  .filter {
    width: 100%;
    text-align: center;
  }

  .project-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .project-card,
  .project-card:nth-child(5n + 1),
  .project-card:nth-child(5n + 4) {
    grid-column: auto;
    min-height: 24rem;
  }

  .project-card img {
    min-height: 24rem;
  }
}
