:root {
  --white: #f4f3f0;
  --concrete: #b8b5ae;
  --cobalt: #4a6fa5;
  --cobalt-deep: #3a5a8a;
  --stone: #c4b8a8;
  --stone-warm: #d4c4b0;
  --black: #1a1a1a;
  --ink: #2a2a2a;
  --muted: #6a6862;
  --surface: rgba(244, 243, 240, 0.92);
  --surface-solid: #ebe9e4;
  --line: rgba(26, 26, 26, 0.12);
  --font-display: "Syne", sans-serif;
  --font-body: "Public Sans", sans-serif;
  --space: clamp(1rem, 2vw, 1.5rem);
  --wide: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 2px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(74, 111, 165, 0.08), transparent 50%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(196, 184, 168, 0.25), transparent 45%),
    linear-gradient(165deg, var(--white) 0%, var(--surface-solid) 45%, #ddd9d2 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

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);
}

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

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

/* Header — monolithic bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.9rem var(--space);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--black);
  text-decoration: none;
  white-space: nowrap;
}

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

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

.site-nav a {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}

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

.nav-cta {
  padding: 0.45rem 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), background 0.3s;
}

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

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
  align-items: center;
  gap: 0.5rem;
}

.nav-toggle-bars {
  width: 16px;
  height: 10px;
  border-top: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  position: relative;
}

.nav-toggle-bars::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1.5px;
  background: currentColor;
  transform: translateY(-50%);
}

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

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 1rem var(--space) 1.5rem;
    display: none;
  }

  .site-nav.is-open {
    display: block;
    animation: surface-unfold 0.5s var(--ease);
  }

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

@keyframes surface-unfold {
  from {
    opacity: 0;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  }
  to {
    opacity: 1;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
}

/* Buttons — liquid fold */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.4rem;
  border: none;
  cursor: pointer;
  position: relative;
  transition: clip-path 0.5s var(--ease), background 0.35s, color 0.35s, transform 0.35s var(--ease);
  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);
  color: var(--white);
  clip-path: polygon(0 6%, 96% 0, 100% 88%, 4% 100%);
  transform: translateY(-1px);
}

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

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

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

.btn-ghost:hover {
  box-shadow: inset 0 0 0 1px var(--black);
  clip-path: polygon(0 10%, 100% 0, 100% 90%, 0 100%);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

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

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

.section-tight {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin: 0 0 0.75rem;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--black);
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 38rem;
  margin: 0;
}

.prose {
  max-width: 40rem;
}

.prose p {
  margin: 0 0 1.15rem;
}

.prose ul {
  padding-left: 1.2rem;
  margin: 0 0 1.15rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

/* Hero — full-bleed architectural plane */
.hero {
  position: relative;
  min-height: min(92vh, 780px);
  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(74, 111, 165, 0.25) 100%),
    linear-gradient(to top, rgba(26, 26, 26, 0.55), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--wide);
  width: 100%;
  margin: 0 auto;
  padding: clamp(3rem, 10vw, 6rem) var(--space) clamp(2.5rem, 6vw, 4rem);
  color: var(--white);
  animation: hero-rise 0.9s var(--ease) both;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content .eyebrow {
  color: var(--stone-warm);
}

.hero-content h1 {
  color: var(--white);
  max-width: 14ch;
}

.hero-content .lede {
  color: rgba(244, 243, 240, 0.82);
}

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

.hero-content .btn-primary:hover {
  background: var(--cobalt);
  color: var(--white);
}

.hero-content .btn-secondary {
  color: var(--white);
  box-shadow: inset 0 0 0 1.5px rgba(244, 243, 240, 0.7);
}

.hero-content .btn-secondary:hover {
  background: var(--white);
  color: var(--black);
}

/* Page hero compact */
.page-hero {
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  right: -10%;
  top: -40%;
  width: 45%;
  height: 160%;
  background: linear-gradient(135deg, transparent, rgba(74, 111, 165, 0.07));
  transform: skewX(-12deg);
  pointer-events: none;
}

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

/* Offer / service bands */
.offer-band {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

@media (max-width: 760px) {
  .offer-band {
    grid-template-columns: 1fr;
  }
}

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

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

.offer-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.offer-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  align-items: baseline;
  transition: padding-left 0.4s var(--ease), background 0.3s;
}

.offer-item:hover {
  padding-left: 0.75rem;
  background: linear-gradient(90deg, rgba(74, 111, 165, 0.06), transparent);
}

.offer-item h3 {
  margin: 0;
}

.offer-item p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  grid-column: 1 / -1;
}

