:root {
  --font-body: "Barlow", sans-serif;
  --font-display: "Cinzel", serif;
  --bg: #040404;
  --panel: rgba(17, 17, 17, 0.78);
  --panel-strong: rgba(11, 11, 11, 0.9);
  --steel-1: #ecf0f4;
  --steel-2: #a3adb6;
  --steel-3: #5c646d;
  --steel-4: #181d21;
  --ember: #ff6a00;
  --ember-soft: #ff9d4d;
  --line: rgba(255, 255, 255, 0.12);
  --muted: #d9dfe6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: #f3f5f6;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
}

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

.page-shell {
  width: min(1400px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 18px 0 24px;
}

.topbar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 12px 0 18px;
  border-bottom: 1px solid var(--line);
}

.header-nav {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(243, 245, 246, 0.82);
}

.header-nav a {
  transition: color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .header-nav a:hover {
    color: var(--ember-soft);
  }
}

.header-nav a:focus-visible {
  outline: 1px solid var(--ember-soft);
  outline-offset: 4px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  text-decoration: none;
}

.wordmark-only {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 4vw, 5rem);
  letter-spacing: 0;
  font-weight: 700;
  line-height: 1;
}

.grav-text {
  color: var(--ember);
}

.forge-text {
  color: #f3f5f6;
}

.forge-mark {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, rgba(231, 235, 238, 0.96) 0%, rgba(166, 171, 176, 0.92) 18%, rgba(84, 90, 97, 0.9) 30%, rgba(22, 25, 27, 0.98) 55%, rgba(0, 0, 0, 1) 100%);
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.03), 0 10px 20px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.forge-mark::before,
.forge-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.forge-mark::before {
  inset: 10px;
  border: 10px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.forge-mark::after {
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0.34), rgba(255, 255, 255, 0.12));
  mask: radial-gradient(farthest-side, transparent calc(100% - 10px), #000 0);
  opacity: 0.24;
}

.forge-core {
  position: absolute;
  inset: 26% 18% 18% 18%;
  background: linear-gradient(135deg, rgba(12, 14, 16, 0.98), rgba(27, 27, 27, 0.98));
  clip-path: polygon(0 0, 100% 0, 100% 20%, 56% 20%, 56% 100%, 42% 100%, 42% 20%, 0 20%);
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.03);
}

.forge-core::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 120, 36, 0.18), rgba(255, 120, 36, 0.02));
  clip-path: polygon(0 0, 100% 0, 100% 20%, 56% 20%, 56% 100%, 42% 100%, 42% 20%, 0 20%);
}

.forge-core::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 30%;
  width: 82%;
  height: 82%;
  transform: translate(-50%, -5%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 180, 100, 0.96) 0%, rgba(255, 114, 28, 0.92) 18%, rgba(124, 38, 0, 0.8) 40%, rgba(0, 0, 0, 0.1) 68%, transparent 100%);
  filter: blur(12px);
  opacity: 0.9;
}

.wordmark {
  display: flex;
  align-items: baseline;
  font-family: "Cinzel", serif;
  font-weight: 800;
  letter-spacing: -0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
}

.grav,
.forge {
  font-size: clamp(1.15rem, 1.8vw, 2.05rem);
}

.grav {
  color: rgba(240, 244, 247, 0.9);
}

.forge {
  color: var(--ember);
}

.content {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-top: 22px;
}

.panel {
  position: relative;
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(17, 17, 17, 0.82);
  padding: 22px 26px 24px;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--ember-soft);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.intro-panel h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
  color: #f3f5f6;
}

.intro-copy {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  line-height: 1.55;
  color: var(--muted);
  letter-spacing: normal;
  word-spacing: normal;
  text-align: left;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 18px;
}

.work-panel .section-head {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 2.6vw, 3rem);
  line-height: 1.05;
}

.project-navigator {
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-nav-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--steel-1);
  font: inherit;
  font-size: 1.15rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.project-nav-button:hover {
  border-color: var(--ember-soft);
  background: rgba(255, 106, 0, 0.1);
  color: var(--ember-soft);
}

.project-nav-button:focus-visible {
  outline: 1px solid var(--steel-2);
  outline-offset: 3px;
}

