:root {
  --bg: #f4f1ec;
  --paper: #fbf9f6;
  --ink: #181a1f;
  --muted: #5d6472;
  --line: #ddd7cf;
  --line-strong: #cfc6ba;
  --panel: #ffffff;
  --brand: #1f2c3a;
  --accent: #b88f5d;
  --accent-soft: #e8dccd;
  --radius: 14px;
  --shadow: 0 14px 40px rgba(31, 35, 45, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: "Libre Baskerville", Georgia, serif;
  line-height: 1.16;
  margin: 0 0 0.75rem;
  color: #14161b;
}

p {
  margin: 0;
}

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

img {
  display: block;
  background: #ece7df;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 0 0, rgba(184, 143, 93, 0.2), transparent 38%),
    radial-gradient(circle at 100% 15%, rgba(31, 44, 58, 0.15), transparent 42%),
    linear-gradient(180deg, #f7f4ef, #f2eee8);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.1rem;
  padding: 1rem clamp(1rem, 3vw, 3rem);
  background: rgba(248, 244, 238, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  color: var(--brand);
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #233447, #1b2531);
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 0.3rem;
  flex-wrap: wrap;
  min-width: 0;
}

.nav-link {
  color: #525b6b;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.54rem 0.84rem;
  border-radius: 999px;
  transition: background 180ms ease, color 180ms ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--ink);
  background: #ebe5dc;
}

main {
  max-width: 1250px;
  margin: 0 auto;
  padding: clamp(1.1rem, 2.8vw, 2.4rem) clamp(1rem, 3vw, 3rem) 4rem;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1.04fr;
  gap: 1rem;
  align-items: stretch;
}

.hero-copy,
.hero-media,
.metrics article,
.process-grid article,
.project-card,
.project-feature,
.service-card,
.split,
.contact-form,
.contact-panel,
.testimonial,
.page-hero {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: clamp(1.2rem, 2.8vw, 2.4rem);
}

.eyebrow {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: #7c6a55;
  margin-bottom: 0.8rem;
  display: inline-block;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 4rem);
  max-width: 16ch;
}

.hero-copy p {
  color: var(--muted);
  max-width: 55ch;
}

.hero-actions {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cred-pills {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cred-pills span {
  border: 1px solid var(--line);
  background: #f4efe7;
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  font-size: 0.77rem;
  color: #4d5664;
  font-weight: 600;
}

.hero-media {
  position: relative;
  overflow: hidden;
}

.hero-media > img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  max-width: 360px;
}

.hero-overlay p {
  color: #565f6d;
  font-size: 0.88rem;
}

.hero-visual {
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 220px;
  height: 220px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(16, 20, 26, 0.56);
  backdrop-filter: blur(5px);
  overflow: hidden;
}

.hero-media .hero-visual {
  position: absolute;
}

.visual-inline.hero-visual {
  position: relative;
  right: auto;
  top: auto;
  width: 100%;
  height: 320px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #f7f4ef, #efebe5);
}

canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.logos-strip {
  margin-top: 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8f5f1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  padding: 0.9rem;
}

.logos-strip span {
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  color: #676f7b;
  font-weight: 700;
}

.metrics {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.metrics article {
  padding: 1rem;
}

.metrics h2 {
  font-size: clamp(1.45rem, 2vw, 2.05rem);
  margin-bottom: 0.2rem;
}

.metrics p {
  color: var(--muted);
  font-size: 0.9rem;
}

.showcase,
.inner-page,
.process,
.testimonial {
  margin-top: 2rem;
}

.section-head {
  max-width: 760px;
}

.section-head h1,
.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.section-head p {
  color: var(--muted);
}

.process-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.process-grid article {
  padding: 1rem;
}

.process-grid p {
  color: var(--muted);
}

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

.project-card {
  overflow: hidden;
}

.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.project-card-body {
  padding: 0.9rem;
}

.label {
  font-size: 0.74rem;
  color: #6f7786;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.project-card-body p,
.project-feature p,
.service-card p,
.split p,
.contact-panel p {
  color: var(--muted);
}

.testimonial {
  padding: 1.4rem;
  text-align: center;
}

.testimonial blockquote {
  margin: 0 auto 0.75rem;
  max-width: 60ch;
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  line-height: 1.45;
  color: #2b2f38;
}

.page-hero {
  position: relative;
  overflow: hidden;
}

.page-hero img {
  width: 100%;
  height: clamp(300px, 40vw, 460px);
  object-fit: cover;
  display: block;
}

.page-hero-copy {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  background: rgba(252, 250, 246, 0.9);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 0.95rem 1rem;
  max-width: 780px;
}

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

.service-card {
  padding: 1rem;
}

.split {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.split img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.split > div {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
}

.split > div p {
  margin: 0;
  max-width: 62ch;
  text-wrap: pretty;
}

.split > div .btn {
  margin-top: 0.15rem;
  flex-shrink: 0;
}

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

.project-feature {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  overflow: hidden;
}

.project-feature img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}

.project-feature > div {
  padding: 1rem;
  min-width: 0;
}

.visual-inline {
  margin-top: 1rem;
  min-height: 320px;
  position: relative;
  overflow: hidden;
}

.visual-inline canvas {
  min-height: 320px;
}

.contact-wrap {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: start;
  gap: 0.85rem;
}

.contact-form,
.contact-panel {
  padding: 1rem;
}

.contact-panel {
  align-self: start;
}

.contact-form label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.72rem;
}

input,
textarea,
select {
  width: 100%;
  margin-top: 0.32rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0.72rem 0.76rem;
  background: #fefefe;
  color: var(--ink);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #8a755a;
  box-shadow: 0 0 0 3px rgba(184, 143, 93, 0.2);
}

textarea {
  resize: vertical;
}

.contact-panel img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.74rem 1.18rem;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.2;
  transition: transform 170ms ease, box-shadow 170ms ease, background 170ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(130deg, #263749, #1b2735);
  box-shadow: 0 10px 24px rgba(27, 39, 53, 0.18);
}

.btn-secondary {
  color: #2f3946;
  border-color: #cfc6ba;
  background: #f8f4ee;
}

.btn-small {
  padding: 0.56rem 0.9rem;
  font-size: 0.82rem;
}

.site-footer {
  max-width: 1250px;
  margin: 2.2rem auto 1.2rem;
  padding: 1.05rem clamp(1rem, 3vw, 3rem);
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  grid-template-areas:
    "tagline cta"
    "contact contact";
  align-items: center;
  gap: 0.7rem 1.1rem;
  border-top: 1px solid var(--line);
  color: #626a78;
}

.site-footer > p:first-of-type {
  grid-area: tagline;
  margin: 0;
}

.site-footer > p:last-of-type {
  grid-area: cta;
  margin: 0;
  justify-self: end;
}

.footer-contact {
  grid-area: contact;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
}

.footer-contact p {
  margin: 0;
}

.footer-contact a {
  color: #2e435a;
  font-weight: 700;
}

.site-footer a {
  color: #2e435a;
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 650ms ease forwards;
}

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

.tilt {
  transform-style: preserve-3d;
  transition: transform 220ms ease;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .site-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .site-header .btn-small {
    display: none;
  }

  .hero,
  .project-feature,
  .split,
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .hero-media > img {
    min-height: 420px;
  }

  .hero-visual {
    width: 190px;
    height: 190px;
  }

  .metrics,
  .logos-strip,
  .process-grid,
  .project-grid,
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .metrics,
  .logos-strip,
  .process-grid,
  .project-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 10vw, 2.7rem);
  }

  .hero-overlay {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin: 0.8rem;
    max-width: none;
  }

  .hero-visual {
    position: static;
    width: 100%;
    height: 180px;
    margin: 0.8rem;
  }

  .site-footer {
    grid-template-columns: 1fr;
    grid-template-areas:
      "tagline"
      "contact"
      "cta";
    gap: 0.65rem;
  }

  .site-footer > p:last-of-type {
    justify-self: start;
  }

  .footer-contact {
    justify-content: flex-start;
    border-radius: 14px;
  }
}