.offer-meta {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cobalt);
  white-space: nowrap;
}

/* Service grid — not cards: flat list planes */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-plane {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: rgba(244, 243, 240, 0.55);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: clip-path 0.55s var(--ease), border-color 0.3s;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.service-plane:hover {
  border-color: var(--cobalt);
  clip-path: polygon(0 2%, 98% 0, 100% 98%, 2% 100%);
}

.service-plane img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  width: 100%;
}

.service-plane-body {
  padding: 1.25rem 1.15rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-plane-body p {
  margin: 0.4rem 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
}

/* Quote / reviews */
.quote-block {
  border-left: 3px solid var(--cobalt);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 0 0 2rem;
}

.quote-block p {
  font-size: 1.1rem;
  margin: 0 0 0.75rem;
  color: var(--black);
}

.quote-meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.case-block {
  background: rgba(26, 26, 26, 0.03);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  margin-top: 2rem;
  clip-path: polygon(0 0, 100% 0, 100% 94%, 96% 100%, 0 100%);
}

/* Journal */
.journal-list {
  display: grid;
  gap: 2.5rem;
}

.journal-item {
  display: grid;
  grid-template-columns: minmax(0, 220px) 1fr;
  gap: 1.5rem;
  text-decoration: none;
  color: inherit;
  align-items: start;
}

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

.journal-item img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  clip-path: polygon(0 0, 100% 3%, 100% 100%, 0 97%);
}

.journal-item time {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.journal-item h3 {
  margin: 0.35rem 0;
}

.journal-item:hover h3 {
  color: var(--cobalt);
}

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

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

.rate-table th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.rate-note {
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 36rem;
}

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

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

.form-field label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink);
  border-radius: var(--radius);
  transition: border-color 0.25s, clip-path 0.4s var(--ease);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--cobalt);
  clip-path: polygon(0 0, 100% 0, 100% 92%, 98% 100%, 0 100%);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.field-error {
  color: #8b3a3a;
  font-size: 0.85rem;
  display: none;
}

.form-field.is-invalid .field-error {
  display: block;
}

.form-field.is-invalid input,
.form-field.is-invalid select,
.form-field.is-invalid textarea {
  border-color: #8b3a3a;
}

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

.form-status.is-success {
  display: block;
  background: rgba(74, 111, 165, 0.12);
  border-left: 3px solid var(--cobalt);
}

.form-status.is-error {
  display: block;
  background: rgba(139, 58, 58, 0.08);
  border-left: 3px solid #8b3a3a;
}

.contact-aside {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.contact-aside p {
  margin: 0 0 0.5rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (max-width: 760px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

/* Detail lists */
.detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-meta dt {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.25rem;
}

.detail-meta dd {
  margin: 0;
  font-weight: 500;
}

.split-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

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

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.steps li {
  counter-increment: step;
  padding: 1rem 0 1rem 3rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cobalt);
}

/* Atelier timeline */
.atelier-flow {
  display: grid;
  gap: 0;
  margin-top: 2rem;
}

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

.atelier-step .num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--concrete);
  line-height: 1;
}

/* Legal */
.legal h2 {
  margin-top: 2.5rem;
  font-size: 1.35rem;
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1.5rem 0;
  overflow-x: auto;
  display: block;
}

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

.cookie-table th {
  background: rgba(26, 26, 26, 0.04);
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Footer */
.site-footer {
  margin-top: clamp(3rem, 6vw, 5rem);
  background: var(--black);
  color: rgba(244, 243, 240, 0.75);
  padding: clamp(2.5rem, 5vw, 3.5rem) var(--space) 2rem;
}

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

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

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

.footer-tag {
  margin: 0;
  font-size: 0.9rem;
}

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

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

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

.footer-nav a {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(244, 243, 240, 0.65);
  text-decoration: none;
}

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

.footer-copy {
  max-width: var(--wide);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(244, 243, 240, 0.12);
  font-size: 0.8rem;
  color: rgba(244, 243, 240, 0.45);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 40px rgba(26, 26, 26, 0.08);
  animation: surface-unfold 0.55s var(--ease);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1.25rem var(--space);
  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-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* 404 */
.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem var(--space);
  max-width: var(--wide);
  margin: 0 auto;
}

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

/* Motion: subtle surface shift on scroll sections */
.reveal {
  animation: hero-rise 0.8s var(--ease) both;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
