/* BEKALY — static site styles. Palette and type tokens live in :root. */
:root {
  --off-white: #F6F8F5;
  --mint: #DCE8E1;
  --green: #236A5B;
  --green-deep: #1B5448;
  --blue: #4B95A3;
  --text: #263B35;
  --muted: #4F625C;
  --line: rgba(38, 59, 53, 0.12);
  --white: #FFFFFF;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "Hoefler Text", Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 18px;
  --container: 1160px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--off-white);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.3rem; line-height: 1.3; }
p { margin: 0 0 1em; }

a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-deep); }

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

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--green); color: var(--white); padding: 0.6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; color: var(--white); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 248, 245, 0.86);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background-color .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.wordmark {
  display: inline-flex; align-items: center; gap: 0.55rem;
  text-decoration: none; color: var(--green);
  font-family: var(--sans); font-weight: 600; letter-spacing: 0.28em; font-size: 1.05rem;
}
.wordmark:hover { color: var(--green-deep); }
.wordmark-mark { width: 28px; height: 28px; color: var(--green); }

.primary-nav ul { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.primary-nav a {
  color: var(--text); text-decoration: none; font-size: 0.95rem;
  position: relative; padding: 0.25rem 0;
}
.primary-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.primary-nav a:not(.nav-cta):hover::after,
.primary-nav a[aria-current="true"]::after { transform: scaleX(1); }
.primary-nav .nav-cta {
  border: 1px solid var(--green); color: var(--green); border-radius: 999px; padding: 0.45rem 1.1rem;
  transition: background-color .25s ease, color .25s ease;
}
.primary-nav .nav-cta:hover { background: var(--green); color: var(--white); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  border-radius: 10px; color: var(--text); position: relative;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  position: absolute; left: 11px; width: 22px; height: 1.6px; background: currentColor; border-radius: 2px;
  transition: transform .3s ease, opacity .2s ease;
}
.nav-toggle-bars { top: 21px; }
.nav-toggle-bars::before { content: ""; left: 0; top: -7px; }
.nav-toggle-bars::after { content: ""; left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); background: var(--text); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); background: var(--text); }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--off-white); border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px -24px rgba(38, 59, 53, .25);
    display: none;
  }
  .primary-nav.is-open { display: block; }
  .no-js .primary-nav { display: block; position: static; box-shadow: none; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 1.25rem 1.5rem; }
  .primary-nav li a { display: block; padding: 0.95rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .primary-nav li a::after { display: none; }
  .primary-nav .nav-cta { margin-top: 1rem; text-align: center; border-bottom: 1px solid var(--green); }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; justify-content: center;
  min-height: 48px; padding: 0.8rem 1.5rem; border-radius: 999px;
  font-size: 0.98rem; font-weight: 500; text-decoration: none; border: 1px solid transparent;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-deep); color: var(--white); }
.btn-ghost { color: var(--green); border-color: rgba(35, 106, 91, .35); }
.btn-ghost:hover { border-color: var(--green); background: rgba(220, 232, 225, .5); }
.btn-light { background: var(--off-white); color: var(--green); font-size: 1.05rem; padding-inline: 2rem; }
.btn-light:hover { background: var(--white); color: var(--green-deep); }

/* Labels */
.eyebrow, .section-label {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--green); font-weight: 600;
  margin-bottom: 1.25rem;
}
.eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; background: rgba(220, 232, 225, .7); padding: 0.4rem 0.9rem; border-radius: 999px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(75, 149, 163, .2); }
.section-label.light { color: var(--mint); }

.large { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.65; color: var(--text); }
.lede { font-size: clamp(1.15rem, 1.8vw, 1.35rem); color: var(--muted); max-width: 34ch; }

/* Hero */
.hero { padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3rem, 7vw, 5.5rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.hero h1 { max-width: 14ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.hero-art svg { width: 100%; height: auto; }
.sway { transform-box: fill-box; transform-origin: bottom center; animation: sway 7s ease-in-out infinite; }
.sway-2 { animation-duration: 9s; animation-delay: -2s; }
@keyframes sway { 0%, 100% { transform: rotate(-1.2deg); } 50% { transform: rotate(1.2deg); } }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-art { max-width: 440px; margin-inline: auto; order: -1; width: 80%; }
}

/* Sections */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head > p:last-child { color: var(--muted); }

.about { border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1fr 3fr; gap: 2rem; }
.about-grid .large { max-width: 46ch; }
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; gap: 0; } }