.project-nav-button:disabled {
  cursor: default;
  border-color: var(--line);
  background: transparent;
  color: var(--steel-3);
  opacity: 0.45;
}

.project-carousel {
  overflow: hidden;
}

.project-grid {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  scroll-behavior: smooth;
  touch-action: manipulation;
  -webkit-overflow-scrolling: touch;
}

.project-grid::-webkit-scrollbar {
  display: none;
}

.project-swipe-cue {
  display: flex;
  justify-content: center;
  gap: 14px;
  height: 18px;
  margin-top: 12px;
  color: var(--ember-soft);
  opacity: 0.82;
  pointer-events: none;
}

.project-swipe-direction {
  display: flex;
  gap: 3px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.project-swipe-cue.can-go-previous .project-swipe-previous,
.project-swipe-cue.can-go-next .project-swipe-next {
  opacity: 1;
}

.project-swipe-direction span {
  width: 9px;
  height: 9px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
  animation: project-swipe-next 1.4s ease-in-out infinite alternate;
}

.project-swipe-direction span:last-child {
  animation-delay: 0.16s;
}

.project-swipe-previous span {
  transform: rotate(-135deg);
  animation-name: project-swipe-previous;
}

@keyframes project-swipe-next {
  from {
    transform: translateX(-3px) rotate(45deg);
  }

  to {
    transform: translateX(3px) rotate(45deg);
  }
}

@keyframes project-swipe-previous {
  from {
    transform: translateX(3px) rotate(-135deg);
  }

  to {
    transform: translateX(-3px) rotate(-135deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-swipe-direction span {
    animation: none;
  }
}

.project-card {
  display: flex;
  flex: 0 0 calc((100% - 18px) / 2);
  flex-direction: column;
  aspect-ratio: 1;
  scroll-snap-align: start;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(16, 16, 16, 0.92);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.placeholder-card {
  pointer-events: none;
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 157, 77, 0.28);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
}

.thumb {
  position: relative;
  min-height: 0;
  flex: 1 1 auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(28, 27, 25, 1), rgba(11, 10, 9, 1));
}

.project-thumbnail {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.thumb-one {
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 108, 0, 0.22), transparent 30%),
    linear-gradient(135deg, #26201c, #120d0b 64%, #1a1513);
}

.thumb-two {
  background:
    radial-gradient(circle at 72% 20%, rgba(255, 108, 0, 0.18), transparent 28%),
    linear-gradient(135deg, #1f1816, #100c0a 62%, #181310);
}

.thumb-three {
  background:
    radial-gradient(circle at 55% 24%, rgba(255, 108, 0, 0.14), transparent 25%),
    linear-gradient(135deg, #261f1b, #120d0b 62%, #1d1714);
}

.thumb-gear {
  position: absolute;
  width: 116px;
  height: 116px;
  left: 22px;
  top: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.18) 0%, rgba(30, 30, 30, 0.95) 18%, rgba(120, 120, 120, 0.78) 38%, rgba(22, 22, 22, 0.95) 100%);
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.04);
}

.thumb-gear.small {
  width: 86px;
  height: 86px;
  right: 24px;
  left: auto;
  top: 48px;
}

.thumb-gear.tiny {
  width: 62px;
  height: 62px;
  right: 34px;
  left: auto;
  top: 52px;
}

.pipe,
.brace,
.panel-block {
  position: absolute;
}

.pipe {
  right: 32px;
  bottom: 28px;
  width: 128px;
  height: 30px;
  border-radius: 20px;
  background: linear-gradient(90deg, rgba(223, 227, 231, 0.14), rgba(255, 156, 70, 0.8), rgba(223, 227, 231, 0.14));
}

.brace {
  left: 32px;
  bottom: 28px;
  width: 170px;
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(223, 227, 231, 0.18), rgba(255, 156, 70, 0.8), rgba(223, 227, 231, 0.16));
}

.panel-block {
  left: 40px;
  bottom: 32px;
  width: 172px;
  height: 88px;
  border: 1px solid rgba(223, 227, 231, 0.12);
  background: rgba(17, 17, 17, 0.7);
}

.project-copy {
  padding: 16px 18px 18px;
}

.meta {
  margin: 0 0 8px;
  color: var(--ember-soft);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-copy h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  margin-bottom: 0;
}

.footer-contact {
  width: 100%;
}

