:root {
  --ink: #1f1c18;
  --ink-soft: #3a332b;
  --sand: #f3efe6;
  --sand-deep: #e6dfd1;
  --clay: #c7805a;
  --moss: #2f4a3d;
  --sun: #e5b66f;
  --line: #cfc5b4;
  --card: rgba(255, 255, 255, 0.7);
  --shadow: 0 25px 60px rgba(38, 33, 26, 0.16);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Urbanist", "Space Grotesk", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 20% 20%, #f8f3e8 0%, #f0eadf 40%, #e8e0d3 100%);
  min-height: 100vh;
  line-height: 1.6;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background: radial-gradient(circle at 80% 20%, rgba(199, 128, 90, 0.2), transparent 55%),
    radial-gradient(circle at 15% 80%, rgba(47, 74, 61, 0.15), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(229, 182, 111, 0.2), transparent 60%);
}

body::after {
  background-image: radial-gradient(rgba(31, 28, 24, 0.08) 1px, transparent 1px);
  background-size: 26px 26px;
  mix-blend-mode: multiply;
  opacity: 0.35;
}

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

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

main {
  position: relative;
  z-index: 1;
  padding: 0 6vw 8rem;
}

#about {
  scroll-margin-top: 140px;
}

#services {
  scroll-margin-top: 170px;
}

#projects {
  scroll-margin-top: 70px;
}

#contact {
  scroll-margin-top: 170px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 6vw;
  background: rgba(243, 239, 230, 0.75);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(207, 197, 180, 0.6);
}

.logo-lockup {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.logo-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 12px 30px rgba(31, 28, 24, 0.2);
}

