:root {
  --bg: #f3f1ec;
  --bg-deep: #ebe7df;
  --ink: #141414;
  --muted: #6b6760;
  --line: rgba(20, 20, 20, 0.1);
  --surface: #faf8f4;
  --accent: #1f3a34;
  --accent-soft: #d8e4df;
  --warm: #c4a484;
  --display: "Instrument Serif", Georgia, serif;
  --sans: "Outfit", system-ui, sans-serif;
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(ellipse 70% 45% at 10% 0%, rgba(216, 228, 223, 0.55), transparent 55%),
    radial-gradient(ellipse 50% 35% at 90% 8%, rgba(196, 164, 132, 0.14), transparent 50%),
    var(--bg);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  text-wrap: balance;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

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

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 5vw;
  background: rgba(243, 241, 236, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.28em;
  font-size: 0.82rem;
}

.links {
  display: none;
  gap: 1.75rem;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 450;
}

.links a:hover {
  color: var(--ink);
}

.nav-cta {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

.hero {
  width: min(100% - 10vw, var(--max));
  margin: 0 auto;
  padding: 4.5rem 0 3rem;
  display: grid;
  gap: 2.5rem;
}

.label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 1rem;
}

h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-bottom: 1.4rem;
}

h1 .italic {
  font-style: italic;
  color: #3a4f48;
}

.sub {
  max-width: 28rem;
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.7;
}

.hero-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.95rem 1.5rem;
  font-size: 0.92rem;
  font-weight: 560;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  font-family: inherit;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: scale(0.98);
}

.btn.primary {
  background: var(--ink);
  color: #f7f5f0;
  box-shadow: 0 12px 30px rgba(20, 20, 20, 0.12);
}

.btn.primary:hover {
  background: #2a2a2a;
}

