:root {
  --ink: #171717;
  --charcoal: #242220;
  --ivory: #f7f0e4;
  --paper: #fffaf2;
  --gold: #c8a45d;
  --gold-dark: #8d6a2d;
  --emerald: #17483c;
  --wine: #6b2539;
  --muted: #776e64;
  --line: rgba(36, 34, 32, 0.13);
  --shadow: 0 22px 70px rgba(23, 23, 23, 0.18);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 16px max(22px, calc((100vw - var(--max)) / 2));
  color: var(--paper);
  background: rgba(20, 19, 18, 0.18);
  border-bottom: 1px solid rgba(255, 250, 242, 0.16);
  backdrop-filter: blur(16px);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(255, 250, 242, 0.92);
  border-color: var(--line);
  box-shadow: 0 14px 36px rgba(23, 23, 23, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--ink);
  background: linear-gradient(145deg, #f2d58d, #b4883d);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
}

.brand-mark.image-mark {
  overflow: hidden;
  padding: 0;
  background: transparent;
}

.brand-mark.image-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  line-height: 1.2;
}

.brand small {
  margin-top: 2px;
  color: currentColor;
  opacity: 0.72;
  font-size: 11px;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  min-height: 40px;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 14px;
  transition: background 180ms ease, color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  background: var(--gold);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  display: grid;
  min-height: 84svh;
  overflow: hidden;
  color: var(--paper);
  background: var(--charcoal);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/hero-research.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(12, 11, 10, 0.9) 0%, rgba(20, 18, 16, 0.68) 38%, rgba(20, 18, 16, 0.28) 72%, rgba(20, 18, 16, 0.42) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.42));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 150px 22px 58px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--gold-dark);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: 56px;
  line-height: 1.08;
  font-weight: 800;
}

.hero-copy {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 250, 242, 0.86);
  font-size: 20px;
}

.hero-actions,
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.hero-actions {
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--ink);
  background: var(--gold);
  box-shadow: 0 18px 34px rgba(200, 164, 93, 0.24);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #dfbc73;
}

.btn-secondary {
  color: var(--paper);
  border-color: rgba(255, 250, 242, 0.4);
  background: rgba(255, 250, 242, 0.08);
}

.btn-secondary:has(.line-button-img),
.line-image-link,
.line-contact-link {
  padding: 0;
  border: 0;
  background: transparent;
}

.line-button-img {
  width: 116px;
  height: auto;
  max-width: 100%;
}

.btn-outline {
  width: 100%;
  color: var(--ink);
  border-color: var(--line);
  background: var(--paper);
}

.hero-stats {
  max-width: 720px;
  margin: 54px 0 0;
  padding: 0;
}

.hero-stats div {
  min-width: 150px;
  padding: 14px 22px 14px 0;
  border-right: 1px solid rgba(255, 250, 242, 0.2);
}

.hero-stats div:last-child {
  border-right: 0;
}

.hero-stats dt {
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
}

.hero-stats dd {
  margin: 8px 0 0;
  color: rgba(255, 250, 242, 0.72);
  font-size: 13px;
}

.trust-strip {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 18px 22px;
  color: var(--paper);
  background: var(--emerald);
  overflow-x: auto;
}

.trust-strip span {
  flex: 0 0 auto;
  padding: 8px 13px;
  border: 1px solid rgba(255, 250, 242, 0.18);
  border-radius: 999px;
  color: rgba(255, 250, 242, 0.9);
  font-size: 13px;
}

.section {
  padding: 94px 22px;
}

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

.section-ink {
  color: var(--paper);
  background:
    linear-gradient(135deg, rgba(107, 37, 57, 0.24), transparent 38%),
    var(--charcoal);
}

.section-gallery {
  background: #f3eadb;
}

.section-contact {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(340px, 0.68fr);
  gap: 52px;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding-top: 100px;
  padding-bottom: 100px;
}

.section-heading,
.service-grid,
.timeline,
.package-grid,
.work-layout {
  width: min(100%, var(--max));
  margin-inline: auto;
}

.section-heading {
  margin-bottom: 42px;
}

.section-heading h2,
.contact-copy h2 {
  max-width: 740px;
  margin: 0;
  font-size: 40px;
  line-height: 1.18;
}

.section-heading p:not(.eyebrow),
.contact-copy p:not(.eyebrow) {
  max-width: 690px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.section-heading.inverted p:not(.eyebrow) {
  color: rgba(255, 250, 242, 0.72);
}

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

.service-card,
.package-card,
.work-panel,
.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 242, 0.78);
  box-shadow: 0 12px 36px rgba(36, 34, 32, 0.06);
}

.service-card {
  min-height: 278px;
  padding: 26px;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 28px;
  border-radius: 50%;
  color: var(--paper);
  background: var(--emerald);
  font-size: 13px;
  font-weight: 900;
}

