:root {
  --bg: #080807;
  --bg-deep: #050504;
  --panel: rgba(17, 15, 12, 0.92);
  --panel-2: rgba(24, 19, 15, 0.94);
  --paper: #f8ead0;
  --text: #f8ead0;
  --muted: #d3bd94;
  --dim: #aa8f61;
  --gold: #c98a2f;
  --gold-soft: #f1c675;
  --brass: #8f5f24;
  --red: #651315;
  --red-bright: #9d2826;
  --patina: #79b9a9;
  --ink: #1b120a;
  --line: rgba(218, 159, 68, 0.36);
  --line-soft: rgba(248, 218, 156, 0.16);
  --shadow: rgba(0, 0, 0, 0.72);
  --max: 76rem;
  --radius: 8px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(8, 8, 7, 0), rgba(8, 8, 7, 0.92) 42rem),
    repeating-linear-gradient(90deg, rgba(255, 219, 137, 0.025) 0 1px, transparent 1px 72px),
    linear-gradient(180deg, #050504, #0d0a07 42%, #080807);
  font-family: Georgia, "Times New Roman", serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background-image: url("../img/workshop-scene-blur.webp");
  background-position: center top;
  background-size: min(120rem, 180vw) auto;
  background-repeat: no-repeat;
  opacity: 0.18;
  filter: saturate(0.92) contrast(1.04);
}

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

img {
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--patina);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-150%);
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background: #0d0a07;
  color: var(--gold-soft);
  font: 800 0.78rem/1 system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.skip-link:focus {
  transform: none;
}

.section {
  position: relative;
  padding: clamp(4.5rem, 8vw, 7.5rem) clamp(1rem, 4vw, 3rem);
}

.site-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: 0.13;
  background-image:
    radial-gradient(circle at 20% 40%, rgba(255, 219, 137, 0.14) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 10%, rgba(121, 185, 169, 0.1) 0 1px, transparent 1px);
  background-size: 38px 38px, 71px 71px;
  mix-blend-mode: screen;
}

.site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2.4vw, 2rem);
  padding: 0.85rem clamp(1rem, 3vw, 2.5rem);
  border-bottom: 1px solid rgba(248, 218, 156, 0.08);
  background: linear-gradient(180deg, rgba(4, 4, 3, 0.88), rgba(4, 4, 3, 0.56));
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.24);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  min-width: max-content;
  color: var(--gold-soft);
  font: 800 0.82rem/1 system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.brand-mark {
  width: 2.4rem;
  height: 2.4rem;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(225, 154, 48, 0.45));
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(0.85rem, 2.8vw, 3rem);
  margin-inline: auto;
  color: #f0d8aa;
  font: 800 0.68rem/1.2 system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.24em;
}

.nav a {
  opacity: 0.82;
  transition: color 180ms ease, opacity 180ms ease;
}

.nav a:hover {
  color: var(--gold-soft);
  opacity: 1;
}

.nav-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.65rem;
  border: 1px solid rgba(241, 198, 117, 0.72);
  border-radius: var(--radius);
  padding: 0.78rem 1rem;
  color: var(--gold-soft);
  background:
    linear-gradient(180deg, rgba(56, 33, 13, 0.78), rgba(18, 13, 8, 0.84)),
    repeating-linear-gradient(135deg, rgba(241, 198, 117, 0.06) 0 1px, transparent 1px 8px);
  box-shadow: inset 0 0 18px rgba(201, 138, 47, 0.08), 0 10px 24px rgba(0, 0, 0, 0.24);
  font: 800 0.68rem/1 system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav-button:hover,
.button:hover {
  transform: translateY(-1px);
  border-color: var(--gold-soft);
  background:
    linear-gradient(180deg, rgba(88, 50, 16, 0.82), rgba(24, 16, 8, 0.88)),
    repeating-linear-gradient(135deg, rgba(241, 198, 117, 0.08) 0 1px, transparent 1px 8px);
}

