:root {
  --cream: #f5ead8;
  --cream-light: #fbf4e8;
  --paper: #efe0c8;
  --navy: #071827;
  --navy-soft: #102538;
  --brass: #b8863b;
  --brass-light: #d5aa62;
  --ink: #0b1724;
  --brown: #5d3d20;
  --muted: #6f6254;
  --line: rgba(93, 61, 32, 0.22);
  --shadow: 0 18px 42px rgba(48, 31, 15, 0.14);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(184, 134, 59, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(184, 134, 59, 0.06) 1px, transparent 1px),
    var(--cream-light);
  background-size: 48px 48px;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 12% 18%, rgba(184, 134, 59, 0.11), transparent 28%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.58), rgba(239, 224, 200, 0.34));
}

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

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--brass-light);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 14px;
  color: var(--cream-light);
  background: var(--navy);
  border-radius: 6px;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 244, 232, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  max-width: 1260px;
  min-height: 84px;
  padding: 14px 28px;
  margin: 0 auto;
}

.brand img {
  width: clamp(160px, 19vw, 236px);
  height: auto;
}

.nav-links {
  display: flex;
  justify-content: flex-end;
  gap: clamp(18px, 3vw, 40px);
  color: var(--navy);
  font-family: var(--serif);
  font-size: 18px;
}

.nav-links a {
  border-bottom: 1px solid transparent;
}

.nav-links a:hover {
  border-color: var(--brass);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 10px 20px rgba(7, 24, 39, 0.16);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(7, 24, 39, 0.22);
}

.button img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.button-primary {
  color: var(--cream-light);
  background: var(--navy);
  border-color: rgba(213, 170, 98, 0.68);
}

.button-outline {
  width: 100%;
  color: var(--brass-light);
  background: transparent;
  border-color: var(--brass);
  box-shadow: none;
}

.hero {
  overflow: hidden;
  background: linear-gradient(180deg, rgba(245, 234, 216, 0.46), rgba(245, 234, 216, 0.9));
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  max-width: none;
  min-height: clamp(620px, 68vw, 760px);
  padding: 72px 28px 52px;
  margin: 0 auto;
}

.hero-inner::before {
  display: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 570px;
  margin-left: max(0px, calc((100vw - 1320px) / 2));
  padding-left: clamp(0px, 2vw, 24px);
}

.eyebrow,
.group-label {
  margin: 0;
  color: var(--brown);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ornament {
  width: 106px;
  height: 18px;
  margin: 18px 0 24px;
  background:
    radial-gradient(circle, var(--brass) 0 4px, transparent 5px),
    linear-gradient(var(--brass), var(--brass));
  background-repeat: no-repeat;
  background-position: center, center;
  background-size: 16px 16px, 100% 1px;
}

.ornament-left {
  margin: 14px 0 18px;
}

.hero h1 {
  max-width: 640px;
  margin: 0;
  color: var(--navy);
  font-family: var(--serif);
  font-weight: 700;
  line-height: 0.98;
}

.hero h1 span {
  display: block;
}

.hero-brand-name {
  font-size: clamp(60px, 7.4vw, 112px);
  line-height: 0.88;
}

.hero-engine-name {
  margin-top: 8px;
  color: var(--brown);
  font-size: clamp(40px, 3.8vw, 58px);
  line-height: 1.02;
}

.hero-lede {
  max-width: 470px;
  margin: 26px 0 34px;
  color: var(--navy-soft);
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.36;
}

.hero-machine {
  position: absolute;
  inset: 0;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
}

.hero-machine::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 62% 47%, rgba(255, 198, 76, 0.5) 0 1.8%, rgba(255, 174, 42, 0.3) 5.5%, rgba(255, 174, 42, 0.11) 13%, transparent 24%),
    radial-gradient(circle at 62% 47%, rgba(255, 230, 160, 0.28), transparent 36%);
  mix-blend-mode: screen;
  opacity: 0.68;
  animation: engine-breathe 4.8s ease-in-out infinite;
}

.hero-machine img {
  position: absolute;
  top: 0;
  left: 50%;
  width: max(100%, calc(clamp(620px, 68vw, 760px) * 3.5556));
  max-width: none;
  height: auto;
  transform: translateX(-50%);
}

