:root {
  --bg: #f5f0e7;
  --bg-soft: #fbf8f2;
  --surface: #fffdfa;
  --surface-alt: #f1eadf;
  --surface-dark: #14283c;
  --line: rgba(20, 40, 60, 0.12);
  --line-strong: rgba(20, 40, 60, 0.22);
  --text: #1d2732;
  --text-soft: #64707c;
  --brand: #122a43;
  --brand-soft: #4b6377;
  --accent: #c39f79;
  --shadow-lg: 0 32px 88px rgba(18, 42, 67, 0.14);
  --shadow-md: 0 20px 48px rgba(18, 42, 67, 0.08);
  --shadow-sm: 0 8px 20px rgba(18, 42, 67, 0.06);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shell: min(1240px, calc(100vw - 2rem));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(75, 99, 119, 0.1), transparent 28%),
    linear-gradient(180deg, #f4ede3 0%, #efe5d8 45%, #fbf8f2 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.shell {
  width: var(--shell);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  padding: 0.9rem 1.1rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 243, 235, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.site-header.is-scrolled {
  background: rgba(248, 243, 235, 0.97);
  border-color: var(--line);
  box-shadow: 0 8px 28px rgba(18, 42, 67, 0.06);
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  width: min(290px, 48vw);
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  font-size: 0.96rem;
  color: var(--text-soft);
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--brand);
}

.nav-phone {
  padding: 0.72rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.42rem;
  padding: 0.72rem 0.92rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--brand);
}

.menu-toggle-icon {
  display: inline-grid;
  gap: 0.2rem;
}

.menu-toggle-line {
  display: block;
  width: 0.96rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.menu-toggle-label {
  font-size: 0.92rem;
}

.hero {
  padding: 0;
}

.hero-shell {
  width: 100%;
  max-width: none;
  margin: 0;
}

.hero-stage,
.trust-grid,
.services-secondary,
.about-shell,
.contact-shell {
  display: grid;
}

.hero-stage {
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
  min-height: calc(100vh - 84px);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(255, 251, 244, 0.96), rgba(255, 251, 244, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.hero-copy {
  position: relative;
  z-index: 3;
  display: grid;
  align-content: center;
  gap: 1rem;
  padding: clamp(2rem, 5vw, 5rem) clamp(1.5rem, 4vw, 4rem);
}

.hero-copy-overlay {
  position: absolute;
  inset: auto auto 2.2rem 2.2rem;
  width: min(560px, calc(100% - 4.4rem));
  padding: 1.6rem 1.6rem 1.7rem;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.hero-actions-only {
  width: auto;
  padding: 0;
}

.hero-visual {
  position: relative;
  min-height: 100%;
}

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

.eyebrow,
.service-tag,
.project-label,
.contact-role {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-soft);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.03;
  color: var(--brand);
}

h1 {
  max-width: 10ch;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
}

h2 {
  max-width: none;
  font-size: clamp(2.2rem, 4.2vw, 4rem);
}

h3 {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
}

.hero-text,
.section-heading p,
.about-copy p,
.contact-copy p,
.services-secondary-copy p {
  color: var(--text-soft);
  max-width: 60ch;
}

.hero-text {
  margin: 0;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.95rem;
  margin-top: 0.4rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0.92rem 1.32rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, #122a43, #1c4061);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.58);
  border-color: var(--line-strong);
  color: var(--brand);
}

.trust-strip {
  padding: 0 0 1rem;
}

.trust-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 253, 249, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-sm);
}

.trust-item {
  padding: 1.2rem 1.3rem;
  border-right: 1px solid var(--line);
}

.trust-grid.is-reveal-ready .trust-item[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  will-change: opacity, transform;
  transition:
    opacity 0.78s ease,
    transform 0.78s cubic-bezier(0.22, 1, 0.36, 1);
}

.trust-grid.is-reveal-ready.is-visible .trust-item[data-reveal] {
  opacity: 1;
  transform: translateY(0);
}

.trust-item:last-child {
  border-right: 0;
}

.trust-item strong {
  display: block;
  color: var(--brand);
}

.trust-item p {
  margin: 0.35rem 0 0;
  color: var(--text-soft);
}

.section {
  padding: clamp(4.4rem, 8vw, 6.8rem) 0;
}

.section-services {
  background:
    linear-gradient(180deg, rgba(255, 251, 244, 0.62), rgba(255, 251, 244, 0)),
    radial-gradient(circle at left top, rgba(75, 99, 119, 0.08), transparent 24%);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  column-gap: 0;
  gap: 0.75rem;
  margin-bottom: 2.4rem;
  max-width: 58rem;
}

.section-heading h2 {
  max-width: 20ch;
  font-size: clamp(2rem, 3.1vw, 3.25rem);
  line-height: 1.08;
}

.section-heading p,
.section-heading .eyebrow {
  max-width: 68ch;
}

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

.service-card,
.project-card,
.about-panel,
.contact-form {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-md);
}

.service-card,
.project-card,
.about-panel,
.contact-form,
.trust-grid {
  backdrop-filter: blur(10px);
}

.service-card img,
.project-card img,
.services-secondary img {
  width: 100%;
  height: auto;
}

.service-card-featured {
  transform: translateY(-0.25rem);
}

.service-card-copy,
.project-card-copy {
  padding: 1.2rem 1.2rem 1.3rem;
}

.project-card-copy {
  display: grid;
  gap: 0.45rem;
}

.service-card-copy p:last-child,
.project-card-copy h3 {
  color: var(--text-soft);
}

