:root {
  color-scheme: light;
  --ink: #172126;
  --muted: #59686f;
  --line: #d7ded9;
  --paper: #fbfaf5;
  --panel: #ffffff;
  --sage: #6f8b75;
  --coral: #c45f4c;
  --aqua: #317e8a;
  --shadow: 0 20px 55px rgba(23, 33, 38, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

@media (prefers-reduced-motion: no-preference) {
  body {
    animation: page-in 700ms ease both;
  }
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(23, 33, 38, 0.08);
  background: rgba(251, 250, 245, 0.88);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
}

.brand img {
  display: block;
  border-radius: 50%;
}

.nav {
  display: flex;
  gap: clamp(14px, 3vw, 28px);
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a {
  position: relative;
  text-decoration: none;
}

.nav a::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 2px;
  background: var(--coral);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav a:hover,
.site-footer a:hover,
.project-card a:hover,
.contact-links a:hover {
  color: var(--coral);
}

.hero {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: center;
  min-height: calc(100svh - 70px);
  padding: clamp(40px, 7vw, 96px) clamp(18px, 7vw, 112px) clamp(34px, 5vw, 70px);
}

.hero-visual {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 260px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(49, 126, 138, 0.16), transparent 38%),
    linear-gradient(315deg, rgba(196, 95, 76, 0.16), transparent 42%),
    #fffdf8;
  box-shadow: var(--shadow);
}

.shape {
  position: absolute;
  display: block;
  border: 1px solid rgba(23, 33, 38, 0.18);
  pointer-events: none;
}

.shape-a {
  width: 44%;
  aspect-ratio: 1;
  top: 9%;
  left: 10%;
  background: rgba(111, 139, 117, 0.24);
}

.shape-b {
  width: 32%;
  aspect-ratio: 1;
  right: 10%;
  bottom: 12%;
  border-radius: 50%;
  background: rgba(196, 95, 76, 0.22);
}

.shape-c {
  width: 42%;
  height: 18%;
  right: 18%;
  top: 24%;
  background: rgba(49, 126, 138, 0.18);
  transform: rotate(-10deg);
}

.hero-visual img {
  position: relative;
  z-index: 1;
  width: min(58vw, 280px);
  max-width: 82%;
  height: auto;
}

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

.eyebrow,
.section-kicker,
.project-type {
  margin: 0 0 12px;
  color: var(--aqua);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.lead {
  max-width: 640px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid var(--ink);
  text-decoration: none;
  font-weight: 760;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  box-shadow: 6px 6px 0 rgba(196, 95, 76, 0.28);
  transform: translate(-2px, -2px);
}

.button.primary {
  background: var(--ink);
  color: #fff;
}

.button.secondary {
  background: transparent;
}

.section {
  padding: clamp(54px, 8vw, 104px) clamp(18px, 7vw, 112px);
  border-top: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 6vw, 80px);
}

.section h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-text {
  color: var(--muted);
  font-size: 1.06rem;
}

.section-text p {
  margin: 0 0 18px;
}

.section-heading {
  margin-bottom: 28px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.project-card:hover {
  border-color: rgba(196, 95, 76, 0.55);
  box-shadow: 8px 8px 0 rgba(49, 126, 138, 0.14);
  transform: translate(-3px, -3px);
}

.project-card h3 {
  margin: 0 0 14px;
  font-size: 1.35rem;
  line-height: 1.2;
}

.project-card p:not(.project-type) {
  margin: 0 0 22px;
  color: var(--muted);
}

.project-card a {
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.65fr);
  gap: 28px;
  align-items: end;
  background: #e8efe8;
}

.contact-links {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.contact-links a {
  color: var(--ink);
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 4vw, 56px);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer a {
  text-decoration: none;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 700ms ease, transform 700ms ease;
}

@keyframes page-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy {
    animation: slide-up 720ms 120ms ease both;
  }

  .hero-visual img {
    animation: mark-float 7s ease-in-out infinite;
  }

  .shape-a {
    animation: drift-a 9s ease-in-out infinite;
  }

  .shape-b {
    animation: drift-b 11s ease-in-out infinite;
  }

  .shape-c {
    animation: drift-c 8s ease-in-out infinite;
  }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mark-float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-10px) rotate(3deg);
  }
}

@keyframes drift-a {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  50% {
    transform: translate(12px, 10px) rotate(8deg);
  }
}

@keyframes drift-b {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-12px, -8px) scale(1.08);
  }
}

@keyframes drift-c {
  0%,
  100% {
    transform: translate(0, 0) rotate(-10deg);
  }

  50% {
    transform: translate(8px, -8px) rotate(-3deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

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

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .hero,
  .split,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 210px;
    order: -1;
  }

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

@media (max-width: 520px) {
  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

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