@keyframes engine-breathe {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.985);
  }

  45% {
    opacity: 0.9;
    transform: scale(1.035);
  }

  62% {
    opacity: 0.66;
    transform: scale(1.01);
  }
}

.bench-section {
  padding: 34px 28px 54px;
  background: rgba(251, 244, 232, 0.82);
  border-bottom: 1px solid var(--line);
}

.section-shell {
  max-width: 1240px;
  margin: 0 auto;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(60px, 1fr) auto minmax(60px, 1fr);
  align-items: center;
  gap: 22px;
  margin-bottom: 28px;
  text-align: center;
}

.section-heading span {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
}

.section-heading h2,
.workshop-copy h2,
.signal-card h2,
.footer-cta h2 {
  margin: 0;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.06;
}

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

.project-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  min-height: 276px;
  padding: 18px 16px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(239, 224, 200, 0.26)),
    var(--cream-light);
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: var(--shadow);
  transform: translateZ(0);
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease,
    background-color 220ms ease;
}

.project-card::before,
.project-card::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0;
  transition: opacity 220ms ease, transform 220ms ease;
}

.project-card::before {
  background:
    linear-gradient(90deg, rgba(184, 134, 59, 0.14) 1px, transparent 1px),
    linear-gradient(rgba(184, 134, 59, 0.12) 1px, transparent 1px),
    radial-gradient(circle at 50% 18%, rgba(213, 170, 98, 0.22), transparent 38%);
  background-size: 22px 22px, 22px 22px, 100% 100%;
}

.project-card::after {
  inset: 0;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 236, 178, 0.34) 50%, transparent 58%);
  transform: translateX(-100%);
}

.project-card > * {
  position: relative;
  z-index: 1;
}

.project-card:hover,
.project-card:focus-within {
  background-color: var(--cream-light);
  border-color: rgba(184, 134, 59, 0.62);
  box-shadow: 0 24px 54px rgba(48, 31, 15, 0.2), 0 0 0 1px rgba(213, 170, 98, 0.22);
  transform: translateY(-4px);
}

.project-card:hover::before,
.project-card:focus-within::before {
  opacity: 1;
}

.project-card:hover::after,
.project-card:focus-within::after {
  opacity: 1;
  transform: translateX(100%);
}

.project-card img {
  width: 88px;
  height: 88px;
  margin: 0 auto;
  object-fit: contain;
  transition: filter 220ms ease, transform 220ms ease;
}

.project-card:hover img,
.project-card:focus-within img {
  filter: drop-shadow(0 0 14px rgba(213, 170, 98, 0.52));
  transform: translateY(-2px) scale(1.04);
}

.project-card h3 {
  margin: 6px 0 7px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.05;
}

.project-card p {
  margin: 0;
}

.project-card div > p:last-child {
  color: var(--navy-soft);
  font-size: 14px;
  line-height: 1.38;
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 31px;
  padding: 6px 10px;
  color: var(--navy);
  background: rgba(245, 234, 216, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.status span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transition: box-shadow 220ms ease, transform 220ms ease;
}

.project-card:hover .status,
.project-card:focus-within .status {
  background: rgba(251, 244, 232, 0.88);
  border-color: rgba(184, 134, 59, 0.42);
  box-shadow: inset 0 0 0 1px rgba(213, 170, 98, 0.16);
}

.project-card:hover .status span,
.project-card:focus-within .status span {
  box-shadow: 0 0 0 5px rgba(213, 170, 98, 0.18), 0 0 14px rgba(213, 170, 98, 0.72);
  transform: scale(1.18);
}

.status-done span {
  background: #17814a;
}

.status-building span {
  background: #1f75d0;
}

.status-tuning span {
  background: #d4841d;
}

.status-private span {
  background: #8a55b5;
}

.workshop-section {
  padding: 52px 28px;
  background: rgba(239, 224, 200, 0.5);
}

.workshop-shell {
  display: grid;
  grid-template-columns: minmax(330px, 1.08fr) minmax(360px, 1.08fr) minmax(250px, 0.72fr);
  align-items: center;
  gap: 34px;
  max-width: 1240px;
  margin: 0 auto;
}

.mug-panel img {
  width: min(100%, 440px);
  margin: 0 auto;
  mix-blend-mode: multiply;
}

.workshop-copy p {
  max-width: 580px;
  margin: 0;
  color: var(--navy-soft);
  font-size: 17px;
}

.signal-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 22px;
  text-align: center;
  background: rgba(251, 244, 232, 0.72);
  border: 1px solid rgba(184, 134, 59, 0.55);
  border-radius: 8px;
  box-shadow: inset 0 0 0 4px rgba(184, 134, 59, 0.08);
}

