:root {
  --bg: #050608;
  --bg-soft: #0b0f14;
  --steel: #c9d1d8;
  --steel-dim: #76808a;
  --line: rgba(191, 207, 224, 0.18);
  --text: #f5f7fb;
  --muted: #c4cad2;
  --blue: #0d4dff;
  --blue-hot: #3d78ff;
  --amber: #ffb246;
  --radius: 8px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 10%, rgba(38, 72, 126, 0.22), transparent 32rem),
    radial-gradient(circle at 80% 12%, rgba(255, 174, 61, 0.1), transparent 28rem),
    linear-gradient(135deg, #040506 0%, #0b0e12 48%, #050608 100%);
}

body.entered .frontpage {
  pointer-events: none;
}

a {
  color: inherit;
}

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

.spark-canvas {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(1rem, 3vw, 2.2rem);
  padding: 18px clamp(18px, 4vw, 48px);
  background: linear-gradient(180deg, rgba(2, 4, 8, 0.82), rgba(2, 4, 8, 0));
}

.home .site-header {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 350ms ease, transform 350ms ease;
}

body.entered.home .site-header {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.site-header.compact {
  position: sticky;
  justify-content: space-between;
  background: rgba(5, 7, 10, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

body.entered .site-header {
  background: rgba(5, 7, 10, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  order: 2;
  display: inline-flex;
  width: clamp(72px, 9vw, 118px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(61, 120, 255, 0.8);
  overflow: hidden;
  box-shadow: 0 0 0 4px rgba(13, 77, 255, 0.12), 0 14px 36px rgba(0, 0, 0, 0.42);
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compact .brand {
  order: 0;
  width: 70px;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.top-nav a {
  min-height: 38px;
  padding: 10px 13px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.top-nav a:hover,
.top-nav a:focus-visible,
.top-nav a[aria-current="page"] {
  color: #fff;
  border-color: rgba(61, 120, 255, 0.72);
  transform: translateY(-1px);
}

.frontpage {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 0;
  isolation: isolate;
  overflow: hidden;
  background: #030507;
}

.table-gate {
  position: relative;
  width: 100%;
  min-height: 100svh;
  display: block;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--text);
  background: url("../img/landingpage.png") center / contain no-repeat;
}

.table-gate::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), transparent 22%, transparent 80%, rgba(0, 0, 0, 0.28)),
    radial-gradient(circle at 50% 86%, rgba(13, 77, 255, 0.09), transparent 20rem);
}

.table-gate:focus-visible {
  outline: 2px solid var(--blue-hot);
  outline-offset: -10px;
}

.landing-arrow {
  position: absolute;
  left: 50%;
  bottom: clamp(22px, 5vh, 58px);
  z-index: 2;
  width: clamp(34px, 4vw, 52px);
  height: clamp(34px, 4vw, 52px);
  border-right: 4px solid #fff;
  border-bottom: 4px solid #fff;
  opacity: 0.92;
  filter: drop-shadow(0 0 12px rgba(61, 120, 255, 0.8));
  transform: translateX(-50%) rotate(45deg);
  animation: landingArrow 1250ms ease-in-out infinite;
}

body.entered .frontpage {
  animation: liftFront 900ms ease forwards;
}

.section-pad {
  padding: clamp(72px, 9vw, 132px) clamp(20px, 5vw, 72px);
}

.content-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
}

.section-label {
  margin: 0 0 16px;
  color: var(--blue-hot);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 980px;
  font-size: clamp(2.2rem, 5.5vw, 5.4rem);
  line-height: 0.96;
  font-weight: 950;
}

h2 {
  font-size: clamp(1.35rem, 2.5vw, 2.2rem);
  line-height: 1.06;
}

p {
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.72;
}

.intro-copy p:not(.section-label) {
  max-width: 760px;
}

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

.forge-button,
.instagram-button {
  position: relative;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  color: #fff;
  text-decoration: none;
  font-weight: 950;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid rgba(207, 221, 234, 0.24);
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.13), transparent 34%),
    linear-gradient(135deg, rgba(16, 22, 29, 0.92), rgba(43, 50, 57, 0.78));
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.forge-button::before,
.instagram-button::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-115%);
  background: linear-gradient(100deg, transparent, rgba(255, 178, 70, 0.34), transparent);
  transition: transform 520ms ease;
}

.forge-button:hover,
.forge-button:focus-visible,
.instagram-button:hover,
.instagram-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(61, 120, 255, 0.86);
  box-shadow: 0 28px 78px rgba(13, 77, 255, 0.2);
}

