:root {
  --ink: #1d252d;
  --muted: #5f6b75;
  --line: #d9e0e5;
  --paper: #f7f5ef;
  --white: #ffffff;
  --accent: #7c5f3f;
  --dark: #17212a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

img {
  max-width: 100%;
}

a {
  -webkit-tap-highlight-color: transparent;
}

/* Navigation */

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px clamp(20px, 5vw, 70px);
  position: relative;
  z-index: 2;
}

.brand {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  font-size: clamp(21px, 2.1vw, 31px);
  line-height: 1.05;
}

.nav-cta,
.button {
  display: inline-block;
  width: fit-content;
  font-family: Arial, Helvetica, sans-serif;
  text-decoration: none;
  color: var(--white);
  background: var(--ink);
  padding: 13px 21px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.025em;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.nav-cta:hover,
.button:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(20, 28, 36, 0.18);
}

.nav-cta:focus-visible,
.button:focus-visible,
.contact-card a:focus-visible {
  outline: 3px solid rgba(124, 95, 63, 0.35);
  outline-offset: 4px;
}

/* Hero */

.hero {
  min-height: 90vh;
  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(124, 95, 63, 0.08),
      transparent 35%
    ),
    linear-gradient(
      135deg,
      rgba(247, 245, 239, 1),
      rgba(247, 245, 239, 0.78)
    );
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 78vh;
  gap: clamp(34px, 5vw, 80px);
  padding: 28px clamp(20px, 5vw, 70px) 80px;
  align-items: center;
}

.hero-copy {
  max-width: 820px;
}

.hero-image {
  min-height: 640px;
  border-radius: 26px;
  background:
    linear-gradient(
      rgba(23, 33, 42, 0.05),
      rgba(23, 33, 42, 0.12)
    ),
    url("assets/project-02.jpg") center / cover no-repeat;
  box-shadow:
    0 34px 75px rgba(20, 28, 36, 0.18),
    0 2px 8px rgba(20, 28, 36, 0.08);
}

/* Typography */

.eyebrow {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 800;
  margin: 0 0 16px;
}

h1,
h2,
h3 {
  line-height: 1.08;
  margin: 0;
  font-weight: 500;
}

h1 {
  font-size: clamp(48px, 6vw, 88px);
  letter-spacing: -0.04em;
  max-width: 900px;
}

h2 {
  font-size: clamp(34px, 4vw, 58px);
  letter-spacing: -0.03em;
  max-width: 980px;
}

h3 {
  font-size: clamp(24px, 2.2vw, 30px);
  letter-spacing: -0.02em;
}

.lead {
  color: var(--muted);
  font-size: clamp(19px, 2vw, 24px);
  max-width: 700px;
  margin: 30px 0 34px;
  line-height: 1.55;
}

/* General sections */

.section {
  padding: 110px clamp(20px, 5vw, 70px);
  border-top: 1px solid var(--line);
}

.intro {
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  gap: clamp(45px, 7vw, 100px);
  align-items: start;
}

.intro p:last-child {
  font-size: clamp(20px, 2vw, 24px);
  color: var(--muted);
  margin: 40px 0 0;
  line-height: 1.65;
}

/* Project experience list */

.bullet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 50px;
  margin-top: 48px;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

li {
  padding: 20px 0 20px 28px;
  border-bottom: 1px solid var(--line);
  position: relative;
  font-size: clamp(18px, 1.7vw, 21px);
}

li::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 31px;
}

/* Dark project section */

.dark {
  background: var(--dark);
  color: var(--white);
}

.dark .eyebrow {
  color: #d7c3a8;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 46px;
}

.cards article {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  padding: 34px;
  border-radius: 18px;
  min-height: 260px;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.cards article:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}

.cards p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
  line-height: 1.65;
  margin: 18px 0 0;
}

/* Gallery */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 42px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  background: #ddd;
  box-shadow: 0 12px 30px rgba(20, 28, 36, 0.08);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.gallery img:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 42px rgba(20, 28, 36, 0.15);
}

.gallery img:first-child,
.gallery img:nth-child(2) {
  grid-column: span 2;
}

/* Contact */

.contact {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 38px;
  box-shadow: 0 22px 55px rgba(20, 28, 36, 0.08);
}

.contact-card a {
  display: block;
  width: fit-content;
  color: var(--ink);
  font-size: clamp(20px, 2.1vw, 27px);
  margin: 12px 0;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}

.contact-card a:hover {
  color: var(--accent);
}

/* Footer */

footer {
  padding: 28px clamp(20px, 5vw, 70px);
  font-family: Arial, Helvetica, sans-serif;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

footer p {
  margin: 0;
}

/* Tablet */

@media (max-width: 900px) {
  .hero-grid,
  .intro,
  .contact,
  .bullet-grid,
  .cards {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    padding-top: 40px;
  }

  .hero-image {
    min-height: 430px;
  }

  .intro p:last-child {
    margin-top: 0;
  }

  .bullet-grid {
    gap: 0;
  }

  .cards article {
    min-height: auto;
  }

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

  .gallery img:first-child,
  .gallery img:nth-child(2) {
    grid-column: span 1;
  }
}

/* Mobile */

@media (max-width: 560px) {
  .nav {
    align-items: flex-start;
    gap: 20px;
    flex-direction: column;
    padding-top: 24px;
  }

  .brand {
    max-width: 320px;
    font-size: clamp(21px, 7vw, 28px);
    line-height: 1.12;
  }

  .hero-grid {
    padding-top: 30px;
    padding-bottom: 58px;
  }

  h1 {
    font-size: clamp(43px, 13vw, 60px);
  }

  h2 {
    font-size: clamp(32px, 10vw, 46px);
  }

  .hero-image {
    min-height: 330px;
    border-radius: 18px;
  }

  .section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

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

  .contact-card {
    padding: 26px;
  }

  .nav-cta,
  .button {
    padding: 12px 19px;
  }
}

/* Reduced motion accessibility */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .nav-cta,
  .button,
  .cards article,
  .gallery img,
  .contact-card a {
    transition: none;
  }

  .nav-cta:hover,
  .button:hover,
  .cards article:hover,
  .gallery img:hover {
    transform: none;
  }
}