@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/source-serif-4-variable.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --paper: #f4efe5;
  --paper-raised: #faf7f1;
  --paper-deep: #ece4d6;
  --ink-surface: #16130f;
  --ink: #1d1913;
  --ink-soft: #423a30;
  --ink-muted: #675d51;
  --ink-inverse: #f4efe5;
  --rule: #d6cbb8;
  --rule-strong: #b9ab93;
  --stamp: #a83a26;
  --stamp-soft: #f0d9d2;
  --focus: #a83a26;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --text-body: clamp(1.125rem, 1.02rem + 0.34vw, 1.22rem);
  --col: 45rem;
  --col-wide: 58rem;
  --btn-height: 52px;
  --btn-radius: 15px;
  --space-part: clamp(3rem, 3.5vw + 2rem, 6.75rem);
  --pad-x: clamp(1.25rem, 5vw, 4rem);
  --glass-highlight: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04) 42%, rgba(255, 255, 255, 0) 60%);
}

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

html {
  min-width: 320px;
  overflow-x: clip;
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  font-family: var(--font-serif);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.page {
  min-width: 320px;
  overflow: clip;
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: min(100%, 76rem);
  margin: 0 auto;
  padding: clamp(0.9rem, 2.5vw, 1.35rem) var(--pad-x);
  border-bottom: 1px solid var(--rule);
}

.site-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  font-weight: 480;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 11px;
  object-fit: contain;
}

.brand-name b,
.brand-name i {
  color: var(--ink-muted);
  font-style: normal;
  font-weight: inherit;
}

.site-email {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.94rem;
  line-height: 1;
  text-decoration: underline;
  text-decoration-color: var(--rule-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
  white-space: nowrap;
  transition: color 180ms ease-out, text-decoration-color 180ms ease-out;
}

.site-email:hover {
  color: var(--stamp);
  text-decoration-color: currentColor;
}

/* Hero */

.hero {
  position: relative;
}

.hero-copy {
  width: min(100%, calc(var(--col-wide) + 2 * var(--pad-x)));
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 6.5rem) var(--pad-x) clamp(3rem, 7vh, 5.5rem);
}

.hero-kicker {
  max-width: 16ch;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 1.8rem + 3.6vw, 4.125rem);
  font-weight: 540;
  line-height: 1.06;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.hero-kicker span {
  display: block;
}

/* Contact buttons */

.contact-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-contacts {
  margin-top: clamp(1.6rem, 4vw, 2.4rem);
}

.contact-card {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--btn-height);
  padding: 0.55rem 1.1rem 0.55rem 0.8rem;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  background-color: var(--paper-raised);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 55%);
  border: 1px solid var(--rule-strong);
  border-radius: var(--btn-radius);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 1px 2px rgba(22, 19, 15, 0.08);
  transition:
    transform 180ms ease-out,
    border-color 180ms ease-out,
    box-shadow 180ms ease-out;
}

@media (hover: hover) and (pointer: fine) {
  .contact-card:hover {
    border-color: var(--ink);
    transform: translateY(-1px);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.75),
      0 2px 4px rgba(22, 19, 15, 0.1),
      0 10px 22px rgba(22, 19, 15, 0.08);
  }
}

.contact-card:active {
  transform: translateY(0);
  box-shadow: inset 0 2px 4px rgba(22, 19, 15, 0.14);
}

.contact-card:focus-visible,
.closing-email:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.contact-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--ink-soft);
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  border-radius: 9px;
}

.contact-icon svg {
  display: block;
  width: 70%;
  height: 70%;
  fill: currentColor;
}

.contact-card-whatsapp .contact-icon path:first-child {
  fill: none;
  stroke: currentColor;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.contact-card-whatsapp .contact-icon path:last-child {
  fill: currentColor;
}

.contact-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
  font-family: var(--font-sans);
}

.contact-copy strong {
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.005em;
}

.contact-copy span {
  color: var(--ink-muted);
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}

.contact-arrow {
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1;
  transition: transform 180ms ease-out, color 180ms ease-out;
}

.contact-card:hover .contact-arrow {
  color: var(--stamp);
  transform: translate(1px, -1px);
}

/* Opening statement */

.message-board {
  max-width: var(--col-wide);
  margin-top: clamp(2.6rem, 6vw, 4rem);
  padding-top: clamp(1.9rem, 4vw, 2.6rem);
  border-top: 1px solid var(--rule);
}

.message-board p {
  margin: 0;
}

.message-lead {
  max-width: 30ch;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 1.15rem + 1.9vw, 2.25rem);
  font-weight: 500;
  line-height: 1.28;
  text-wrap: balance;
}

.message-number {
  color: var(--stamp);
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}

.message-flow {
  max-width: var(--col);
  margin-top: clamp(1.4rem, 3vw, 2rem);
}