.footer-contact > .eyebrow {
  margin-bottom: 10px;
  text-align: left;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  flex-shrink: 0;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-panel h2 {
  margin: 0;
  max-width: 620px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.3vw, 2.6rem);
  line-height: 1.15;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contact-links a {
  transition: color 0.2s ease;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  color: var(--ember-soft);
}

@media (max-width: 900px), (hover: none) and (pointer: coarse) {
  .topbar {
    flex-direction: column;
    align-items: center;
  }

  .main-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 20px;
  }

  .footer-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    height: calc((100vw - 116px) * 2 + 18px);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    touch-action: manipulation;
  }

  .project-card {
    width: 100%;
    min-height: 0;
    scroll-snap-align: start;
  }
}

@media (min-width: 901px) {
  .project-navigator {
    display: flex;
  }

  .project-grid {
    display: flex;
    height: auto;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    touch-action: manipulation;
  }

  .project-card {
    width: auto;
    min-height: initial;
    flex-basis: calc((100% - 18px) / 2);
  }
}

@media (min-width: 600px) and (max-width: 900px), (min-width: 600px) and (hover: none) and (pointer: coarse) {
  .project-grid {
    display: flex;
    height: auto;
  }

  .project-card {
    flex: 0 0 calc((100% - 18px) / 2);
    width: auto;
  }
}

@media (max-width: 599px) {
  .footer-panel {
    align-items: center;
    text-align: center;
  }

  .contact-card,
  .contact-links {
    justify-content: center;
    align-items: center;
  }

  .contact-card {
    flex-direction: column;
    gap: 12px;
  }

  .contact-info {
    display: contents;
  }

  .footer-panel h2 {
    order: 1;
  }

  .footer-logo {
    order: 2;
  }

  .contact-links {
    order: 3;
  }
}

@media (max-width: 700px) {
  .main-nav {
    gap: 18px;
    letter-spacing: 0.12em;
  }

  .brand-lockup {
    gap: 10px;
  }

  .forge-mark {
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 500px) {
  .contact-card {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .contact-info {
    min-width: 0;
  }

  .contact-links a {
    overflow-wrap: anywhere;
  }
}

.project-body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  background: linear-gradient(180deg, #0d0908, #17110d);
  color: #f5efe6;
}

.project-page {
  width: min(960px, calc(100% - 32px));
  margin: 28px auto 40px;
  padding: 32px 28px 36px;
  border: 1px solid rgba(231, 199, 132, 0.18);
  border-radius: 16px;
  background: rgba(19, 14, 11, 0.9);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.2);
}

.project-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.back-link,
.deployment-link {
  color: #e7c784;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.back-link:hover,
.back-link:focus-visible,
.deployment-link:hover,
.deployment-link:focus-visible {
  color: #f3f5f6;
}

.project-kicker {
  margin: 0;
  color: #e7c784;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-page h1 {
  margin: 18px 0 10px;
  font-family: "Cinzel", serif;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.1;
}

.project-hero {
  width: 100%;
  height: 260px;
  display: block;
  margin: 22px 0 26px;
  border: 1px solid rgba(231, 199, 132, 0.12);
  border-radius: 14px;
  object-fit: cover;
}

.project-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
}

.project-layout p,
.project-layout li {
  color: #d1baa1;
  line-height: 1.8;
}

.project-layout ul {
  margin: 0;
  padding-left: 20px;
}

.project-description {
  margin: 0;
  font-size: 1.08rem;
}

.project-description + .project-description {
  margin-top: 16px;
}

.project-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.info-box {
  padding: 18px 18px 12px;
  border: 1px solid rgba(231, 199, 132, 0.14);
  border-radius: 12px;
  background: rgba(28, 21, 17, 0.6);
}

.info-box h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.deployment-link {
  display: inline-flex;
  justify-content: center;
  padding: 12px 14px;
  border: 1px solid rgba(255, 157, 77, 0.45);
  border-radius: 6px;
}

@media (max-width: 700px) {
  .project-page {
    width: min(100% - 24px, 960px);
    margin: 12px auto 24px;
    padding: 20px;
  }

  .project-topbar,
  .project-layout {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .project-hero {
    height: auto;
    aspect-ratio: 4 / 3;
    margin: 22px 0;
  }
}
