:root {
  --ink: #1f2423;
  --soft-ink: #3f4642;
  --muted: #69716d;
  --paper: #faf8f4;
  --linen: #eee8de;
  --white: #ffffff;
  --sage: #647567;
  --clay: #b56f55;
  --gold: #d7b377;
  --line: rgba(31, 36, 35, 0.14);
  --dark-line: rgba(255, 255, 255, 0.16);
  --shadow: 0 24px 70px rgba(25, 29, 28, 0.18);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

.briefing-form:not(.is-last-step) [data-step-submit] {
  display: none !important;
  visibility: hidden !important;
}

.briefing-form.is-last-step [data-step-submit] {
  display: inline-flex !important;
  visibility: visible !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0));
}

.site-header.compact {
  color: var(--ink);
  background: rgba(250, 248, 244, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 82px;
}

.brand {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-title {
  font-weight: 800;
  line-height: 1.1;
}

.brand-subtitle {
  color: currentColor;
  opacity: 0.72;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 3vw, 34px);
  font-size: 0.94rem;
  font-weight: 700;
}

.desktop-nav a {
  opacity: 0.82;
  transition: opacity 160ms ease;
}

.desktop-nav a:hover {
  opacity: 1;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 800;
  text-align: center;
  transition: transform 160ms ease, opacity 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-sm {
  min-height: 42px;
  padding: 10px 17px;
  font-size: 0.9rem;
}

.button-solid {
  color: var(--white);
  background: var(--ink);
}

.site-header:not(.compact) .button-solid,
.hero .button-solid {
  color: var(--ink);
  background: var(--white);
}

.button-glass,
.button-outline-light {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.button-outline-dark {
  color: var(--ink);
  border-color: var(--line);
  background: transparent;
}

.hero,
.page-hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.page-hero {
  min-height: 54vh;
}

.hero-image,
.hero-overlay,
.page-hero img,
.page-hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image,
.page-hero img {
  object-fit: cover;
}

.hero-overlay,
.page-hero-overlay {
  background:
    linear-gradient(90deg, rgba(10, 12, 11, 0.66), rgba(10, 12, 11, 0.22) 44%, rgba(10, 12, 11, 0.04)),
    linear-gradient(0deg, rgba(31, 36, 35, 0.68), rgba(31, 36, 35, 0.08) 40%);
}

.hero-content,
.page-hero-content {
  position: relative;
  z-index: 1;
  padding-top: 86px;
}

.hero-content {
  width: min(760px, calc(100% - 36px));
  margin-left: max(18px, calc((100vw - 1160px) / 2));
  margin-right: auto;
  opacity: 1;
  transform: none;
}

.hero .hero-content.reveal {
  opacity: 1 !important;
  transform: none !important;
}

.page-hero-content {
  align-self: end;
  padding-bottom: 64px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--clay);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow,
.page-hero .eyebrow,
.section-dark .eyebrow,
.contact-panel .eyebrow {
  color: #f0c4ac;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  max-width: 850px;
  font-size: clamp(4rem, 10vw, 8.6rem);
  line-height: 0.88;
}

.page-hero h1 {
  font-size: clamp(3.5rem, 9vw, 7rem);
}

h2 {
  font-size: clamp(2.2rem, 5.4vw, 5rem);
  line-height: 0.98;
}

h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.25;
}

.hero-content p:not(.eyebrow),
.page-hero-content p:not(.eyebrow) {
  width: min(650px, 100%);
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions,
.briefing-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.trust-strip {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

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

.trust-grid div {
  min-height: 118px;
  padding: 28px 28px 28px 0;
  border-right: 1px solid var(--line);
}

.trust-grid div + div {
  padding-left: 28px;
}

.trust-grid div:last-child {
  border-right: 0;
}

.trust-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--sage);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.1rem;
}

.trust-grid span {
  color: var(--muted);
  font-weight: 800;
}

.section {
  padding: clamp(72px, 10vw, 132px) 0;
}

.section-light {
  background: var(--paper);
}

.section-muted {
  background: var(--linen);
}

.section-dark {
  color: var(--white);
  background: var(--ink);
}

.split-heading,
.process-layout,
.briefing-layout {
  display: grid;
  grid-template-columns: minmax(190px, 0.48fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: start;
}

.split-heading {
  margin-bottom: 44px;
}

.service-grid,
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 246px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.service-number {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 42px;
  color: var(--white);
  background: var(--sage);
  border-radius: 50%;
  font-size: 0.86rem;
  font-weight: 900;
}

.service-card p,
.steps p,
.process-copy p,
.briefing-sidebar p,
.briefing-benefits,
.thank-you-card p {
  color: var(--muted);
}

.project-card {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  border-radius: 8px;
  background: #303532;
}

.project-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.project-card:hover img {
  transform: scale(1.04);
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.72));
}

.project-card div {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 26px;
}

.project-card span {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.process-copy {
  position: sticky;
  top: 110px;
}

.steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  align-items: start;
  padding: 26px 0;
  border-top: 1px solid rgba(31, 36, 35, 0.18);
}

.steps span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--white);
  background: var(--clay);
  border-radius: 50%;
  font-weight: 900;
}