.btn.line {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.btn.line:hover {
  border-color: var(--ink);
}

.hero-stage {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: #ddd8cf;
  min-height: 340px;
  box-shadow:
    0 40px 80px rgba(31, 58, 52, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.4) inset;
}

.stage-glow {
  position: absolute;
  inset: auto 10% 0;
  height: 45%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.55), transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.hero-img {
  width: 100%;
  height: min(58vw, 520px);
  object-fit: cover;
  filter: saturate(0.88) contrast(1.02);
}

.stage-chip {
  position: absolute;
  left: 1.1rem;
  bottom: 1.1rem;
  z-index: 2;
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  background: rgba(250, 248, 244, 0.9);
  backdrop-filter: blur(8px);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.stage-chip .dim {
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: none;
}

.marquee {
  border-block: 1px solid var(--line);
  background: var(--bg-deep);
  overflow: hidden;
  padding: 1rem 0;
}

.track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: slide 28s linear infinite;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}

.statement {
  width: min(100% - 10vw, var(--max));
  margin: 0 auto;
  padding: 5.5rem 0 4rem;
}

.statement p {
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 16ch;
}

.statement em {
  font-style: italic;
  color: #3a4f48;
}

.system {
  width: min(100% - 10vw, var(--max));
  margin: 0 auto;
  padding: 2rem 0 5rem;
}

.sys-head h2,
.cycle-head h2,
.export h2,
.spec-left h2,
.copy h2,
.cta-box h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.sys-grid {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.sys-card {
  background: linear-gradient(165deg, #fbf9f5, #f5f1ea);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.6rem;
  box-shadow: 0 18px 40px rgba(31, 58, 52, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sys-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(31, 58, 52, 0.08);
}

.sys-card.large {
  display: grid;
  gap: 1rem;
}

.sys-card.large img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  filter: saturate(0.9);
}

.sys-num {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 1rem;
  font-weight: 600;
}

.sys-card h3 {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 400;
  margin-bottom: 0.55rem;
}

.sys-card p {
  color: var(--muted);
  max-width: 34ch;
}

.split-photo {
  display: grid;
  background: #171614;
  color: #f3f1ec;
}

.split-photo .photo img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.05);
}

.split-photo .copy {
  padding: clamp(2rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-photo .label {
  color: rgba(243, 241, 236, 0.5);
}

.split-photo .sub,
.split-photo p {
  color: rgba(243, 241, 236, 0.72);
  max-width: 34rem;
  margin-top: 1rem;
}

.split-photo ul {
  list-style: none;
  margin-top: 1.75rem;
  display: grid;
  gap: 0.7rem;
}

.split-photo li {
  padding-left: 1rem;
  border-left: 2px solid rgba(196, 164, 132, 0.7);
  color: rgba(243, 241, 236, 0.88);
  font-size: 0.95rem;
}

.cycle {
  width: min(100% - 10vw, var(--max));
  margin: 0 auto;
  padding: 5rem 0;
}

.cycle-line {
  margin-top: 2.2rem;
  display: grid;
  gap: 0.75rem;
}

.node {
  border-top: 1px solid var(--line);
  padding: 1.2rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}

.node strong {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 400;
}

.node span {
  color: var(--muted);
  font-size: 0.92rem;
}

.programs {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

.programs div {
  background: var(--bg-deep);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.programs span {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.programs b {
  font-weight: 600;
  font-size: 1.05rem;
}

.spec {
  width: min(100% - 10vw, var(--max));
  margin: 0 auto;
  padding: 2rem 0 5rem;
  display: grid;
  gap: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 4rem;
}

.spec-right {
  display: grid;
}

.row {
  display: grid;
  grid-template-columns: 0.4fr 1fr;
  gap: 1rem;
  padding: 1.12rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
  transition: background 0.2s ease;
}

.row:hover {
  background: rgba(31, 58, 52, 0.03);
}

.row span {
  color: var(--muted);
}

.row b {
  font-weight: 500;
}

.export {
  width: min(100% - 10vw, var(--max));
  margin: 0 auto;
  padding: 1rem 0 5rem;
}

.export-grid {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.export-grid article {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.export-grid h3 {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.export-grid p {
  color: var(--muted);
  font-size: 0.95rem;
}

.cta {
  width: min(100% - 10vw, 820px);
  margin: 0 auto 4rem;
}

.cta-box {
  border-radius: 28px;
  padding: clamp(1.8rem, 4vw, 3rem);
  background:
    linear-gradient(160deg, #1a1a18 0%, #24221e 55%, #1f2a26 100%);
  color: #f3f1ec;
}

.cta-box .label {
  color: rgba(243, 241, 236, 0.5);
}

.cta-box .sub {
  color: rgba(243, 241, 236, 0.65);
  margin: 0.9rem 0 1.5rem;
}

.fields {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

.fields input,
.fields select {
  width: 100%;
  border: 1px solid rgba(243, 241, 236, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #f3f1ec;
  border-radius: 12px;
  padding: 0.95rem 1rem;
  font: inherit;
}

.fields input::placeholder {
  color: rgba(243, 241, 236, 0.4);
}

.fields select option {
  color: #141414;
}

.cta-box .btn.primary {
  background: #f3f1ec;
  color: #141414;
  width: 100%;
}

.ok-msg {
  display: none;
  margin-top: 0.9rem;
  text-align: center;
  color: #b8d4c8;
  font-weight: 500;
}

form.ok .ok-msg {
  display: block;
}

.foot {
  width: min(100% - 10vw, var(--max));
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.dim {
  opacity: 0.85;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (min-width: 860px) {
  .links {
    display: flex;
  }

  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: end;
    padding-top: 5.5rem;
    gap: 3rem;
  }

  .sys-grid {
    grid-template-columns: 1.3fr 1fr;
    grid-template-rows: auto auto;
  }

  .sys-card.large {
    grid-row: span 2;
  }

  .split-photo {
    grid-template-columns: 1.1fr 0.9fr;
    min-height: 520px;
  }

  .cycle-line {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }

  .node {
    border-top: 0;
    border-left: 1px solid var(--line);
    padding: 0 1.2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .node:first-child {
    border-left: 0;
    padding-left: 0;
  }

  .programs {
    grid-template-columns: repeat(5, 1fr);
  }

  .spec {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: start;
  }

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

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

  .fields select {
    grid-column: span 2;
  }
}
