:root {
  --white: #f5f4f1;
  --concrete: #b8b4ad;
  --concrete-deep: #8a8680;
  --cobalt: #5b7c99;
  --cobalt-deep: #3d5a73;
  --stone: #c4b8a8;
  --stone-warm: #a89880;
  --black: #1a1a1a;
  --ink: #2c2c2a;
  --surface: #ebe9e4;
  --surface-2: #e0ddd6;
  --line: rgba(26, 26, 26, 0.12);
  --font-display: "Syne", sans-serif;
  --font-body: "Outfit", sans-serif;
  --space: clamp(1rem, 2.5vw, 2rem);
  --max: 1120px;
  --header-h: 4.25rem;
  --ease-liquid: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(91, 124, 153, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(196, 184, 168, 0.22), transparent 50%),
    linear-gradient(165deg, var(--white) 0%, var(--surface) 45%, #dcd8d0 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: var(--cobalt-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--black);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--black);
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--black);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 0;
}

.js-error {
  margin: 0;
  padding: 0.75rem var(--space);
  background: #c45c4a;
  color: #fff;
  font-size: 0.9rem;
}

/* Header — monolithic bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(245, 244, 241, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space);
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--black);
  text-decoration: none;
}

.brand:hover {
  color: var(--cobalt-deep);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  padding: 0.45rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--ink);
  align-items: center;
  gap: 0.5rem;
}

.nav-toggle-bars {
  width: 1.1rem;
  height: 1px;
  background: var(--black);
  box-shadow: 0 4px 0 var(--black), 0 -4px 0 var(--black);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.35rem;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.site-nav a:hover {
  color: var(--cobalt-deep);
}

.nav-cta {
  padding: 0.4rem 0.9rem;
  background: var(--black);
  color: var(--white) !important;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 92% 100%, 0 100%);
  transition: clip-path 0.45s var(--ease-liquid), background 0.3s;
}

.nav-cta:hover {
  background: var(--cobalt-deep);
  clip-path: polygon(0 8%, 8% 0, 100% 0, 100% 100%, 8% 100%, 0 92%);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--white);
    padding: 2rem var(--space);
    transform: translateX(100%);
    transition: transform 0.45s var(--ease-liquid);
    border-left: 1px solid var(--line);
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .site-nav a {
    font-size: 1.15rem;
  }
}

/* Layout helpers */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space);
}

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--concrete-deep);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.lead {
  font-size: 1.2rem;
  max-width: 38rem;
  color: var(--ink);
}

/* Buttons — liquid bend */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.85rem 1.5rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: clip-path 0.5s var(--ease-liquid), background 0.3s, color 0.3s, transform 0.3s;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.btn-primary {
  background: var(--black);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--cobalt-deep);
  color: var(--white);
  clip-path: polygon(0 6%, 4% 0, 100% 0, 100% 94%, 96% 100%, 0 100%);
}

.btn-secondary {
  background: transparent;
  color: var(--black);
  box-shadow: inset 0 0 0 1px var(--black);
}

.btn-secondary:hover {
  background: var(--stone);
  color: var(--black);
  clip-path: polygon(3% 0, 100% 0, 97% 100%, 0 100%);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.btn-ghost:hover {
  background: var(--surface-2);
}

.btn.is-bending {
  animation: surface-bend 0.52s var(--ease-liquid);
}

.btn.is-bending::after {
  content: "";
  position: absolute;
  width: 120%;
  height: 120%;
  left: var(--lx, 50%);
  top: var(--ly, 50%);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(91, 124, 153, 0.35) 0%, transparent 65%);
  pointer-events: none;
  animation: ripple-fold 0.52s var(--ease-liquid) forwards;
}

@keyframes surface-bend {
  0% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    transform: scale(1);
  }
  35% {
    clip-path: polygon(0 8%, 12% 0, 100% 4%, 94% 100%, 8% 96%, 0 88%);
    transform: scale(0.985);
  }
  70% {
    clip-path: polygon(4% 0, 100% 6%, 96% 100%, 0 94%);
  }
  100% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    transform: scale(1);
  }
}

