:root {
  --paper: #f6f3ec;
  --paper-2: #ece7dc;
  --ink: #141814;
  --ink-soft: #4d534c;
  --forest: #16352b;
  --forest-deep: #0e241c;
  --line: #d4cec2;
  --placeholder: #c9c4b8;
  --placeholder-deep: #b7b1a4;
  --white: #fffdf8;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px rgba(20, 24, 20, 0.12);
  --header: 88px;
  --max: 1180px;
  --gutter: 80px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-sans: "Ginto", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-display: "FinancierDisplay", Georgia, "Times New Roman", serif;
  --font-text: "FinancierText", Georgia, "Times New Roman", serif;
  --font-mono: "Gemeli Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

a:hover {
  color: var(--forest);
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.09;
}

h3 {
  font-family: var(--font-text);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.21;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 5.3rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

h3 {
  font-size: 1.5rem;
}

.container {
  width: min(var(--max), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -40px;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
  border-radius: 8px;
}

.skip-link:focus {
  top: 16px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--forest);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}

.eyebrow.light {
  color: #d7e4d8;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.35px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s ease, color 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
  color: inherit;
}

.btn-dark {
  background: var(--ink);
  color: var(--paper);
}

.btn-dark:hover {
  background: #000;
  color: var(--paper);
}

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

.btn-light {
  background: var(--paper);
  color: var(--forest-deep);
}

.placeholder {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--placeholder) 0%, var(--placeholder-deep) 100%);
  border-radius: var(--radius);
}

.placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.18) 45%, transparent 70%);
  transform: translateX(-100%);
  animation: shimmer 3.6s infinite;
}

.placeholder-label,
.placeholder span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
  color: rgba(20, 24, 20, 0.38);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.frame-photo {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-2);
}

.frame-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo {
  width: 100%;
  align-self: center;
  box-shadow: var(--shadow);
}

.hero-photo img {
  height: auto;
  object-fit: contain;
}

.intro-visual {
  aspect-ratio: 4 / 3;
}

.why-photo {
  aspect-ratio: 16 / 10;
  margin-bottom: 24px;
}

.app-window {
  margin: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.app-window-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding: 0 14px;
  background: #f3f0e8;
  border-bottom: 1px solid var(--line);
}

.app-window-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.app-window-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ded8cc;
}

.app-window-dots i:nth-child(1) {
  background: #ff5f57;
}

.app-window-dots i:nth-child(2) {
  background: #febc2e;
}

.app-window-dots i:nth-child(3) {
  background: #28c840;
}