.message-flow p:first-child {
  color: var(--ink);
  font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.6rem);
  font-weight: 500;
  line-height: 1.34;
  text-wrap: balance;
}

.message-flow p + p {
  margin-top: 0.75em;
}

.message-flow p:not(:first-child),
.message-offer {
  color: var(--ink-soft);
  font-size: clamp(1.185rem, 1.05rem + 0.5vw, 1.32rem);
  font-weight: 400;
  line-height: 1.55;
}

.message-offer {
  max-width: var(--col);
  margin-top: 0.75em;
  color: var(--ink-muted);
}

/* Sections */

.content-section {
  padding: 0 var(--pad-x);
}

.section-shell {
  width: min(100%, var(--col-wide));
  margin: 0 auto;
}

.content-section h2 {
  max-width: 24ch;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(1.875rem, 1.4rem + 1.9vw, 2.625rem);
  font-weight: 520;
  line-height: 1.18;
  letter-spacing: -0.006em;
  text-wrap: balance;
}

.process-section {
  padding-top: var(--space-part);
  padding-bottom: var(--space-part);
}

.research-section {
  border-top: 1px solid var(--rule);
}

/* Long-form chapters */

.deep-research {
  max-width: var(--col);
}

.deep-research-opening {
  margin: 0;
}

.market-scan-start {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.65rem);
  font-weight: 500;
  line-height: 1.38;
  text-wrap: balance;
}

.market-scan-start + .market-scan-start {
  margin-top: 0.6em;
  color: var(--ink-soft);
  font-weight: 400;
}

.deep-research-chapter {
  margin-top: clamp(2.2rem, 5vw, 3.2rem);
}

.deep-research-chapter p {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.66;
  text-wrap: pretty;
}

.deep-research-chapter p + p {
  margin-top: 1em;
}

.deep-research-chapter .deep-research-emphasis,
.deep-research-chapter .deep-research-turn {
  margin-bottom: 0.65rem;
  color: var(--ink);
  font-size: clamp(1.3rem, 1.15rem + 0.65vw, 1.5rem);
  font-weight: 520;
  line-height: 1.3;
  text-wrap: balance;
}

.deep-research-opening h2 {
  max-width: 22ch;
  margin: 0;
}

.deep-research-opening h2 + p,
.deep-research-opening p + p {
  margin-top: 1em;
}

/* Statement section */

.mechanics-section {
  padding-top: var(--space-part);
  padding-bottom: 0;
}

.mechanics-shell {
  padding-top: clamp(1.9rem, 4vw, 2.6rem);
  border-top: 1px solid var(--rule);
}

.mechanics-section h2 {
  max-width: 20ch;
}

/* Grabber blocks */

.text-section {
  padding-bottom: var(--space-part);
}

.text-shell {
  max-width: var(--col-wide);
  margin: 0 auto;
}

.longform-bridge {
  max-width: var(--col);
  margin: clamp(1.25rem, 3vw, 1.75rem) 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.185rem, 1.05rem + 0.5vw, 1.32rem);
  font-weight: 400;
  line-height: 1.55;
  text-wrap: pretty;
}

.text-block {
  margin-top: clamp(2.6rem, 6vw, 4rem);
  padding-top: clamp(2.2rem, 5vw, 3.2rem);
  border-top: 1px solid var(--rule);
}

.text-block h3 {
  max-width: var(--col);
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 1.2rem + 0.75vw, 1.625rem);
  font-weight: 520;
  line-height: 1.24;
  letter-spacing: 0;
  text-wrap: balance;
}

.text-block p {
  max-width: var(--col);
  margin: 1em 0 0;
  color: var(--ink-soft);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.66;
  text-wrap: pretty;
}

.example-image {
  margin: clamp(1.5rem, 3.5vw, 2.25rem) 0 0;
}

.example-image img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(22, 19, 15, 0.07);
}

/* Client path */

.client-path-section {
  padding-top: var(--space-part);
  padding-bottom: var(--space-part);
  border-top: 1px solid var(--rule);
}

.client-path-intro {
  max-width: var(--col);
  margin: clamp(1.25rem, 3vw, 1.75rem) 0 0;
  color: var(--ink-soft);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.66;
  text-wrap: pretty;
}

.client-path-grid {
  display: grid;
  max-width: var(--col-wide);
  margin-top: clamp(1.9rem, 4vw, 2.6rem);
  border-top: 1px solid var(--rule);
}

.client-path-item {
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  border-bottom: 1px solid var(--rule);
}

.client-path-item h3 {
  max-width: 22ch;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1.15rem + 0.5vw, 1.45rem);
  font-weight: 520;
  line-height: 1.28;
}