.hero {
  min-height: 92svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(180deg, rgba(5, 5, 4, 0.16), rgba(5, 5, 4, 0.74)),
    url("../img/workshop-scene.webp") center / cover no-repeat;
  opacity: 0.24;
  filter: saturate(0.86) contrast(1.08);
}

.hero::after {
  content: "";
  position: absolute;
  left: clamp(1rem, 4vw, 3rem);
  right: clamp(1rem, 4vw, 3rem);
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(241, 198, 117, 0.5), transparent);
}

.blueprint {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(201, 138, 47, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 138, 47, 0.08) 1px, transparent 1px),
    repeating-linear-gradient(0deg, transparent 0 22px, rgba(121, 185, 169, 0.035) 22px 23px);
  background-size: 72px 72px, 72px 72px, 100% 23px;
  mask-image: linear-gradient(180deg, transparent, #000 13%, #000 72%, transparent);
}

.blueprint::before,
.blueprint::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(201, 138, 47, 0.16);
  box-shadow: inset 0 0 0 2.4rem rgba(201, 138, 47, 0.018);
}

.blueprint::before {
  width: min(26rem, 58vw);
  aspect-ratio: 1;
  left: 7%;
  top: 22%;
  border-radius: 50%;
}

.blueprint::after {
  width: min(22rem, 52vw);
  aspect-ratio: 1;
  right: 8%;
  top: 18%;
  transform: rotate(2deg);
}

.hero-glow {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 18rem;
  background: linear-gradient(180deg, transparent, rgba(201, 138, 47, 0.11));
}

.hero-inner {
  position: relative;
  width: min(100%, 62rem);
  padding-top: 4rem;
}

.hero-mark {
  width: clamp(9rem, 22vw, 17rem);
  margin-bottom: -0.9rem;
  filter: drop-shadow(0 0 24px rgba(229, 153, 42, 0.36));
}

.hero-kicker {
  margin: 0.2rem 0 0.4rem;
  color: var(--patina);
  font: 800 clamp(0.72rem, 1.4vw, 0.86rem)/1.2 system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

h1 {
  margin: 0;
  color: transparent;
  background: linear-gradient(180deg, #ffe8b2, #a5671e 48%, #f3c36e 64%, #6e4218);
  background-clip: text;
  -webkit-background-clip: text;
  font-size: clamp(4rem, 12vw, 11rem);
  line-height: 0.82;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  text-shadow: 0 0 28px rgba(212, 135, 35, 0.25);
}

.tagline {
  margin: 0.85rem 0 0;
  color: var(--gold-soft);
  font-size: clamp(1.35rem, 3vw, 2.45rem);
  line-height: 1.1;
}

.lede {
  max-width: 40rem;
  margin: 1.4rem auto 0;
  color: #eadabb;
  font-size: clamp(1.03rem, 1.8vw, 1.32rem);
  line-height: 1.55;
}

.scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.42rem;
  margin-top: clamp(1.5rem, 4vw, 2.4rem);
  color: var(--gold-soft);
  font: 800 0.68rem/1 system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  animation: float 2.4s ease-in-out infinite;
}

.scroll-cue b {
  font-size: 1.8rem;
  line-height: 1;
}

.theatre {
  min-height: 100svh;
  padding-top: clamp(6rem, 9vw, 8.5rem);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 8, 7, 0.4), #090706 18%, #120b08 100%),
    repeating-linear-gradient(90deg, rgba(255, 216, 138, 0.035) 0 1px, transparent 1px 86px);
}

.theatre::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.42));
  pointer-events: none;
}