.app-window-title {
  flex: 1;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.app-window img {
  width: 100%;
  height: auto;
  background: var(--white);
}

.placeholder-logo {
  height: 88px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 243, 236, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(20, 24, 20, 0.05);
}

.nav-wrap {
  width: min(var(--max), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-logo-graphic {
  display: block;
  width: 35px;
  height: 33px;
  flex: 0 0 35px;
}

.brand-name {
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0;
}

.brand-divider {
  width: 1px;
  height: 28px;
  margin: 0 2px;
  flex: 0 0 1px;
  background: var(--line);
}

.brand-sub {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.nav a {
  text-decoration: none;
  font-size: 18px;
  font-weight: 400;
}

.nav-cta {
  display: none;
}

.header-cta {
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  padding: 72px 0 40px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% 30% auto -10%;
  height: 70%;
  background:
    radial-gradient(circle at 30% 30%, rgba(22, 53, 43, 0.08), transparent 55%),
    repeating-linear-gradient(90deg, rgba(20, 24, 20, 0.035) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(20, 24, 20, 0.035) 0 1px, transparent 1px 72px);
  pointer-events: none;
}

.hero-grid {
  width: min(var(--max), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.2fr);
  gap: 40px;
  align-items: center;
  position: relative;
}

.lede {
  max-width: 38rem;
  margin: 22px 0 32px;
  font-size: 1.12rem;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual {
  position: relative;
  align-self: stretch;
  display: flex;
}

.hero-ui {
  position: absolute;
  inset: 0;
}

.placeholder-float {
  position: absolute;
  width: 42%;
  box-shadow: var(--shadow);
}

.hero-card-a {
  top: 28px;
  right: 24px;
  height: 120px;
}

.hero-card-b {
  left: 24px;
  bottom: 28px;
  height: 150px;
}

.chart-bars {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 64px;
}

.chart-bars i {
  flex: 1;
  background: rgba(20, 24, 20, 0.18);
  border-radius: 4px 4px 0 0;
  animation: rise 1.8s var(--ease) both;
}

.chart-bars i:nth-child(1) { height: 35%; animation-delay: 0.1s; }
.chart-bars i:nth-child(2) { height: 58%; animation-delay: 0.18s; }
.chart-bars i:nth-child(3) { height: 42%; animation-delay: 0.26s; }
.chart-bars i:nth-child(4) { height: 78%; animation-delay: 0.34s; }
.chart-bars i:nth-child(5) { height: 52%; animation-delay: 0.42s; }
.chart-bars i:nth-child(6) { height: 90%; animation-delay: 0.5s; }

.intro-band {
  padding: 40px 0 20px;
}

.intro-band-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: center;
  padding: 36px 0 8px;
  border-top: 1px solid var(--line);
}

.intro-copy p {
  font-size: 1.2rem;
  line-height: 1.7;
  max-width: 46rem;
}

.stats {
  padding: 28px 0 80px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.05;
}

.stat-label {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.why,
.services,
.partners {
  padding: 88px 0;
}

.why {
  background: var(--paper-2);
}

.section-head {
  max-width: 38rem;
  margin-bottom: 48px;
}

.section-head-split {
  max-width: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
}

.section-lead {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.why-card {
  background: var(--paper);
  padding: 20px 20px 28px;
  border-radius: 28px;
  transition: transform 0.3s var(--ease);
}

.why-card:hover {
  transform: translateY(-4px);
}

.why-card p {
  margin-top: 14px;
  color: var(--ink-soft);
}

.service-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 72px;
}

.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.service-row.reverse .service-copy {
  order: 2;
}

.service-num {
  display: block;
  margin-bottom: 12px;
  color: var(--forest);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.service-copy p {
  margin-top: 16px;
  color: var(--ink-soft);
}

.service-copy a {
  color: var(--forest);
  font-weight: 700;
}

.example {
  margin-top: 22px;
  padding: 16px 18px;
  background: var(--paper-2);
  border-left: 3px solid var(--forest);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.95rem;
  font-style: italic;
}

.example span {
  display: block;
  margin-bottom: 6px;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--forest);
}

.partner-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.partner-tile {
  display: grid;
  place-items: center;
  min-height: 128px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px 28px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}

.partner-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(20, 24, 20, 0.08);
}

.partner-tile img {
  max-width: 100%;
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.contact {
  padding: 96px 0;
  background: var(--forest-deep);
  color: var(--paper);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.contact-copy p:not(.eyebrow) {
  margin-top: 18px;
  color: #c9d4c8;
  font-size: 1.08rem;
}

.contact-form {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 28px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.88rem;
  font-weight: 500;
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--paper);
  font: inherit;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid #d7e4d8;
  outline-offset: 1px;
}

.field textarea {
  resize: vertical;
  min-height: 140px;
}

.field-error {
  min-height: 1.1em;
  margin-top: 6px;
  color: #f0b4a0;
  font-size: 0.82rem;
}

.form-status {
  margin-top: 14px;
  font-size: 0.95rem;
}

.form-status.is-success {
  color: #c7e4c8;
}

.site-footer {
  padding: 56px 0 64px;
  background: #0a1712;
  color: #c9d4c8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 16px;
}

.footer-logo img {
  display: block;
  width: auto;
  height: 56px;
}

.footer-name,
.footer-label {
  color: var(--paper);
  font-weight: 500;
  margin-bottom: 12px;
}

.footer-meta,
.site-footer p {
  margin-bottom: 12px;
}

.site-footer nav {
  display: grid;
  gap: 8px;
}

.site-footer a {
  color: #c9d4c8;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--paper);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: fade-up 0.8s var(--ease) forwards;
  animation-play-state: paused;
}

.reveal.is-visible {
  animation-play-state: running;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

@keyframes rise {
  from {
    transform: scaleY(0);
    transform-origin: bottom;
  }
  to {
    transform: scaleY(1);
    transform-origin: bottom;
  }
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  :root {
    --gutter: 24px;
  }

  .hero-grid,
  .why-grid,
  .service-row,
  .service-row.reverse .service-copy,
  .section-head-split,
  .contact-grid,
  .footer-grid,
  .intro-band-grid {
    grid-template-columns: 1fr;
  }

  .service-row.reverse .service-copy {
    order: 0;
  }

  .stats-row,
  .partner-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-photo {
    min-height: 0;
  }

  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin: 0;
    padding: 12px 24px 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

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

  .nav a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 16px;
    padding: 0 22px;
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    background: var(--ink);
    color: var(--paper);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.35px;
  }

  .nav-cta:hover {
    background: #000;
    color: var(--paper);
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }

  .hero,
  .why,
  .services,
  .partners,
  .contact {
    padding-top: 40px;
    padding-bottom: 56px;
  }

  .hero {
    padding-top: 28px;
  }

  .hero .eyebrow {
    margin-bottom: 12px;
  }

  .stats-row,
  .partner-grid {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    min-height: 0;
  }

  .app-window-title {
    font-size: 0.64rem;
  }

  .intro-copy p {
    font-size: 1.05rem;
  }

  .intro-visual {
    aspect-ratio: 16 / 9;
    max-height: 200px;
  }

  .brand-logo-graphic {
    width: 28px;
    height: 26px;
    flex-basis: 28px;
  }

  .brand-divider,
  .brand-name {
    display: none;
  }
}

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

  .placeholder::after,
  .chart-bars i,
  .reveal,
  .btn {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
