@font-face {
  font-family: "Josefin Sans";
  src: url("../fonts/JosefinSans-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Josefin Sans";
  src: url("../fonts/JosefinSans-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 700;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0c0908;
  --bg-deep: #15100d;
  --panel: rgba(34, 24, 18, 0.78);
  --panel-soft: rgba(255, 255, 255, 0.03);
  --ink: #f5efe7;
  --muted: #b8aa9a;
  --accent: #c28a4b;
  --accent-soft: #d7b086;
  --stroke: rgba(255, 255, 255, 0.1);
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
  --max-width: 1320px;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Josefin Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(194, 138, 75, 0.14), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(114, 83, 46, 0.18), transparent 22%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 52%, var(--bg) 100%);
  letter-spacing: 0.02em;
}

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

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

.site-header,
main,
.site-footer {
  width: min(var(--max-width), calc(100% - 10vw));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  isolation: isolate;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0 18px;
  background: none;
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(12, 9, 8, 0.94) 0%,
    rgba(12, 9, 8, 0.72) 76%,
    rgba(12, 9, 8, 0) 100%
  );
  pointer-events: none;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-text {
  display: grid;
  gap: 4px;
}

.brand-title {
  font-size: 1.08rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-nav a {
  padding: 10px 14px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover {
  color: var(--ink);
  border-color: rgba(194, 138, 75, 0.42);
  background: rgba(194, 138, 75, 0.1);
}

.site-nav a.is-active {
  color: var(--ink);
  border-color: rgba(194, 138, 75, 0.42);
  background: rgba(194, 138, 75, 0.14);
}

main {
  padding: 26px 0 72px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 60px;
}

.hero-copy,
.feature-card,
.build-card,
.empty-state {
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: clamp(28px, 4vw, 54px);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(36, 26, 19, 0.84) 0%, rgba(18, 13, 10, 0.78) 100%);
}

.eyebrow,
.section-label,
.build-label,
.feature-label,
.build-nav-order {
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-soft);
  font-size: 0.8rem;
}

.hero h1 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(3.2rem, 7.8vw, 6.25rem);
  line-height: 0.92;
  letter-spacing: 0.04em;
}

.hero-body {
  max-width: 44ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.build-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.build-jump {
  display: inline-flex;
  justify-content: space-between;
  gap: 14px;
  min-width: 220px;
  padding: 12px 16px;
  border: 1px solid var(--stroke);
  border-radius: 18px;
  background: var(--panel-soft);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.build-jump:hover {
  transform: translateY(-2px);
  border-color: rgba(194, 138, 75, 0.42);
  background: rgba(194, 138, 75, 0.08);
}

.build-jump span:last-child {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-feature {
  min-height: 100%;
}

.feature-card {
  position: relative;
  display: flex;
  min-height: 100%;
  overflow: hidden;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(32, 23, 17, 0.96) 0%, rgba(14, 11, 9, 0.98) 100%);
}

.feature-media {
  position: absolute;
  inset: 0;
}

.feature-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 7, 6, 0.14) 0%, rgba(8, 7, 6, 0.4) 44%, rgba(8, 7, 6, 0.9) 100%);
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: saturate(0.92) contrast(1.03);
}

.feature-overlay {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  align-self: end;
  padding: 28px;
}

.feature-label {
  margin: 0;
  color: var(--accent-soft);
  font-size: 0.76rem;
}

.feature-overlay h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1;
}

.feature-overlay p {
  margin: 0;
  max-width: 22ch;
  color: #dfd1c2;
  line-height: 1.6;
}

.feature-card-empty {
  min-height: 360px;
}

.about-main {
  display: grid;
  gap: 32px;
}

.process-main {
  display: grid;
  gap: 32px;
}

.about-hero,
.about-grid,
.about-closing {
  display: grid;
  gap: 24px;
}

.process-hero,
.process-steps-shell,
.process-closer {
  display: grid;
  gap: 24px;
}

.about-hero {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: stretch;
}

.process-hero {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: stretch;
}

