:root {
  color-scheme: light;
  --ink: #111114;
  --muted: #68686f;
  --line: rgba(17, 17, 20, 0.1);
  --surface: #f5f5f7;
  --white: #ffffff;
  --accent: #2165f5;
  --radius-xl: 2.25rem;
  --radius-lg: 1.4rem;
  --shadow: 0 24px 70px rgba(20, 20, 24, 0.08);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

.site-header,
main,
footer {
  width: min(100% - 3rem, 1200px);
  margin-inline: auto;
}

.site-header {
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 1.85rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 0.62rem;
  color: var(--white);
  background: var(--ink);
  font-size: 0.88rem;
  font-weight: 750;
}

nav a {
  color: var(--muted);
  font-size: 0.93rem;
  transition: color 180ms ease;
}

nav a:hover,
nav a:focus-visible {
  color: var(--ink);
}

.hero {
  min-height: min(780px, calc(100svh - 5rem));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 7rem 0;
}

.eyebrow {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: balance;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.055em;
}

h1 {
  max-width: 940px;
  font-size: clamp(4rem, 9vw, 8.6rem);
  line-height: 0.92;
  font-weight: 680;
}

.hero-copy {
  max-width: 540px;
  margin: 2.25rem 0 2rem;
  color: var(--muted);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.45;
  letter-spacing: -0.025em;
}

.text-link {
  display: inline-flex;
  gap: 0.7rem;
  align-items: center;
  font-size: 1rem;
  font-weight: 620;
}

.text-link span {
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translateY(3px);
}

.work {
  padding: 5rem 0 9rem;
}

.section-heading {
  padding-bottom: 3.2rem;
}

.section-heading h2,
.closing h2 {
  font-size: clamp(2.8rem, 6vw, 5.7rem);
  line-height: 0.98;
  font-weight: 650;
}

.project {
  overflow: hidden;
  background: var(--surface);
  border-radius: var(--radius-xl);
}

.project-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.75fr);
  min-height: 610px;
}

.project-visual {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  background: #eceef2;
}

.project-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

.project-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.pavilo-visual {
  background: #ffffff;
}

.vendimachi-visual {
  background: #08a6c7;
}

.pavilo-visual img,
.vendimachi-visual img {
  object-fit: contain;
}

.project:hover .project-visual img {
  transform: scale(1.025);
}

.project-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(2rem, 4vw, 3.6rem);
}

.project-meta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: auto;
  color: var(--muted);
  font-size: 0.88rem;
}

.status {
  padding: 0.42rem 0.72rem;
  border: 1px solid rgba(17, 17, 20, 0.1);
  border-radius: 999px;
  color: #595960;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
  font-weight: 620;
}

.status-live {
  color: #137333;
  background: #eaf7ee;
  border-color: #d4efdc;
}

.project h3 {
  max-width: 9ch;
  margin: 3rem 0 1.1rem;
  font-size: clamp(2.4rem, 4vw, 4.5rem);
  line-height: 0.98;
  font-weight: 650;
}

.project p {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.82rem 1.08rem;
  color: var(--white);
  background: var(--ink);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 620;
  transition: transform 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  background: #303036;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.project-grid .project {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.project-grid .project-visual {
  aspect-ratio: 16 / 11;
  min-height: 0;
}

.project-grid .project-content {
  min-height: 350px;
}

.project-grid .project h3 {
  margin-top: 3.6rem;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
}

.soon-label {
  margin-top: auto;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 620;
}

.closing {
  display: flex;
  min-height: 620px;
  flex-direction: column;
  justify-content: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

footer {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

footer p {
  color: var(--muted);
  font-size: 0.84rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

:focus-visible {
  outline: 3px solid rgba(33, 101, 245, 0.42);
  outline-offset: 4px;
}

@media (max-width: 850px) {
  .site-header,
  main,
  footer {
    width: min(100% - 2rem, 1200px);
  }

  .hero {
    min-height: 700px;
    padding: 6rem 0;
  }

  h1 {
    font-size: clamp(3.55rem, 17vw, 6.2rem);
  }

  .project-featured,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-featured {
    min-height: 0;
  }

  .project-featured .project-visual {
    aspect-ratio: 16 / 11;
    min-height: 0;
  }

  .project-content,
  .project-grid .project-content {
    min-height: 340px;
    padding: 2rem;
  }

  .project-grid {
    gap: 1rem;
    margin-top: 1rem;
  }
}

@media (max-width: 540px) {
  .site-header {
    height: 4.5rem;
  }

  .hero {
    min-height: calc(100svh - 4.5rem);
  }

  .hero-copy {
    font-size: 1.08rem;
  }

  .work {
    padding-bottom: 6rem;
  }

  .project,
  .project-visual {
    border-radius: 1.5rem;
  }

  footer {
    min-height: 210px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
