:root {
  --post: #6b4e2e;
  --rail: #7a5635;
  --board: hsl(28, 40%, 30%);
  --sky: #87ceeb;
  --ground: #c2b280;
  --ink: #0f1d2b;
  --ink-soft: #2d3c4c;
  --accent: #c66a2a;
  --accent-deep: #a6561e;
  --sand: #f4efe7;
  --stone: #e6ddd0;
  --line: rgba(15, 29, 43, 0.12);
  --shadow: 0 18px 40px rgba(10, 20, 30, 0.18);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, #f7f3ec 0%, #efe7dc 50%, #f4efe7 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(198, 106, 42, 0.08), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(15, 29, 43, 0.08), transparent 55%),
    linear-gradient(120deg, rgba(15, 29, 43, 0.04) 0%, rgba(198, 106, 42, 0.04) 100%);
  pointer-events: none;
  z-index: -1;
}

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

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

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: rgba(244, 239, 231, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 29, 43, 0.08);
  z-index: 1000;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 1s ease, transform 1s ease;
}

header.show {
  opacity: 1;
  transform: translateY(0);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-family: "Teko", sans-serif;
  font-size: 1.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.brand-tag {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(15, 29, 43, 0.2);
  background: transparent;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.site-nav a {
  position: relative;
  padding-bottom: 0.2rem;
}

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

.site-nav a:hover::after,
.site-nav a:focus::after {
  width: 100%;
}

.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--sky);
  overflow: hidden;
  padding-top: 100px;
}

.scene {
  position: relative;
  width: 90%;
  max-width: 900px;
  height: 420px;
  background: linear-gradient(180deg, var(--sky) 60%, var(--ground) 0%);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.posts,
.boards {
  position: absolute;
  inset: 0;
  padding: 0 2%;
}

.posts {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
}

.post {
  width: 12px;
  background: var(--post);
  border-radius: 4px;
  align-self: end;
  height: 80%;
  transform-origin: bottom;
  transform: scaleY(0);
  opacity: 0;
  position: relative;
}

.rails {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16%;
}

.rail {
  height: 16px;
  background: var(--rail);
  border-radius: 8px;
  transform: translateX(-100%);
  opacity: 0;
}

.boards {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: end;
}

.board {
  justify-self: stretch;
  width: 130%;
  margin-left: -15%;
  height: 85%;
  border-radius: 4px 4px 0 0;
  position: relative;
  transform-origin: bottom;
  transform: scaleY(0) translateY(8px);
  opacity: 0;
  background-blend-mode: overlay;
}

.board::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.05),
    transparent 20%,
    transparent 80%,
    rgba(0, 0, 0, 0.05)
  );
  pointer-events: none;
  border-radius: inherit;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 800ms ease, transform 800ms ease;
  z-index: 5;
}

.hero-overlay.show {
  opacity: 1;
  transform: translateY(0);
}

.hero-copy {
  display: grid;
  gap: 0.75rem;
}

.headline {
  margin: 0;
  font-family: "Teko", sans-serif;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #142235;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.6);
}

.subhead {
  margin: 0;
  font-size: clamp(1rem, 2.6vw, 1.2rem);
  color: #2a384a;
  text-shadow: 0 2px 6px rgba(255, 255, 255, 0.6);
}

.animate .post {
  animation: rise 1.2s ease-out forwards;
  animation-delay: calc(var(--i) * 0.1s);
}

.animate .rails .rail:nth-child(1) {
  animation: slide-in 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: 1.6s;
}

.animate .rails .rail:nth-child(2) {
  animation: slide-in 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: 2s;
}

.animate .board {
  animation: pop 0.9s cubic-bezier(0.24, 0.86, 0.32, 1.1) forwards;
  animation-delay: calc(2.4s + var(--i) * 0.09s);
}