/* Focus cards */
.focus { background: linear-gradient(180deg, var(--off-white) 0%, var(--mint) 100%); }
.card-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem;
}
.card {
  background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .9);
  border-radius: var(--radius); padding: 2rem 1.75rem;
  box-shadow: 0 1px 2px rgba(38, 59, 53, .04), 0 18px 40px -28px rgba(35, 106, 91, .35);
  transition: transform .35s ease, box-shadow .35s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(38, 59, 53, .05), 0 28px 50px -28px rgba(35, 106, 91, .45); }
.card p { color: var(--muted); font-size: 0.98rem; margin: 0; }
.card-icon {
  width: 52px; height: 52px; padding: 10px; margin-bottom: 1.5rem;
  background: var(--mint); border-radius: 14px;
  fill: none; stroke: var(--green); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.card:nth-child(even) .card-icon { stroke: #2F7482; background: rgba(75, 149, 163, .16); }
.card-note {
  background: var(--green); border-color: var(--green); color: var(--off-white);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 0.75rem;
}
.card-note p { color: rgba(246, 248, 245, .85); }
.card-note .card-note-title { font-family: var(--serif); font-size: 1.35rem; line-height: 1.3; color: var(--off-white); }
.card-note .text-link { color: var(--off-white); text-decoration: none; font-weight: 500; margin-top: 0.5rem; }
.card-note .text-link:hover { text-decoration: underline; color: var(--white); }

/* Why partner */
.why { background: var(--white); border-top: 1px solid var(--line); }
.why-sub { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--green); font-weight: 500; }
.proof-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem;
}
.proof-card {
  min-width: 0;
  background: var(--off-white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2rem 1.75rem;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.proof-card h3 { overflow-wrap: break-word; }
.proof-card p { color: var(--muted); font-size: 0.98rem; margin: 0; overflow-wrap: break-word; }
.proof-card:hover {
  transform: translateY(-4px); border-color: rgba(35, 106, 91, .25);
  box-shadow: 0 1px 2px rgba(38, 59, 53, .04), 0 26px 46px -30px rgba(35, 106, 91, .4);
}
.proof-card strong { color: var(--text); font-weight: 600; }
.proof-card .card-icon { background: var(--white); border: 1px solid var(--line); }
.proof-card:nth-child(even) .card-icon { stroke: #2F7482; background: rgba(75, 149, 163, .12); border-color: transparent; }
.why-cta { margin-top: clamp(2rem, 4vw, 3rem); display: flex; justify-content: center; }
@media (max-width: 880px) {
  .proof-grid { grid-template-columns: 1fr; }
  .why-cta { width: 100%; }
  .why-cta .btn { width: 100%; }
}
@media (max-width: 480px) {
  .proof-card { padding: 1.6rem 1.25rem; }
  .proof-card .card-icon { margin-bottom: 1.1rem; }
}

/* Approach steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 2rem 1.75rem 0 0; position: relative; }
.step + .step { padding-left: 1.75rem; border-left: 1px solid var(--line); }
.step-num { display: block; font-family: var(--serif); font-size: 2.6rem; color: var(--blue); line-height: 1; margin-bottom: 1.25rem; }
.step p { color: var(--muted); font-size: 0.98rem; margin: 0; }
@media (max-width: 980px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step, .step + .step { padding: 2rem 1.5rem 2rem 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .step:nth-child(even) { padding-left: 1.5rem; border-left: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step, .step:nth-child(even) { padding: 1.75rem 0; border-left: 0; }
}

/* Market access */
.market { background: var(--white); }
.market-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.disclosure {
  display: flex; gap: 0.9rem; align-items: flex-start; margin-top: 2rem;
  background: var(--off-white); border-left: 3px solid var(--blue); border-radius: 0 12px 12px 0;
  padding: 1.1rem 1.25rem;
}
.disclosure svg { flex: none; width: 22px; height: 22px; margin-top: 3px; fill: none; stroke: #2F7482; stroke-width: 1.6; stroke-linecap: round; }
.disclosure p { margin: 0; font-size: 0.98rem; }
.market-list { list-style: none; margin: 0; padding: 0; }
.market-list li { padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.market-list li:first-child { padding-top: 0.25rem; }
.market-list h3 { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.4rem; }
.market-list h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.market-list p { color: var(--muted); font-size: 0.98rem; margin: 0; }
@media (max-width: 880px) { .market-grid { grid-template-columns: 1fr; } }

/* Founder & Leadership */
.founder-grid { display: grid; grid-template-columns: 0.42fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.founder-side { position: sticky; top: calc(var(--header-h) + 2rem); }
.portrait-slot {
  position: relative; aspect-ratio: 4 / 5; max-width: 320px;
  border-radius: var(--radius); overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(75, 149, 163, .35) 0%, rgba(75, 149, 163, 0) 55%),
    linear-gradient(165deg, #2A7A67 0%, var(--green) 52%, #1D5749 100%);
  border: 1px solid rgba(35, 106, 91, .45);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.4rem;
}
.portrait-slot svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.portrait-monogram {
  position: relative; margin: 0;
  font-family: var(--serif); font-size: 4.4rem; line-height: 1;
  color: var(--mint);
}
.portrait-word {
  position: relative; margin: 0;
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.42em; padding-left: 0.42em;
  color: rgba(246, 248, 245, 0.72);
}
.portrait-photo { width: 100%; height: 100%; object-fit: cover; }
.founder-linkedin { margin-top: 1.25rem; }
.founder-linkedin svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.takeaways { list-style: none; margin: 0 0 2.25rem; padding: 0; display: grid; gap: 0.7rem; }
.takeaways li {
  position: relative; padding-left: 1.7rem; color: var(--text); font-size: 0.98rem; line-height: 1.6;
}
.takeaways li::before {
  content: ""; position: absolute; left: 0.15rem; top: 0.72em;
  width: 0.62rem; height: 0.36rem;
  border-left: 2px solid var(--green); border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}
.timeline {
  list-style: none; margin: 0; padding: 0.25rem 0 0 1.5rem;
  border-left: 2px solid rgba(35, 106, 91, 0.18);
  display: grid; gap: 1.6rem;
}
.timeline li { position: relative; }
.timeline li::before {
  content: ""; position: absolute; top: 0.5rem; left: calc(-1.5rem - 6px);
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--blue); box-shadow: 0 0 0 3px rgba(75, 149, 163, 0.18);
}
.tl-dates {
  margin: 0 0 0.2rem; font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em; color: #2F7482;
}
.timeline h3 { font-size: 1.08rem; margin: 0; }
.tl-org { color: var(--muted); font-size: 0.92em; }
.tl-role { margin: 0.15rem 0 0; font-size: 0.95rem; font-weight: 600; color: var(--green); }
.tl-note { margin: 0.25rem 0 0; font-size: 0.92rem; color: var(--muted); }
.fineprint { font-size: 0.86rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 2rem; }
@media (max-width: 880px) {
  .founder-grid { grid-template-columns: 1fr; }
  .founder-side { position: static; }
  .portrait-slot { max-width: 280px; }
}

/* Connect */
.connect { background: var(--green); color: var(--off-white); text-align: center; position: relative; overflow: hidden; }
.connect-inner { max-width: 760px; position: relative; }
.connect-art { width: 100%; max-width: 600px; margin: 0 auto 2rem; height: auto; }
.connect h2 { color: var(--off-white); }
.connect p { color: rgba(246, 248, 245, .85); max-width: 52ch; margin-inline: auto; }
.connect .btn { margin-top: 1.25rem; }

/* Footer */
.site-footer { background: var(--text); color: rgba(246, 248, 245, .78); font-size: 0.9rem; padding: 2rem 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-inner p { margin: 0; }
.footer-inner ul { display: flex; flex-wrap: wrap; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.site-footer a { color: var(--off-white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--white); }

/* Reveal on scroll (only when JS is active) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Privacy / simple pages */
.page { padding: clamp(3rem, 8vw, 6rem) 0; }
.page .container { max-width: 760px; }
.page h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); }
.page h2 { font-size: 1.5rem; margin-top: 2.25rem; }
.page p, .page li { color: var(--muted); }
.page .updated { font-size: 0.9rem; }

/* Light focus rings on dark backgrounds */
.connect :focus-visible, .site-footer :focus-visible, .card-note :focus-visible { outline-color: var(--off-white); }
