:root {
  --bg: #0b0b0b;
  --bg-soft: #141414;
  --text: #f4f4f4;
  --muted: #a8a8a8;
  --line: #2a2a2a;
  --max-width: 1400px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

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

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;

  width: 100%;
  padding: 28px 5vw;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}

.nav a:hover {
  color: white;
}

.hero {
  position: relative;

  min-height: 92vh;

  display: flex;
  align-items: end;

  padding: 0 5vw 9vh;

  background:
    url("https://images.unsplash.com/photo-1516035069371-29a1b244cc32?auto=format&fit=crop&w=2200&q=90")
    center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.78),
      rgba(0, 0, 0, 0.15) 65%,
      rgba(0, 0, 0, 0.25)
    );
}

.hero-content {
  position: relative;
  z-index: 1;

  max-width: 900px;
}

.eyebrow {
  margin: 0 0 14px;

  color: var(--muted);

  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 900px;

  margin: 0;

  font-size: clamp(3rem, 7vw, 7.5rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-text {
  max-width: 620px;

  margin: 28px 0 34px;

  color: rgba(255, 255, 255, 0.82);

  font-size: 1.15rem;
}

.button {
  display: inline-block;

  padding: 13px 20px;

  border: 1px solid rgba(255, 255, 255, 0.35);

  font-size: 0.92rem;
  font-weight: 600;

  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.button:hover {
  background: white;
  color: black;
}

.section {
  width: min(90%, var(--max-width));

  margin: 0 auto;
  padding: 110px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 48px;
}

.section h2 {
  margin: 0 0 18px;

  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.section-heading p:last-child,
.about-text,
.contact > p {
  color: var(--muted);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.portfolio-card {
  position: relative;
  overflow: hidden;

  min-height: 520px;

  background: var(--bg-soft);
}

.portfolio-card img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 0.45s ease;
}

.portfolio-card::after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.62),
      rgba(0, 0, 0, 0.03) 55%
    );
}

.portfolio-card:hover img {
  transform: scale(1.025);
}

.portfolio-card-content {
  position: absolute;
  z-index: 2;

  left: 28px;
  bottom: 24px;
}

.portfolio-card-content p {
  margin: 0 0 2px;

  color: rgba(255, 255, 255, 0.72);

  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.portfolio-card-content h3 {
  margin: 0;

  font-size: 2rem;
  font-weight: 600;
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;

  border-top: 1px solid var(--line);
}

.about-text {
  max-width: 620px;

  font-size: 1.2rem;
}

.contact {
  text-align: center;

  border-top: 1px solid var(--line);
}

.contact h2 {
  max-width: 850px;

  margin-left: auto;
  margin-right: auto;
}

.contact > p {
  max-width: 620px;

  margin: 0 auto 34px;
}

.button-light {
  border-color: var(--line);
}

.footer {
  width: min(90%, var(--max-width));

  margin: 0 auto;
  padding: 36px 0 48px;

  border-top: 1px solid var(--line);

  display: flex;
  justify-content: space-between;
  gap: 24px;

  color: var(--muted);

  font-size: 0.9rem;
}

.footer p {
  margin: 0;
}

.footer a:hover {
  color: white;
}

@media (max-width: 800px) {
  .site-header {
    padding: 22px 5vw;
  }

  .nav {
    gap: 16px;
  }

  .nav a:nth-child(2) {
    display: none;
  }

  .hero {
    min-height: 82vh;
    padding-bottom: 8vh;
  }

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

  .portfolio-card {
    min-height: 430px;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section {
    padding: 80px 0;
  }

  .footer {
    flex-direction: column;
  }
}

@media (max-width: 500px) {
  .logo {
    font-size: 0.9rem;
  }

  .nav a {
    font-size: 0.85rem;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 14vw, 4.5rem);
  }

  .portfolio-card {
    min-height: 360px;
  }
}