@keyframes ripple-fold {
  from {
    opacity: 0.9;
    width: 40%;
    height: 40%;
  }
  to {
    opacity: 0;
    width: 160%;
    height: 160%;
  }
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

/* Hero — full-bleed architectural plane */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(26, 26, 26, 0.78) 0%, rgba(26, 26, 26, 0.35) 48%, rgba(91, 124, 153, 0.25) 100%),
    linear-gradient(to top, rgba(26, 26, 26, 0.55) 0%, transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: clamp(3rem, 10vw, 6rem) var(--space);
  color: var(--white);
}

.hero-content h1 {
  color: var(--white);
  max-width: 14ch;
  animation: rise-in 0.9s var(--ease-liquid) both;
}

.hero-content .lead {
  color: rgba(245, 244, 241, 0.88);
  max-width: 32rem;
  animation: rise-in 0.9s 0.12s var(--ease-liquid) both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--stone);
  animation: rise-in 0.7s var(--ease-liquid) both;
}

.hero .btn-primary {
  background: var(--white);
  color: var(--black);
}

.hero .btn-primary:hover {
  background: var(--stone);
  color: var(--black);
}

.hero .btn-secondary {
  color: var(--white);
  box-shadow: inset 0 0 0 1px rgba(245, 244, 241, 0.55);
}

.hero .btn-row {
  animation: rise-in 0.9s 0.22s var(--ease-liquid) both;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Monolithic panels */
.panel {
  background: linear-gradient(145deg, rgba(245, 244, 241, 0.95), rgba(224, 221, 214, 0.9));
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  transition: clip-path 0.5s var(--ease-liquid), transform 0.4s var(--ease-liquid);
}

.panel:hover {
  clip-path: polygon(0 8px, 12px 0, 100% 0, 100% 100%, 0 100%);
  transform: translateY(-2px);
}

.panel-muted {
  background: rgba(91, 124, 153, 0.08);
}

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

.offer-card h3 {
  margin-top: 1rem;
}

.offer-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 100% 92%, 96% 100%, 0 100%);
}

.offer-meta {
  font-size: 0.85rem;
  color: var(--concrete-deep);
  margin-top: 0.5rem;
}

/* Split layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

@media (max-width: 768px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.split-visual {
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 4%, 4% 0, 100% 0, 100% 96%, 96% 100%, 0 100%);
  min-height: 280px;
}

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

/* Evidence / quotes */
.quote-list {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.quote {
  border-left: 2px solid var(--cobalt);
  padding: 0.25rem 0 0.25rem 1.25rem;
}

.quote p {
  font-size: 1.05rem;
}

.quote footer {
  font-size: 0.9rem;
  color: var(--concrete-deep);
}

/* Pricing */
.rate-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.98rem;
}

.rate-table th,
.rate-table td {
  text-align: left;
  padding: 1rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.rate-table th {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--black);
}

.rate-note {
  font-size: 0.92rem;
  color: var(--concrete-deep);
  max-width: 40rem;
}

/* Forms */
.form {
  display: grid;
  gap: 1.15rem;
  max-width: 36rem;
}

.form-row {
  display: grid;
  gap: 0.35rem;
}

.form-row label {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.form-row input,
.form-row select,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  background: rgba(245, 244, 241, 0.9);
  color: var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  transition: border-color 0.25s, clip-path 0.4s var(--ease-liquid);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--cobalt);
  clip-path: polygon(0 4px, 4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%);
}

.form-row input[aria-invalid="true"],
.form-row select[aria-invalid="true"],
.form-row textarea[aria-invalid="true"] {
  border-color: #a84838;
}

.field-error {
  color: #a84838;
  font-size: 0.85rem;
  min-height: 1.1em;
}

.form-status {
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
}

