:root {
  --bg: #0f1416;
  --bg-soft: rgba(18, 24, 27, 0.86);
  --surface: rgba(248, 241, 232, 0.92);
  --surface-strong: rgba(255, 250, 244, 0.98);
  --line: rgba(15, 20, 22, 0.1);
  --text: #12191b;
  --muted: rgba(18, 25, 27, 0.72);
  --accent: #ff7b54;
  --accent-soft: #f5c36a;
  --teal: #7ad9d0;
  --shadow: 0 1.4rem 3rem rgba(0, 0, 0, 0.16);
  --content-width: 1180px;
  --radius-lg: 34px;
  --radius-md: 22px;
  --radius-sm: 16px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f6f0e8;
  color: var(--text);
  font-family: "Manrope", "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 123, 84, 0.22), transparent 34%),
    radial-gradient(circle at top right, rgba(122, 217, 208, 0.24), transparent 38%),
    linear-gradient(180deg, rgba(15, 20, 22, 0.09), rgba(15, 20, 22, 0.36));
  z-index: -1;
  pointer-events: none;
}

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

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

.img-fluid {
  width: 100%;
  max-width: 100%;
  height: auto;
}

button,
input,
textarea {
  font: inherit;
}

#background-video {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -2;
  filter: saturate(0.85) contrast(0.92) brightness(0.7);
  transform: scaleX(-1);
}

.container {
  width: min(var(--content-width), calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: 6rem 0;
}

.section-head {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 2rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
}

.eyebrow::before {
  content: "";
  width: 2.4rem;
  height: 1px;
}

.eyebrow {
  color: rgba(255, 250, 244, 0.84);
  margin-bottom: 1rem;
}

.eyebrow::before {
  background: linear-gradient(90deg, transparent, rgba(255, 250, 244, 0.65));
}

.section-head h2,
.hero-copy h1,
.contact-copy h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

.section-head h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
  color: #fff7ee;
}

.section-head p,
.hero-copy p,
.contact-copy p,
.link-tile span {
  margin: 0;
  color: rgba(255, 247, 238, 0.78);
  line-height: 1.75;
}

.panel p,
.project-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

#mainNav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  padding: 1rem 0;
  transition: background-color 0.25s ease, backdrop-filter 0.25s ease, border-color 0.25s ease;
}

#mainNav.navbar-shrink {
  background: rgba(15, 20, 22, 0.74);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-shell {
  width: min(var(--content-width), calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  background: rgba(15, 20, 22, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.navbar-brand {
  color: #fff7ee;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.navbar-toggler {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff7ee;
}

.navbar-collapse {
  display: none;
  flex: 1;
}

.navbar-collapse.show {
  display: block;
}

.navbar-nav {
  list-style: none;
  margin: 0;
  padding: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.nav-link {
  color: rgba(255, 247, 238, 0.82);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.82rem;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--accent-soft);
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
}

.hero-grid {
  display: grid;
  gap: 1.4rem;
}

.hero-copy {
  display: grid;
  gap: 1.1rem;
  color: #fff7ee;
}

.hero-copy h1 {
  font-size: clamp(3.2rem, 9vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 39rem;
  color: rgba(255, 247, 238, 0.78);
  font-size: 1.04rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.primary-link,
.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.primary-link {
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #17100d;
  box-shadow: 0 1rem 2rem rgba(255, 123, 84, 0.24);
}

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

.ghost-link {
  border: 1px solid rgba(255, 247, 238, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff7ee;
}

.panel,
.project-card,
.contact-panel,
.link-tile {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.panel {
  padding: 1.5rem;
  background: rgba(255, 250, 244, 0.9);
  border: 1px solid rgba(15, 20, 22, 0.08);
}

.project-grid,
.link-grid {
  display: grid;
  gap: 1rem;
}

.project-copy h3,
.link-tile strong {
  margin: 0.9rem 0 0.45rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
}

.project-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.project-card {
  overflow: hidden;
  background: rgba(255, 250, 244, 0.94);
  border: 1px solid rgba(15, 20, 22, 0.08);
}

.project-media {
  background: #d7d0c6;
}

.project-media img {
  width: 100%;
}

.project-copy {
  padding: 1.3rem;
}

.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-panel {
  padding: 1.4rem;
  background: rgba(255, 250, 244, 0.95);
  border: 1px solid rgba(15, 20, 22, 0.08);
}

.contact-copy h2 {
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1;
  color: #fff7ee;
}

.link-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.link-tile {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  padding: 0.5rem 0.85rem;
  background: rgba(255, 250, 244, 0.92);
  border: 1px solid rgba(15, 20, 22, 0.08);
}

.link-tile i {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  color: #101214;
  font-size: 0.85rem;
  flex: 0 0 auto;
}

.link-tile strong {
  margin: 0;
}

.form-stack {
  display: grid;
  gap: 0.9rem;
}

.input-shell {
  display: grid;
  gap: 0.45rem;
}

.input-shell span {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: rgba(18, 25, 27, 0.56);
}

.form-control {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(15, 20, 22, 0.12);
  background: rgba(18, 25, 27, 0.04);
  color: var(--text);
}

.form-control::placeholder {
  color: rgba(18, 25, 27, 0.42);
}

.form-control:focus {
  outline: none;
  border-color: rgba(255, 123, 84, 0.5);
  box-shadow: 0 0 0 0.2rem rgba(255, 123, 84, 0.15);
}

.primary-button {
  border: 0;
  cursor: pointer;
}

.footer {
  padding: 0 0 4rem;
}

.footer-shell {
  width: min(var(--content-width), calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.15rem 1.4rem;
  border-radius: 999px;
  background: rgba(15, 20, 22, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 247, 238, 0.72);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.7rem;
}

@media (min-width: 760px) {
}

@media (min-width: 980px) {
  .navbar-toggler {
    display: none;
  }

  .navbar-collapse {
    display: block !important;
    flex: 1;
  }

  .navbar-nav {
    padding: 0;
    flex-direction: row;
    justify-content: flex-end;
    gap: 1.15rem;
  }

  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: end;
  }

}

@media (max-width: 759px) {
  .hero {
    padding-top: 7.5rem;
  }

  .primary-link,
  .ghost-link {
    width: 100%;
  }

  .footer-shell {
    border-radius: 1.3rem;
  }
}