.service-card h3,
.timeline h3,
.package-card h3,
.work-panel h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}

.service-card p,
.timeline p,
.package-card li,
.work-panel li {
  color: var(--muted);
}

.visual-story {
  background:
    linear-gradient(135deg, rgba(200, 164, 93, 0.14), transparent 34%),
    #f4ead9;
  overflow: hidden;
}

.visual-story-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 50px;
  align-items: center;
  width: min(100%, var(--max));
  margin-inline: auto;
}

.visual-copy h2 {
  margin: 0;
  font-size: 40px;
  line-height: 1.18;
}

.visual-copy p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.visual-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.visual-points span {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.82);
  color: var(--emerald);
  font-size: 13px;
  font-weight: 900;
}

.image-collage {
  position: relative;
  min-height: 590px;
}

.image-collage figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(36, 34, 32, 0.12);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.image-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-collage figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 9px 12px;
  border-radius: var(--radius);
  color: var(--paper);
  background: rgba(23, 23, 23, 0.68);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 800;
}

.collage-main,
.collage-card {
  position: absolute;
}

.collage-main {
  left: 0;
  top: 46px;
  width: 72%;
  height: 430px;
}

.collage-top {
  right: 0;
  top: 0;
  width: 43%;
  height: 235px;
}

.collage-bottom {
  right: 22px;
  bottom: 0;
  width: 49%;
  height: 265px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid rgba(255, 250, 242, 0.16);
  border-radius: var(--radius);
  overflow: hidden;
}

.timeline article {
  min-height: 260px;
  padding: 28px;
  border-right: 1px solid rgba(255, 250, 242, 0.16);
  background: rgba(255, 250, 242, 0.035);
}

.timeline article:last-child {
  border-right: 0;
}

.timeline span {
  display: inline-block;
  margin-bottom: 44px;
  color: var(--gold);
  font-weight: 900;
}

.timeline p {
  color: rgba(255, 250, 242, 0.7);
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
}

.package-card {
  display: flex;
  flex-direction: column;
  min-height: 445px;
  padding: 30px;
}

.package-card.featured {
  color: var(--paper);
  background:
    linear-gradient(145deg, rgba(23, 72, 60, 0.94), rgba(36, 34, 32, 0.96)),
    var(--emerald);
  box-shadow: var(--shadow);
  transform: translateY(-12px);
}

.package-kicker {
  margin: 0 0 10px;
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 900;
}

.featured .package-kicker {
  color: var(--gold);
}

.price {
  margin: 18px 0;
  font-size: 38px;
  line-height: 1;
  font-weight: 900;
}

.package-card ul,
.check-list {
  display: grid;
  gap: 12px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.package-card li,
.check-list li {
  position: relative;
  padding-left: 26px;
}

.package-card li::before,
.check-list li::before {
  content: "";
  position: absolute;
  top: 0.75em;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
}

.package-card .btn {
  margin-top: auto;
}

.featured li {
  color: rgba(255, 250, 242, 0.78);
}

.work-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 20px;
}

.lower-work {
  margin-top: 20px;
}

.work-panel {
  min-height: 310px;
  padding: 32px;
}

.work-panel.accent {
  color: var(--paper);
  background: var(--wine);
}

.work-panel.accent li {
  color: rgba(255, 250, 242, 0.82);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.tag-cloud span {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--charcoal);
  font-size: 14px;
}

.social-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 250, 242, 0.22);
  border-radius: var(--radius);
  color: var(--paper);
  background: rgba(255, 250, 242, 0.08);
  font-weight: 800;
}

.social-links a.line-image-link {
  min-height: 44px;
}

.contact-copy {
  color: var(--paper);
}

.section-contact {
  max-width: none;
  width: auto;
  background:
    linear-gradient(120deg, rgba(36, 34, 32, 0.94), rgba(23, 72, 60, 0.92)),
    var(--charcoal);
}

.section-contact > * {
  width: min(100%, calc(var(--max) / 2));
  min-width: 0;
}

.section-contact .contact-copy {
  justify-self: end;
}

.section-contact .contact-form {
  justify-self: start;
}

.contact-copy p:not(.eyebrow) {
  color: rgba(255, 250, 242, 0.72);
}

.contact-methods {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}

.contact-methods a {
  width: fit-content;
  color: var(--gold);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.contact-methods .line-contact-link {
  display: inline-flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
}

.contact-methods span {
  display: block;
  max-width: 540px;
  color: rgba(255, 250, 242, 0.82);
  overflow-wrap: anywhere;
}

.contact-form {
  display: grid;
  gap: 17px;
  padding: 28px;
  background: var(--paper);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--charcoal);
  font-size: 14px;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fffdf8;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 4px rgba(200, 164, 93, 0.18);
}

