:root {
  --ink: #172226;
  --petrol: #12323d;
  --petrol-deep: #0b242d;
  --mineral: #f2f0e9;
  --paper: #fbfaf6;
  --terracotta: #b75f3e;
  --terracotta-dark: #90452f;
  --line: rgba(23, 34, 38, 0.18);
  --muted: #5f696b;
  --white: #ffffff;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Aptos", "Segoe UI", Arial, sans-serif;
  --shell: min(1180px, calc(100% - 48px));
  --space-section: clamp(5rem, 9vw, 9rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 4px;
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

h1 {
  max-width: 15ch;
  margin-bottom: 1.5rem;
  font-size: clamp(3.2rem, 5.8vw, 5.75rem);
}

h2 {
  max-width: 15ch;
  margin-bottom: 2rem;
  font-size: clamp(2.6rem, 5vw, 5.1rem);
}

h3 {
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.12;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 0.75rem 1rem;
  transform: translateY(-150%);
  background: var(--white);
  color: var(--ink);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  color: var(--white);
}

.site-header.is-scrolled {
  position: fixed;
  background: rgba(11, 36, 45, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12);
}

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

.wordmark {
  width: fit-content;
  display: flex;
  gap: 0.8rem;
  align-items: center;
  color: inherit;
  font-size: 0.8rem;
  font-weight: 680;
  letter-spacing: 0.11em;
  line-height: 1.15;
  text-decoration: none;
  text-transform: uppercase;
}

.wordmark small {
  display: block;
  margin-top: 0.22rem;
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.22em;
}

.wordmark__initials {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: -0.08em;
}

.desktop-nav {
  display: flex;
  gap: 1.8rem;
  align-items: center;
}

.desktop-nav a {
  position: relative;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.35rem;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: right;
  background: currentColor;
  transition: transform 180ms ease;
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.button {
  min-height: 54px;
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.25rem;
  border: 1px solid transparent;
  background: var(--terracotta);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 720;
  letter-spacing: 0.025em;
  line-height: 1.2;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--terracotta-dark);
}

.button--compact {
  min-height: 44px;
  padding: 0.72rem 1rem;
  border-color: rgba(255, 255, 255, 0.55);
  background: transparent;
}

.button--compact:hover {
  background: var(--white);
  color: var(--petrol-deep);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(8.5rem, 13vw, 12rem) 0 0;
  background: var(--petrol-deep);
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 13%;
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, 0.11);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  gap: clamp(2.5rem, 6vw, 7rem);
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding-bottom: clamp(4rem, 8vw, 8rem);
}

.eyebrow,
.section-index {
  margin-bottom: 1.25rem;
  font-size: 0.75rem;
  font-weight: 720;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--terracotta);
}

.hero .eyebrow {
  color: #e38b66;
}

.hero-lead {
  max-width: 38rem;
  margin-bottom: 1rem;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.48;
}

.hero-support {
  max-width: 36rem;
  margin-top: 1.5rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 1.5rem;
  align-items: center;
}

.text-link {
  min-height: 48px;
  display: inline-flex;
  gap: 0.7rem;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 650;
  text-underline-offset: 0.35rem;
}

.hero-visual {
  position: relative;
  align-self: stretch;
  margin: 0;
  min-height: 670px;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 36, 45, 0.05), rgba(11, 36, 45, 0.22));
  pointer-events: none;
}

.hero-visual figcaption {
  position: absolute;
  z-index: 2;
  right: 1rem;
  bottom: 1rem;
  padding: 0.45rem 0.65rem;
  background: rgba(11, 36, 45, 0.82);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-index {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.17);
}

.hero-index span {
  padding: 1rem 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-index span:nth-child(2) {
  text-align: center;
}

.hero-index span:last-child {
  text-align: right;
}

.section {
  padding-block: var(--space-section);
}

.editorial-grid,
.section-heading {
  display: grid;
  grid-template-columns: minmax(130px, 0.28fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 7rem);
}

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

.two-column-copy {
  max-width: 52rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.services-section {
  background: var(--mineral);
}

.service-list {
  margin-top: 4rem;
  border-top: 1px solid var(--line);
}

.service-row {
  min-height: 112px;
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

a.service-row:hover strong {
  color: var(--terracotta);
}

.service-number,
.service-action {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 680;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-row strong,
.service-row small {
  display: block;
}

.service-row strong {
  margin-bottom: 0.35rem;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  transition: color 180ms ease;
}

.service-row small {
  color: var(--muted);
  font-size: 0.9rem;
}

.service-row--planned {
  opacity: 0.62;
}

.problem-section {
  background: var(--petrol);
  color: var(--white);
}

.problem-grid {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: clamp(3rem, 9vw, 9rem);
}

.problem-grid h2 {
  margin-bottom: 0;
}

.problem-lead {
  margin-bottom: 3rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.15rem;
}

.problem-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.problem-list li {
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.problem-list li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.audience-list {
  margin: 4rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.audience-list li {
  min-height: 132px;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.5rem 1.5rem 1.5rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.02rem;
}

.audience-list li:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.audience-list li:nth-child(even) {
  padding-left: 1.5rem;
}

.audience-list span,
.decision-grid article > span,
.process-list > li > span,
.reference-card figcaption span {
  color: var(--terracotta);
  font-size: 0.72rem;
  font-weight: 720;
  letter-spacing: 0.1em;
}

.decisions-section {
  background: var(--mineral);
}

.decision-grid {
  margin-top: 4.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.decision-grid article {
  min-height: 270px;
  padding: 1.5rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.decision-grid h3 {
  margin: 4.5rem 0 1rem;
}

.decision-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.references-heading {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 0.45fr);
  gap: 3rem;
  align-items: end;
}

.references-heading > p {
  color: var(--muted);
  font-size: 0.9rem;
}

.references-grid {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: 1.28fr 0.72fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: end;
}

.reference-card {
  margin: 0;
}

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

.reference-card--2 img {
  aspect-ratio: 4 / 5;
}

.reference-card figcaption {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 0.8rem;
  padding-top: 1rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.process-section {
  background: var(--petrol-deep);
  color: var(--white);
}

.process-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) 1fr;
  gap: clamp(3rem, 8vw, 8rem);
}

.process-intro {
  position: sticky;
  top: 130px;
  align-self: start;
}

.process-intro .section-index {
  color: rgba(255, 255, 255, 0.48);
}

.process-intro > p:last-child {
  color: rgba(255, 255, 255, 0.68);
}

.process-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.process-list li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.process-list h3 {
  margin-bottom: 0.55rem;
}

.process-list p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.65);
}

.authority-section {
  background: var(--terracotta);
  color: var(--white);
}

.authority-section .eyebrow {
  color: rgba(255, 255, 255, 0.68);
}

.authority-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
}

.authority-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  margin: 0;
}

.authority-portrait::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -1rem;
  right: -1rem;
  width: 72%;
  height: 58%;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  border-right: 1px solid rgba(255, 255, 255, 0.5);
}

.authority-portrait img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 27%;
}