.services-secondary {
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 1.2rem;
  margin-top: 1.2rem;
  align-items: center;
}

.services-secondary-copy {
  padding: 1rem 0.4rem;
}

.services-secondary-copy h3 {
  max-width: 13ch;
}

.section-projects {
  background:
    linear-gradient(180deg, rgba(255, 251, 244, 0.56), rgba(255, 251, 244, 0)),
    radial-gradient(circle at right top, rgba(75, 99, 119, 0.07), transparent 22%);
}

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

.project-card h3 {
  margin: 0;
  max-width: none;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.2;
  color: var(--brand);
}

.project-city,
.project-summary {
  margin: 0;
}

.project-city {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand);
}

.project-summary {
  color: var(--text-soft);
}

.section-about {
  background:
    linear-gradient(180deg, rgba(241, 234, 223, 0.56), rgba(241, 234, 223, 0)),
    radial-gradient(circle at left bottom, rgba(75, 99, 119, 0.06), transparent 22%);
}

.about-shell,
.contact-shell {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.about-points,
.contact-links {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.about-points p {
  margin: 0;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  color: var(--text);
}

.about-panel {
  padding: 1.6rem 1.45rem;
}

.method-list {
  display: grid;
  gap: 0.9rem;
  margin: 1.2rem 0 0;
  padding-left: 1.15rem;
  color: var(--text-soft);
}

.contact-person {
  margin-top: 1.7rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.contact-name {
  margin: 0.35rem 0 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-size: 1.7rem;
  color: var(--brand);
}

.contact-title {
  margin: 0.15rem 0 0;
  color: var(--text-soft);
}

.contact-links a {
  width: fit-content;
  text-decoration: none;
  color: var(--brand);
  border-bottom: 1px solid rgba(18, 42, 67, 0.2);
}

.contact-form {
  padding: clamp(1.4rem, 3vw, 2rem);
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.form-row {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.form-row-split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-row-split > div {
  display: grid;
  gap: 0.45rem;
}

label {
  color: var(--brand);
  font-size: 0.94rem;
}

.form-label {
  color: var(--brand);
  font-size: 0.94rem;
}

input,
textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(18, 42, 67, 0.28);
  background: #ffffff;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(18, 42, 67, 0.56);
  box-shadow: 0 0 0 4px rgba(18, 42, 67, 0.1);
  background: #fff;
}

textarea {
  min-height: 160px;
  resize: vertical;
}

.upload-control {
  display: grid;
  gap: 0.7rem;
}

.upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.upload-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.78rem;
  width: fit-content;
  min-height: 54px;
  padding: 0.72rem 1rem 0.72rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(18, 42, 67, 0.18);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(18, 42, 67, 0.07);
  color: var(--brand);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.upload-trigger:hover,
.upload-trigger:focus-within {
  transform: translateY(-1px);
  border-color: rgba(18, 42, 67, 0.28);
  box-shadow: 0 14px 30px rgba(18, 42, 67, 0.1);
}

.upload-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #122a43, #1c4061);
  color: #fff;
  flex: 0 0 auto;
}

.upload-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.upload-text {
  font-weight: 600;
}

.upload-status {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.94rem;
}

.upload-status.has-file {
  color: var(--brand);
}

.form-hint,
.form-feedback {
  margin: 0 0 1rem;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.form-feedback.is-error {
  color: #8a2d2d;
}

.form-feedback.is-success {
  color: #205a40;
}

.button[disabled] {
  opacity: 0.72;
  cursor: wait;
  transform: none;
}

.site-footer {
  padding: 1.7rem 0 2.5rem;
}

.footer-shell {
  display: flex;
  justify-content: space-between;
  gap: 1.4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
}

.footer-shell p,
.footer-shell a {
  margin: 0.45rem 0 0;
  text-decoration: none;
}

@media (max-width: 1120px) {
  .hero-shell {
    width: var(--shell);
    max-width: var(--shell);
    margin-left: auto;
    margin-right: auto;
  }

  .hero-stage,
  .services-secondary,
  .about-shell,
  .contact-shell,
  .services-grid,
  .projects-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .trust-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-item:last-child {
    border-bottom: 0;
  }

  .service-card-featured {
    transform: none;
  }

  .hero-stage {
    min-height: auto;
    border-radius: 38px;
  }

  .hero-visual img {
    height: auto;
    object-fit: initial;
  }

  .hero-copy-overlay {
    position: relative;
    inset: auto;
    width: auto;
    margin: -1.4rem 1rem 1rem;
    border-radius: 28px;
    background: rgba(255, 250, 243, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 20px 60px rgba(18, 42, 67, 0.12);
    backdrop-filter: blur(12px);
  }
}

@media (max-width: 900px) {
  .header-shell {
    min-height: 74px;
  }

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

  .site-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.5rem);
    display: grid;
    gap: 0.2rem;
    padding: 0.65rem;
    border-radius: var(--radius-lg);
    background: rgba(248, 244, 237, 0.98);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

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

  .site-nav a {
    padding: 0.82rem 0.92rem;
    border-radius: 16px;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    background: rgba(18, 42, 67, 0.05);
  }

  .nav-phone {
    text-align: center;
  }

  .hero-copy {
    padding: 1.6rem 1.3rem 1.2rem;
  }

  .hero-copy-overlay {
    margin: -0.8rem 0.8rem 0.8rem;
    padding: 1.2rem 1.1rem 1.25rem;
  }
}

@media (max-width: 640px) {
  :root {
    --radius-xl: 26px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .form-row-split {
    grid-template-columns: 1fr;
  }

  .footer-shell {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