.about-hero-copy,
.about-quote,
.about-panel,
.about-closing {
  border: 1px solid var(--stroke);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(36, 26, 19, 0.84) 0%, rgba(18, 13, 10, 0.78) 100%);
  box-shadow: var(--shadow);
}

.process-hero-copy,
.process-summary,
.process-step,
.process-closer {
  border: 1px solid var(--stroke);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(36, 26, 19, 0.84) 0%, rgba(18, 13, 10, 0.78) 100%);
  box-shadow: var(--shadow);
}

.about-hero-copy,
.about-quote,
.about-panel,
.about-closing {
  padding: clamp(26px, 4vw, 42px);
}

.process-hero-copy,
.process-summary,
.process-step,
.process-closer {
  padding: clamp(26px, 4vw, 42px);
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.process-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.about-tags span {
  padding: 10px 14px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.process-tags span {
  padding: 10px 14px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-quote {
  display: grid;
  gap: 16px;
  align-content: end;
  background:
    radial-gradient(circle at top right, rgba(194, 138, 75, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(33, 24, 18, 0.92) 0%, rgba(14, 11, 9, 0.84) 100%);
}

.about-quote blockquote {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: 0.03em;
}

.about-quote p:last-child,
.about-panel p,
.about-closing-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.process-summary {
  display: grid;
  gap: 16px;
  align-content: start;
  background:
    radial-gradient(circle at top right, rgba(194, 138, 75, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(33, 24, 18, 0.92) 0%, rgba(14, 11, 9, 0.84) 100%);
}

.process-summary-stat {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 3.7rem);
  line-height: 0.96;
}

.process-summary p:last-of-type {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.process-summary-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-summary-list li {
  padding-top: 12px;
  border-top: 1px solid var(--stroke);
  color: var(--muted);
  line-height: 1.65;
}

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

.about-grid-wide .about-panel-feature {
  grid-column: span 2;
}

.about-panel {
  display: grid;
  gap: 14px;
}

.about-detail-box {
  gap: 18px;
}

.about-detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.about-detail-item {
  padding: 18px 18px 16px;
  border: 1px solid var(--stroke);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
}

.about-detail-item h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.about-detail-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.process-steps {
  display: grid;
  gap: 18px;
}

.process-step {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.process-step-meta {
  display: grid;
  gap: 10px;
}

.process-step-number,
.process-step-phase {
  margin: 0;
}

.process-step-number {
  color: var(--accent-soft);
  font-size: clamp(2rem, 3vw, 2.4rem);
  line-height: 0.95;
}

.process-step-phase {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.process-step-copy {
  display: grid;
  gap: 12px;
}

.process-step-copy h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2.3vw, 1.95rem);
  line-height: 1.05;
}

.process-step-copy p,
.process-closer-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.about-panel h2,
.about-panel h3,
.about-closing h2 {
  margin: 0;
  line-height: 1.05;
}

.process-closer {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
}

.process-closer-copy {
  display: grid;
  gap: 14px;
}

.process-closer h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 1.05;
}

.about-panel h2,
.about-closing h2 {
  font-size: clamp(1.9rem, 3vw, 2.7rem);
}

.about-panel h3 {
  font-size: 1.35rem;
}

.about-closing {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
}

.about-closing-copy {
  display: grid;
  gap: 14px;
}

.about-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid rgba(194, 138, 75, 0.42);
  border-radius: 999px;
  background: rgba(194, 138, 75, 0.1);
  color: var(--ink);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.process-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid rgba(194, 138, 75, 0.42);
  border-radius: 999px;
  background: rgba(194, 138, 75, 0.1);
  color: var(--ink);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.about-home-link:hover {
  transform: translateY(-2px);
  background: rgba(194, 138, 75, 0.16);
  border-color: rgba(194, 138, 75, 0.58);
}

.process-link:hover {
  transform: translateY(-2px);
  background: rgba(194, 138, 75, 0.16);
  border-color: rgba(194, 138, 75, 0.58);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 22px;
}

.section-label {
  margin: 0 0 8px;
  color: var(--accent-soft);
  font-size: 0.74rem;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  letter-spacing: 0.03em;
}

.section-head p:last-child {
  max-width: 34ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.builds,
.gallery {
  scroll-margin-top: 96px;
}

.build-list {
  display: grid;
  gap: 28px;
}

.build-card {
  padding: 0;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(33, 24, 18, 0.84) 0%, rgba(14, 11, 9, 0.72) 100%);
  overflow: hidden;
  scroll-margin-top: 92px;
}

.build-summary {
  display: block;
  padding: 26px;
  cursor: pointer;
  list-style: none;
}

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

.build-summary::marker {
  content: "";
}

.build-summary:hover {
  background: rgba(255, 255, 255, 0.02);
}

.build-summary:focus-visible {
  outline: 1px solid rgba(194, 138, 75, 0.6);
  outline-offset: -1px;
}

.build-card[open] .build-summary {
  padding-bottom: 18px;
}

.build-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 0;
}

.build-label {
  margin: 0 0 10px;
  color: var(--accent-soft);
  font-size: 0.74rem;
}

.build-header h3 {
  margin: 0;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
}

.build-header-meta {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.build-header-meta p,
.build-panel-actions a,
.build-toggle-label {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.build-header-meta p {
  color: var(--muted);
}

.build-toggle-label,
.build-panel-actions a {
  color: var(--ink);
  opacity: 0.8;
}

.build-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.build-toggle-label::after {
  content: "+";
  font-size: 1rem;
  line-height: 1;
}

.build-card[open] .build-toggle-label {
  color: var(--accent-soft);
  opacity: 1;
}

.build-card[open] .build-toggle-label::after {
  content: "-";
}

.build-panel {
  padding: 0 26px 26px;
}

.build-panel-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}

.build-panel-actions a:hover,
.site-footer a:hover {
  color: var(--accent-soft);
  opacity: 1;
}

.gallery {
  margin-top: 64px;
}

.masonry {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.photo {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(10px);
  transition: transform 0.5s ease, opacity 0.5s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.12) 100%);
  pointer-events: none;
}

.photo.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(var(--i) * 35ms);
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transform: scale(1.01);
  filter: saturate(0.96) contrast(1.04);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.photo:hover {
  border-color: rgba(194, 138, 75, 0.38);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.26);
}

.photo:hover img {
  transform: scale(1.03);
  filter: saturate(1.04) contrast(1.05);
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 4vw;
  background: rgba(5, 4, 4, 0.92);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(1200px, 92vw);
  max-height: 92vh;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.48);
}

.empty-state {
  padding: 30px;
  border-radius: 28px;
  text-align: center;
  color: var(--muted);
  background: linear-gradient(180deg, rgba(31, 23, 17, 0.82) 0%, rgba(14, 11, 9, 0.68) 100%);
}

.empty-state h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1.4rem;
}