.logo-type {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.logo-name {
  font-family: "Urbanist", "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.logo-note {
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.95rem;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.site-nav a:not(.nav-cta) {
  letter-spacing: 0.08em;
  padding: 0.35rem 0 0.3rem;
}

.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: width 0.3s ease;
}

.site-nav a:not(.nav-cta):hover::after,
.site-nav a:not(.nav-cta):focus-visible::after {
  width: 100%;
}

.nav-cta {
  border-radius: 999px;
  background: linear-gradient(120deg, #2a241e 0%, #3a332b 100%);
  color: var(--sand);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border: 1px solid rgba(31, 28, 24, 0.35);
  box-shadow: 0 10px 22px rgba(31, 28, 24, 0.18);
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.3s ease;
}

.site-nav a.nav-cta {
  padding: 0.75rem 1.6rem;
  line-height: 1;
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  transform: translateY(-1px);
  background: linear-gradient(120deg, #362f28 0%, #4a4136 100%);
  box-shadow: 0 14px 28px rgba(31, 28, 24, 0.22);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.4rem;
  padding: clamp(3.1rem, 5.2vh, 4.4rem) 0 clamp(2.4rem, 3.6vh, 3.2rem);
  align-items: center;
  min-height: 100vh;
}

.hero-content {
  max-width: 560px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}

h1,
h2,
h3 {
  font-family: "Urbanist", "Space Grotesk", sans-serif;
  margin: 0 0 1rem;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.45rem, 3.35vw, 3.95rem);
  letter-spacing: 0.04em;
}

.tagline {
  font-size: 1.18rem;
  font-weight: 500;
  margin-bottom: 1.1rem;
  color: var(--ink-soft);
}

.intro {
  margin-bottom: 1.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button.primary {
  background: var(--ink);
  color: var(--sand);
  border-color: var(--ink);
  box-shadow: 0 14px 30px rgba(31, 28, 24, 0.25);
}

.button.ghost {
  background: transparent;
  color: var(--ink);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(31, 28, 24, 0.2);
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.hero-highlights .label,
.contact-aside .label,
.meta-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.72rem;
  color: var(--ink-soft);
  margin-bottom: 0.3rem;
}

.hero-highlights .value,
.contact-aside .value,
.meta-value {
  font-size: 0.95rem;
  line-height: 1.35;
  font-weight: 500;
  color: var(--ink);
}

.hero-media {
  position: relative;
  display: grid;
  gap: 1rem;
}

.hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: clamp(220px, 26vw, 370px);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image.secondary {
  width: 60%;
  height: clamp(180px, 21vw, 290px);
  justify-self: end;
  margin-top: -2rem;
  border-radius: var(--radius-md);
  border: 4px solid rgba(255, 255, 255, 0.8);
}

.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 3rem;
  padding: 4rem 0;
  align-items: start;
}

.about-card {
  background: var(--card);
  border: 1px solid rgba(207, 197, 180, 0.7);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1.5rem;
  align-content: start;
  width: 100%;
  max-width: none;
  justify-self: stretch;
}

.about-logo {
  width: 100%;
  height: clamp(140px, 18vw, 200px);
  border-radius: var(--radius-md);
  object-fit: contain;
  background: rgba(246, 242, 234, 0.9);
  padding: 0.6rem;
}

.about-meta {
  display: grid;
  gap: 0.4rem;
}

.section-head {
  margin-bottom: 2.5rem;
  max-width: 620px;
}

.services {
  padding: 2rem 0 4rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
}

.service-card {
  padding: 1.8rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(207, 197, 180, 0.6);
  box-shadow: 0 15px 30px rgba(31, 28, 24, 0.1);
  transition: transform 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
}

.projects {
  padding: 6.2rem 6vw 7rem;
  margin: 3rem calc(50% - 50vw) 4rem;
  background: linear-gradient(135deg, rgba(247, 243, 235, 0.5), rgba(233, 226, 214, 0.45));
  border-top: 1px solid rgba(207, 197, 180, 0.6);
  border-bottom: 1px solid rgba(207, 197, 180, 0.6);
  border-radius: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.project-grid {
  column-count: 2;
  column-gap: 2.4rem;
}

.project-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(207, 197, 180, 0.6);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto 1fr;
  break-inside: avoid;
  margin-bottom: 2.4rem;
}

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

.project-images img {
  height: 180px;
  width: 100%;
  object-fit: cover;
}

.project-card:nth-child(odd) .project-images img {
  height: 200px;
}

.project-card:nth-child(even) .project-images img {
  height: 170px;
}


.project-info {
  padding: 2rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.project-tags span {
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.contact {
  padding: 4rem 0 2rem;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.contact-card {
  background: linear-gradient(135deg, rgba(248, 242, 232, 0.98), rgba(232, 223, 209, 0.92));
  border: 1px solid rgba(199, 128, 90, 0.25);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.contact-hints {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 0;
}

.contact-hints .label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}

.contact-hints .value {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

.contact-hints a.value:hover,
.contact-hints a.value:focus-visible {
  color: var(--moss);
  text-decoration: underline;
  text-underline-offset: 0.3rem;
}

.contact-lines {
  display: inline-flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.contact-lines .value {
  display: inline;
}

.value-sep {
  font-weight: 600;
  color: var(--ink-soft);
  opacity: 0.45;
  padding: 0 0.55rem;
}

.contact-cta {
  margin-top: 0;
  margin-left: auto;
  align-self: flex-end;
}

.contact-row {
  display: flex;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-top: 2rem;
}

.contact-actions .button {
  justify-content: flex-start;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: transparent;
  text-underline-offset: 0.35rem;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.contact-actions .button:hover,
.contact-actions .button:focus-visible {
  transform: none;
  box-shadow: none;
  color: var(--moss);
  text-decoration-color: currentColor;
}

.contact-actions .button.primary {
  color: var(--ink);
  background: transparent;
  border: none;
  box-shadow: none;
}

.contact-aside {
  display: grid;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(207, 197, 180, 0.6);
}

.site-footer {
  padding: 2rem 6vw 3rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.footer-note {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer-note a {
  color: inherit;
  text-decoration: none;
}

.footer-note a:hover,
.footer-note a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.35rem;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

body.is-loaded .hero-content,
body.is-loaded .hero-media {
  opacity: 1;
  transform: translateY(0);
}

.hero-content,
.hero-media {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

  .site-nav {
    flex-wrap: wrap;
  }

  .hero-image.secondary {
    width: 75%;
    margin-top: -0.8rem;
  }

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

  .projects {
    padding: 5.6rem 6vw 6.2rem;
  }

  .project-grid {
    column-count: 1;
  }

  .contact-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-cta {
    margin-left: 0;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
  }

  .nav-cta {
    width: 100%;
    text-align: center;
  }

  .hero {
    padding-top: 2.4rem;
  }

  .hero-content,
  .hero-media {
    margin-top: 0;
  }

  .project-images img {
    height: 160px;
  }
}

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