:root {
  color-scheme: dark;
  --ink: #f7ead5;
  --muted: #b9c0b3;
  --paper: #111916;
  --surface: #1a2420;
  --surface-soft: #14252b;
  --line: #31443a;
  --green: #58b77b;
  --teal: #55a7b0;
  --coral: #ef7f47;
  --amber: #f2b35f;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
  --radius: 8px;
  --content: 1120px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #111916 0%, #16201d 54%, #111916 100%);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

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

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

svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 72px;
  padding: 0 clamp(1rem, 4vw, 3rem);
  color: var(--ink);
  transition:
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(17, 25, 22, 0.88);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(16px);
}

.site-nav a,
.project-link {
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 1.75rem);
  font-size: 0.92rem;
}

.site-nav a,
.project-link {
  transition:
    color 160ms ease,
    opacity 160ms ease,
    transform 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.project-link:hover,
.project-link:focus-visible {
  color: var(--amber);
}

.site-header.is-scrolled .site-nav a:hover,
.site-header.is-scrolled .site-nav a:focus-visible,
.project-link:hover,
.project-link:focus-visible {
  color: var(--amber);
}

.hero {
  position: relative;
  display: grid;
  min-height: 78svh;
  align-items: end;
  padding: 120px clamp(1rem, 4vw, 3rem) clamp(4rem, 9vw, 7rem);
  overflow: hidden;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(12, 18, 16, 0.88), rgba(12, 18, 16, 0.28)),
    url("assets/dwendel_background.png") center / cover no-repeat;
}

.hero-copy {
  width: min(720px, 100%);
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--amber);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--amber);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(4rem, 12vw, 8rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.6rem;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy p:last-child {
  max-width: 540px;
  margin-bottom: 0;
  color: rgba(247, 234, 213, 0.88);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.projects {
  width: min(var(--content), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.section-heading {
  display: grid;
  gap: 0.25rem;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.4rem);
}

.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03);
  transition:
    box-shadow 200ms ease,
    transform 200ms ease;
}

.project-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.project-art {
  display: grid;
  aspect-ratio: 1.45;
  place-items: center;
  overflow: hidden;
  background: var(--surface-soft);
}

.project-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-art {
  padding: clamp(1.25rem, 4vw, 2.75rem);
  background: #f8f7f1;
}

.beach-art {
  background: #f8f7f1;
}

.logo-art img {
  width: auto;
  max-width: 92%;
  height: 92%;
  max-height: 420px;
  object-fit: contain;
}

.beach-art img {
  object-fit: contain;
}

.project-info {
  display: grid;
  gap: 0.55rem;
  padding: clamp(1.1rem, 3vw, 1.5rem);
}

.project-info p {
  max-width: 32rem;
  margin-bottom: 0.2rem;
  color: var(--muted);
}

.status {
  width: fit-content;
  border-radius: 999px;
  padding: 0.28rem 0.62rem;
  background: rgba(88, 183, 123, 0.14);
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.status.upcoming {
  background: rgba(85, 167, 176, 0.14);
  color: var(--teal);
}

.project-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.4rem;
  color: var(--amber);
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.store-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(247, 234, 213, 0.14);
  border-radius: 999px;
  padding: 0.24rem 0.55rem;
  background: rgba(247, 234, 213, 0.05);
  color: rgba(247, 234, 213, 0.7);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.store-badge svg {
  width: 0.9rem;
  height: 0.9rem;
  opacity: 0.82;
}

.site-footer {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 440ms ease,
    transform 440ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 760px) {
  .site-header {
    min-height: 66px;
  }

  .hero {
    min-height: 70svh;
    padding-top: 100px;
    background-position: 56% center;
  }

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

@media (max-width: 520px) {
  .site-nav {
    gap: 0.9rem;
    font-size: 0.86rem;
  }

  h1 {
    font-size: clamp(3.6rem, 18vw, 5.3rem);
  }

  .projects {
    width: min(100% - 1rem, var(--content));
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
