:root {
  --bg: #060606;
  --bg-soft: #0f0f10;
  --bg-elevated: #171719;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-strong: rgba(255, 255, 255, 0.05);
  --text: #f5f5f5;
  --text-soft: #dddddd;
  --muted: #b1b1b1;
  --muted-2: #898989;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.12);
  --max-width: 1180px;
  --radius-sm: 18px;
  --radius-md: 24px;
  --radius-lg: 30px;
  --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.22);
  --shadow-deep: 0 28px 90px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.04), transparent 20%),
    linear-gradient(180deg, #111111 0%, #060606 30%, #060606 100%);
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
  min-height: 100%;
}

body {
  line-height: 1.7;
  letter-spacing: -0.01em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

p {
  max-width: 72ch;
}

.container {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(6, 6, 6, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.25s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #fff;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
}

.hero {
  position: relative;
  min-height: 84vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 8, 8, 0.14), rgba(8, 8, 8, 0.86)),
    url("../images/hero-portfolio.jpg") center center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.10), transparent 24%),
    radial-gradient(circle at 82% 30%, rgba(255, 255, 255, 0.04), transparent 18%);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(7, 7, 7, 0.88),
      rgba(7, 7, 7, 0.54) 42%,
      rgba(7, 7, 7, 0.24) 72%,
      rgba(7, 7, 7, 0.40)
    ),
    linear-gradient(to top, rgba(7, 7, 7, 0.90), rgba(7, 7, 7, 0.14));
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 92px 0 80px;
  max-width: 780px;
}

.eyebrow,
.section-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted-2);
}

.hero h1 {
  margin-top: 18px;
  font-size: clamp(2.8rem, 6vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  max-width: 9ch;
  text-wrap: balance;
}

.hero-text {
  margin-top: 24px;
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--text-soft);
  max-width: 56ch;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: #ffffff;
  color: #0a0a0a;
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.08);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-strong);
  color: #fff;
}

.section {
  padding: 104px 0;
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading h2 {
  margin-top: 10px;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
  max-width: 16ch;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.photo-card,
.split-panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
  box-shadow: var(--shadow-soft);
}

.photo-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.28s ease, border-color 0.28s ease;
}

.photo-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.13);
}

.photo-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.35s ease;
}

.photo-card:hover img {
  transform: scale(1.03);
  filter: brightness(1.04);
}

.split-panel {
  border-radius: var(--radius-lg);
  padding: 34px;
  display: grid;
  grid-template-columns: 1.1fr 1fr auto;
  gap: 28px;
  align-items: center;
}

.split-panel p {
  color: var(--muted);
  line-height: 1.82;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0;
  background: rgba(5, 5, 5, 0.86);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a,
.footer-inner p {
  color: var(--muted);
  font-size: 0.94rem;
}

.site-nav a:focus-visible,
.btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 980px) {
  .site-nav {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: rgba(7, 7, 7, 0.96);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .gallery-grid,
  .split-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 74vh;
  }

  .hero h1 {
    max-width: 10ch;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--max-width));
  }

  .section {
    padding: 76px 0;
  }

  .hero-inner {
    padding: 72px 0 64px;
  }

  .split-panel {
    padding: 22px;
  }

  .hero-text {
    font-size: 1rem;
  }
}