.empty-state p {
  margin: 0;
  line-height: 1.7;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 42px;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

code {
  font-family: "Josefin Sans", sans-serif;
  color: var(--accent-soft);
}

@media (max-width: 900px) {
  .site-header,
  .section-head,
  .build-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .about-hero,
  .process-hero,
  .about-grid,
  .about-closing,
  .about-detail-list,
  .process-closer {
    grid-template-columns: 1fr;
  }

  .about-grid-wide .about-panel-feature {
    grid-column: auto;
  }

  .process-step {
    grid-template-columns: 1fr;
  }

  .build-header-meta {
    justify-items: start;
  }
}

@media (max-width: 640px) {
  .site-header,
  main,
  .site-footer {
    width: min(var(--max-width), calc(100% - 8vw));
  }

  .hero-copy,
  .feature-overlay,
  .build-summary,
  .build-panel,
  .about-hero-copy,
  .about-quote,
  .about-panel,
  .process-hero-copy,
  .process-summary,
  .process-step,
  .process-closer,
  .about-closing,
  .empty-state {
    padding-left: 22px;
    padding-right: 22px;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 16vw, 4.2rem);
  }

  .build-jump {
    min-width: 0;
    width: 100%;
  }
}

@media (min-width: 720px) {
  .masonry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1180px) {
  .masonry {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
