:root {
  --white: #f7f6f3;
  --concrete: #c4c0b8;
  --stone: #a89f90;
  --cobalt: #3d5a80;
  --cobalt-deep: #2c425e;
  --black: #141414;
  --ink: #1c1c1c;
  --muted: #5c5852;
  --line: rgba(20, 20, 20, 0.12);
  --surface: rgba(247, 246, 243, 0.92);
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "DM Sans", sans-serif;
  --space: clamp(1rem, 2.5vw, 2rem);
  --max: 1120px;
  --header-h: 4.25rem;
  --ease: 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.05rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(61, 90, 128, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(168, 159, 144, 0.18), transparent 50%),
    linear-gradient(165deg, #ebe8e2 0%, var(--white) 38%, #e4e1db 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.18em;
}

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

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

h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); margin: 0 0 0.6em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin: 0 0 0.55em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); margin: 0 0 0.4em; }

p { margin: 0 0 1em; }

.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: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(247, 246, 243, 0.82);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem var(--space);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--black);
}

.brand-mark {
  width: 1.35rem;
  height: 1.35rem;
  background: linear-gradient(135deg, var(--cobalt) 0%, var(--black) 70%);
  clip-path: polygon(0 0, 100% 12%, 88% 100%, 0 78%);
  transition: clip-path 0.55s var(--ease);
}

.brand:hover .brand-mark {
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 88%);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.nav-toggle-bars {
  display: block;
  width: 1.1rem;
  height: 1px;
  background: var(--black);
  margin-top: 0.35rem;
  box-shadow: 0 5px 0 var(--black), 0 -5px 0 var(--black);
}

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

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

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--black);
}

.nav-cta {
  color: var(--white) !important;
  background: var(--black);
  padding: 0.45rem 0.9rem;
  display: inline-block;
  transition: background 0.35s var(--ease), transform 0.35s var(--ease);
}

.nav-cta:hover {
  background: var(--cobalt);
  transform: translateY(-1px);
}

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

.section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  position: relative;
}

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

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

/* Liquid Architecture surfaces */
.surface {
  background: var(--surface);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.surface::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 40%, rgba(61, 90, 128, 0.05) 50%, transparent 60%);
  pointer-events: none;
}

.mono-panel {
  background: linear-gradient(160deg, #f3f1ec 0%, #e0ddd6 100%);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% 92%, 96% 100%, 0 100%);
}

/* Buttons with liquid bend */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  padding: 0.85rem 1.4rem;
  position: relative;
  transition: clip-path 0.45s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}

.btn-primary {
  background: var(--black);
  color: var(--white);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.btn-primary:hover,
.btn-primary.is-bent {
  background: var(--cobalt);
  color: var(--white);
  clip-path: polygon(0 8%, 96% 0, 100% 88%, 4% 100%);
}

.btn-ghost {
  background: transparent;
  color: var(--black);
  border: 1px solid var(--black);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.btn-ghost:hover,
.btn-ghost.is-bent {
  background: rgba(61, 90, 128, 0.08);
  clip-path: polygon(3% 0, 100% 6%, 97% 100%, 0 94%);
}

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

/* Hero — full bleed composition */
.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: grayscale(18%) contrast(1.05);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(20, 20, 20, 0.78) 0%, rgba(20, 20, 20, 0.45) 48%, rgba(61, 90, 128, 0.25) 100%),
    linear-gradient(to top, rgba(20, 20, 20, 0.55), transparent 45%);
}

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

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

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

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  color: var(--concrete);
}

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

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

.hero .btn-ghost {
  border-color: rgba(247, 246, 243, 0.55);
  color: var(--white);
}

/* Offer strip */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.offer-item {
  background: var(--white);
  padding: 1.75rem 1.5rem;
  transition: transform 0.45s var(--ease), background 0.35s var(--ease);
}

.offer-item:hover {
  transform: translateY(-4px);
  background: #f0eee8;
}

.offer-item h3 {
  font-size: 1.35rem;
}

.offer-item p {
  color: var(--muted);
  font-size: 0.98rem;
}

.offer-item a {
  text-decoration: none;
  color: inherit;
}

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

/* Service cards list */
.service-list {
  display: grid;
  gap: 2rem;
}

.service-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.service-row:nth-child(even) {
  direction: rtl;
}

.service-row:nth-child(even) > * {
  direction: ltr;
}

.service-row img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 100% 94%, 4% 100%, 0 100%);
  transition: clip-path 0.55s var(--ease);
}

.service-row:hover img {
  clip-path: polygon(0 4%, 100% 0, 96% 100%, 0 100%);
}

.meta-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.4rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.meta-list strong {
  color: var(--ink);
  font-weight: 500;
}

.detail-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: end;
  padding-top: 3rem;
}

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

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

.check-list,
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li,
.steps li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  padding-left: 1.25rem;
  position: relative;
}

