:root {
  --ink: #1d2930;
  --muted: #607078;
  --cream: #fff9ee;
  --paper: #fffdf8;
  --yellow: #f9c74f;
  --orange: #f9844a;
  --green: #4d9f73;
  --blue: #3b82a0;
  --purple: #8b6fb1;
  --line: rgba(29, 41, 48, 0.12);
  --shadow: 0 22px 60px rgba(46, 55, 48, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: ui-rounded, "Avenir Next", Avenir, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a { color: inherit; }

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 1.28rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 39px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 13px 13px 17px 13px;
  color: white;
  background: var(--orange);
  box-shadow: 0 6px 0 #d76335;
  font-family: Georgia, serif;
  font-size: 1.35rem;
}

.header-link {
  font-size: .92rem;
  font-weight: 700;
  text-underline-offset: 4px;
}

.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 56px;
  padding: 66px 70px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 36px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .17em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 620px;
  margin-bottom: 22px;
  font-size: clamp(3.2rem, 6.6vw, 6.5rem);
  line-height: .92;
  letter-spacing: -.065em;
}

.lede {
  max-width: 550px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border: 0;
  border-radius: 18px;
  color: white;
  background: var(--ink);
  box-shadow: 0 7px 0 #080d10;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}

.button:hover { transform: translateY(-2px); box-shadow: 0 9px 0 #080d10; }
.button:active { transform: translateY(5px); box-shadow: 0 2px 0 #080d10; }

.hero-art {
  position: relative;
  min-height: 450px;
  overflow: hidden;
  border-radius: 32px;
  background: #a8deef;
  isolation: isolate;
}

.sun {
  position: absolute;
  top: 46px;
  right: 48px;
  width: 92px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 18px rgba(249, 199, 79, .22);
}

.hill { position: absolute; border-radius: 50% 50% 0 0; }
.hill-back { width: 130%; height: 51%; left: -38%; bottom: 0; background: #7cbd83; transform: rotate(9deg); }
.hill-front { width: 125%; height: 42%; right: -43%; bottom: -3%; background: #4f9b69; transform: rotate(-7deg); }

.house { position: absolute; z-index: 2; width: 106px; height: 112px; border-radius: 6px; background: #fff2d2; box-shadow: inset 0 -8px rgba(0,0,0,.05); }
.house::before { content: ""; position: absolute; left: -16px; top: -46px; border-left: 69px solid transparent; border-right: 69px solid transparent; border-bottom: 57px solid var(--orange); }
.house span { position: absolute; left: 39px; bottom: 0; width: 30px; height: 55px; border-radius: 13px 13px 0 0; background: #5d423d; }
.house-one { left: 18%; bottom: 78px; transform: scale(.88) rotate(-2deg); }
.house-two { right: 16%; bottom: 95px; background: #f7d6c5; transform: scale(.68) rotate(3deg); }
.house-two::before { border-bottom-color: var(--purple); }

.tree { position: absolute; z-index: 3; left: 53%; bottom: 70px; width: 18px; height: 95px; border-radius: 10px 10px 0 0; background: #725035; }
.tree::before, .tree::after, .tree span { content: ""; position: absolute; border-radius: 50%; background: #2f8056; }
.tree::before { width: 92px; height: 100px; left: -58px; top: -67px; }
.tree::after { width: 80px; height: 92px; left: -6px; top: -58px; }
.tree span { width: 75px; height: 80px; left: -32px; top: -90px; }
.path { position: absolute; z-index: 4; bottom: -65px; left: 33%; width: 130px; height: 220px; border-radius: 50%; background: #f1d49b; transform: rotate(-11deg); }

.projects { padding: 130px 0 120px; }

.section-heading { max-width: 640px; margin-bottom: 46px; }
.section-heading h2, .contact h2 { margin-bottom: 14px; font-size: clamp(2.25rem, 4vw, 4rem); line-height: 1; letter-spacing: -.045em; }
.section-heading > p:last-child, .contact-copy > p:last-child { color: var(--muted); font-size: 1.08rem; }

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

.project-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 12px 30px rgba(46, 55, 48, .07);
  text-decoration: none;
}

a.project-card { transition: transform .18s ease, box-shadow .18s ease; }
a.project-card:hover { transform: translateY(-5px) rotate(-.3deg); box-shadow: 0 20px 42px rgba(46, 55, 48, .13); }

.project-card h3 { margin: 20px 0 9px; font-size: 1.75rem; letter-spacing: -.035em; }
.project-card p { max-width: 450px; color: var(--muted); }
.status { display: inline-block; padding: 6px 10px; border-radius: 999px; color: var(--muted); background: #eef1ef; font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.status.live { color: #226a46; background: #ddf3e7; }
.card-icon { margin-top: 29px; color: var(--green); font-size: 2.75rem; line-height: 1; }
.sports .card-icon { color: var(--orange); }
.cipher .card-icon { color: var(--purple); }
.frame-icon { width: 50px; height: 38px; border: 4px solid var(--blue); border-radius: 5px; position: relative; }
.frame-icon::before, .frame-icon::after { content: ""; position: absolute; width: 9px; height: 9px; border: 3px solid var(--blue); }
.frame-icon::before { top: -8px; left: -8px; border-right: 0; border-bottom: 0; }
.frame-icon::after { right: -8px; bottom: -8px; border-left: 0; border-top: 0; }
.card-link, .future-address { margin-top: auto; font-size: .9rem; font-weight: 800; }
.card-link { text-decoration: underline; text-underline-offset: 4px; }
.future-address { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.contact {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 100px;
  padding: 70px;
  border-radius: 36px;
  color: #fffaf0;
  background: var(--ink);
}

.contact .eyebrow { color: #8ed2a9; }
.contact-copy > p:last-child { color: #b9c5ca; }
.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.contact-form label { display: grid; gap: 8px; font-size: .82rem; font-weight: 800; }
.contact-form label:nth-of-type(4) { grid-column: 1 / -1; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 13px;
  color: white;
  background: rgba(255,255,255,.08);
  padding: 13px 14px;
  font: inherit;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 3px solid rgba(249,199,79,.5); border-color: var(--yellow); }
.contact-form .button { grid-column: 1 / -1; justify-self: start; color: var(--ink); background: var(--yellow); box-shadow: 0 7px 0 #b98920; }
.honeypot { position: absolute; left: -9999px; }

footer { min-height: 150px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); }
.footer-brand { color: var(--ink); }
footer p { margin: 0; }

@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; padding: 50px 36px 36px; }
  .hero-art { min-height: 390px; }
  .contact { grid-template-columns: 1fr; gap: 35px; padding: 48px 36px; }
}

@media (max-width: 620px) {
  .site-header, main, footer { width: min(100% - 24px, 1180px); }
  .site-header { min-height: 78px; }
  .header-link { display: none; }
  .hero { min-height: 0; gap: 40px; padding: 42px 22px 22px; border-radius: 25px; }
  h1 { font-size: clamp(3.2rem, 17vw, 4.6rem); }
  .hero-art { min-height: 330px; border-radius: 22px; }
  .projects { padding: 90px 0; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 290px; padding: 26px; }
  .contact { margin-bottom: 55px; padding: 38px 23px; border-radius: 25px; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-form label, .contact-form label:nth-of-type(4), .contact-form .button { grid-column: 1; }
  footer { min-height: 130px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