.curtain {
  position: absolute;
  top: 3.5rem;
  bottom: 0;
  z-index: 1;
  width: 34vw;
  min-width: 18rem;
  background:
    linear-gradient(90deg, rgba(255, 210, 111, 0.18), transparent 12%, transparent 84%, rgba(0, 0, 0, 0.45)),
    repeating-linear-gradient(90deg, #3b0608 0 18px, #7d1516 22px 42px, #2f0507 46px 62px);
  box-shadow: inset 0 0 35px rgba(0, 0, 0, 0.82), 0 0 50px rgba(0, 0, 0, 0.8);
  filter: saturate(1.14);
  opacity: 0.94;
}

.curtain-left {
  left: -12vw;
  transform: skewY(-7deg);
}

.curtain-right {
  right: -12vw;
  transform: skewY(7deg);
}

.stage-sign {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto 2rem;
  padding: clamp(1rem, 2.4vw, 1.45rem) clamp(1rem, 4vw, 2rem);
  border: 2px solid rgba(201, 138, 47, 0.82);
  border-radius: var(--radius);
  color: #ffd990;
  background:
    linear-gradient(180deg, rgba(120, 51, 18, 0.98), rgba(43, 19, 9, 0.98)),
    repeating-linear-gradient(90deg, rgba(255, 217, 144, 0.08) 0 1px, transparent 1px 16px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.65), inset 0 0 0 4px rgba(255, 202, 95, 0.08);
  font-size: clamp(1.28rem, 4.3vw, 4rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.055em;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 3px 0 #3d1b0c, 0 0 20px rgba(255, 193, 87, 0.28);
  transform: rotate(-1deg);
}

.engine-card {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #090706;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.72);
  transform-origin: center top;
}

.engine-card img {
  display: block;
  width: 100%;
  height: auto;
  filter: contrast(1.06) saturate(1.03);
}

.engine-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.62)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 5px);
}

.engine-caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(201, 138, 47, 0.34);
  border-radius: var(--radius);
  color: #f3d5a2;
  background: rgba(4, 4, 3, 0.76);
  backdrop-filter: blur(8px);
  text-align: center;
}

.engine-caption strong {
  color: var(--gold-soft);
}

.workshop {
  padding-top: clamp(4rem, 7vw, 6rem);
}

.panel,
.project-panel,
.notice {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, var(--panel), rgba(8, 8, 7, 0.95)),
    repeating-linear-gradient(135deg, rgba(241, 198, 117, 0.045) 0 1px, transparent 1px 12px);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.36), inset 0 0 40px rgba(201, 138, 47, 0.035);
}

.panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1rem, 3vw, 1.6rem);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(1.2rem, 4vw, 2.1rem);
}

.panel-icon {
  display: grid;
  place-items: center;
  width: clamp(4rem, 8vw, 5.2rem);
  height: clamp(4rem, 8vw, 5.2rem);
  border: 1px solid rgba(241, 198, 117, 0.68);
  color: var(--gold-soft);
  background: rgba(121, 185, 169, 0.08);
  font-size: clamp(1.85rem, 4vw, 2.25rem);
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--gold-soft);
  font: 800 0.76rem/1.25 system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.panel h2,
.projects h2 {
  margin: 0.2rem 0 1rem;
  color: #ffe0a2;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

.panel p:not(.eyebrow) {
  max-width: 58rem;
  margin: 0;
  color: #e6d2ac;
  font-size: clamp(1.03rem, 1.8vw, 1.14rem);
  line-height: 1.66;
}

.projects {
  padding-top: clamp(3.5rem, 6vw, 5rem);
}

.projects h2 {
  max-width: 14ch;
  margin-inline: auto;
  text-align: center;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.35rem);
  max-width: var(--max);
  margin: clamp(1.4rem, 3vw, 2.1rem) auto 0;
}

.project-panel {
  padding: clamp(1rem, 2.6vw, 1.5rem);
}

.project-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.95rem;
  align-items: center;
  min-height: 5.25rem;
  padding: 1.08rem 0;
  border-top: 1px solid rgba(201, 138, 47, 0.2);
}