.signal-card > img {
  width: 48px;
  height: 48px;
}

.signal-card h2 {
  font-size: clamp(20px, 2.3vw, 24px);
}

.site-footer {
  color: var(--cream-light);
  background:
    linear-gradient(90deg, rgba(213, 170, 98, 0.05) 1px, transparent 1px),
    var(--navy);
  background-size: 54px 54px;
  border-top: 1px solid rgba(213, 170, 98, 0.42);
}

.footer-shell {
  display: grid;
  grid-template-columns: 1.35fr 0.75fr 0.9fr 0.9fr 1.25fr;
  gap: 34px;
  max-width: 1240px;
  padding: 36px 28px 42px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.footer-brand img {
  width: 58px;
  height: 58px;
}

.footer-brand p,
.footer-cta p {
  margin: 0;
  color: rgba(251, 244, 232, 0.82);
}

.footer-name {
  color: var(--cream-light) !important;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
}

.footer-column,
.footer-cta {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-column h2,
.footer-cta h2 {
  margin: 0 0 4px;
  color: var(--cream-light);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-column a {
  color: rgba(251, 244, 232, 0.82);
  font-size: 14px;
}

.footer-column a:hover {
  color: var(--brass-light);
}

.footer-cta {
  padding: 22px;
  border: 1px solid var(--brass);
  border-radius: 8px;
}

.footer-cta h2 {
  color: var(--cream-light);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.footer-cta p {
  font-size: 14px;
}

@media (max-width: 1120px) {
  .nav-shell {
    grid-template-columns: auto auto;
  }

  .nav-links {
    display: none;
  }

  .hero-inner {
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
    padding-top: 64px;
    padding-bottom: 0;
  }

  .hero-inner::before {
    display: none;
  }

  .hero-copy {
    max-width: 600px;
    margin-left: 0;
    padding-bottom: 40px;
  }

  .hero-machine {
    position: relative;
    width: calc(100% + 56px);
    height: clamp(360px, 58vw, 590px);
    margin: 28px -28px -52px auto;
  }

  .hero-machine::before {
    display: none;
  }

  .hero-machine img {
    position: static;
    width: 100%;
    max-width: 100%;
    height: 100%;
    transform: none;
    object-fit: cover;
    object-position: center right;
  }

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

  .workshop-shell {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .signal-card {
    grid-column: 1 / -1;
  }

  .footer-shell {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

  .site-header {
    position: static;
  }

  .nav-shell {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    min-height: auto;
    padding: 16px 18px;
  }

  .brand img {
    width: 178px;
  }

  .nav-cta {
    width: 100%;
  }

  .hero-inner,
  .bench-section,
  .workshop-section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero h1 {
    max-width: 100%;
  }

  .hero-brand-name {
    font-size: clamp(48px, 17vw, 78px);
  }

  .hero-engine-name {
    font-size: clamp(34px, 10vw, 48px);
  }

  .hero-machine {
    width: calc(100% + 36px);
    height: 340px;
    margin-right: -18px;
    margin-bottom: -52px;
    margin-left: -18px;
  }

  .hero-machine img {
    object-position: 61% center;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .section-heading span {
    width: 100%;
  }

  .bench-grid,
  .workshop-shell,
  .footer-shell {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: 0;
  }

  .workshop-section {
    padding-top: 42px;
  }

  .mug-panel img {
    width: min(100%, 300px);
  }

  .signal-card {
    padding: 24px 18px;
  }

  .footer-shell {
    padding-right: 18px;
    padding-left: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
