:root {
  --bg: #e9e9e9;
  --surface: #ffffff;
  --surface-soft: #f7f7f7;
  --text: #161616;
  --muted: #4b4b4b;
  --brand: #ece834;
  --brand-dark: #d8d420;
  --line: rgba(0, 0, 0, 0.14);
  --radius: 18px;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  --container: min(1120px, 92vw);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Inter", "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
.ambient-bg::before,
.ambient-bg::after {
  content: "";
  position: absolute;
  width: 38vw;
  height: 38vw;
  max-width: 520px;
  max-height: 520px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.22;
}
.ambient-bg::before {
  background: #fff25e;
  left: -10vw;
  top: -8vw;
}
.ambient-bg::after {
  background: #f0f0a6;
  right: -14vw;
  bottom: -14vw;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }

.container { width: var(--container); margin: 0 auto; }
.section { padding: clamp(3rem, 6vw, 6rem) 0; }
.section-head { max-width: 760px; margin-bottom: 2.2rem; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin: 0 0 0.8rem; }
.section-head p { margin: 0; color: var(--muted); }

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(236, 232, 52, 0.94);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}
.brand {
  font-weight: 800;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.brand-logo {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  background: #fff;
  flex: 0 0 auto;
}
.brand-text small {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: #3d3d3d;
  text-transform: uppercase;
}
.brand span { color: #111; }

.nav-list {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
}
.nav-list a {
  color: #2e2e2e;
  font-weight: 500;
  font-size: 0.95rem;
  padding-bottom: 0.15rem;
  border-bottom: 2px solid transparent;
  transition: color 0.22s ease, border-color 0.22s ease;
}
.nav-list a:hover,
.nav-list a.active { color: #101010; border-color: #101010; }

.menu-toggle {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.65);
  color: #111;
  border-radius: 12px;
  padding: 0.5rem 0.65rem;
  display: none;
}

.hero { padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(2rem, 6vw, 5rem); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2rem, 4.7vw, 3.8rem);
  line-height: 1.12;
  margin: 0 0 1rem;
}
.hero p { color: var(--muted); margin: 0 0 1.8rem; }
.btn-row { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 0.85rem 1.25rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  min-height: 46px;
}
.btn-primary { background: var(--brand); color: #052430; }
.btn-primary:hover { transform: translateY(-2px); background: #fff45a; box-shadow: 0 12px 28px rgba(108,108,0,0.25); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); background: rgba(255,255,255,0.03); }
.btn-ghost:hover { transform: translateY(-2px); border-color: #505050; }

.hero-card {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
}
.hero-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-card[data-parallax] img {
  transition: transform 0.3s ease-out;
  will-change: transform;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.card {
  background: linear-gradient(180deg, #ffffff, #f5f5f5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  transition: transform 0.22s ease, border-color 0.22s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(0,0,0,0.36); }
.card[data-tilt] {
  transform-style: preserve-3d;
  will-change: transform;
}
.card h3 { margin: 0 0 0.55rem; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.96rem; }
.project-card {
  padding: 0;
  overflow: hidden;
}
.project-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}
.project-card-body {
  padding: 0.95rem 1rem 1.1rem;
}
.project-card-body h3 {
  font-size: 1rem;
  margin: 0 0 0.45rem;
}
.project-card-body p {
  font-size: 0.92rem;
}

.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.list-clean {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
}
.list-clean li {
  padding-left: 1.2rem;
  position: relative;
  color: var(--muted);
}
.list-clean li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  position: absolute;
  top: 0.6rem;
  left: 0;
  background: #111;
}

.location {
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: var(--surface);
}
.location img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}
.location-actions { padding: 1rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.stat {
  background: linear-gradient(180deg, rgba(236,232,52,0.45), #fff);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}
.stat strong {
  display: block;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}
.stat span { color: var(--muted); font-size: 0.94rem; }

.oldtimer-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 320px);
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  scroll-snap-type: x mandatory;
}
.oldtimer-card {
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, #f6f6f6);
  overflow: hidden;
}
.oldtimer-image {
  aspect-ratio: 4/3;
  width: 100%;
  object-fit: cover;
}
.oldtimer-content { padding: 1rem; }
.oldtimer-meta {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: #111;
  border: 1px solid rgba(0,0,0,0.32);
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  margin-bottom: 0.55rem;
}

.rail-hint {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 0.6rem;
}

.footer {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding: 1.1rem 0;
  background: #ece834;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}
.footer-left, .footer-right { color: var(--muted); font-size: 0.95rem; }
.footer-links { display: inline-flex; gap: 0.8rem; flex-wrap: wrap; }
.footer-right a { color: #22b8e0; font-weight: 700; }

.legal-wrap {
  display: grid;
  gap: 1rem;
}
.legal-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.2rem;
}
.legal-card h2, .legal-card h3 { margin-top: 0; }

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.reveal.show { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .hero-grid,
  .grid-two,
  .cards { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .header-inner { min-height: 68px; }
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #ece834;
    border-bottom: 1px solid var(--line);
    padding: 0.7rem 4vw 1rem;
    display: none;
  }
  .nav.open { display: block; }
  .nav-list { flex-direction: column; gap: 0.6rem; }

  .hero-grid,
  .grid-two,
  .cards,
  .stats { grid-template-columns: 1fr; }

  .section { padding: clamp(2.2rem, 8vw, 4rem) 0; }

  .footer-inner { justify-content: center; text-align: center; }
}