.project-list li:first-child {
  border-top: 0;
}

.project-icon {
  display: grid;
  place-items: center;
  width: 3.15rem;
  height: 3.15rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold-soft);
  background: rgba(7, 7, 6, 0.46);
  font-size: 1.18rem;
}

.project-list strong,
.project-list small {
  display: block;
}

.project-list strong {
  color: #ffe0a2;
  font-size: 1.1rem;
  line-height: 1.2;
}

.project-list small {
  margin-top: 0.24rem;
  color: #cdb78d;
  line-height: 1.38;
}

.status {
  justify-self: end;
  min-width: 4.6rem;
  border: 1px solid;
  border-radius: 999px;
  padding: 0.46rem 0.56rem;
  font: 800 0.6rem/1 system-ui, sans-serif;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.done {
  border-color: rgba(191, 226, 139, 0.52);
  color: #bfe28b;
  background: rgba(90, 128, 51, 0.11);
}

.progress {
  border-color: rgba(255, 216, 138, 0.52);
  color: #ffd88a;
  background: rgba(201, 138, 47, 0.1);
}

.private {
  border-color: rgba(121, 185, 169, 0.5);
  color: #b9f0e4;
  background: rgba(121, 185, 169, 0.09);
}

.notice {
  max-width: var(--max);
  margin: 0 auto clamp(3rem, 6vw, 4.5rem);
  padding: clamp(1.4rem, 4vw, 2.2rem);
  text-align: center;
}

.notice p {
  max-width: 54rem;
  margin: 0.3rem auto;
  color: #e5d2ad;
  line-height: 1.62;
}

.notice strong {
  color: #ffe0a2;
}

.notice .button {
  margin-top: 1.25rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 2rem clamp(1rem, 3vw, 3rem);
  border-top: 1px solid var(--line);
  color: #b99b67;
  background: rgba(5, 5, 4, 0.68);
  font-size: 0.9rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 760ms var(--ease), transform 760ms var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }
}

@media (max-width: 900px) {
  .site-header {
    align-items: center;
  }

  .nav {
    display: none;
  }

  .nav-button {
    margin-left: auto;
  }

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

  .curtain {
    width: 46vw;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 4.75rem;
  }

  .section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .site-header {
    padding-block: 0.7rem;
  }

  .brand {
    letter-spacing: 0.14em;
  }

  .brand-mark {
    width: 2.05rem;
    height: 2.05rem;
  }

  .nav-button {
    min-height: 2.35rem;
    padding: 0.64rem 0.7rem;
    font-size: 0.58rem;
    letter-spacing: 0.08em;
  }

  .nav-button span {
    display: none;
  }

  .hero {
    min-height: 92svh;
  }

  .hero-inner {
    padding-top: 3.5rem;
  }

  .hero-mark {
    width: 9.5rem;
  }

  .hero-kicker {
    max-width: 16rem;
    margin-inline: auto;
    font-size: 0.66rem;
    letter-spacing: 0.12em;
  }

  h1 {
    font-size: clamp(2.9rem, 15vw, 5.2rem);
    letter-spacing: 0.025em;
  }

  .lede {
    margin-top: 1rem;
  }

  .blueprint::before {
    left: -16%;
  }

  .blueprint::after {
    right: -22%;
  }

  .stage-sign {
    font-size: clamp(1.08rem, 7vw, 2rem);
    letter-spacing: 0.035em;
  }

  .engine-caption {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    border-width: 1px 0 0;
    border-radius: 0;
  }

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

  .project-list li {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  .status {
    grid-column: 2;
    justify-self: start;
  }

  .site-footer {
    display: grid;
  }
}

@media (max-width: 390px) {
  .nav-button {
    display: none;
  }

  .hero-mark {
    width: 8.5rem;
  }

  h1 {
    font-size: clamp(2.55rem, 14vw, 4.1rem);
  }

  .tagline {
    font-size: 1.2rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

