:root {
  --bg: #f8f3ea;
  --surface: #fffaf2;
  --text: #17243a;
  --muted: #4e5f79;
  --line: #d7cfbf;
  --accent: #ef6b4a;
  --accent-deep: #d94a2a;
  --teal: #0f8b8d;
  --shadow: 0 24px 44px rgba(23, 36, 58, 0.12);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at 10% 20%, rgba(239, 107, 74, 0.18), transparent 42%),
    radial-gradient(circle at 90% 12%, rgba(15, 139, 141, 0.16), transparent 38%),
    linear-gradient(170deg, #f8f3ea 0%, #f2ebe1 55%, #efe6d8 100%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

section[id] {
  scroll-margin-top: 88px;
}

.skip-link {
  position: absolute;
  left: 0.7rem;
  top: -100px;
  z-index: 100;
  background: #152f49;
  color: #fff;
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus {
  top: 0.7rem;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3 {
  font-family: "DM Serif Display", serif;
  line-height: 1.1;
  margin: 0;
}

p {
  margin: 0;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.ambient {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(70px);
  z-index: -1;
  opacity: 0.45;
  pointer-events: none;
}

.ambient-one {
  background: #f3a96e;
  top: -120px;
  left: -120px;
  animation: drift 16s ease-in-out infinite alternate;
}

.ambient-two {
  background: #56b6a8;
  bottom: -140px;
  right: -100px;
  animation: drift 18s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(35px, -20px, 0) scale(1.12);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(248, 243, 234, 0.72);
  border-bottom: 1px solid rgba(23, 36, 58, 0.08);
}

.nav-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.01em;
}

.logo-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  box-shadow: 0 6px 14px rgba(23, 36, 58, 0.16);
}

.site-nav {
  display: flex;
  gap: 1.25rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 180ms ease;
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a.is-active {
  color: #1b3758;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.menu-toggle {
  display: none;
  border: 1px solid #cdbda6;
  background: rgba(255, 250, 242, 0.92);
  color: #1f3f62;
  border-radius: 10px;
  padding: 0.5rem 0.68rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  padding: 0.78rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 22px rgba(217, 74, 42, 0.22);
  background: var(--accent-deep);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(15, 139, 141, 0.35);
  outline-offset: 2px;
}

.btn-small {
  padding: 0.58rem 0.95rem;
  font-size: 0.9rem;
}

.btn-ghost {
  background: transparent;
  color: var(--accent-deep);
}

.hero {
  padding: 4.2rem 0 2.2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.8vw, 4rem);
  margin-bottom: 1rem;
}

.hero h1 span {
  color: var(--accent-deep);
}

.lead {
  color: var(--muted);
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.stats {
  list-style: none;
  padding: 0;
  margin: 1.8rem 0 0;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.stats li {
  min-width: 120px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.68);
  border-radius: 16px;
  padding: 0.9rem 1rem;
}

.stats strong {
  display: block;
  font-size: 1.4rem;
  font-family: "DM Serif Display", serif;
}

.stats span {
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-card {
  background: linear-gradient(140deg, #fff9f0, #fff4e4);
  border: 1px solid #e6d9c4;
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  transition: transform 180ms ease;
}

.hero-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.88rem;
}

.pulse {
  background: rgba(15, 139, 141, 0.18);
  color: #086668;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-weight: 700;
}

.hero-card h2 {
  margin: 1rem 0 0.8rem;
  font-size: 1.9rem;
}

.hero-card p {
  color: var(--muted);
}

.hero-tags {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  background: rgba(255, 255, 255, 0.58);
  font-size: 0.8rem;
  font-weight: 700;
  color: #2d4764;
}

.section {
  padding: 4rem 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}

.section h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.8rem);
}

.section-head {
  max-width: 780px;
}

.section-head h2 {
  margin-bottom: 1rem;
}

.project-grid {
  margin-top: 1.3rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.project-card {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.project-visual {
  margin: 0;
  aspect-ratio: 16 / 10;
  background: #f6eee1;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.project-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.project-card:hover .project-visual img {
  transform: scale(1.04);
}

.project-info {
  padding: 1rem;
}

.project-info h3 {
  margin-bottom: 0.5rem;
  font-size: 1.45rem;
}

.project-info p {
  color: var(--muted);
}

.project-info ul {
  margin: 0.8rem 0 0;
  padding-left: 1rem;
  color: #2f4865;
  font-size: 0.88rem;
}

.project-link {
  margin-top: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  color: #fff;
  background: #1f3f62;
  border: 1px solid #1f3f62;
  border-radius: 999px;
  padding: 0.48rem 0.85rem;
  transition: transform 180ms ease, background 180ms ease;
}

.project-link:hover {
  transform: translateY(-2px);
  background: #152f49;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.9rem;
}

.service-grid article {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.65);
}

.service-grid h3 {
  margin-bottom: 0.35rem;
  font-size: 1.3rem;
}

.service-grid p {
  color: var(--muted);
  font-size: 0.95rem;
}

.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

blockquote {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  padding: 1rem;
  color: #2e4663;
}

cite {
  display: block;
  margin-top: 0.9rem;
  font-style: normal;
  color: #1e3249;
  font-weight: 700;
}

.contact-box {
  border: 1px solid #d2c7b2;
  border-radius: 20px;
  padding: 1.8rem;
  background:
    linear-gradient(120deg, rgba(255, 250, 240, 0.92), rgba(255, 255, 255, 0.72)),
    radial-gradient(circle at 12% 18%, rgba(239, 107, 74, 0.24), transparent 45%);
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  align-items: flex-start;
}

.contact-meta {
  flex: 1;
}

.contact-list {
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.contact-list li {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  padding: 0.7rem 0.8rem;
}

.contact-list span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-list a {
  color: #1c3959;
  text-decoration: none;
  font-weight: 700;
}

.contact-form {
  flex: 1;
  max-width: 420px;
  border: 1px solid #d8ccb8;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  padding: 1rem;
  display: grid;
  gap: 0.45rem;
}

.contact-form label {
  font-size: 0.86rem;
  color: #1f3a5c;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #cdbda6;
  border-radius: 10px;
  padding: 0.6rem 0.72rem;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: #fffefb;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(15, 139, 141, 0.25);
  border-color: #67a8a8;
}

.hidden-field {
  position: absolute;
  left: -9999px;
}

.form-note {
  margin-top: 0.2rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.site-footer {
  padding: 2rem 0 2.3rem;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(23, 36, 58, 0.14);
  padding-top: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-wrap a {
  color: #1f3f62;
  text-decoration: none;
  font-weight: 700;
}

.mobile-quick-actions {
  display: none;
}

.section-reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.section-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero-grid,
  .split,
  .service-grid,
  .quote-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .contact-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-form {
    max-width: none;
    width: 100%;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: calc(4.6rem + env(safe-area-inset-bottom));
  }

  .nav-wrap {
    flex-wrap: nowrap;
    align-items: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 4vw;
    right: 4vw;
    top: calc(100% + 0.45rem);
    background: rgba(255, 250, 242, 0.98);
    border: 1px solid #d8ccb8;
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 0.7rem;
    gap: 0.35rem;
  }

  .site-nav.is-open {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .site-nav a {
    padding: 0.5rem 0.55rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    text-align: center;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .btn-small {
    display: none;
  }

  .hero {
    padding-top: 3.1rem;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn,
  .hero-actions .btn-ghost {
    flex: 1 1 46%;
  }

  .hero-grid,
  .split,
  .quote-grid {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .mobile-quick-actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: rgba(22, 45, 69, 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .mobile-quick-actions a {
    color: #fff;
    text-decoration: none;
    text-align: center;
    font-weight: 700;
    padding: 0.8rem 0.35rem;
    font-size: 0.9rem;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
  }

  .mobile-quick-actions a:last-child {
    border-right: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ambient,
  .section-reveal,
  .hero-card,
  .btn {
    animation: none !important;
    transition: none !important;
  }

  .section-reveal {
    opacity: 1;
    transform: none;
  }
}
