:root {
  --white: #f7f6f3;
  --concrete: #c4c0b8;
  --stone: #a89f91;
  --cobalt: #4a6fa5;
  --cobalt-deep: #3a5a88;
  --black: #1a1a1a;
  --ink: #2a2a2a;
  --muted: #6b6560;
  --surface: rgba(247, 246, 243, 0.92);
  --line: rgba(26, 26, 26, 0.12);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "DM Sans", sans-serif;
  --space: clamp(1rem, 2.5vw, 2rem);
  --wide: 1120px;
  --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: 300;
  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(168, 159, 145, 0.15), transparent 45%),
    linear-gradient(165deg, var(--white) 0%, #ebe8e2 45%, #e2ded6 100%);
  background-attachment: fixed;
  line-height: 1.65;
  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);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.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 {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--black);
}

.brand-mark {
  width: 1.4rem;
  height: 1.4rem;
  background: linear-gradient(135deg, var(--black) 40%, var(--cobalt) 100%);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  transition: clip-path 0.5s var(--ease), transform 0.5s var(--ease);
}

.brand:hover .brand-mark {
  clip-path: polygon(0% 20%, 100% 0%, 80% 100%, 20% 100%);
  transform: rotate(-6deg);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
}

.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 {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.03em;
}

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

.nav-cta {
  padding: 0.4rem 0.85rem;
  background: var(--black);
  color: var(--white) !important;
  clip-path: polygon(0 0, 100% 0, 96% 100%, 4% 100%);
  transition: clip-path 0.4s var(--ease);
}

.nav-cta:hover {
  clip-path: polygon(4% 0, 96% 0, 100% 100%, 0 100%);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  position: relative;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  display: block;
  width: 1.1rem;
  height: 1px;
  background: var(--black);
  margin: 0 auto;
  position: relative;
}

.nav-toggle-bar::before {
  position: absolute;
  top: -5px;
  left: 0;
}

.nav-toggle-bar::after {
  position: absolute;
  top: 5px;
  left: 0;
}

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

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    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;
  }
}

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

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

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--black);
  letter-spacing: -0.01em;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 36rem;
  margin: 0 0 2rem;
}

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

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

.btn-primary:hover {
  background: var(--cobalt);
  color: var(--white);
  clip-path: polygon(2% 8%, 98% 0, 100% 92%, 0 100%);
  transform: translateY(-1px);
}

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

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

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--cobalt);
  color: var(--cobalt);
}

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

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

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(26, 26, 26, 0.78) 0%, rgba(26, 26, 26, 0.25) 45%, rgba(26, 26, 26, 0.15) 100%),
    linear-gradient(120deg, rgba(74, 111, 165, 0.2), transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--wide);
  width: 100%;
  margin: 0 auto;
  padding: clamp(4rem, 12vw, 7rem) var(--space) clamp(3rem, 8vw, 5rem);
  color: var(--white);
  animation: surfaceRise 1s var(--ease) both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 9vw, 6.5rem);
  font-weight: 500;
  line-height: 0.95;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
  color: var(--white);
}

.hero-line {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 300;
  max-width: 28rem;
  margin: 0;
  color: rgba(247, 246, 243, 0.88);
  line-height: 1.5;
}

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

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

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

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

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

/* Monolithic panels */
.panel {
  background: rgba(247, 246, 243, 0.65);
  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), background 0.3s ease;
}

.panel:hover {
  clip-path: polygon(0 8px, 100% 0, 100% 100%, 12px 100%, 0 calc(100% - 8px));
  background: rgba(247, 246, 243, 0.9);
}

.panel-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.panel h3 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 500;
  margin: 0 0 0.6rem;
  color: var(--black);
}

.panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.panel-meta {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cobalt);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 800px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Service / media split */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

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

.split-media {
  overflow: hidden;
  clip-path: polygon(0 4%, 100% 0, 98% 100%, 2% 96%);
  animation: foldIn 1.1s var(--ease) both;
}

.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@keyframes foldIn {
  from {
    clip-path: polygon(0 50%, 100% 50%, 100% 50%, 0 50%);
    opacity: 0.4;
  }
  to {
    clip-path: polygon(0 4%, 100% 0, 98% 100%, 2% 96%);
    opacity: 1;
  }
}

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

.page-hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -5%;
  width: 40%;
  height: 140%;
  background: linear-gradient(160deg, rgba(74, 111, 165, 0.12), transparent 60%);
  clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%);
  pointer-events: none;
}

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

/* Lists */
.check-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.check-list li {
  padding: 0.55rem 0 0.55rem 1.4rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--cobalt);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

/* Quotes */
.quote-block {
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}

.quote-block blockquote {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  line-height: 1.4;
  color: var(--black);
  font-weight: 400;
}

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

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

.form-field label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  color: var(--muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
  transition: border-color 0.2s ease, clip-path 0.35s var(--ease);
}

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

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

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

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

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

.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);
  color: var(--cobalt-deep);
  border: 1px solid rgba(74, 111, 165, 0.3);
}

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

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

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

.contact-aside h2 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0 0 1rem;
}

/* Blog */
.post-cover {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
  margin-bottom: 1rem;
  clip-path: polygon(0 0, 100% 3%, 100% 100%, 0 97%);
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.75rem;
  margin: 2.5rem 0 0.75rem;
  color: var(--black);
}

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

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

/* Pricing table */
.rate-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.rate-row strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
}

@media (max-width: 700px) {
  .rate-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

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

.legal h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  margin: 2.25rem 0 0.75rem;
}

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

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

.legal th {
  background: rgba(74, 111, 165, 0.08);
  font-weight: 500;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--black);
  color: var(--white);
  padding: 1.25rem var(--space);
  border-top: 1px solid rgba(168, 159, 145, 0.3);
}

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

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

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

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

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

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

.cookie-banner .btn-ghost {
  border-color: rgba(247, 246, 243, 0.35);
  color: var(--white);
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  background: var(--black);
  color: var(--concrete);
  padding: clamp(2.5rem, 5vw, 4rem) var(--space) 2rem;
}

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

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

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

.footer-tag {
  margin: 0;
  max-width: 22rem;
  font-size: 0.95rem;
}

.footer-contact p {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
}

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

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

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.9rem;
}

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

/* 404 */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  text-align: left;
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 15vw, 9rem);
  line-height: 0.9;
  color: var(--concrete);
  margin: 0 0 0.5rem;
}

/* Evidence strip — qualitative, not metrics */
.story-block {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.story-label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cobalt);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
}

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

  .story-label {
    writing-mode: horizontal-tb;
    transform: none;
  }
}

/* Dossier tiles */
.dossier-tile {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.dossier-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.dossier-tile:hover img {
  transform: scale(1.04);
}

.dossier-tile .overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(26, 26, 26, 0.85), transparent);
  color: var(--white);
}

.dossier-tile h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 0 0 0.35rem;
  font-weight: 500;
}

.dossier-tile p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--concrete);
}