.authority-copy h2 {
  margin-bottom: 0.8rem;
}

.authority-role {
  margin-bottom: 2.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.authority-service-area {
  max-width: 39rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.36);
}

.authority-service-area p {
  margin-bottom: 0.7rem;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
}

.authority-service-area p:last-child {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.final-cta {
  padding-block: var(--space-section);
  background: var(--mineral);
}

.final-cta-grid {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 0.4fr);
  gap: 4rem;
  align-items: end;
}

.final-cta h2 {
  margin-bottom: 0;
}

.final-cta-grid > div:last-child p {
  color: var(--muted);
}

.site-footer {
  padding: 3.5rem 0 6rem;
  background: var(--ink);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 3rem;
  align-items: end;
}

.footer-grid p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
}

.floating-whatsapp {
  position: fixed;
  z-index: 30;
  right: 18px;
  bottom: 18px;
  min-height: 52px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1rem;
  background: #187f55;
  color: var(--white);
  box-shadow: 0 14px 38px rgba(11, 36, 45, 0.28);
  font-size: 0.82rem;
  font-weight: 720;
  text-decoration: none;
}

[data-reveal] {
  opacity: 1;
  transform: none;
}

[data-reveal].reveal-ready {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

[data-reveal].reveal-ready.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 920px) {
  :root {
    --shell: min(100% - 36px, 760px);
  }

  .desktop-nav {
    display: none;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .hero-grid,
  .problem-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .authority-grid {
    gap: 3rem;
  }

  .hero-copy {
    padding-bottom: 2rem;
  }

  .hero-visual {
    min-height: 520px;
  }

  .decision-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-intro {
    position: static;
  }
}

@media (max-width: 640px) {
  :root {
    --shell: calc(100% - 32px);
    --space-section: 5rem;
  }

  body {
    font-size: 1rem;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.5rem);
  }

  h2 {
    font-size: clamp(2.45rem, 12vw, 3.7rem);
  }

  .site-header .button--compact {
    display: none;
  }

  .header-inner {
    min-height: 76px;
    grid-template-columns: 1fr;
  }

  .wordmark {
    font-size: 0.72rem;
  }

  .wordmark__initials {
    width: 38px;
    height: 38px;
  }

  .hero {
    padding-top: 7.5rem;
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions .button,
  .hero-actions .text-link {
    width: 100%;
  }

  .hero-visual {
    width: calc(100% + 32px);
    min-height: 390px;
    margin-left: -16px;
  }

  .hero-visual img {
    object-position: 62% center;
  }

  .hero-index {
    grid-template-columns: 1fr;
  }

  .hero-index span {
    display: none;
  }

  .hero-index span:last-child {
    display: block;
    text-align: left;
  }

  .editorial-grid,
  .section-heading,
  .two-column-copy,
  .audience-list,
  .authority-grid,
  .final-cta-grid,
  .references-heading,
  .references-grid {
    grid-template-columns: 1fr;
  }

  .editorial-grid,
  .section-heading,
  .authority-grid,
  .final-cta-grid {
    gap: 1.5rem;
  }

  .two-column-copy {
    gap: 0.5rem;
  }

  .service-row {
    min-height: 130px;
    grid-template-columns: 32px 1fr;
    gap: 1rem;
    padding-block: 1rem;
  }

  .service-action {
    grid-column: 2;
  }

  .audience-list li:nth-child(odd) {
    border-right: 0;
  }

  .audience-list li:nth-child(even) {
    padding-left: 0;
  }

  .decision-grid {
    grid-template-columns: 1fr;
  }

  .decision-grid article {
    min-height: auto;
  }

  .decision-grid h3 {
    margin-top: 2.5rem;
  }

  .reference-card--2 {
    width: 78%;
    margin-left: auto;
  }

  .authority-portrait {
    width: min(88%, 390px);
  }

  .authority-portrait::before {
    top: -0.7rem;
    right: -0.7rem;
  }

  .authority-role {
    margin-bottom: 2rem;
  }

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

  .floating-whatsapp {
    display: flex;
  }

  .site-footer {
    padding-bottom: 7rem;
  }
}

@media (max-width: 390px) {
  :root {
    --shell: calc(100% - 28px);
  }

  h1 {
    font-size: 3rem;
  }

  .hero-lead {
    font-size: 1.08rem;
  }

  .reference-card--2 {
    width: 88%;
  }

  .floating-whatsapp {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
