:root {
  --white: #f7f6f3;
  --concrete: #c4c0b8;
  --stone: #a89880;
  --cobalt: #3d5a80;
  --cobalt-deep: #2c4463;
  --black: #141414;
  --ink: #1f1f1f;
  --muted: #5c5a56;
  --surface: rgba(247, 246, 243, 0.92);
  --line: rgba(20, 20, 20, 0.12);
  --radius: 2px;
  --font-display: "Syne", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --space: clamp(1rem, 2.5vw, 2rem);
  --max: 1120px;
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  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, 152, 128, 0.18), transparent 50%),
    linear-gradient(165deg, var(--white) 0%, #ebe8e2 42%, #d9d5ce 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: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--black);
}

h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.75rem);
  margin: 0 0 0.75rem;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  margin: 0 0 0.75rem;
}

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

p {
  margin: 0 0 1rem;
}

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

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

/* Header — monolithic bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--white) 88%, transparent);
  backdrop-filter: blur(12px);
  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 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--black);
  text-decoration: none;
  white-space: nowrap;
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex-wrap: wrap;
}

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

.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.35s ease, background 0.25s ease;
}

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

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: var(--black);
}

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

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem var(--space) 1.25rem;
    gap: 0.85rem;
  }

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

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

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

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

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

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

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

/* Buttons — liquid fold on hover/click */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 560;
  padding: 0.85rem 1.35rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  transition:
    clip-path 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.35s ease,
    background 0.25s ease,
    color 0.25s ease;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

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

.btn-primary:hover,
.btn.is-folding.btn-primary {
  background: var(--cobalt);
  color: var(--white);
  clip-path: polygon(0 10%, 6% 0, 100% 0, 100% 88%, 94% 100%, 0 100%);
  transform: translateY(-1px);
}

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

.btn-secondary:hover,
.btn.is-folding.btn-secondary {
  background: var(--white);
  clip-path: polygon(4% 0, 100% 0, 100% 100%, 0 100%, 0 12%);
  color: var(--cobalt-deep);
}

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

.btn-ghost:hover {
  clip-path: polygon(0 0, 96% 0, 100% 18%, 100% 100%, 0 100%);
}

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

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

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
  animation: hero-drift 28s ease-in-out infinite alternate;
}

@keyframes hero-drift {
  from {
    transform: scale(1.02) translate(0, 0);
  }
  to {
    transform: scale(1.08) translate(-1.5%, 1%);
  }
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(20, 20, 20, 0.78) 0%, rgba(20, 20, 20, 0.35) 48%, rgba(61, 90, 128, 0.25) 100%),
    linear-gradient(to top, rgba(20, 20, 20, 0.55), transparent 45%);
}

.hero-content {
  padding: clamp(3rem, 10vh, 6rem) var(--space) clamp(2.5rem, 8vh, 4.5rem);
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  color: var(--white);
  animation: rise-in 0.9s ease both;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-content .brand-mark {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0 0 1.25rem;
  color: var(--white);
}

.hero-content h1 {
  color: var(--white);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 500;
  max-width: 22ch;
  margin-bottom: 0.85rem;
}

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

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

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

.hero .btn-secondary {
  color: var(--white);
  box-shadow: inset 0 0 0 1px rgba(247, 246, 243, 0.65);
}

/* Monolithic panels */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  transition: clip-path 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

.panel-link:hover h3 {
  color: var(--cobalt);
}

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

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

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

.service-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin: -clamp(1.25rem, 3vw, 1.75rem) -clamp(1.25rem, 3vw, 1.75rem) 1rem;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
}

.service-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.panel:hover .service-thumb img {
  transform: scale(1.04);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

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

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

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

.quote {
  font-size: 1.15rem;
  font-style: italic;
  border-left: 2px solid var(--cobalt);
  padding-left: 1.15rem;
  margin: 0 0 1rem;
  color: var(--ink);
}

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

.list-clean {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

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

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

/* Page hero (inner) */
.page-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(1.5rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(61, 90, 128, 0.08), transparent 55%),
    linear-gradient(to bottom, rgba(247, 246, 243, 0.5), transparent);
}

.page-hero .lede {
  margin-bottom: 0;
}

.full-bleed-band {
  position: relative;
  min-height: 42vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  margin-bottom: 0;
}

.full-bleed-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.full-bleed-band .veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(20, 20, 20, 0.75), rgba(20, 20, 20, 0.2));
}

.full-bleed-band .band-copy {
  color: var(--white);
  padding: 3rem var(--space);
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}

.full-bleed-band h1 {
  color: var(--white);
}

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

.form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.form input,
.form select,
.form textarea {
  font: inherit;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--cobalt);
  outline-offset: 1px;
}

.form .error {
  color: #8b2e2e;
  font-size: 0.85rem;
  min-height: 1.1em;
}

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

.form .form-status.is-visible {
  display: block;
}

.form .form-status.is-success {
  border-color: var(--cobalt);
  color: var(--cobalt-deep);
}

.form .form-status.is-error {
  border-color: #8b2e2e;
  color: #8b2e2e;
}

.contact-aside {
  padding: 1.5rem;
  background: rgba(61, 90, 128, 0.08);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

/* Blog */
.article-body p {
  max-width: 42rem;
}

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

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

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

.rate-price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  white-space: nowrap;
}

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

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

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

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

.cookie-table th {
  background: rgba(61, 90, 128, 0.1);
  font-family: var(--font-display);
  font-weight: 600;
}

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

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 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.25rem;
  color: var(--white);
  margin: 0 0 0.35rem;
}

.footer-tag {
  margin: 0;
  color: var(--concrete);
}

.footer-contact a,
.footer-nav a {
  color: rgba(247, 246, 243, 0.85);
  text-decoration: none;
}

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

.footer-nav {
  display: grid;
  gap: 0.45rem;
}

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

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  padding: 1rem;
  background: color-mix(in srgb, var(--black) 94%, var(--cobalt));
  color: var(--white);
  border-top: 1px solid rgba(247, 246, 243, 0.15);
  animation: rise-in 0.4s ease both;
}

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

.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 18rem;
  font-size: 0.95rem;
}

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

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

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

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

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

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 1;
  color: var(--cobalt);
  margin: 0;
  letter-spacing: -0.06em;
}

/* Briefing schedule */
.briefing-item {
  display: grid;
  grid-template-columns: 8rem 1fr auto;
  gap: 1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

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

.status-pill {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cobalt-deep);
  border: 1px solid var(--cobalt);
  padding: 0.3rem 0.55rem;
  white-space: nowrap;
}

/* Surface bend accent behind interactive zones */
.fold-zone {
  position: relative;
}

.fold-zone::before {
  content: "";
  position: absolute;
  inset: -8% -4%;
  background: linear-gradient(135deg, rgba(61, 90, 128, 0.06), transparent 50%);
  clip-path: polygon(0 12%, 8% 0, 100% 0, 100% 88%, 92% 100%, 0 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.45s ease, clip-path 0.55s ease;
  pointer-events: none;
}

.fold-zone:has(.btn:hover)::before,
.fold-zone.is-active::before {
  opacity: 1;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
