:root {
  --ink: #172126;
  --steel: #34464d;
  --paper: #f6f8f4;
  --concrete: #d8ded8;
  --line: rgba(23, 33, 38, 0.14);
  --blue: #2077bd;
  --green: #5f9230;
  --copper: #b8663f;
  --white: #ffffff;
  --shadow: 0 28px 90px rgba(16, 26, 30, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(90deg, rgba(32, 119, 189, 0.12) 0 1px, transparent 1px 72px),
    linear-gradient(0deg, rgba(95, 146, 48, 0.1) 0 1px, transparent 1px 72px),
    radial-gradient(circle at 78% 18%, rgba(32, 119, 189, 0.18), transparent 28rem),
    var(--paper);
}

a {
  color: inherit;
  text-decoration-color: rgba(32, 119, 189, 0.42);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--blue);
}

a:focus-visible {
  outline: 3px solid rgba(32, 119, 189, 0.45);
  outline-offset: 5px;
}

.site-shell {
  min-height: 100svh;
  overflow: hidden;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.72fr);
  gap: clamp(2rem, 5vw, 5rem);
  min-height: 100svh;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4.75rem) 0;
  align-items: center;
}

.hero::before {
  content: none;
  position: absolute;
  inset: auto 37% 8% -8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(23, 33, 38, 0.36), transparent);
  transform: rotate(-16deg);
  transform-origin: left center;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.brand {
  display: inline-flex;
  width: clamp(12.5rem, 25vw, 19rem);
  padding: 0.7rem 0;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: clamp(1.5rem, 4vw, 3.2rem) 0 1rem;
  color: var(--steel);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.status::before {
  content: "";
  width: 0.72rem;
  height: 0.72rem;
  background: conic-gradient(from 90deg, var(--green), var(--blue), var(--green));
  border-radius: 50%;
  box-shadow: 0 0 0 0.38rem rgba(95, 146, 48, 0.12);
}

h1 {
  max-width: 13ch;
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(3rem, 6.4vw, 6rem);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: 0;
}

.intro {
  max-width: 42rem;
  margin: clamp(1.1rem, 2.4vw, 1.65rem) 0 0;
  color: var(--steel);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.75;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(14rem, 1.12fr) minmax(10rem, 0.82fr) minmax(18rem, 1.6fr);
  gap: 1px;
  margin-top: clamp(1.5rem, 3vw, 2.35rem);
  background: var(--line);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact-card {
  min-height: 10.75rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
}

.contact-card__label {
  display: block;
  margin-bottom: 1.1rem;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-card p {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.7;
  overflow-wrap: normal;
}

.contact-card a {
  white-space: nowrap;
  word-break: normal;
}

.contact-card:last-child p {
  font-size: 0.9rem;
}

.visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(70svh, 42rem);
  perspective: 1100px;
}

.visual__beam {
  display: none;
  position: absolute;
  border-radius: 999px;
  filter: blur(0.2px);
  opacity: 0.86;
}

.visual__beam--blue {
  width: 68%;
  height: 0.7rem;
  background: var(--blue);
  transform: rotate(-34deg) translate(-7%, -14rem);
  box-shadow: 0 18px 40px rgba(32, 119, 189, 0.24);
}

.visual__beam--green {
  width: 54%;
  height: 0.7rem;
  background: var(--green);
  transform: rotate(-34deg) translate(16%, 12rem);
  box-shadow: 0 18px 40px rgba(95, 146, 48, 0.22);
}

.model-stage {
  position: relative;
  width: min(42vw, 35rem);
  min-width: 24rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: visible;
}

.model-stage::after {
  content: none;
  position: absolute;
  inset: 72% 4% 4%;
  background:
    radial-gradient(ellipse at center, rgba(23, 33, 38, 0.22), rgba(23, 33, 38, 0));
  transform: rotate(-10deg);
  z-index: 0;
}

.model-canvas {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
}

.model-fallback {
  position: absolute;
  left: 50%;
  bottom: 12%;
  margin: 0;
  padding: 0.55rem 0.75rem;
  color: var(--white);
  background: rgba(23, 33, 38, 0.72);
  border: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 1;
  transition: opacity 200ms ease;
}

.model-stage.is-loaded .model-fallback {
  opacity: 0;
}

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

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
  }

  .hero__content {
    max-width: none;
  }

  h1 {
    max-width: 11ch;
  }

  .visual {
    min-height: 22rem;
    margin-top: -1rem;
  }

  .model-stage {
    width: min(70vw, 24rem);
  }
}

@media (max-width: 760px) {
  .hero {
    width: min(100% - 28px, 1180px);
    padding: 1.4rem 0 2rem;
  }

  .status {
    margin-top: 1.6rem;
  }

  h1 {
    max-width: 10ch;
    font-size: clamp(3rem, 16vw, 4.9rem);
  }

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

  .contact-card a {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .contact-card {
    min-height: auto;
  }

  .visual {
    min-height: 17rem;
  }

  .model-stage {
    min-width: 15rem;
  }
}
