:root {
  --ink: #2a2727;
  --muted: #746b67;
  --paper: #fffaf7;
  --surface: #ffffff;
  --line: #eaded8;
  --coral: #d96f5b;
  --coral-soft: #f5c8bd;
  --bordo: #7e2732;
  --accent: #b95545;
  --shadow: 0 24px 70px rgba(42, 39, 39, .12);
  --display: "Avenir Next", "Montserrat", "Segoe UI", Arial, sans-serif;
  --title: "Bahnschrift SemiCondensed", "Arial Narrow", "Aptos Display", "Avenir Next Condensed", "Segoe UI", Arial, sans-serif;
  --text: "Avenir Next", "Segoe UI", Arial, sans-serif;
  --italic: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  line-height: 1.58;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 76px;
  padding: 14px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(234, 222, 216, .82);
  background: rgba(255, 250, 247, .92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  object-fit: cover;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.nav a:hover,
.language a:hover {
  color: var(--accent);
}

.language {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.language .active {
  color: var(--ink);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 110px) clamp(18px, 5vw, 72px);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .78fr);
  align-items: center;
  gap: clamp(34px, 7vw, 100px);
  max-width: 1240px;
  margin: 0 auto;
}

.eyebrow,
.mini-title,
.project-label,
.estimate-label {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .19em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p { margin-top: 0; }

h1,
h2 {
  font-family: var(--title);
  font-stretch: condensed;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: .88;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 8vw, 7.4rem);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 5vw, 5rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  letter-spacing: .04em;
}

p {
  color: var(--muted);
}

.lead {
  max-width: 600px;
  font-size: clamp(1.04rem, 2vw, 1.26rem);
}

.script {
  color: var(--bordo);
  font-family: var(--italic);
  font-size: clamp(1.55rem, 3vw, 2.5rem);
  font-style: italic;
  line-height: 1.12;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  background: var(--ink);
  color: var(--paper);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.button.secondary {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.button.full { width: 100%; }

.logo-panel {
  display: grid;
  place-items: center;
  min-height: 470px;
  padding: 34px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.logo-panel img {
  display: block;
  width: min(440px, 100%);
  height: auto;
}

.section {
  padding: clamp(70px, 9vw, 128px) clamp(18px, 5vw, 72px);
}

.page-hero {
  padding-top: clamp(88px, 10vw, 150px);
  padding-bottom: clamp(76px, 8vw, 118px);
}

.section-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.section-heading {
  max-width: 870px;
  margin-bottom: 42px;
}

.split {
  display: grid;
  grid-template-columns: minmax(280px, .82fr) minmax(0, 1fr);
  gap: clamp(34px, 7vw, 90px);
  align-items: start;
}

.service-grid,
.portfolio-grid,
.steps,
.stats {
  display: grid;
  gap: 18px;
}

.service-grid {
  grid-template-columns: repeat(4, 1fr);
}

.service-card {
  min-height: 265px;
  padding: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .76);
}

.service-card span {
  display: block;
  margin-bottom: 58px;
  color: var(--coral);
  font-family: var(--italic);
  font-size: 2rem;
  font-style: italic;
}

.teaser-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.teaser-card {
  display: block;
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .76);
}

.teaser-card span {
  display: block;
  margin-bottom: 58px;
  color: var(--coral);
  font-family: var(--italic);
  font-size: 2rem;
  font-style: italic;
}

.teaser-card:hover {
  border-color: var(--bordo);
}

.portfolio-grid {
  grid-template-columns: repeat(3, 1fr);
}

.project {
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .08);
}

.featured-project {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  align-items: stretch;
}

.featured-project .project-art {
  min-height: 390px;
}

.featured-project .project-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-art {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 12px;
  min-height: 250px;
  padding: 16px;
}

.project-art span {
  display: block;
  background: rgba(255, 255, 255, .84);
}

.project-art span:first-child { grid-row: span 2; }
.project-art span:last-child { grid-column: span 2; min-height: 54px; }

.project-copy {
  padding: 24px;
}

.project-copy p,
.project-copy > span {
  color: rgba(255, 250, 247, .72);
}

.project-label {
  color: var(--coral-soft) !important;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.project-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255, 250, 247, .22);
  color: rgba(255, 250, 247, .78);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: 42px;
  margin-top: 24px;
  padding: 0 16px;
  border: 1px solid rgba(255, 250, 247, .3);
  color: #fffaf7;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.steps {
  grid-template-columns: repeat(3, 1fr);
}