.client-path-item p {
  max-width: 52ch;
  margin: 0.7rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1vw + 0.8rem, 1.125rem);
  font-weight: 400;
  line-height: 1.6;
}

@media (min-width: 1024px) {
  .client-path-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .client-path-item {
    padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 2.5vw, 2.25rem);
  }

  .client-path-item:first-child {
    padding-left: 0;
  }

  .client-path-item + .client-path-item {
    border-left: 1px solid var(--rule);
  }
}

/* Closing */

.closing-section {
  padding-top: var(--space-part);
  padding-bottom: var(--space-part);
  border-top: 1px solid var(--rule);
}

.closing-section h2 {
  max-width: 22ch;
}

.closing-sequence {
  display: grid;
  gap: 0;
  max-width: var(--col);
  margin: clamp(1.9rem, 4vw, 2.6rem) 0 0;
}

.closing-sequence span {
  display: block;
  padding: 0.7rem 0 0.7rem 1.25rem;
  color: var(--ink);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.5;
  border-left: 2px solid var(--rule-strong);
}

.closing-line {
  max-width: var(--col);
  margin: clamp(1.5rem, 3.5vw, 2.25rem) 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.185rem, 1.05rem + 0.5vw, 1.32rem);
  font-weight: 400;
  line-height: 1.55;
  text-wrap: pretty;
}

.closing-contacts {
  margin-top: clamp(1.9rem, 4vw, 2.6rem);
}

.closing-email {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 1.1rem;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  text-decoration: underline;
  text-decoration-color: var(--rule-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
  transition: color 180ms ease-out, text-decoration-color 180ms ease-out;
}

.closing-email:hover {
  color: var(--stamp);
  text-decoration-color: currentColor;
}

/* Buttons */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--btn-height);
  padding: 0.6rem 1.5rem;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.005em;
  text-decoration: none;
  background-color: var(--paper-raised);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 55%);
  border: 1px solid var(--rule-strong);
  border-radius: var(--btn-radius);
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 1px 2px rgba(22, 19, 15, 0.08);
  transition:
    transform 180ms ease-out,
    box-shadow 180ms ease-out,
    border-color 180ms ease-out,
    background-color 180ms ease-out;
}

.btn--primary,
a.btn--primary {
  color: var(--ink-inverse);
  background-color: var(--ink-surface);
  background-image: var(--glass-highlight);
  border-color: rgba(22, 19, 15, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 1px 2px rgba(22, 19, 15, 0.28),
    0 8px 20px rgba(22, 19, 15, 0.14);
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    border-color: var(--ink);
    transform: translateY(-1px);
  }

  .btn--primary:hover,
  a.btn--primary:hover {
    color: var(--ink-inverse);
    background-color: #262019;
    border-color: rgba(22, 19, 15, 0.92);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.24),
      0 2px 4px rgba(22, 19, 15, 0.26),
      0 12px 26px rgba(22, 19, 15, 0.18);
  }
}

.btn:active {
  transform: translateY(0);
  box-shadow: inset 0 2px 4px rgba(22, 19, 15, 0.14);
}

.btn:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* Header link to the Market Scan story */

.site-header-links {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.5vw, 1.1rem);
  margin-left: auto;
}

.site-market-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.3rem 0.85rem;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.94rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  transition: color 180ms ease-out, border-color 180ms ease-out;
}

.site-market-link:hover {
  color: var(--stamp);
  border-color: var(--stamp);
}

/* The Market Scan hand-off: the loudest block on the page */

.scan-bridge-section {
  padding-top: var(--space-part);
  padding-bottom: 0;
}

.scan-bridge {
  max-width: var(--col-wide);
  margin: 0 auto;
  padding: clamp(1.75rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem);
  background-color: var(--paper-deep);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 60%);
  border: 1px solid var(--rule-strong);
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 16px 40px rgba(22, 19, 15, 0.08);
}

.scan-bridge h2 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.25rem);
  font-weight: 520;
  line-height: 1.16;
  letter-spacing: -0.006em;
}

.scan-bridge p {
  max-width: 52ch;
  margin: clamp(0.9rem, 2vw, 1.25rem) 0 0;
  color: var(--ink-soft);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.6;
  text-wrap: pretty;
}

.scan-bridge__cta,
.closing-cta {
  min-height: 56px;
  margin-top: clamp(1.4rem, 3vw, 1.9rem);
  padding-inline: 1.9rem;
  font-size: 1.0625rem;
}

.closing-cta {
  display: inline-flex;
}

/* Responsive */

@media (max-width: 639px) {
  .site-header {
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .contact-options {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-card {
    justify-content: flex-start;
  }

  .site-header-links {
    flex: 1 0 100%;
    justify-content: flex-start;
    margin-left: 0;
  }

  .scan-bridge__cta,
  .closing-cta {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