.forge-button:hover::before,
.forge-button:focus-visible::before,
.instagram-button:hover::before,
.instagram-button:focus-visible::before {
  transform: translateX(115%);
}

.forge-button svg {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.forge-button.subtle {
  min-height: 58px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
}

.instagram-button {
  justify-content: center;
  min-height: 58px;
  margin-top: 8px;
  color: #fff;
  background: linear-gradient(135deg, #1328a8, #9327a6 50%, #e36b38);
}

.instagram-button svg {
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.image-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.image-band img {
  width: 100%;
  height: clamp(220px, 28vw, 390px);
  object-fit: cover;
  filter: saturate(0.85) contrast(1.04);
}

.subpage {
  min-height: 100vh;
  padding-top: 12px;
}

.sub-hero,
.contact-hero {
  width: min(1380px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(290px, 0.9fr);
  gap: clamp(30px, 6vw, 90px);
  align-items: end;
}

.sub-hero p,
.contact-hero p {
  max-width: 640px;
}

.sub-hero > p {
  max-width: 720px;
  justify-self: end;
  font-size: clamp(1.15rem, 1.55vw, 1.38rem);
  line-height: 1.72;
}

.narrow {
  width: min(980px, 100%);
  margin: 0 auto;
}

.steel-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.steel-list li {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 16px 18px;
  color: var(--text);
  font-weight: 800;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.gallery {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gallery article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.045);
}

.gallery img {
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
}

.gallery h2 {
  padding: 18px;
  font-size: 1.05rem;
}

.contact-card {
  display: grid;
  gap: 12px;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent),
    rgba(255, 255, 255, 0.045);
  box-shadow: var(--shadow);
  font-style: normal;
}

.contact-card strong {
  color: var(--blue-hot);
  text-transform: uppercase;
}

.contact-card span {
  color: var(--text);
  font-weight: 750;
}

.contact-card a:not(.instagram-button) {
  color: var(--text);
  font-weight: 850;
}

.legal-page {
  width: min(920px, 100%);
  margin: 0 auto;
}

.legal-page h1 {
  font-size: clamp(2rem, 4vw, 3.9rem);
  margin-bottom: 40px;
}

.legal-block {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.legal-block h2 {
  margin-bottom: 12px;
  color: var(--text);
  font-size: 1.2rem;
}

.legal-block p {
  margin: 0 0 14px;
}

.legal-block a {
  color: #d9e5ff;
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 28px 18px 38px;
  border-top: 1px solid var(--line);
  background: rgba(5, 7, 10, 0.82);
}

.site-footer a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #fff;
  border-color: rgba(61, 120, 255, 0.72);
}

.notice {
  padding: 24px;
  border: 1px solid rgba(255, 178, 70, 0.38);
  border-radius: var(--radius);
  background: rgba(255, 178, 70, 0.08);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes landingArrow {
  0%, 100% {
    opacity: 0.58;
    transform: translateX(-50%) translateY(-8px) rotate(45deg);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) translateY(10px) rotate(45deg);
  }
}

@keyframes liftFront {
  to {
    opacity: 0;
    transform: scale(1.05);
    visibility: hidden;
  }
}

@media (max-width: 920px) {
  .site-header,
  .site-header.compact {
    position: sticky;
    justify-content: space-between;
    background: rgba(5, 7, 10, 0.92);
    border-bottom: 1px solid var(--line);
  }

  .home .site-header {
    position: fixed;
  }

  .top-nav {
    justify-content: flex-start;
    max-width: 72vw;
  }

  .top-nav a {
    min-height: 34px;
    padding: 8px 10px;
    font-size: 0.72rem;
  }

  .content-grid,
  .sub-hero,
  .contact-hero {
    grid-template-columns: 1fr;
  }

  .steel-list,
  .gallery,
  .image-band {
    grid-template-columns: 1fr;
  }

  .table-gate {
    min-height: 100svh;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 12px;
    align-items: flex-start;
  }

  .brand,
  .compact .brand {
    width: 60px;
  }

  .top-nav {
    max-width: calc(100vw - 92px);
    gap: 6px;
  }

  .frontpage {
    padding-inline: 0;
  }

  .table-gate {
    width: 100%;
    min-height: 100svh;
    background-position: center;
  }

  .forge-button,
  .instagram-button {
    min-height: 58px;
    padding: 15px;
    font-size: 0.86rem;
  }
}

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

  .spark-canvas {
    display: none;
  }
}