.check-list li::before,
.steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--cobalt);
  clip-path: polygon(0 0, 100% 20%, 80% 100%, 0 100%);
}

.steps {
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding-left: 2.5rem;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  width: auto;
  height: auto;
  background: none;
  clip-path: none;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--cobalt);
  top: 0.65rem;
}

/* Pricing */
.rate-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.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-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.rate-note {
  background: rgba(61, 90, 128, 0.06);
  padding: 1.5rem;
  border-left: 3px solid var(--cobalt);
}

/* Reviews */
.review-grid {
  display: grid;
  gap: 1.5rem;
}

.review {
  padding: 1.75rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  transition: clip-path 0.5s var(--ease);
}

.review:hover {
  clip-path: polygon(0 0, 100% 2%, 98% 100%, 2% 98%);
}

.review.extended {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #f3f1ec, #e8e4dc);
}

.review blockquote {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.review cite {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--muted);
}

.review .service-tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin-bottom: 0.75rem;
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  gap: 1rem;
}

.blog-card img {
  aspect-ratio: 16/9;
  object-fit: cover;
  width: 100%;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  transition: clip-path 0.5s var(--ease);
}

.blog-card:hover img {
  clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%);
}

.blog-card time {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.article-body {
  max-width: 42rem;
}

.article-body p {
  font-size: 1.08rem;
}

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

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

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

.form-field label {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

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

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

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

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

.form-field.has-error .field-error {
  display: block;
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: #8b2e2e;
}

.form-status {
  padding: 1rem;
  display: none;
  border: 1px solid var(--line);
}

.form-status.is-success {
  display: block;
  background: rgba(61, 90, 128, 0.1);
  border-color: var(--cobalt);
}

.form-status.is-error {
  display: block;
  background: rgba(139, 46, 46, 0.08);
  border-color: #8b2e2e;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: start;
}

.address-block {
  padding: 1.75rem;
  background: linear-gradient(160deg, #f0eee8, #ddd9d0);
  border: 1px solid var(--line);
}

.address-block p {
  margin-bottom: 0.5rem;
}

/* Path / briefings custom page */
.path-steps {
  display: grid;
  gap: 0;
  margin-top: 2rem;
}

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

.path-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--cobalt);
  line-height: 1;
}

/* Legal */
.legal {
  max-width: 44rem;
  padding: 3rem 0 5rem;
}

.legal h2 {
  margin-top: 2rem;
  font-size: 1.5rem;
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 1.5rem 0;
}

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

.cookie-table th {
  background: rgba(61, 90, 128, 0.08);
  font-weight: 500;
}

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

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

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--black);
  color: rgba(247, 246, 243, 0.78);
  padding: 3rem var(--space) 2rem;
  margin-top: 2rem;
}

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

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

.footer-tag {
  color: var(--stone);
  max-width: 28ch;
}

.site-footer a {
  color: var(--concrete);
  text-decoration: none;
}

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

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

.footer-copy {
  max-width: var(--max);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: var(--stone);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 1rem;
  pointer-events: none;
}

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

.cookie-inner {
  pointer-events: auto;
  max-width: 720px;
  margin: 0 auto;
  background: var(--black);
  color: var(--white);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.12);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  animation: surfaceRise 0.55s var(--ease);
}

.cookie-inner p {
  margin: 0;
  flex: 1 1 280px;
  font-size: 0.92rem;
  color: var(--concrete);
}

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

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

.cookie-actions .btn-ghost {
  border-color: var(--concrete);
  color: var(--white);
}

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

@keyframes surfaceRise {
  from {
    opacity: 0;
    transform: translateY(18px);
    clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
}

@keyframes foldIn {
  from {
    opacity: 0;
    transform: translateY(24px);
    clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 100%);
  }
  to {
    opacity: 1;
    transform: none;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
}

.reveal {
  animation: foldIn 0.7s var(--ease) both;
}

.page-intro {
  padding: 3.5rem 0 1rem;
}

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

.inline-cta {
  margin-top: 2.5rem;
  padding: 2rem;
  background: linear-gradient(120deg, rgba(61, 90, 128, 0.1), rgba(168, 159, 144, 0.15));
  border: 1px solid var(--line);
}

.evidence-quote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  line-height: 1.35;
  max-width: 28ch;
  margin: 0 0 1rem;
}

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

@media (max-width: 900px) {
  .offer-grid,
  .blog-grid,
  .split-2,
  .detail-hero,
  .contact-panel,
  .footer-grid,
  .service-row,
  .service-row:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
  }

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

  .site-nav.is-open {
    display: block;
  }

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

  .header-inner {
    position: relative;
  }
}

@media (max-width: 600px) {
  .btn-row {
    flex-direction: column;
    align-items: stretch;
  }

  .path-step {
    grid-template-columns: 2.5rem 1fr;
  }
}