@keyframes rise {
  0% {
    transform: scaleY(0);
    opacity: 0;
  }
  100% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes slide-in {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes pop {
  0% {
    transform: scaleY(0) translateY(8px);
    opacity: 0;
  }
  100% {
    transform: scaleY(1) translateY(0);
    opacity: 1;
  }
}

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

.content.show {
  opacity: 1;
  transform: translateY(0);
}

main {
  padding: 4rem 6vw 0;
}

section {
  margin: 0 auto 5rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--accent-deep);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none;
  box-shadow: 0 10px 20px rgba(198, 106, 42, 0.25);
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(15, 29, 43, 0.2);
  box-shadow: none;
}

.intro {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.intro-text h2 {
  font-family: "Teko", sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin: 0.4rem 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.intro-text p {
  line-height: 1.7;
  color: var(--ink-soft);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.8rem;
}

.intro-image img {
  border-radius: 20px;
  box-shadow: var(--shadow);
  object-fit: cover;
  min-height: 320px;
}

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

.trust-card {
  padding: 1.8rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(15, 29, 43, 0.08);
}

.trust-card h3 {
  margin-top: 0;
  font-family: "Teko", sans-serif;
  font-size: 2rem;
  letter-spacing: 0.05em;
}

.services .section-head,
.gallery .section-head,
.testimonials .section-head,
.contact .section-head {
  max-width: 680px;
}

.section-head h2 {
  font-family: "Teko", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin: 0.4rem 0 1rem;
  text-transform: uppercase;
}

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

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.service-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 29, 43, 0.08);
  display: grid;
}

.service-card img {
  height: 220px;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

.service-card div {
  padding: 1.6rem;
}

.service-card h3 {
  margin-top: 0;
  font-family: "Teko", sans-serif;
  font-size: 1.8rem;
  text-transform: uppercase;
}

.service-card ul {
  padding-left: 1.2rem;
  margin: 1rem 0 0;
  color: var(--ink-soft);
}

.feature-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem;
  border-radius: 28px;
  background: linear-gradient(135deg, #0f1d2b 0%, #1f2f42 60%, #2a394d 100%);
  color: #fff;
}

.feature-band h2 {
  font-family: "Teko", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin: 0.4rem 0 1rem;
  text-transform: uppercase;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.feature-list span {
  background: rgba(255, 255, 255, 0.15);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.feature-image img {
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-grid figure {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(15, 29, 43, 0.08);
}

.gallery-grid figcaption {
  padding: 1rem 1.2rem 1.4rem;
  font-weight: 600;
}

.testimonials {
  text-align: center;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.testimonial-grid article {
  background: #fff;
  border-radius: 20px;
  padding: 1.8rem;
  border: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(15, 29, 43, 0.08);
}

.testimonial-grid p {
  color: var(--ink-soft);
  line-height: 1.6;
}

.testimonial-grid span {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  align-items: start;
}

.contact-form {
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 29, 43, 0.2);
  font-family: inherit;
}

.contact-card {
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact-card h3 {
  margin-top: 0;
  font-family: "Teko", sans-serif;
  font-size: 1.8rem;
  text-transform: uppercase;
}

.contact-card a {
  color: var(--accent-deep);
  font-weight: 600;
}

.contact-note {
  margin-top: 1.2rem;
  padding: 1rem;
  border-radius: 16px;
  background: var(--sand);
  color: var(--ink-soft);
}

.site-footer {
  padding: 3rem 6vw;
  background: #0f1d2b;
  color: #f7f3ec;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
}

.footer-inner h3 {
  font-family: "Teko", sans-serif;
  font-size: 2rem;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.footer-meta {
  margin-top: 2rem;
  color: rgba(247, 243, 236, 0.6);
  font-size: 0.9rem;
}

.page-hero {
  padding: 6rem 6vw 3rem;
  margin-top: 100px;
}

.page-hero h1 {
  font-family: "Teko", sans-serif;
  font-size: clamp(2.6rem, 6vw, 3.8rem);
  margin: 0.4rem 0 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.portfolio-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: left;
  padding: 0;
  cursor: pointer;
}

.portfolio-card img {
  height: 210px;
  width: 100%;
  object-fit: cover;
}

.portfolio-card .card-body {
  padding: 1.4rem;
}

.portfolio-card h3 {
  margin: 0 0 0.6rem;
  font-family: "Teko", sans-serif;
  font-size: 1.6rem;
  text-transform: uppercase;
}

.portfolio-card p {
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.5;
}

.portfolio-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: rgba(10, 20, 30, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2000;
  overflow-y: auto;
  padding: 4rem 0;
}

.portfolio-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.portfolio-dialog {
  width: min(900px, 92vw);
  background: #fff;
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 30px 60px rgba(10, 20, 30, 0.35);
  display: grid;
  gap: 1.5rem;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
}

.portfolio-dialog header {
  position: static;
  width: auto;
  padding: 0;
  background: none;
  opacity: 1;
  transform: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.portfolio-dialog header h3 {
  margin: 0;
  font-family: "Teko", sans-serif;
  font-size: 2rem;
  text-transform: uppercase;
}

.portfolio-dialog button {
  border: none;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.portfolio-main {
  display: grid;
  gap: 1rem;
}

.portfolio-main img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  max-height: 420px;
}

.portfolio-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.8rem;
}

.portfolio-thumbs img {
  width: 100%;
  height: 90px;
  border-radius: 12px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
}

.portfolio-thumbs img.active {
  border-color: var(--accent);
}

.portfolio-desc {
  color: var(--ink-soft);
  line-height: 1.6;
}

@media (max-width: 900px) {
  header {
    padding: 16px 4vw;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    top: 82px;
    right: 4vw;
    background: #fff;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(15, 29, 43, 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  header.nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  main {
    padding: 4rem 4vw 0;
  }

  .page-hero {
    padding: 5rem 4vw 2rem;
  }
}

@media (max-width: 700px) {
  .hero {
    padding-top: 120px;
  }

  .scene {
    height: 320px;
  }

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

  .feature-band {
    padding: 2rem;
  }
}