.contact-section {
  padding: clamp(72px, 9vw, 110px) 0;
  color: var(--white);
  background: var(--soft-ink);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.contact-panel p:not(.eyebrow) {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer {
  color: rgba(255, 255, 255, 0.72);
  background: #171a19;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 0;
}

.briefing-estimate {
  font-weight: 800;
}

.briefing-sidebar {
  position: sticky;
  top: 116px;
}

.briefing-benefits {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding-left: 20px;
}

.briefing-card,
.thank-you-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.briefing-card {
  padding: clamp(22px, 4vw, 38px);
}

.briefing-form {
  display: grid;
  gap: 26px;
}

.briefing-status {
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  color: #7b3328;
  background: #f8ded6;
  font-weight: 800;
}

.briefing-progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--linen);
}

.briefing-progress-fill {
  display: block;
  width: 11.111%;
  height: 100%;
  border-radius: inherit;
  background: var(--sage);
  transition: width 180ms ease;
}

.briefing-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.briefing-step {
  display: none;
}

.briefing-step.is-active {
  display: block;
}

.briefing-step:not(.is-active) .briefing-submit-final {
  display: none !important;
}

.briefing-submit-final {
  width: 100%;
  margin-top: 24px;
}

.briefing-question,
.briefing-question-group {
  display: grid;
  gap: 14px;
}

.briefing-question span,
.briefing-question legend {
  color: var(--ink);
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  line-height: 1.1;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 15px;
  color: var(--ink);
  background: var(--paper);
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(100, 117, 103, 0.28);
  border-color: var(--sage);
}

textarea {
  resize: vertical;
}

.briefing-question small {
  color: var(--muted);
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.option-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.option-card {
  position: relative;
  min-height: 62px;
  display: grid;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  cursor: pointer;
}

.option-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-card span {
  display: block;
  padding: 16px;
  color: var(--soft-ink);
  font: inherit;
  font-weight: 800;
}

.option-card:has(input:checked) {
  border-color: var(--sage);
  background: rgba(100, 117, 103, 0.12);
}

.briefing-actions {
  justify-content: space-between;
}

.briefing-actions .button,
.briefing-actions button {
  border-radius: 999px;
  cursor: pointer;
}

.thank-you-page {
  min-height: 100vh;
  padding-top: 82px;
}

.thank-you-card {
  width: min(780px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 46px);
}

.thank-you-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin-bottom: 24px;
  color: var(--white);
  background: var(--sage);
  border-radius: 50%;
  font-weight: 900;
}

.thank-you-banner {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: center;
  margin: 28px 0;
  padding: 14px;
  border-radius: 8px;
  background: var(--linen);
}

.thank-you-banner img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}

.back-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--sage);
  font-weight: 900;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cookie-banner {
  position: fixed;
  z-index: 50;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  width: min(900px, calc(100% - 36px));
  margin: 0 auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(250, 248, 244, 0.97);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.cookie-banner strong {
  display: block;
  margin-bottom: 4px;
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.idle-popup-overlay {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(20, 17, 15, 0.76);
  backdrop-filter: blur(2px);
}

.idle-popup {
  position: relative;
  width: min(520px, 100%);
  padding: clamp(32px, 6vw, 56px) clamp(28px, 5vw, 46px) 32px;
  border-radius: 26px;
  color: #171514;
  background: rgba(250, 248, 244, 0.98);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.idle-popup-close {
  position: absolute;
  top: 20px;
  right: 16px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #171514;
  background: rgba(31, 36, 35, 0.08);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.idle-popup h2 {
  margin: 0;
  max-width: 460px;
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2.7rem, 7vw, 3.55rem);
  line-height: 1.28;
  font-weight: 800;
}

.idle-popup p:not(.eyebrow) {
  margin: 24px 0 26px;
  color: #3f3a36;
  font-size: 1rem;
}

.idle-popup-cta {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 18px;
  color: var(--white);
  background: #bd7b43;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav {
    display: none;
  }

  .trust-grid,
  .service-grid,
  .portfolio-grid,
  .split-heading,
  .process-layout,
  .briefing-layout,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .trust-grid div {
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-grid div + div {
    padding-left: 0;
  }

  .trust-grid div:last-child {
    border-bottom: 0;
  }

  .process-copy,
  .briefing-sidebar {
    position: static;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 30px, 1160px);
  }

  .brand-subtitle {
    display: none;
  }

  .header-cta {
    padding: 9px 13px;
    font-size: 0.82rem;
  }

  h1 {
    font-size: clamp(3.15rem, 18vw, 5rem);
  }

  .hero,
  .page-hero {
    min-height: 86vh;
  }

  .hero-content {
    left: 15px !important;
    width: calc(100% - 30px) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .hero-actions .button,
  .contact-actions .button,
  .briefing-actions .button,
  .briefing-actions button {
    width: 100%;
  }

  .option-grid,
  .option-grid-3,
  .option-grid-2,
  .thank-you-banner {
    grid-template-columns: 1fr;
  }

  .steps li {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }
}