.form-status--ok {
  background: rgba(91, 124, 153, 0.15);
  border-left: 2px solid var(--cobalt);
}

.form-status--err {
  background: rgba(168, 72, 56, 0.1);
  border-left: 2px solid #a84838;
}

.contact-aside {
  padding: 1.5rem;
  background: var(--black);
  color: var(--white);
  clip-path: polygon(0 0, 100% 0, 100% 88%, 94% 100%, 0 100%);
}

.contact-aside a {
  color: var(--stone);
}

.contact-aside h2 {
  color: var(--white);
}

/* Blog */
.post-list {
  display: grid;
  gap: 2rem;
}

.post-item {
  display: grid;
  grid-template-columns: minmax(0, 220px) 1fr;
  gap: 1.5rem;
  align-items: start;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 640px) {
  .post-item {
    grid-template-columns: 1fr;
  }
}

.post-item img {
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 92% 100%, 0 100%);
}

.post-date {
  font-size: 0.85rem;
  color: var(--concrete-deep);
}

.prose {
  max-width: 42rem;
}

.prose p {
  margin-bottom: 1.25rem;
}

.article-hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 100% 94%, 98% 100%, 0 100%);
  margin: 1.5rem 0 2rem;
}

/* Process steps */
.steps {
  counter-reset: step;
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--cobalt);
  font-weight: 600;
}

/* Legal */
.legal {
  max-width: 44rem;
}

.legal h2 {
  margin-top: 2.5rem;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1.25rem 0;
}

.legal th,
.legal td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.legal th {
  background: rgba(91, 124, 153, 0.1);
  font-weight: 500;
}

/* Page hero compact */
.page-hero {
  padding: clamp(3rem, 7vw, 5rem) 0 2rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(120deg, transparent 40%, rgba(91, 124, 153, 0.08) 100%);
}

.page-hero h1 {
  max-width: 18ch;
}

/* 404 */
.page-404 {
  min-height: 60vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: var(--space);
}

.page-404 .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 8rem);
  color: var(--concrete);
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
  margin-top: 4rem;
  background: var(--black);
  color: rgba(245, 244, 241, 0.78);
  padding: 3rem var(--space) 2rem;
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 0.35rem;
}

.footer-tag {
  font-size: 0.9rem;
  color: var(--stone);
}

.footer-contact a {
  color: var(--stone);
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--white);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-nav a {
  color: rgba(245, 244, 241, 0.7);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-copy {
  max-width: var(--max);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(245, 244, 241, 0.12);
  font-size: 0.85rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(26, 26, 26, 0.96);
  color: var(--white);
  padding: 1.25rem var(--space);
  border-top: 1px solid rgba(91, 124, 153, 0.4);
}

.cookie-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-inner p {
  margin: 0;
  flex: 1 1 280px;
  font-size: 0.92rem;
}

.cookie-inner a {
  color: var(--stone);
}

.cookie-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.cookie-banner .btn-primary {
  background: var(--cobalt);
}

.cookie-banner .btn-ghost {
  color: var(--white);
  box-shadow: inset 0 0 0 1px rgba(245, 244, 241, 0.35);
}

.list-plain {
  padding-left: 1.15rem;
  margin: 0 0 1rem;
}

.list-plain li {
  margin-bottom: 0.4rem;
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cobalt-deep);
  margin-right: 0.5rem;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
}

@media (max-width: 800px) {
  .service-detail-grid {
    grid-template-columns: 1fr;
  }
}

.detail-side {
  background: var(--black);
  color: var(--white);
  padding: 1.75rem;
  clip-path: polygon(0 0, 100% 0, 100% 96%, 94% 100%, 0 100%);
  height: fit-content;
}

.detail-side h2 {
  color: var(--white);
  font-size: 1.1rem;
}

.detail-side dt {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
  margin-top: 1rem;
}

.detail-side dd {
  margin: 0.25rem 0 0;
}

.detail-side a.btn {
  margin-top: 1.5rem;
  width: 100%;
}
