:root {
  --bg: #ffffff;
  --bg-soft: #f4f2ef;
  --panel: #ffffff;
  --text: #212936;
  --muted: #5d6571;
  --primary: #2b1111;
  --accent: #9f0f25;
  --line: #e5e8ee;
  --shadow: 0 14px 30px rgba(21, 31, 48, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.header {
  position: fixed;
  top: 0;
  z-index: 10;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.nav {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 16px;
}

.menu a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background-color 0.22s ease, color 0.22s ease;
}

.menu a:hover {
  color: var(--accent);
  background: #f8e9ec;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
}

.nav-cta:hover {
  opacity: 0.92;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  padding: 120px 0 72px;
  background:
    radial-gradient(circle at 18% 28%, rgba(164, 24, 48, 0.46), transparent 32%),
    radial-gradient(circle at 86% 22%, rgba(255, 255, 255, 0.1), transparent 28%),
    linear-gradient(110deg, #141820 0%, #0d1119 38%, #161421 100%);
}

.hero-compact {
  min-height: 56vh;
  padding-top: 140px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0, rgba(0, 0, 0, 0.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-inner {
  max-width: 840px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #f3c9d1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 14px;
}

h1 {
  font-size: clamp(2.05rem, 5vw, 3.45rem);
  max-width: 17ch;
  margin-bottom: 18px;
  color: #ffffff;
}

h1 span {
  display: block;
  color: #ff4f6f;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

h3 {
  font-size: 1.2rem;
}

p,
ul {
  margin: 0;
}

ul {
  padding-left: 18px;
}

.hero-text,
.section-text {
  color: var(--muted);
  max-width: 68ch;
}

.hero-text {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: var(--accent);
}

.btn-primary:hover {
  opacity: 0.92;
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.stats {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 14px 14px 12px;
}

.stat strong {
  display: block;
  font-size: 1.34rem;
  margin-bottom: 2px;
  color: #fff;
}

.stat span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.93rem;
}

.section {
  padding: 58px 0;
}

.section-alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.feature-list {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.stack {
  display: grid;
  gap: 14px;
}

.feature {
  border-top: 3px solid #f4c2cb;
}

.portfolio-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.project-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.project-link:hover {
  text-decoration: underline;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.contact p + p {
  margin-top: 8px;
}

.project-layout {
  display: block;
}

.project-article {
  max-width: 980px;
}

.project-article p + p {
  margin-top: 12px;
}

.project-gallery {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.media-card {
  padding: 10px;
}

.media-card img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #f1f3f7;
}

.media-card figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.gallery-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-form {
  display: grid;
  gap: 10px;
}

.contact-form label {
  font-size: 0.9rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  color: var(--text);
  background: #ffffff;
}

.contact-form textarea {
  resize: vertical;
}

.submit-btn {
  width: 100%;
  border: none;
  cursor: pointer;
  margin-top: 4px;
}

.privacy-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 2px;
}

.footer {
  padding: 26px 0 32px;
  border-top: 1px solid var(--line);
}

.footer p {
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent);
}

@media (max-width: 860px) {
  .nav {
    flex-direction: column;
    justify-content: center;
    padding: 12px 0;
  }

  .nav-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .menu {
    flex-wrap: wrap;
    justify-content: center;
  }

  .two-col,
  .grid,
  .portfolio-grid,
  .contact-grid,
  .stats,
  .project-gallery {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 130px;
  }
}