.step {
  min-height: 180px;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.step strong {
  display: block;
  margin-bottom: 28px;
  color: var(--bordo);
  font-family: var(--italic);
  font-size: 2rem;
  font-style: italic;
  font-weight: 500;
}

.calculator {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 24px;
  align-items: start;
}

.calc-panel,
.estimate-panel {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .82);
}

.calc-panel,
.estimate-panel {
  padding: clamp(22px, 3vw, 34px);
}

.estimate-panel {
  position: sticky;
  top: 98px;
  box-shadow: var(--shadow);
}

fieldset {
  min-width: 0;
  margin: 0 0 26px;
  padding: 0;
  border: 0;
}

fieldset:last-child { margin-bottom: 0; }

legend {
  margin-bottom: 14px;
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.option,
.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 15px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.option + .option,
.check + .check { margin-top: 10px; }

input[type="radio"],
input[type="checkbox"],
input[type="range"] { accent-color: var(--bordo); }

.option strong,
.option small { display: block; }

.option small { color: var(--muted); }

.range-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

input[type="range"] { width: 100%; }

output {
  min-width: 44px;
  padding: 6px 10px;
  background: var(--coral-soft);
  color: var(--bordo);
  text-align: center;
  font-weight: 900;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.segmented input {
  position: absolute;
  opacity: 0;
}

.segmented span {
  display: grid;
  place-items: center;
  min-height: 44px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.segmented input:checked + span {
  border-color: var(--bordo);
  background: var(--coral-soft);
  color: var(--bordo);
}

#estimate-total {
  display: block;
  margin-bottom: 14px;
  color: var(--bordo);
  font-family: var(--italic);
  font-size: clamp(3.2rem, 5vw, 5rem);
  font-style: italic;
  font-weight: 500;
  line-height: .88;
}

.estimate-lines {
  display: grid;
  gap: 12px;
  margin: 26px 0;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.estimate-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.estimate-line strong { color: var(--ink); }

.contact-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 42px);
  align-items: start;
  max-width: 980px;
  padding: clamp(28px, 5vw, 70px);
  background: var(--surface);
}

.contact-card > * {
  min-width: 0;
}

.contact-copy {
  position: static;
  max-width: 840px;
}

.contact-copy h1 {
  max-width: 100%;
  font-size: clamp(2.5rem, 6vw, 5.25rem);
  letter-spacing: .1em;
  line-height: .92;
  overflow-wrap: normal;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form label.full,
.form-actions.full {
  grid-column: 1 / -1;
}

.contact-form label span {
  color: var(--accent);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  outline: none;
}

.contact-form input,
.contact-form select {
  min-height: 48px;
  padding: 0 14px;
}

.contact-form textarea {
  resize: vertical;
  min-height: 130px;
  padding: 14px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--bordo);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 26px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}

@media (max-width: 1040px) {
  .nav { display: none; }
  .hero-grid,
  .split,
  .calculator,
  .contact-card,
  .featured-project { grid-template-columns: 1fr; }
  .service-grid,
  .teaser-grid,
  .portfolio-grid,
  .steps { grid-template-columns: 1fr 1fr; }
  .estimate-panel { position: static; }
}

@media (max-width: 700px) {
  .site-header { align-items: flex-start; }
  .language { margin-left: auto; }
  h1 {
    font-size: clamp(2.35rem, 12vw, 4.2rem);
    letter-spacing: .08em;
    line-height: .94;
    overflow-wrap: anywhere;
  }
  .service-grid,
  .teaser-grid,
  .portfolio-grid,
  .steps,
  .segmented { grid-template-columns: 1fr; }
  .logo-panel { min-height: 320px; }
  .contact-card { gap: 28px; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-copy h1 {
    max-width: 100%;
    font-size: clamp(2.05rem, 9.4vw, 3.45rem);
    letter-spacing: .06em;
    line-height: 1;
  }
  .button { width: 100%; }
}

@media (max-width: 420px) {
  h1 {
    font-size: clamp(2rem, 10.5vw, 3.25rem);
    letter-spacing: .05em;
  }

  .contact-copy h1 {
    font-size: clamp(1.85rem, 8.8vw, 2.8rem);
    letter-spacing: .04em;
  }
}