.form-submit {
  width: 100%;
  border: 0;
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--emerald);
  font-size: 14px;
  font-weight: 800;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px max(22px, calc((100vw - var(--max)) / 2));
  color: rgba(255, 250, 242, 0.74);
  background: #111;
}

.floating-line {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 58px;
  padding: 7px 15px 7px 7px;
  border-radius: 999px;
  color: #fff;
  background: #06c755;
  box-shadow: 0 18px 42px rgba(6, 199, 85, 0.36);
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.floating-line:hover,
.floating-line:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(6, 199, 85, 0.44);
}

.floating-line img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
}

.legal-page {
  padding-top: 86px;
}

.legal-hero {
  padding: 78px 22px 48px;
  color: var(--paper);
  background:
    linear-gradient(120deg, rgba(36, 34, 32, 0.94), rgba(23, 72, 60, 0.9)),
    var(--charcoal);
}

.legal-hero > *,
.legal-content {
  width: min(100%, var(--max));
  margin-inline: auto;
}

.legal-hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: 42px;
  line-height: 1.15;
}

.legal-hero p:not(.eyebrow) {
  max-width: 780px;
  margin: 18px auto 0;
  color: rgba(255, 250, 242, 0.76);
  font-size: 18px;
}

.legal-content {
  display: grid;
  gap: 18px;
  padding: 42px 22px 88px;
}

.legal-section {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 12px 36px rgba(36, 34, 32, 0.06);
}

.legal-section h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.legal-section ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.policy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn.compact {
  width: auto;
  padding-inline: 18px;
}

.standalone-contact {
  width: 100%;
  margin-top: 0;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--gold);
  font-weight: 800;
}

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

  .site-nav {
    position: fixed;
    top: 76px;
    left: 18px;
    right: 18px;
    display: grid;
    gap: 6px;
    padding: 16px;
    color: var(--ink);
    background: rgba(255, 250, 242, 0.98);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    border-radius: var(--radius);
  }

  .hero h1 {
    font-size: 44px;
  }

  .service-grid,
  .timeline,
  .package-grid,
  .work-layout,
  .visual-story-inner,
  .section-contact {
    grid-template-columns: 1fr 1fr;
  }

  .visual-story-inner {
    grid-template-columns: 1fr;
  }

  .image-collage {
    min-height: 540px;
  }

  .timeline article:nth-child(2) {
    border-right: 0;
  }

  .timeline article {
    border-bottom: 1px solid rgba(255, 250, 242, 0.16);
  }

  .timeline article:nth-child(3),
  .timeline article:nth-child(4) {
    border-bottom: 0;
  }

  .package-card.featured {
    transform: none;
  }

  .section-contact > * {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 70px;
    padding-top: 13px;
    padding-bottom: 13px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .site-nav {
    top: 70px;
  }

  .hero {
    min-height: 86svh;
  }

  .hero-media {
    background-position: 58% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(12, 11, 10, 0.94), rgba(12, 11, 10, 0.66)),
      linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.48));
  }

  .hero-content {
    padding-top: 124px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-stats {
    margin-top: 34px;
  }

  .hero-stats div {
    width: calc(50% - 8px);
    min-width: 0;
    border-right: 0;
  }

  .trust-strip {
    justify-content: flex-start;
  }

  .section {
    padding: 70px 18px;
  }

  .section-heading h2,
  .contact-copy h2 {
    font-size: 31px;
  }

  .service-grid,
  .timeline,
  .package-grid,
  .work-layout,
  .visual-story-inner,
  .section-contact {
    grid-template-columns: 1fr;
  }

  .visual-copy h2 {
    font-size: 31px;
  }

  .image-collage {
    display: grid;
    gap: 14px;
    min-height: 0;
  }

  .collage-main,
  .collage-card {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .image-collage figcaption {
    font-size: 12px;
  }

  .timeline article,
  .timeline article:nth-child(2),
  .timeline article:nth-child(3) {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 250, 242, 0.16);
  }

  .timeline article:nth-child(4) {
    border-bottom: 0;
  }

  .timeline span {
    margin-bottom: 22px;
  }

  .section-contact {
    gap: 34px;
    width: 100%;
    overflow: hidden;
  }

  .floating-line {
    right: 14px;
    bottom: 14px;
    min-height: 54px;
    padding-right: 12px;
  }

  .floating-line img {
    width: 42px;
    height: 42px;
  }

  .legal-hero h1 {
    font-size: 32px;
  }

  .site-footer {
    display: grid;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 31px;
  }

  .hero-stats div {
    width: 100%;
  }

  .service-card,
  .package-card,
  .work-panel,
  .contact-form {
    padding: 22px;
  }
}
